ath79: enable UART in SoC DTSI files
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c7-v4.dts
index 94411f2116180ef4eab026835ee086054b049552..63040acf4ae22fe26c35783896c565b4ef99c985 100644 (file)
@@ -1,24 +1,20 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca956x.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "qca956x.dtsi"
-
 / {
        compatible = "tplink,archer-c7-v4", "qca,qca9563";
        model = "TP-Link Archer C7 v4";
 
-       chosen {
-               bootargs = "console=ttyS0,115200n8";
-       };
-
        aliases {
-               led-boot = &system;
-               led-failsafe = &system;
-               led-running = &system;
-               led-upgrade = &system;
+               led-boot = &led_system;
+               led-failsafe = &led_system;
+               led-running = &led_system;
+               led-upgrade = &led_system;
+               label-mac-device = &eth0;
        };
 
        led_spi {
@@ -26,8 +22,8 @@
                #address-cells = <1>;
                #size-cells = <0>;
 
-               gpio-sck = <&gpio 15 GPIO_ACTIVE_HIGH>;         // 74HC595 SRCLK (Serial Clock)
-               gpio-mosi = <&gpio 14 GPIO_ACTIVE_HIGH>;        // 74HC595 SER (Serial)
+               sck-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;        // 74HC595 SRCLK (Serial Clock)
+               mosi-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;       // 74HC595 SER (Serial)
                cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;         // 74HC595 RCLK (Register Clock)
                num-chipselects = <1>;
 
        leds {
                compatible = "gpio-leds";
 
-               system: system {
-                       label = "tp-link:green:system";
+               led_system: system {
+                       label = "green:system";
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                usb1 {
-                       label = "tp-link:green:usb1";
-                       gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
+                       label = "green:usb1";
+                       gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port1>;
                        linux,default-trigger = "usbport";
                };
 
                usb2 {
-                       label = "tp-link:green:usb2";
-                       gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
+                       label = "green:usb2";
+                       gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                wlan5g {
-                       label = "tp-link:green:wlan5g";
+                       label = "green:wlan5g";
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wlan2g {
-                       label = "tp-link:green:wlan2g";
+                       label = "green:wlan2g";
                        gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
 
                wan {
-                       label = "tp-link:green:wan";
+                       label = "green:wan";
                        gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "tp-link:orange:wan";
+                       label = "orange:wan";
                        gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
                };
 
                lan1 {
-                       label = "tp-link:green:lan1";
+                       label = "green:lan1";
                        gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                lan2 {
-                       label = "tp-link:green:lan2";
+                       label = "green:lan2";
                        gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
                };
 
                lan3 {
-                       label = "tp-link:green:lan3";
+                       label = "green:lan3";
                        gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                lan4 {
-                       label = "tp-link:green:lan4";
+                       label = "green:lan4";
                        gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "tp-link:green:wps";
+                       label = "green:wps";
                        gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
                        debounce-interval = <60>;
                };
        };
-
 };
 
 &pcie {
        status = "okay";
 };
 
-&uart {
-       status = "okay";
-};
-
-&gpio {
-       status = "okay";
-};
-
 &usb_phy0 {
        status = "okay";
 };
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
                        };
 
                        info: partition@f00000 {
-                               label = "config";
+                               label = "info";
                                reg = <0xf00000 0x0f0000>;
                                read-only;
                        };
        phy0: ethernet-phy@0 {
                reg = <0>;
                phy-mode = "sgmii";
+               qca,mib-poll-interval = <500>;
 
                qca,ar8327-initvals = <
                        0x04 0x80080080 /* PORT0 PAD MODE CTRL */
 
 &wmac {
        status = "okay";
+
        mtd-cal-data = <&art 0x1000>;
        mtd-mac-address = <&info 0x8>;
 };