diff options
author | Alexandre GRIVEAUX <[email protected]> | 2019-10-01 21:09:30 +0200 |
---|---|---|
committer | Paul Burton <[email protected]> | 2019-10-07 09:46:22 -0700 |
commit | 24b0cb4f883adc92689a336800495838fdfa4763 (patch) | |
tree | 808aa5aff7f73b64dfeabba15980117fc91bde11 | |
parent | 948f2708f945f9354462a1974dd4e351cd329981 (diff) |
MIPS: CI20: DTS: Add Leds
Adding leds and related triggers.
Signed-off-by: Alexandre GRIVEAUX <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
-rw-r--r-- | arch/mips/boot/dts/ingenic/ci20.dts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index c62c36ae94c2..37b93166bf22 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -25,6 +25,34 @@ 0x30000000 0x30000000>; }; + leds { + compatible = "gpio-leds"; + + led0 { + label = "ci20:red:led0"; + gpios = <&gpc 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + }; + + led1 { + label = "ci20:red:led1"; + gpios = <&gpc 2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "nand-disk"; + }; + + led2 { + label = "ci20:red:led2"; + gpios = <&gpc 1 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "cpu1"; + }; + + led3 { + label = "ci20:red:led3"; + gpios = <&gpc 0 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "cpu0"; + }; + }; + eth0_power: fixedregulator@0 { compatible = "regulator-fixed"; regulator-name = "eth0_power"; |