Messages in this thread Patch in this message | | | From | Gabriel Fernandez <> | Subject | [PATCH 2/4] ARM: u8540: Add device tree support for lp5521 leds | Date | Wed, 29 May 2013 15:33:25 +0200 |
| |
From: Gabriel Fernandez <gabriel.fernandez@st.com>
This patch adds DT probing of lp5521 leds for u8540.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@stericsson.com> --- arch/arm/boot/dts/ccu8540-uib-v3.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/ccu8540-uib-v3.dts b/arch/arm/boot/dts/ccu8540-uib-v3.dts index 4b4982e..422a292 100644 --- a/arch/arm/boot/dts/ccu8540-uib-v3.dts +++ b/arch/arm/boot/dts/ccu8540-uib-v3.dts @@ -14,3 +14,25 @@ / { model = "ST-Ericsson U8540 platform with device tree UIB v3"; }; + +&i2c2 { + + lp5521@32 { + compatible = "national,lp5521"; + reg = <0x32>; + label = "lp5521_pri"; + clock-mode = /bits/ 8 <2>; + chan0 { + led-cur = /bits/ 8 <0x2f>; + max-cur = /bits/ 8 <0x5f>; + }; + chan1 { + led-cur = /bits/ 8 <0x2f>; + max-cur = /bits/ 8 <0x5f>; + }; + chan2 { + led-cur = /bits/ 8 <0x2f>; + max-cur = /bits/ 8 <0x5f>; + }; + }; +}; -- 1.8.1.1
| |