bcm63xx: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.git] / target / linux / bcm63xx / dts / bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ADB P.DG A4001N A-000-1A1-AX";
9 compatible = "adb,pdg-a4001n-a-000-1a1-ax", "brcm,bcm6328";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 chosen {
19 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&pinctrl 23 1>;
32 linux,code = <KEY_RESTART>;
33 debounce-interval = <60>;
34 };
35
36 wps {
37 label = "wifi-led";
38 gpios = <&pinctrl 24 1>;
39 linux,code = <KEY_WPS_BUTTON>;
40 debounce-interval = <60>;
41 };
42 };
43 };
44
45 &leds {
46 status = "okay";
47
48 pinctrl-names = "default";
49 pinctrl-0 = <&pinctrl_leds>;
50
51 led@2 {
52 reg = <2>;
53 active-low;
54 label = "red:internet";
55 };
56
57 led@3 {
58 reg = <3>;
59 active-low;
60 label = "green:adsl";
61 };
62
63 led@5 {
64 reg = <5>;
65 active-low;
66 label = "red:adsl";
67 };
68
69 led@6 {
70 reg = <6>;
71 active-low;
72 label = "green:service";
73 };
74
75 led@7 {
76 reg = <7>;
77 active-low;
78 label = "red:service";
79 };
80
81 led@8 {
82 reg = <8>;
83 active-low;
84 label = "red:power";
85 };
86
87 led@9 {
88 reg = <9>;
89 active-low;
90 label = "green:wifi";
91 };
92
93 led@10 {
94 reg = <10>;
95 active-low;
96 label = "red:wifi";
97 };
98
99 led@11 {
100 reg = <11>;
101 active-low;
102 label = "green:internet";
103 };
104
105 led_power_green: led@12 {
106 reg = <12>;
107 active-low;
108 label = "green:power";
109 default-state = "on";
110 };
111 };
112
113 &hsspi {
114 status = "okay";
115
116 flash@0 {
117 compatible = "jedec,spi-nor";
118 spi-max-frequency = <16666667>;
119 spi-tx-bus-width = <2>;
120 spi-rx-bus-width = <2>;
121 reg = <0>;
122
123 #address-cells = <1>;
124 #size-cells = <1>;
125
126 partitions {
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 partition@0 {
132 reg = <0x000000 0x010000>;
133 label = "cfe";
134 read-only;
135 };
136
137 partition@10000 {
138 reg = <0x010000 0xfe0000>;
139 label = "linux";
140 compatible = "brcm,bcm963xx-imagetag";
141 };
142
143 partition@ff0000 {
144 reg = <0xff0000 0x010000>;
145 label = "nvram";
146 };
147 };
148 };
149 };
150
151 &pinctrl {
152 pinctrl_leds: leds {
153 function = "led";
154 pins = "gpio2", "gpio3",
155 "gpio5", "gpio6",
156 "gpio7", "gpio8",
157 "gpio9", "gpio10",
158 "gpio11", "gpio12";
159 };
160 };
161
162 &uart0 {
163 status = "okay";
164 };