mpc85xx: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / ws-ap3715i.dts
index a8a4118b003cd993a1a7e0fba474c50c9c0bfa9b..5d214e38a4e9681dfbe8a2f379b8b29c0cd22c37 100644 (file)
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 /include/ "fsl/p1010si-pre.dtsi"
 
 
                led_power_green: power_green {
                        gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>;
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                };
 
                led_power_red: power_red {
                        gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>;
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                };
 
                lan1_red {
                };
        };
 
+       keys {
+               compatible = "gpio-keys";
+
+               reset {
+                       label = "Reset button";
+                       gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
+       };
+
        soc: soc@ffe00000 {
                ranges = <0x0 0x0 0xffe00000 0x100000>;
 
                                  0x1000000 0x0 0x0
                                  0x0 0x100000>;
 
-                       wifi@0,0,0 {
+                       wifi@0,0 {
                                compatible = "pci168c,0033";
                                reg = <0x0 0 0 0 0>;
                                ieee80211-freq-limit = <2400000 2500000>;
                                  0x1000000 0x0 0x0
                                  0x0 0x100000>;
                        
-                       wifi@0,0,0 {
+                       wifi@0,0 {
                                compatible = "pci168c,0033";
                                reg = <0x0 0 0 0 0>;
                                ieee80211-freq-limit = <5000000 6000000>;