ath79: force SGMII SerDes mode to MAC operation
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9330_glinet_gl-ar150.dts
index e4ea4c95af2e1bcbe67a8f3ffde2363a6d081564..6a13c1bafe5840178e52dba37f6fef65e2364daa 100644 (file)
@@ -1,46 +1,45 @@
 // 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 = "GL.iNet GL-AR150";
        compatible = "glinet,gl-ar150", "qca,ar9330";
 
        aliases {
-               serial0 = &uart;
-               led-boot = &wlan;
-               led-failsafe = &wlan;
-               led-upgrade = &wlan;
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
                label-mac-device = &eth0;
        };
 
        leds {
                compatible = "gpio-leds";
 
-               wlan: wlan {
-                       label = "gl-ar150:orange:wlan";
+               wlan {
+                       label = "orange:wlan";
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
-               lan {
-                       label = "gl-ar150:green:lan";
+               configurable {
+                       label = "green:configurable";
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
-               wan {
-                       label = "gl-ar150:green:wan";
+               led_power: power {
+                       label = "green:power";
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
                };
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                manual {
                        label = "manual";
        };
 };
 
-&uart {
-       status = "okay";
-};
-
-&gpio {
-       status = "okay";
-};
-
 &usb {
        dr_mode = "host";
        status = "okay";
 };
 
 &spi {
-       num-chipselects = <1>;
        status = "okay";
 
        flash@0 {
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <104000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
 
                partitions {
 
 &wmac {
        status = "okay";
+
        mtd-cal-data = <&art 0x1000>;
        mtd-mac-address = <&art 0x0>;
 };