mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
41cc7edc15
The "/dts-v1/;" identifier is supposed to be present once at the top of a device tree file after the includes have been processed. In ath79, we therefore requested to have in the DTS files so far, and omit it in the DTSI files. However, essentially the syntax of the parent ath79.dtsi file already determines the DTS version, so putting it into the DTS files is just a useless repetition. Consequently, this patch puts the dts-v1 statement into the parent ath79.dtsi, which is (indirectly) included by all DTS files. All other occurences are removed. Since the dts-v1 statement needs to be before any other definitions, this also moves the includes to make sure the ath79.dtsi or its descendants are always included first. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
77 lines
1.5 KiB
Plaintext
77 lines
1.5 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "ar7242_ubnt_sw.dtsi"
|
|
|
|
/ {
|
|
compatible = "ubnt,edgeswitch-5xp", "qca,ar7242";
|
|
model = "Ubiquiti EdgeSwitch 5XP";
|
|
|
|
gpio-export {
|
|
compatible = "gpio-export";
|
|
|
|
poe_24v_port1 {
|
|
gpio-export,name = "ubnt:24v-poe:port1";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio_hc595 1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
poe_24v_port2 {
|
|
gpio-export,name = "ubnt:24v-poe:port2";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
poe_24v_port3 {
|
|
gpio-export,name = "ubnt:24v-poe:port3";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
poe_24v_port4 {
|
|
gpio-export,name = "ubnt:24v-poe:port4";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
poe_24v_port5 {
|
|
gpio-export,name = "ubnt:24v-poe:port5";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&mdio0 {
|
|
status = "okay";
|
|
|
|
phy0: ethernet-switch@0 {
|
|
compatible = "qca,ar8327";
|
|
reg = <0x0>;
|
|
|
|
qca,ar8327-initvals = <
|
|
0x04 0x05100000 /* PORT0 PAD MODE CTRL */
|
|
0x0c 0x05100000 /* PORT6 PAD MODE CTRL */
|
|
0x50 0x40004000 /* LED_CTRL0 */
|
|
0x54 0x40004000 /* LED_CTRL1 */
|
|
0x58 0x40004000 /* LED_CTRL2 */
|
|
0x5c 0x03ffff00 /* LED_CTRL3 */
|
|
0x7c 0x0000007e /* PORT0_STATUS */
|
|
0x94 0x0000007e /* PORT6_STATUS */
|
|
>;
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
|
|
phy-handle = <&phy0>;
|
|
phy-mode = "rgmii";
|
|
|
|
mtd-mac-address = <&art 0x0>;
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|