X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fdts%2Fqca9531_tplink_tl-wr902ac-v1.dts;h=048099e2604d63dbae1faa61c0895e3063dbb19f;hb=b2f1c6ed52af4fbf80988d86037dbc90d9a08e6f;hp=4f5a29cfa01eaf80c1bce7872ddb274dc366b2b3;hpb=708c6772f629a857a7d13a0ca65d6093746da8c3;p=openwrt%2Fstaging%2Fhauke.git diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts index 4f5a29cfa0..048099e260 100644 --- a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts +++ b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts @@ -1,11 +1,10 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; + +#include "qca953x.dtsi" #include #include -#include "qca953x.dtsi" - / { compatible = "tplink,tl-wr902ac-v1", "qca,qca9531"; model = "TP-Link TL-WR902AC v1"; @@ -18,44 +17,40 @@ label-mac-device = &wmac; }; - chosen { - bootargs = "console=ttyS0,115200n8"; - }; - leds { compatible = "gpio-leds"; led_power: power { - label = "tp-link:green:power"; + label = "green:power"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; default-state = "on"; }; internet { - label = "tp-link:green:internet"; + label = "green:internet"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "tp-link:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; usb { - label = "tp-link:green:usb"; + label = "green:usb"; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; trigger-sources = <&hub_port0>; linux,default-trigger = "usbport"; }; wps { - label = "tp-link:green:wps"; + label = "green:wps"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; lan { - label = "tp-link:green:lan"; + label = "green:lan"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; }; @@ -101,10 +96,6 @@ }; }; -&uart { - status = "okay"; -}; - &spi { status = "okay"; @@ -130,9 +121,27 @@ reg = <0x020000 0x730000>; }; - tplink: partition@750000 { + info: partition@750000 { + label = "info"; + reg = <0x750000 0x010000>; + read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_info_8: macaddr@8 { + compatible = "mac-base"; + reg = <0x8 0x6>; + #nvmem-cell-cells = <1>; + }; + }; + }; + + partition@760000 { label = "tplink"; - reg = <0x750000 0x0a0000>; + reg = <0x760000 0x090000>; read-only; }; @@ -150,8 +159,8 @@ phy-handle = <&swphy4>; - mtd-mac-address = <&tplink 0x8>; - mtd-mac-address-increment = <1>; + nvmem-cells = <&macaddr_info_8 1>; + nvmem-cell-names = "mac-address"; }; ð1 { @@ -162,7 +171,8 @@ status = "okay"; mtd-cal-data = <&art 0x1000>; - mtd-mac-address = <&tplink 0x8>; + nvmem-cells = <&macaddr_info_8 0>; + nvmem-cell-names = "mac-address"; }; &pcie0 { @@ -179,12 +189,5 @@ }; &usb0 { - #address-cells = <1>; - #size-cells = <0>; status = "okay"; - - hub_port0: port@1 { - reg = <1>; - #trigger-source-cells = <0>; - }; };