File tree Expand file tree Collapse file tree 3 files changed +42
-36
lines changed
boards/shields/mikroe_mcp251xfd_click Expand file tree Collapse file tree 3 files changed +42
-36
lines changed Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: Apache-2.0
55 */
66
7+ #include <zephyr/dt-bindings/gpio/gpio.h>
8+ #include <freq.h>
9+
10+ / {
11+ chosen {
12+ zephyr,canbus = &mcp2517fd_mikroe_mcp2517fd_click;
13+ };
14+ };
15+
716&mikrobus_spi {
817 cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>;
918
10- mcp2517fd_mikroe_mcp2517fd_click: mcp2517fd @0 {
19+ mcp2517fd_mikroe_mcp2517fd_click: can @0 {
1120 compatible = "microchip,mcp251xfd";
12- status = "okay";
13-
14- spi-max-frequency = <18000000>;
15- int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
1621 reg = <0x0>;
17- osc-freq = <40000000>;
18- };
19- };
20-
21- / {
22- chosen {
23- zephyr,canbus = &mcp2517fd_mikroe_mcp2517fd_click;
22+ spi-max-frequency = <DT_FREQ_M(18)>;
23+ osc-freq = <DT_FREQ_M(40)>;
24+ int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
25+ status = "okay";
2426 };
2527};
Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: Apache-2.0
55 */
66
7+ #include <zephyr/dt-bindings/gpio/gpio.h>
8+ #include <freq.h>
9+
10+ / {
11+ chosen {
12+ zephyr,canbus = &mcp251863_mikroe_mcp251863_click;
13+ };
14+ };
15+
716&mikrobus_spi {
817 cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>;
918
10- mcp251863_mikroe_mcp251863_click: mcp251863 @0 {
19+ mcp251863_mikroe_mcp251863_click: can @0 {
1120 compatible = "microchip,mcp251xfd";
12- status = "okay";
13-
14- spi-max-frequency = <18000000>;
15- int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
1621 reg = <0x0>;
17- osc-freq = <40000000>;
18- };
19- };
20-
21- / {
22- chosen {
23- zephyr,canbus = &mcp251863_mikroe_mcp251863_click;
22+ spi-max-frequency = <DT_FREQ_M(18)>;
23+ osc-freq = <DT_FREQ_M(40)>;
24+ int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
25+ status = "okay";
2426 };
2527};
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55
6+ #include <zephyr/dt-bindings/gpio/gpio.h>
7+ #include <freq.h>
8+
9+ / {
10+ chosen {
11+ zephyr,canbus = &mcp2518fd_mikroe_mcp2518fd_click;
12+ };
13+ };
14+
615&mikrobus_spi {
716 cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>;
817
9- mcp2518fd_mikroe_mcp2518fd_click: mcp2518fd @0 {
18+ mcp2518fd_mikroe_mcp2518fd_click: can @0 {
1019 compatible = "microchip,mcp251xfd";
11- status = "okay";
12-
13- spi-max-frequency = <18000000>;
14- int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
1520 reg = <0x0>;
16- osc-freq = <40000000>;
17- };
18- };
19-
20- / {
21- chosen {
22- zephyr,canbus = &mcp2518fd_mikroe_mcp2518fd_click;
21+ spi-max-frequency = <DT_FREQ_M(18)>;
22+ osc-freq = <DT_FREQ_M(40)>;
23+ int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
24+ status = "okay";
2325 };
2426};
You can’t perform that action at this time.
0 commit comments