ath79: harmonize ethernet-phy naming scheme
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9557_iodata_wn-ac-dgr.dtsi
index 04eaca861394bf3324ad5858675468403b658b2a..b43ab2c6b66bdca47192024cef1059dab628a13a 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
@@ -8,63 +7,52 @@
 
 / {
        aliases {
-               led-boot = &power;
-               led-failsafe = &power;
-               led-running = &power;
-               led-upgrade = &power;
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
        };
 
        chosen {
                bootargs = "console=ttyS0,115200n8";
        };
 
-       leds {
+       leds: leds {
                compatible = "gpio-leds";
 
-               power: power {
+               led_power: power {
                        label = "iodata:green:power";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
-               copy {
-                       label = "iodata:green:copy";
-                       gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
-               };
-
                eco {
                        label = "iodata:green:eco";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                wlan5g {
                        label = "iodata:green:wlan5g";
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        linux,default-trigger = "phy0tpt";
                };
 
                wlan2g {
                        label = "iodata:green:wlan2g";
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        linux,default-trigger = "phy1tpt";
                };
 
                notification {
                        label = "iodata:amber:notification";
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
        };
 
-       keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+       keys: keys {
+               compatible = "gpio-keys";
 
-               button_eco {
+               eco {
                        label = "eco";
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                        debounce-interval = <60>;
                };
 
-               button_copy {
-                       label = "copy";
-                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_1>;
-                       debounce-interval = <60>;
-               };
-
                wps {
                        label = "wps";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
 
 &spi {
        status = "okay";
+
        num-cs = <1>;
 
        flash@0 {
                        };
 
                        partition@40000 {
+                               compatible = "denx,uimage";
                                label = "firmware";
                                reg = <0x040000 0xe50000>;
                        };
 &eth0 {
        status = "okay";
 
-       pll-data = <0x56000000 0x00000101 0x00001616>;
+       pll-data = <0xa6000000 0x00000101 0x00001616>;
        phy-handle = <&phy0>;
 };
 
        wifi@0,0 {
                compatible = "pci168c,003c";
                reg = <0x0000 0 0 0 0>;
-               qca,no-eeprom;
        };
 };
 
 
 &wmac {
        status = "okay";
+
        qca,no-eeprom;
 };