ath79: convert devices to interrupt-driven gpio-keys
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_avm_fritz4020.dts
index 3310a3423b543bee67f8c629cec366d62e54b087..5a850c7064066fd7c82f03a4ebc99c6ce4fbe07f 100644 (file)
@@ -26,8 +26,8 @@
                #address-cells = <1>;
                #size-cells = <0>;
 
-               gpio-sck = <&gpio 20 GPIO_ACTIVE_HIGH>;
-               gpio-mosi = <&gpio 19 GPIO_ACTIVE_HIGH>;
+               sck-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
+               mosi-gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
                num-chipselects = <0>;
 
                led_gpio: led_gpio@0 {
@@ -36,7 +36,6 @@
                        gpio-controller;
                        #gpio-cells = <2>;
                        registers-number = <1>;
-                       lines-initial-states = /bits/ 8 <0xff>;
                        spi-max-frequency = <10000000>;
 
                        gpio_latch_bit {
                        label = "fritz4020:green:wlan";
                        gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
-                       default-state = "off";
                };
 
                lan {
                        label = "fritz4020:green:lan";
                        gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                wan {
                        label = "fritz4020:green:wan";
                        gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                info {
                        label = "fritz4020:green:info";
                        gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                info_red: info_red {
                        label = "fritz4020:red:info";
                        gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                wps_button {
                        label = "WPS button";