ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7242_ubnt_edgeswitch-8xp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242_ubnt_sw.dtsi"
4
5 / {
6 compatible = "ubnt,edgeswitch-8xp", "qca,ar7242";
7 model = "Ubiquiti EdgeSwitch 8XP";
8
9 gpio-export {
10 compatible = "gpio-export";
11
12 poe_24v_port1 {
13 gpio-export,name = "ubnt:24v-poe:port1";
14 gpio-export,output = <0>;
15 gpios = <&gpio_hc595 1 GPIO_ACTIVE_HIGH>;
16 };
17
18 poe_48v_port1 {
19 gpio-export,name = "ubnt:48v-poe:port1";
20 gpio-export,output = <0>;
21 gpios = <&gpio_hc595 0 GPIO_ACTIVE_HIGH>;
22 };
23
24 poe_24v_port2 {
25 gpio-export,name = "ubnt:24v-poe:port2";
26 gpio-export,output = <0>;
27 gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
28 };
29
30 poe_48v_port2 {
31 gpio-export,name = "ubnt:48v-poe:port2";
32 gpio-export,output = <0>;
33 gpios = <&gpio_hc595 2 GPIO_ACTIVE_HIGH>;
34 };
35
36 poe_24v_port3 {
37 gpio-export,name = "ubnt:24v-poe:port3";
38 gpio-export,output = <0>;
39 gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
40 };
41
42 poe_48v_port3 {
43 gpio-export,name = "ubnt:48v-poe:port3";
44 gpio-export,output = <0>;
45 gpios = <&gpio_hc595 4 GPIO_ACTIVE_HIGH>;
46 };
47
48 poe_24v_port4 {
49 gpio-export,name = "ubnt:24v-poe:port4";
50 gpio-export,output = <0>;
51 gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
52 };
53
54 poe_48v_port4 {
55 gpio-export,name = "ubnt:48v-poe:port4";
56 gpio-export,output = <0>;
57 gpios = <&gpio_hc595 6 GPIO_ACTIVE_HIGH>;
58 };
59
60 poe_24v_port5 {
61 gpio-export,name = "ubnt:24v-poe:port5";
62 gpio-export,output = <0>;
63 gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
64 };
65
66 poe_48v_port5 {
67 gpio-export,name = "ubnt:48v-poe:port5";
68 gpio-export,output = <0>;
69 gpios = <&gpio_hc595 8 GPIO_ACTIVE_HIGH>;
70 };
71
72 poe_24v_port6 {
73 gpio-export,name = "ubnt:24v-poe:port6";
74 gpio-export,output = <0>;
75 gpios = <&gpio_hc595 11 GPIO_ACTIVE_HIGH>;
76 };
77
78 poe_48v_port6 {
79 gpio-export,name = "ubnt:48v-poe:port6";
80 gpio-export,output = <0>;
81 gpios = <&gpio_hc595 10 GPIO_ACTIVE_HIGH>;
82 };
83
84 poe_24v_port7 {
85 gpio-export,name = "ubnt:24v-poe:port7";
86 gpio-export,output = <0>;
87 gpios = <&gpio_hc595 13 GPIO_ACTIVE_HIGH>;
88 };
89
90 poe_48v_port7 {
91 gpio-export,name = "ubnt:48v-poe:port7";
92 gpio-export,output = <0>;
93 gpios = <&gpio_hc595 12 GPIO_ACTIVE_HIGH>;
94 };
95
96 poe_24v_port8 {
97 gpio-export,name = "ubnt:24v-poe:port8";
98 gpio-export,output = <0>;
99 gpios = <&gpio_hc595 15 GPIO_ACTIVE_HIGH>;
100 };
101
102 poe_48v_port8 {
103 gpio-export,name = "ubnt:48v-poe:port8";
104 gpio-export,output = <0>;
105 gpios = <&gpio_hc595 14 GPIO_ACTIVE_HIGH>;
106 };
107 };
108 };
109
110 &mdio0 {
111 status = "okay";
112
113 ethernet-switch@1e {
114 compatible = "brcm,bcm53128";
115 reg = <0x1e>;
116
117 ports {
118 #address-cells = <1>;
119 #size-cells = <0>;
120
121 port0@0 {
122 reg = <0>;
123 label = "lan1";
124 };
125
126 port1@1 {
127 reg = <1>;
128 label = "lan2";
129 };
130
131 port2@2 {
132 reg = <2>;
133 label = "lan3";
134 };
135
136 port3@3 {
137 reg = <3>;
138 label = "lan4";
139 };
140
141 port4@4 {
142 reg = <4>;
143 label = "lan5";
144 };
145
146 port5@5 {
147 reg = <5>;
148 label = "lan6";
149 };
150
151 port6@6 {
152 reg = <6>;
153 label = "lan7";
154 };
155
156 port7@7 {
157 reg = <7>;
158 label = "lan8";
159 };
160
161 phy0: port8@8 {
162 reg = <8>;
163 ethernet = <&eth0>;
164
165 fixed-link {
166 speed = <1000>;
167 full-duplex;
168 };
169 };
170 };
171 };
172 };
173
174 &eth0 {
175 status = "okay";
176
177 phy-handle = <&phy0>;
178 phy-mode = "rgmii-rxid";
179 pll-data = <0x16000000 0x00000101 0x00001313>;
180
181 nvmem-cells = <&macaddr_art_0>;
182 nvmem-cell-names = "mac-address";
183
184 fixed-link {
185 speed = <1000>;
186 full-duplex;
187 };
188 };