|
15 | 15 | #include "rp2040_matrix-pinctrl.dtsi"
|
16 | 16 |
|
17 | 17 | / {
|
18 |
| - model = "Waveshare RP2040 Matrix"; |
19 | 18 | compatible = "waveshare,rp2040-matrix";
|
| 19 | + model = "Waveshare RP2040 Matrix"; |
20 | 20 |
|
21 | 21 | chosen {
|
22 | 22 | zephyr,sram = &sram0;
|
|
39 | 39 |
|
40 | 40 | led_matrix: led_matrix {
|
41 | 41 | compatible = "led-strip-matrix";
|
42 |
| - status = "okay"; |
43 | 42 | led-strips = <&ws2812>;
|
44 | 43 | width = <5>;
|
45 | 44 | height = <5>;
|
46 | 45 | circulative;
|
| 46 | + status = "okay"; |
47 | 47 | };
|
48 | 48 | };
|
49 | 49 |
|
|
57 | 57 |
|
58 | 58 | /* Reserved memory for the second stage bootloader */
|
59 | 59 | second_stage_bootloader: partition@0 {
|
60 |
| - label = "second_stage_bootloader"; |
61 | 60 | reg = <0x00000000 0x100>;
|
| 61 | + label = "second_stage_bootloader"; |
62 | 62 | read-only;
|
63 | 63 | };
|
64 | 64 |
|
|
67 | 67 | * size is 2 MB minus the 0x100 bytes taken by the bootloader.
|
68 | 68 | */
|
69 | 69 | code_partition: partition@100 {
|
70 |
| - label = "code-partition"; |
71 | 70 | reg = <0x100 (DT_SIZE_M(2) - 0x100)>;
|
| 71 | + label = "code-partition"; |
72 | 72 | read-only;
|
73 | 73 | };
|
74 | 74 | };
|
|
80 | 80 |
|
81 | 81 | &uart0 {
|
82 | 82 | current-speed = <115200>;
|
83 |
| - status = "okay"; |
84 | 83 | pinctrl-0 = <&uart0_default>;
|
85 | 84 | pinctrl-names = "default";
|
| 85 | + status = "okay"; |
86 | 86 | };
|
87 | 87 |
|
88 | 88 | &spi0 {
|
|
100 | 100 | };
|
101 | 101 |
|
102 | 102 | &adc {
|
103 |
| - status = "okay"; |
104 | 103 | pinctrl-0 = <&adc_default>;
|
105 | 104 | pinctrl-names = "default";
|
106 | 105 | #address-cells = <1>;
|
107 | 106 | #size-cells = <0>;
|
| 107 | + status = "okay"; |
108 | 108 |
|
109 | 109 | channel@0 {
|
110 | 110 | reg = <0>;
|
|
144 | 144 |
|
145 | 145 | pio-ws2812 {
|
146 | 146 | compatible = "worldsemi,ws2812-rpi_pico-pio";
|
147 |
| - status = "okay"; |
148 | 147 | pinctrl-0 = <&ws2812_pio0_default>;
|
149 | 148 | pinctrl-names = "default";
|
150 | 149 | bit-waveform = <3>, <3>, <4>;
|
| 150 | + status = "okay"; |
151 | 151 |
|
152 | 152 | ws2812: ws2812 {
|
153 |
| - status = "okay"; |
154 | 153 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
|
155 | 154 | chain-length = <25>;
|
156 | 155 | color-mapping = <LED_COLOR_ID_GREEN
|
157 |
| - LED_COLOR_ID_RED |
158 |
| - LED_COLOR_ID_BLUE>; |
| 156 | + LED_COLOR_ID_RED |
| 157 | + LED_COLOR_ID_BLUE>; |
159 | 158 | reset-delay = <280>;
|
160 | 159 | frequency = <800000>;
|
| 160 | + status = "okay"; |
161 | 161 | };
|
162 | 162 | };
|
163 | 163 | };
|
|
0 commit comments