From patchwork Wed May 22 08:12:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17083 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A8C85238FE for ; Wed, 22 May 2013 08:14:00 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hr11sf2161647vcb.11 for ; Wed, 22 May 2013 01:13:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:mime-version:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=DmjrKTBZaH7NZlhfHJSYd765ruxNDuAlS8GH4V3C7zI=; b=N6uwvUi5tslK37kWb82Up16TY7UQHW09YL5LzbnbHS7GPutZ0cw2UH9+fKYAgKsYx5 ui1C2KRcW/mp75Ii0qnnQWMuceRbSdYld3wyLKaJpR6H1PGbxq75S7GbuyrMeySsDvl/ ihuitqlTBGCIiz2jgaVO+M5J6gQIatBnL6p855+mqqtgI1VRcWp6x0PU6eyqhqyTVQfy 5PJvQTkTaEQuodD8GWHRtsG/h8K74UEpHMMYGEU589UGTuiAtQ79Q1go5ZtCe7lRIESZ qeRNo8L7AD0m+lMgsxiEgYAGc6ATpv86DawGvbT+u/EtFBM+qwpJWwSRwFPXXNH23Ea/ 7edQ== X-Received: by 10.224.53.198 with SMTP id n6mr138509qag.2.1369210388086; Wed, 22 May 2013 01:13:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.12.109 with SMTP id x13ls716542qeb.84.gmail; Wed, 22 May 2013 01:13:08 -0700 (PDT) X-Received: by 10.58.229.69 with SMTP id so5mr2408558vec.6.1369210387955; Wed, 22 May 2013 01:13:07 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id lb19si3186780vcb.25.2013.05.22.01.13.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 01:13:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id kw10so1130850vcb.28 for ; Wed, 22 May 2013 01:13:07 -0700 (PDT) X-Received: by 10.52.176.65 with SMTP id cg1mr2067360vdc.1.1369210387651; Wed, 22 May 2013 01:13:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp170247vcs; Wed, 22 May 2013 01:13:06 -0700 (PDT) X-Received: by 10.14.93.201 with SMTP id l49mr16464528eef.23.1369210386080; Wed, 22 May 2013 01:13:06 -0700 (PDT) Received: from eu1sys200aog116.obsmtp.com (eu1sys200aog116.obsmtp.com [207.126.144.141]) by mx.google.com with SMTP id t45si8250958eel.56.2013.05.22.01.12.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 22 May 2013 01:13:06 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.141 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.141; Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob116.postini.com ([207.126.147.11]) with SMTP ID DSNKUZx97PZ+l30swUXRZ0tP3pMHcy98gaF8@postini.com; Wed, 22 May 2013 08:13:05 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 2E415F3; Wed, 22 May 2013 08:12:20 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id CCF681479; Wed, 22 May 2013 08:12:19 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id 78001A807B; Wed, 22 May 2013 10:12:15 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.279.5; Wed, 22 May 2013 10:12:19 +0200 From: Linus Walleij To: Cc: Lee Jones , Gabriel Fernandez , , Linus Walleij , Milo Kim , Bryan Wu Subject: [PATCH] ARM: ux500: register LP5521 LEDs in the device tree Date: Wed, 22 May 2013 10:12:11 +0200 Message-ID: <1369210331-18545-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkJMWliji+b2Gl0/OrwKdixyOrqHmU7+XJr+RpASx5Z13FxlDkcjRxbYqSD0nseXxTQob8z X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Linus Walleij Based on pending device tree support in the LP55xx drivers we can add the correct LED and channel configuration from the ux500 device tree for all HREF variants. Cc: Milo Kim Cc: Bryan Wu Signed-off-by: Linus Walleij --- arch/arm/boot/dts/href.dtsi | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/href.dtsi b/arch/arm/boot/dts/href.dtsi index 62523f6..e315429 100644 --- a/arch/arm/boot/dts/href.dtsi +++ b/arch/arm/boot/dts/href.dtsi @@ -63,16 +63,42 @@ }; i2c@80128000 { - lp5521@0x33 { - compatible = "lp5521"; + lp5521@33 { + compatible = "national,lp5521"; reg = <0x33>; + 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>; + }; }; - - lp5521@0x34 { - compatible = "lp5521"; + lp5521@34 { + compatible = "national,lp5521"; reg = <0x34>; + label = "lp5521_sec"; + 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>; + }; }; - bh1780@0x29 { compatible = "rohm,bh1780gli"; reg = <0x33>;