|
3 | 3 | #include <zephyr/dt-bindings/i2c/i2c.h> |
4 | 4 | #include <zephyr/dt-bindings/pwm/pwm.h> |
5 | 5 |
|
6 | | -#include "proves_flight_control_board_v5d-pinctrl.dtsi" |
| 6 | +#include "../proves_flight_control_board_v5c/proves_flight_control_board_v5c.dtsi" |
| 7 | +#include "../proves_flight_control_board_v5c/proves_flight_control_board_v5c-pinctrl.dtsi" |
7 | 8 |
|
8 | | -/ { |
9 | | - chosen { |
10 | | - zephyr,sram = &sram0; |
11 | | - zephyr,flash = &flash0; |
12 | | - zephyr,console = &cdc_acm_uart0; |
13 | | - zephyr,shell-uart = &cdc_acm_uart0; |
14 | | - zephyr,code-partition = &code_partition; |
15 | | - }; |
16 | | - |
17 | | - aliases { |
18 | | - watchdog0 = &wdt0; |
19 | | - }; |
20 | | - |
21 | | - leds { |
22 | | - compatible = "gpio-leds"; |
23 | | - led0: led0 { |
24 | | - gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>; |
25 | | - label = "User LED GPIO23"; |
26 | | - }; |
27 | | - }; |
28 | | -}; |
29 | | - |
30 | | -zephyr_udc0: &usbd { |
31 | | - status = "okay"; |
32 | | -}; |
33 | | - |
34 | | -&zephyr_udc0 { |
35 | | - cdc_acm_uart0: cdc_acm_uart0 { |
36 | | - compatible = "zephyr,cdc-acm-uart"; |
37 | | - label = "CDC_ACM_0"; |
38 | | - }; |
39 | | -}; |
40 | | - |
41 | | -&flash0 { |
42 | | - reg = <0x10000000 DT_SIZE_M(4)>; |
43 | | - |
44 | | - partitions { |
45 | | - compatible = "fixed-partitions"; |
46 | | - #address-cells = <1>; |
47 | | - #size-cells = <1>; |
48 | | - |
49 | | - /* Reserved memory for an image definition block. The block is much |
50 | | - * smaller than 256 bytes, but in practice the linker places the vector |
51 | | - * table at a much larger alignment offset. |
52 | | - */ |
53 | | - image_def: partition@0 { |
54 | | - label = "image_def"; |
55 | | - reg = <0x00000000 0x100>; |
56 | | - read-only; |
57 | | - }; |
58 | | - |
59 | | - /* |
60 | | - * Usable flash. Starts at 0x100, after the image definition block. |
61 | | - * The partition size is 4MB minus the 0x100 bytes taken by the |
62 | | - * image definition. |
63 | | - */ |
64 | | - code_partition: partition@100 { |
65 | | - label = "code-partition"; |
66 | | - reg = <0x100 (DT_SIZE_M(4) - 0x100)>; |
67 | | - read-only; |
68 | | - }; |
69 | | - }; |
70 | | -}; |
71 | | - |
72 | | -&timer0 { |
73 | | - status = "okay"; |
74 | | -}; |
75 | | - |
76 | | -&wdt0 { |
77 | | - status = "okay"; |
78 | | -}; |
79 | | - |
80 | | -&gpio0 { |
81 | | - status = "okay"; |
82 | | -}; |
83 | | - |
84 | | -&spi1 { |
85 | | - status = "okay"; |
86 | | - cs-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
87 | | - pinctrl-0 = <&spi1_default>; |
88 | | - pinctrl-names = "default"; |
89 | | - |
90 | | - lora0: sx1276@0 { |
91 | | - compatible = "semtech,sx1276"; |
92 | | - reg = <0>; |
93 | | - spi-max-frequency = <125000>; |
94 | | - dio-gpios = <&gpio0 13 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,<&gpio0 12 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; |
95 | | - reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
96 | | - power-amplifier-output = "pa-boost"; |
97 | | - label = "HOPE_RF"; |
98 | | - }; |
99 | | -}; |
100 | | - |
101 | | -&i2c1 { |
102 | | - status = "okay"; |
103 | | - pinctrl-0 = <&i2c1_default>; |
104 | | - pinctrl-names = "default"; |
105 | | - clock-frequency = <100000>; |
106 | | - |
107 | | - lsm6dso0: lsm6dso0@6b { |
108 | | - compatible = "st,lsm6dso"; |
109 | | - reg = <0x6b>; |
110 | | - label = "LSM6DSO"; |
111 | | - }; |
112 | | - |
113 | | - lis2mdl: lis2mdl@1e { |
114 | | - compatible = "st,lis2mdl"; |
115 | | - reg = <0x1e>; |
116 | | - label = "LIS2MDL"; |
117 | | - }; |
118 | | - rv3028: rv3028@52 { |
119 | | - compatible = "microcrystal,rv3028"; |
120 | | - reg = <0x52>; |
121 | | - int-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
122 | | - backup-switch-mode = "level"; |
123 | | - label = "RV3028"; |
124 | | - }; |
125 | | - ina219: ina219@40 { |
126 | | - compatible = "ti,ina219"; |
127 | | - reg = <0x40>; |
128 | | - shunt-milliohm = <2>; |
129 | | - lsb-microamp = <100>; |
130 | | - label = "INA219"; |
131 | | - }; |
| 9 | +&led0 { |
| 10 | + gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>; |
| 11 | + label = "User LED GPIO23"; |
132 | 12 | }; |
0 commit comments