arm64: dts: rockchip: Add Hugsun X99 power led
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / rockchip / rk3399-hugsun-x99.dts
index 9bd14bc..aee484a 100644 (file)
                pinctrl-0 = <&ir_rx>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&power_led_gpio>;
+
+               led-0 {
+                       label = "blue:power";
+                       gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
+                       linux,default-trigger = "default-on";
+               };
+       };
+
        vcc_sys: vcc-sys {
                compatible = "regulator-fixed";
                regulator-name = "vcc_sys";
                };
        };
 
+       leds {
+               power_led_gpio: power-led-gpio {
+                       rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        pmic {
                pmic_int_l: pmic-int-l {
                        rockchip,pins =
        };
 };
 
-&pwm0 {
-       status = "okay";
-};
-
 &pwm2 {
        status = "okay";
        pinctrl-0 = <&pwm2_pin_pull_down>;