ath79: create common DTSI for Senao qca955x APs
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_dlink_dir-842-c.dtsi
index 8071332451e9c1221ecefe6cd2f0a77e2ce88581..1366e68a8f43976067824ba0a672b76d1f421456 100644 (file)
@@ -1,13 +1,16 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include "qca956x.dtsi"
+
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "qca956x.dtsi"
-
 / {
-       chosen {
-               bootargs = "console=ttyS0,115200n8";
+       aliases {
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
        };
 
        keys {
                        debounce-interval = <60>;
                };
        };
-};
 
-&uart {
-       status = "okay";
+       leds {
+               compatible = "gpio-leds";
+
+               led_power: power {
+                       label = "green:power";
+                       gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
+               };
+
+               wps {
+                       label = "green:wps";
+                       gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
+               };
+
+               wlan {
+                       label = "green:wlan";
+                       gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
+               };
+       };
 };
 
 &pcie {
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <30000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
 
                qca,ar8327-initvals = <
                        0x04 0x00080080 /* PORT0 PAD MODE CTRL */
-                       0x10 0x81000080 /* POWER_ON_STRIP */
+                       0x10 0x81000080 /* POWER_ON_STRAP */
                        0x50 0xcc35cc35 /* LED_CTRL0 */
                        0x54 0xcb37cb37 /* LED_CTRL1 */
                        0x58 0x00000000 /* LED_CTRL2 */