arm64: dts: rockchip: enable work led on rk3568-evb1-v10
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / rockchip / rk3568-evb1-v10.dts
index 39c495f..848e8f9 100644 (file)
@@ -6,6 +6,7 @@
 
 /dts-v1/;
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/rockchip.h>
 #include "rk3568.dtsi"
 
                regulator-max-microvolt = <12000000>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+
+               led_work: led-0 {
+                       gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_BLUE>;
+                       linux,default-trigger = "heartbeat";
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&led_work_en>;
+               };
+       };
+
        vcc3v3_sys: vcc3v3-sys {
                compatible = "regulator-fixed";
                regulator-name = "vcc3v3_sys";
                };
        };
 
+       leds {
+               led_work_en: led_work_en {
+                       rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        pmic {
                pmic_int: pmic_int {
                        rockchip,pins =