ath79: add Embedded Wireless Balin Platform
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_tplink_tl-wdr4900-v2.dts
index 70fcfd352459ae4ec9e8fdb279f4d39f9943392e..5b69a1708eafdcf76136bdad1a5d1f1523dbef34 100644 (file)
@@ -1,11 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca955x.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "qca955x.dtsi"
-
 / {
        compatible = "tplink,tl-wdr4900-v2", "qca,qca9558";
        model = "TP-Link TL-WDR4900 v2";
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "tp-link:blue:system";
+                       label = "blue:system";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                usb1 {
-                       label = "tp-link:green:usb1";
+                       label = "green:usb1";
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port1>;
                        linux,default-trigger = "usbport";
                };
 
                usb2 {
-                       label = "tp-link:green:usb2";
+                       label = "green:usb2";
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                wlan2g {
-                       label = "tp-link:blue:wlan2g";
+                       label = "blue:wlan2g";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                qss {
-                       label = "tp-link:blue:qss";
+                       label = "blue:qss";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
@@ -57,7 +56,7 @@
                compatible = "gpio-leds";
 
                wlan5g {
-                       label = "tp-link:blue:wlan5g";
+                       label = "blue:wlan5g";
                        gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
        ath9k: wifi@0,0 {
                compatible = "pci168c,0033";
                reg = <0x0000 0 0 0 0>;
-               mtd-mac-address = <&uboot 0x1fc00>;
-               mtd-mac-address-increment = <(-2)>;
+               nvmem-cells = <&macaddr_uboot_1fc00>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <(-2)>;
                qca,no-eeprom;
                #gpio-cells = <2>;
                gpio-controller;
        };
 };
 
-&uart {
-       status = "okay";
-};
-
 &usb_phy0 {
        status = "okay";
 };
 &spi {
        status = "okay";
 
-       num-cs = <1>;
-
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
 &eth0 {
        status = "okay";
 
-       mtd-mac-address = <&uboot 0x1fc00>;
-       mtd-mac-address-increment = <1>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
        phy-handle = <&phy0>;
        pll-data = <0x56000000 0x00000101 0x00001616>;
 
 &eth1 {
        status = "okay";
 
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
        pll-data = <0x03000101 0x00000101 0x00001616>;
 
        fixed-link {
        status = "okay";
 
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&uboot 0x1fc00>;
-       mtd-mac-address-increment = <(-1)>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-1)>;
+};
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
 };