1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "ar7242_ubnt_sw.dtsi"
6 compatible = "ubnt,edgeswitch-5xp", "qca,ar7242";
7 model = "Ubiquiti EdgeSwitch 5XP";
10 compatible = "gpio-export";
13 gpio-export,name = "ubnt:24v-poe:port1";
14 gpio-export,output = <0>;
15 gpios = <&gpio_hc595 1 GPIO_ACTIVE_HIGH>;
19 gpio-export,name = "ubnt:24v-poe:port2";
20 gpio-export,output = <0>;
21 gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
25 gpio-export,name = "ubnt:24v-poe:port3";
26 gpio-export,output = <0>;
27 gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
31 gpio-export,name = "ubnt:24v-poe:port4";
32 gpio-export,output = <0>;
33 gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
37 gpio-export,name = "ubnt:24v-poe:port5";
38 gpio-export,output = <0>;
39 gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
47 phy0: ethernet-switch@0 {
48 compatible = "qca,ar8327";
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 */
70 mtd-mac-address = <&art 0x0>;