-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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 pico Signed-off-by: Joseph Yates <joeyatessecond@gmail.com>
- Loading branch information
Showing
4 changed files
with
165 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
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 | ||
*/ | ||
|
||
&spi0{ | ||
status = "okay"; | ||
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | ||
|
||
mcp2515_adafruit_can_picowbell: can@0 { | ||
compatible = "microchip,mcp2515"; | ||
spi-max-frequency = <1000000>; | ||
int-gpios = <&gpio0 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; | ||
}; | ||
}; |
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