diff options
author | Romain Perier <romain.perier@gmail.com> | 2015-12-31 10:13:52 +0100 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2016-01-24 23:28:23 +0100 |
commit | b270a63de5b37a6e8d2e18cabbaf14d255a609ba (patch) | |
tree | 4826176389295af4962ac105ccd2b0eb7aef4311 /arch/arm/boot/dts/rk3288-rock2-square.dts | |
parent | ARM: dts: rockchip: add the sound setup for rk3036-kylin board (diff) | |
download | linux-b270a63de5b37a6e8d2e18cabbaf14d255a609ba.tar.xz linux-b270a63de5b37a6e8d2e18cabbaf14d255a609ba.zip |
ARM: dts: rockchip: Add LEDs via gpio-leds for Radxa Rock2 Square
Describe the two user-controllable LEDs on Rock2 Square boards.
All information have been retrieved from the schematics and the vendor
devicetree. The default-triggers mimic the behaviour of the vendor-kernel to
keep functionalities in sync.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/boot/dts/rk3288-rock2-square.dts')
-rw-r--r-- | arch/arm/boot/dts/rk3288-rock2-square.dts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts index c5453a0b07fc..bcaf868a76bb 100644 --- a/arch/arm/boot/dts/rk3288-rock2-square.dts +++ b/arch/arm/boot/dts/rk3288-rock2-square.dts @@ -49,6 +49,22 @@ stdout-path = "serial2:115200n8"; }; + gpio-leds { + compatible = "gpio-leds"; + + heartbeat { + gpios = <&gpio7 15 GPIO_ACTIVE_LOW>; + label = "rock2:green:state1"; + linux,default-trigger = "heartbeat"; + }; + + mmc { + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + label = "rock2:blue:state2"; + linux,default-trigger = "mmc0"; + }; + }; + ir: ir-receiver { compatible = "gpio-ir-receiver"; gpios = <&gpio8 1 GPIO_ACTIVE_LOW>; |