diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-10-15 17:33:13 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-11-13 10:32:03 +0100 |
commit | 7e61006436a2d01be6ef06f877867205acbdb177 (patch) | |
tree | 43afb135769691af08167b1bc5577fdd950dc834 /arch/arm/boot/dts/integrator.dtsi | |
parent | b437c52c296715eaad77c949fcfc074911a72427 (diff) | |
download | lwn-7e61006436a2d01be6ef06f877867205acbdb177.tar.gz lwn-7e61006436a2d01be6ef06f877867205acbdb177.zip |
ARM: integrator: move debug LEDs to syscon LED driver
The Integrator debug block is a simple set of registers, make
it a syscon and register the four LEDs on the Integrator/AP
baseboard as syscon LEDs.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/integrator.dtsi')
-rw-r--r-- | arch/arm/boot/dts/integrator.dtsi | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/integrator.dtsi b/arch/arm/boot/dts/integrator.dtsi index 5546630c4fd2..5d27087d5248 100644 --- a/arch/arm/boot/dts/integrator.dtsi +++ b/arch/arm/boot/dts/integrator.dtsi @@ -82,5 +82,41 @@ reg = <0x19000000 0x1000>; interrupts = <4>; }; + + syscon { + /* Debug registers mapped as syscon */ + compatible = "syscon"; + reg = <0x1a000000 0x10>; + + led@04.0 { + compatible = "register-bit-led"; + offset = <0x04>; + mask = <0x01>; + label = "integrator:green0"; + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + led@04.1 { + compatible = "register-bit-led"; + offset = <0x04>; + mask = <0x02>; + label = "integrator:yellow"; + default-state = "off"; + }; + led@04.2 { + compatible = "register-bit-led"; + offset = <0x04>; + mask = <0x04>; + label = "integrator:red"; + default-state = "off"; + }; + led@04.3 { + compatible = "register-bit-led"; + offset = <0x04>; + mask = <0x08>; + label = "integrator:green1"; + default-state = "off"; + }; + }; }; }; |