X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fdts%2Fqca9558_tplink_tl-wr1043nd.dtsi;h=a72b6e6050d195445594122b06cad5e502c29e2f;hb=HEAD;hp=9c5e2c7d5384b712e54fd3fd525b2b06402b3f00;hpb=ab78694fe88bf0d65952c13a53ea14e92eb7885f;p=openwrt%2Fstaging%2Fwigyori.git diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi index 9c5e2c7d53..a72b6e6050 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi @@ -1,9 +1,10 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT +#include "qca955x.dtsi" + #include #include - -#include "qca955x.dtsi" +#include / { aliases { @@ -18,26 +19,29 @@ compatible = "gpio-leds"; led_system: system { - label = "tp-link:green:system"; + label = "green:system"; gpios = <&gpio 19 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; }; usb { - label = "tp-link:green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; trigger-sources = <&hub_port0>; linux,default-trigger = "usbport"; }; wifi_green { - label = "tp-link:green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wifi_wps { - label = "tp-link:green:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; }; @@ -72,28 +76,16 @@ }; }; -&uart { - status = "okay"; -}; - &usb_phy0 { status = "okay"; }; &usb0 { - #address-cells = <1>; - #size-cells = <0>; status = "okay"; - - hub_port0: port@1 { - reg = <1>; - #trigger-source-cells = <0>; - }; }; &spi { status = "okay"; - num-cs = <1>; flash@0 { compatible = "jedec,spi-nor"; @@ -109,6 +101,18 @@ label = "u-boot"; reg = <0x000000 0x020000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_uboot_1fc00: macaddr@1fc00 { + compatible = "mac-base"; + reg = <0x1fc00 0x6>; + #nvmem-cell-cells = <1>; + }; + }; }; partition@20000 { @@ -150,8 +154,8 @@ pll-data = <0x56000000 0x00000101 0x00001616>; - mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + nvmem-cells = <&macaddr_uboot_1fc00 1>; + nvmem-cell-names = "mac-address"; phy-handle = <&phy0>; }; @@ -160,7 +164,8 @@ pll-data = <0x03000101 0x00000101 0x00001616>; - mtd-mac-address = <&uboot 0x1fc00>; + nvmem-cells = <&macaddr_uboot_1fc00 0>; + nvmem-cell-names = "mac-address"; fixed-link { speed = <1000>; @@ -171,5 +176,6 @@ &wmac { status = "okay"; mtd-cal-data = <&art 0x1000>; - mtd-mac-address = <&uboot 0x1fc00>; + nvmem-cells = <&macaddr_uboot_1fc00 0>; + nvmem-cell-names = "mac-address"; };