ath79: DTS file style update and harmonization
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar1022_iodata_wn-ag300dgr.dts
index b222b10a5a44cd80335eed54811469f26602e8b0..536432e250eb6e243c702fb4b5a6f752169bd233 100644 (file)
        model = "I-O DATA WN-AG300DGR";
 
        aliases {
-               led-boot = &router;
-               led-failsafe = &router;
-               led-running = &router;
-               led-upgrade = &router;
+               led-boot = &led_router;
+               led-failsafe = &led_router;
+               led-running = &led_router;
+               led-upgrade = &led_router;
        };
 
        leds {
                compatible = "gpio-leds";
 
-               router: router {
+               led_router: router {
                        label = "wn-ag300dgr:green:router";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                children {
                        label = "wn-ag300dgr:green:children";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                eco {
                        label = "wn-ag300dgr:green:eco";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                notification {
                        label = "wn-ag300dgr:amber:notification";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                wlan2g {
                        label = "wn-ag300dgr:green:wlan2g";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        linux,default-trigger = "phy0tpt";
                };
 
                wlan5g {
                        label = "wn-ag300dgr:green:wlan5g";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        linux,default-trigger = "phy1tpt";
                };
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                eco {
                        label = "eco";
 };
 
 &spi {
-       num-cs = <1>;
        status = "okay";
 
+       num-cs = <1>;
+
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
 
 &wmac {
        status = "okay";
+
        qca,no-eeprom;
 };