ath79: enable UART in SoC DTSI files
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9330_pqi_air-pen.dts
index 6c662d2202de0226ba7d949b3978d8c81893c475..607ee5f6c97344377176fab2e581a52432ff30eb 100644 (file)
@@ -1,42 +1,37 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "ar9330.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "ar9330.dtsi"
-
 / {
        model = "PQI Air-Pen";
        compatible = "pqi,air-pen", "qca,ar9330";
 
        aliases {
-               serial0 = &uart;
-               led-boot = &wlan;
-               led-failsafe = &wlan;
-               led-upgrade = &wlan;
+               led-boot = &led_wlan;
+               led-failsafe = &led_wlan;
+               led-upgrade = &led_wlan;
        };
 
        leds {
                compatible = "gpio-leds";
 
-               wlan: wlan {
-                       label = "air-pen:blue:wlan";
+               led_wlan: wlan {
+                       label = "blue:wlan";
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
-                       default-state = "off";
                        linux,default-trigger = "phy0tpt";
                };
 
                wps {
-                       label = "air-pen:blue:wps";
+                       label = "blue:wps";
                        gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
-                       default-state = "off";
                };
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                wps {
                        label = "wps";
        };
 };
 
-&uart {
-       status = "okay";
-};
-
-&gpio {
-       status = "okay";
-};
-
 &usb {
        dr_mode = "host";
        status = "okay";
 };
 
 &spi {
-       num-cs = <1>;
        status = "okay";
 
        flash@0 {
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <104000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
 
                partitions {
                        };
 
                        partition@70000 {
+                               compatible = "denx,uimage";
                                label = "firmware";
                                reg = <0x070000 0x780000>;
                        };
 
 &eth1 {
        status = "okay";
+
        compatible = "syscon", "simple-mfd";
 };
 
 &wmac {
        status = "okay";
+
        mtd-cal-data = <&art 0x1000>;
        mtd-mac-address = <&art 0x2>;
 };