X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fdts%2Far9132_tplink_tl-wa901nd-v2.dts;h=1857b2b4a6cc86ddb7fca42a183be6d068313efc;hb=HEAD;hp=804b71170ee8e4ebffa1d198b956927100f65a79;hpb=f4026ad24d0374bdb8704e8b6ec38e9fd85f5e0e;p=openwrt%2Fstaging%2Fwigyori.git diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts index 804b71170e..1857b2b4a6 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts @@ -1,10 +1,10 @@ -// SPDX-License-Identifier: GPL-2.0 -/dts-v1/; +// SPDX-License-Identifier: GPL-2.0-only + +#include "ar9132.dtsi" #include #include - -#include "ar9132.dtsi" +#include / { compatible = "tplink,tl-wa901nd-v2", "qca,ar9132"; @@ -18,12 +18,6 @@ label-mac-device = ð0; }; - extosc: ref { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <40000000>; - }; - keys { compatible = "gpio-keys"; @@ -46,36 +40,27 @@ compatible = "gpio-leds"; led_system: system { - label = "tp-link:green:system"; + label = "green:system"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; qss { - label = "tp-link:green:qss"; + label = "green:qss"; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; wlan { - label = "tp-link:green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&gpio 9 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; }; }; -&uart { - status = "okay"; -}; - -&pll { - clocks = <&extosc>; -}; - &spi { status = "okay"; - num-cs = <1>; - flash@0 { compatible = "jedec,spi-nor"; reg = <0>; @@ -90,6 +75,16 @@ label = "u-boot"; reg = <0x000000 0x020000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_uboot_1fc00: macaddr@1fc00 { + reg = <0x1fc00 0x6>; + }; + }; }; partition@1 { @@ -110,24 +105,31 @@ &mdio0 { status = "okay"; - phy0: ethernet-phy@c { + phy12: ethernet-phy@c { reg = <0xc>; phy-mode = "mii"; + + resets = <&rst 8>; + reset-names = "phy"; + + reset-assert-us = <10000>; + reset-deassert-us = <10000>; }; }; ð0 { status = "okay"; - phy-mode = "mii"; - mtd-mac-address = <&uboot 0x1fc00>; + nvmem-cells = <&macaddr_uboot_1fc00>; + nvmem-cell-names = "mac-address"; - phy-handle = <&phy0>; + phy-handle = <&phy12>; }; &wmac { status = "okay"; mtd-cal-data = <&art 0x1000>; - mtd-mac-address = <&uboot 0x1fc00>; + nvmem-cells = <&macaddr_uboot_1fc00>; + nvmem-cell-names = "mac-address"; };