base-files: reduce IPv6 ULA prefix generation to a single call
[openwrt/staging/stintel.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / ws-ap3710i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
5
6 /include/ "fsl/p1020si-pre.dtsi"
7 / {
8 model = "Enterasys WS-AP3710i";
9 compatible = "enterasys,ws-ap3710i";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_red;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_red;
16 label-mac-device = &enet0;
17 };
18
19 memory {
20 device_type = "memory";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 wifi1 {
27 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
28 label = "ws-ap3710i:green:radio1";
29 linux,default-trigger = "phy0tpt";
30 };
31
32 wifi2 {
33 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
34 label = "ws-ap3710i:green:radio2";
35 linux,default-trigger = "phy1tpt";
36 };
37
38 led_power_green: power_green {
39 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
40 label = "ws-ap3710i:green:power";
41 };
42
43 led_power_red: power_red {
44 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
45 label = "ws-ap3710i:red:power";
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys";
51
52 reset {
53 label = "Reset button";
54 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57 };
58
59 lbc: localbus@ffe05000 {
60 reg = <0 0xffe05000 0 0x1000>;
61 ranges = <0x0 0x0 0x0 0xee000000 0x2000000>;
62
63 nor@0 {
64 #address-cells = <1>;
65 #size-cells = <1>;
66 compatible = "cfi-flash";
67 reg = <0x0 0x0 0x2000000>;
68 bank-width = <2>;
69 device-width = <1>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 compatible = "denx,fit";
78 reg = <0x0 0x1d80000>;
79 label = "firmware";
80 };
81
82 partition@1d80000 {
83 reg = <0x1d80000 0x80000>;
84 label = "u-boot";
85 read-only;
86 };
87
88 partition@1e00000 {
89 reg = <0x1e00000 0x100000>;
90 label = "nvram";
91 read-only;
92 };
93
94 partition@1f00000 {
95 reg = <0x1f00000 0x20000>;
96 label = "cfg2";
97 read-only;
98 };
99
100 partition@1f20000 {
101 reg = <0x1f20000 0x20000>;
102 label = "cfg1";
103 read-only;
104 };
105 };
106 };
107 };
108
109 soc: soc@ffe00000 {
110 ranges = <0x0 0x0 0xffe00000 0x100000>;
111
112 gpio0: gpio-controller@fc00 {
113 };
114
115 mdio@24000 {
116 phy4: ethernet-phy@4 {
117 reg = <0x4>;
118 reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
119 };
120 };
121
122 enet0: ethernet@b0000 {
123 phy-connection-type = "rgmii-id";
124 phy-handle = <&phy4>;
125 };
126
127 enet1: ethernet@b1000 {
128 status = "disabled";
129 };
130
131 enet2: ethernet@b2000 {
132 status = "disabled";
133 };
134
135 usb@22000 {
136 status = "disabled";
137 };
138
139 usb@23000 {
140 status = "disabled";
141 };
142 };
143
144 pci0: pcie@ffe09000 {
145 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
146 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
147 reg = <0 0xffe09000 0 0x1000>;
148 pcie@0 {
149 ranges = <0x2000000 0x0 0xa0000000
150 0x2000000 0x0 0xa0000000
151 0x0 0x20000000
152
153 0x1000000 0x0 0x0
154 0x1000000 0x0 0x0
155 0x0 0x100000>;
156 };
157 };
158
159 pci1: pcie@ffe0a000 {
160 reg = <0 0xffe0a000 0 0x1000>;
161 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
162 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
163 pcie@0 {
164 ranges = <0x2000000 0x0 0x80000000
165 0x2000000 0x0 0x80000000
166 0x0 0x20000000
167
168 0x1000000 0x0 0x0
169 0x1000000 0x0 0x0
170 0x0 0x100000>;
171 };
172 };
173
174 };
175 /include/ "fsl/p1020si-post.dtsi"
176
177 /*
178 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
179 * aliases to determine PCI domain numbers, drop aliases so as not to
180 * change the sysfs path of our wireless netdevs.
181 */
182
183 / {
184 aliases {
185 /delete-property/ pci0;
186 /delete-property/ pci1;
187 };
188 };