-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: shields: Adding support for the adafruit can picowbell shield
Adding support for the adafruit can picowbell shield for the raspberry pi picoi. Also added nodelable for spi0 called 'pico_spi' as well as an GPIO nexus node 'pico_header' Signed-off-by: Joseph Yates <joeyatessecond@gmail.com>
- Loading branch information
Showing
6 changed files
with
235 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2023 Joseph Yates | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pico_spi { | ||
status = "okay"; | ||
cs-gpios = <&pico_header 20 GPIO_ACTIVE_LOW>; | ||
|
||
mcp2515_adafruit_can_picowbell: can@0 { | ||
compatible = "microchip,mcp2515"; | ||
spi-max-frequency = <1000000>; | ||
int-gpios = <&pico_header 21 GPIO_ACTIVE_LOW>; | ||
status = "okay"; | ||
reg = <0x0>; | ||
osc-freq = <16000000>; | ||
bus-speed = <125000>; | ||
sjw = <1>; | ||
sample-point = <875>; | ||
|
||
can-transceiver { | ||
max-bitrate = <1000000>; | ||
}; | ||
}; | ||
}; | ||
|
||
/ { | ||
chosen { | ||
zephyr,canbus = &mcp2515_adafruit_can_picowbell; | ||
}; | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) 2023, Joseph Yates | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: | | ||
GPIO pins exposed on Raspberry Pi Pico headers. | ||
The Raspberry Pi Pico layout provides 2 columns of 20 pins headers | ||
This binding provides a nexus mapping for the default 26 pins as depicted below: | ||
0 GPIO0/UART0_TX VBUS - | ||
1 GPIO1/UART0_RX VSYS - | ||
- GND GND - | ||
2 GPIO2 3V3_EN - | ||
3 GPIO3 3V3_OUT - | ||
4 GPIO4/I2C0_SDA ADC_VREF - | ||
5 GPIO5/I2C0_SCL GPIO28/ADC2 28 | ||
- GND GND - | ||
6 GPIO6 GPIO27/ADC1 27 | ||
7 GPIO7 GPIO26/ADC0 26 | ||
8 GPIO8 RUN - | ||
9 GPIO9 GPIO22 22 | ||
- GND GND - | ||
10 GPIO10 GPIO21 21 | ||
11 GPIO11 GPIO20 20 | ||
12 GPIO12 GPIO19/SPI0_TX 19 | ||
13 GPIO13 GPIO18/SPI0_SCK 18 | ||
- GND GND - | ||
14 GPIO14 GPIO17/SPI0_CSn 17 | ||
15 GPIO15 GPIO16/SPI0_RX 16 | ||
compatible: "raspberrypi,pico-header" | ||
|
||
include: [gpio-nexus.yaml, base.yaml] |