kernel: bump 5.15 to 5.15.155
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_ubnt_edgeswitch-5xp.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-5xp", "qca,ar7242";
7 model = "Ubiquiti EdgeSwitch 5XP";
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_24v_port2 {
19 gpio-export,name = "ubnt:24v-poe:port2";
20 gpio-export,output = <0>;
21 gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
22 };
23
24 poe_24v_port3 {
25 gpio-export,name = "ubnt:24v-poe:port3";
26 gpio-export,output = <0>;
27 gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
28 };
29
30 poe_24v_port4 {
31 gpio-export,name = "ubnt:24v-poe:port4";
32 gpio-export,output = <0>;
33 gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
34 };
35
36 poe_24v_port5 {
37 gpio-export,name = "ubnt:24v-poe:port5";
38 gpio-export,output = <0>;
39 gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
40 };
41 };
42 };
43
44 &mdio0 {
45 status = "okay";
46
47 phy0: ethernet-switch@0 {
48 compatible = "qca,ar8327";
49 reg = <0x0>;
50
51 qca,ar8327-initvals = <
52 0x04 0x05100000 /* PORT0 PAD MODE CTRL */
53 0x0c 0x05100000 /* PORT6 PAD MODE CTRL */
54 0x50 0x40004000 /* LED_CTRL0 */
55 0x54 0x40004000 /* LED_CTRL1 */
56 0x58 0x40004000 /* LED_CTRL2 */
57 0x5c 0x03ffff00 /* LED_CTRL3 */
58 0x7c 0x0000007e /* PORT0_STATUS */
59 0x94 0x0000007e /* PORT6_STATUS */
60 >;
61 };
62 };
63
64 &eth0 {
65 status = "okay";
66
67 phy-handle = <&phy0>;
68 phy-mode = "rgmii";
69
70 mtd-mac-address = <&art 0x0>;
71
72 fixed-link {
73 speed = <1000>;
74 full-duplex;
75 };
76 };