bmips: backport accepted pinctrl patches
[openwrt/staging/dedeckeh.git] / target / linux / bmips / dts / bcm6328-comtrend-ar-5387un.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "Comtrend AR-5387un";
7 compatible = "comtrend,ar-5387un", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 debounce-interval = <60>;
25 };
26 };
27
28 bcm43225-sprom {
29 compatible = "brcm,bcm43225-sprom";
30
31 pci-bus = <1>;
32 pci-dev = <0>;
33
34 mtd-mac-address = <&cfe 0x6a0>;
35 mtd-mac-address-increment = <1>;
36
37 brcm,sprom-fixups = <2 0x05bb>,
38 <65 0x1204>,
39 <78 0x0303>,
40 <79 0x0202>,
41 <80 0xff02>,
42 <87 0x0315>,
43 <88 0x0315>,
44 <96 0x2048>,
45 <97 0xff11>,
46 <98 0x1567>,
47 <99 0xfb24>,
48 <100 0x3e3c>,
49 <101 0x4038>,
50 <102 0xfe7f>,
51 <103 0x1279>,
52 <112 0x2048>,
53 <113 0xff03>,
54 <114 0x154c>,
55 <115 0xfb27>,
56 <116 0x3e3c>,
57 <117 0x4038>,
58 <118 0xfe87>,
59 <119 0x1233>,
60 <203 0x2226>;
61 };
62 };
63
64 &ehci {
65 status = "okay";
66 };
67
68 &ethernet {
69 status = "okay";
70
71 mtd-mac-address = <&cfe 0x6a0>;
72 };
73
74 &hsspi {
75 status = "okay";
76
77 flash@0 {
78 compatible = "jedec,spi-nor";
79 spi-max-frequency = <16666667>;
80 spi-tx-bus-width = <2>;
81 spi-rx-bus-width = <2>;
82 reg = <0>;
83
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partitions {
88 compatible = "fixed-partitions";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 cfe: partition@0 {
93 reg = <0x000000 0x010000>;
94 label = "cfe";
95 read-only;
96 };
97
98 partition@10000 {
99 compatible = "brcm,bcm963xx-imagetag";
100 reg = <0x010000 0xfe0000>;
101 label = "firmware";
102 };
103
104 partition@ff0000 {
105 reg = <0xff0000 0x010000>;
106 label = "nvram";
107 };
108 };
109 };
110 };
111
112 &leds {
113 status = "okay";
114
115 pinctrl-names = "default";
116 pinctrl-0 = <&pinctrl_leds>;
117
118 led@1 {
119 reg = <1>;
120 label = "red:internet";
121 };
122
123 led@4 {
124 reg = <4>;
125 label = "red:power";
126 };
127
128 led@7 {
129 reg = <7>;
130 label = "green:internet";
131 };
132
133 led_power_green: led@8 {
134 reg = <8>;
135 label = "green:power";
136 };
137
138 led@11 {
139 reg = <11>;
140 active-low;
141 label = "green:dsl";
142 };
143 };
144
145 &ohci {
146 status = "okay";
147 };
148
149 &pcie {
150 status = "okay";
151 };
152
153 &pinctrl {
154 pinctrl_leds: leds {
155 function = "led";
156 pins = "gpio1", "gpio4", "gpio7",
157 "gpio8", "gpio11";
158 };
159 };
160
161 &switch0 {
162 ports {
163 port@0 {
164 reg = <0>;
165 label = "lan1";
166
167 phy-handle = <&phy1>;
168 };
169
170 port@1 {
171 reg = <1>;
172 label = "lan2";
173
174 phy-handle = <&phy2>;
175 };
176
177 port@2 {
178 reg = <2>;
179 label = "lan3";
180
181 phy-handle = <&phy3>;
182 };
183
184 port@3 {
185 reg = <3>;
186 label = "lan4";
187
188 phy-handle = <&phy4>;
189 };
190 };
191 };
192
193 &uart0 {
194 status = "okay";
195 };
196
197 &usbh {
198 status = "okay";
199 };