ath79: create common DTSI for Senao ar934x APs
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c2-v3.dts
index 9686290e738be09aa75473b21ab8179798bd833f..6c4b04b81ce8af6bd5c521146aadedd2dc444010 100644 (file)
@@ -1,79 +1,74 @@
 // 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-c2-v3", "qca,qca9563";
-       model = "TP-Link Archer C2 Version 3";
-
-       chosen {
-               bootargs = "console=ttyS0,115200n8";
-       };
+       model = "TP-Link Archer C2 v3";
 
        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;
        };
 
-       gpio_leds: leds {
+       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";
                };
 
                wifi2g {
-                       label = "tp-link:green:wifi2g";
+                       label = "green:wifi2g";
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
 
                wifi5g {
-                       label = "tp-link:green:wifi5g";
+                       label = "green:wifi5g";
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wifi_wps {
-                       label = "tp-link:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "tp-link:green:wan";
+                       label = "green:wan";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "tp-link:orange:wan";
+                       label = "orange:wan";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                lan1 {
-                       label = "tp-link:green:lan1";
+                       label = "green:lan1";
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
 
                lan2 {
-                       label = "tp-link:green:lan2";
+                       label = "green:lan2";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                lan3 {
-                       label = "tp-link:green:lan3";
+                       label = "green:lan3";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                lan4 {
-                       label = "tp-link:green:lan4";
+                       label = "green:lan4";
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&uart {
-       status = "okay";
-};
-
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
                        partition@20000 {
                                label = "uboot";
                                reg = <0x020000 0x10000>;
+                               read-only;
                        };
 
                        partition@30000 {
                        };
 
                        info: partition@7e0000 {
-                               label = "product-info";
+                               label = "info";
                                reg = <0x7e0000 0x010000>;
                                read-only;
                        };
 
                        art: partition@7f0000 {
-                               label = "ART";
+                               label = "art";
                                reg = <0x7f0000 0x010000>;
                                read-only;
                        };
        };
 };
 
-&gpio {
-       status = "okay";
-};
-
 &mdio0 {
        status = "okay";
 
        phy0: ethernet-phy@0 {
                reg = <0>;
                phy-mode = "sgmii";
+               qca,mib-poll-interval = <500>;
 
                qca,ar8327-initvals = <
                        0x04 0x00080080 /* PORT0 PAD MODE CTRL */
 
 &wmac {
        status = "okay";
+
        mtd-cal-data = <&art 0x1000>;
        mtd-mac-address = <&info 0x8>;
 };