bmips: dts: move leds dt-bindings include to SoCs
[openwrt/staging/robimarko.git] / target / linux / bmips / dts / bcm6328-arcadyan-ar7516.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "Arcadyan AR7516";
7 compatible = "arcadyan,ar7516", "brcm,bcm6328";
8
9 aliases {
10 led-failsafe = &led_upgrade_green;
11 led-upgrade = &led_upgrade_green;
12 };
13
14 keys {
15 compatible = "gpio-keys-polled";
16 poll-interval = <100>;
17
18 reset {
19 label = "reset";
20 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 debounce-interval = <60>;
23 };
24
25 wps {
26 label = "wps";
27 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_WPS_BUTTON>;
29 debounce-interval = <60>;
30 };
31 };
32
33 bcm43227-sprom {
34 compatible = "brcm,bcma-sprom";
35
36 pci-bus = <1>;
37 pci-dev = <0>;
38
39 nvmem-cells = <&macaddr_cfe_6a0 1>;
40 nvmem-cell-names = "mac-address";
41
42 brcm,sprom = "brcm/bcm43227-sprom.bin";
43 };
44 };
45
46 &ehci {
47 status = "okay";
48 };
49
50 &ethernet {
51 status = "okay";
52
53 nvmem-cells = <&macaddr_cfe_6a0 0>;
54 nvmem-cell-names = "mac-address";
55 };
56
57 &hsspi {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 spi-max-frequency = <16666667>;
63 spi-tx-bus-width = <2>;
64 spi-rx-bus-width = <2>;
65 reg = <0>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "cfe";
74 reg = <0x000000 0x010000>;
75 read-only;
76
77 nvmem-layout {
78 compatible = "fixed-layout";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 macaddr_cfe_6a0: macaddr@6a0 {
83 compatible = "mac-base";
84 reg = <0x6a0 0x6>;
85 #nvmem-cell-cells = <1>;
86 };
87 };
88 };
89
90 partition@10000 {
91 compatible = "brcm,bcm963xx-imagetag";
92 label = "firmware";
93 reg = <0x010000 0x7e0000>;
94 };
95
96 partition@7f0000 {
97 label = "nvram";
98 reg = <0x7f0000 0x010000>;
99 };
100 };
101 };
102 };
103
104 &leds {
105 status = "okay";
106
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
109 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led
110 &pinctrl_leds>;
111
112 led_upgrade_green: led@1 {
113 reg = <1>;
114 label = "green:upgrade";
115 };
116
117 led@6 {
118 reg = <6>;
119 active-low;
120 function = LED_FUNCTION_WAN;
121 color = <LED_COLOR_ID_GREEN>;
122 };
123
124 led@7 {
125 reg = <7>;
126 active-low;
127 label = "green:wifi";
128 };
129 };
130
131 &ohci {
132 status = "okay";
133 };
134
135 &pcie {
136 status = "okay";
137 };
138
139 &pinctrl {
140 pinctrl_leds: leds {
141 function = "led";
142 pins = "gpio1", "gpio6", "gpio7";
143 };
144 };
145
146 &switch0 {
147 ports {
148 port@0 {
149 reg = <0>;
150 label = "lan1";
151
152 phy-handle = <&phy1>;
153 phy-mode = "mii";
154 };
155
156 port@1 {
157 reg = <1>;
158 label = "lan2";
159
160 phy-handle = <&phy2>;
161 phy-mode = "mii";
162 };
163
164 port@2 {
165 reg = <2>;
166 label = "lan3";
167
168 phy-handle = <&phy3>;
169 phy-mode = "mii";
170 };
171
172 port@3 {
173 reg = <3>;
174 label = "wan";
175
176 phy-handle = <&phy4>;
177 phy-mode = "mii";
178 };
179 };
180 };
181
182 &uart0 {
183 status = "okay";
184 };
185
186 &usbh {
187 status = "okay";
188 };