From patchwork Wed Jun 22 19:31:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Parsons X-Patchwork-Id: 907112 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5MJWDZZ024277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 22 Jun 2011 19:32:34 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QZT9Z-0006tV-Pm; Wed, 22 Jun 2011 19:31:57 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QZT9Z-0006k4-E6; Wed, 22 Jun 2011 19:31:57 +0000 Received: from relay.ptn-ipout02.plus.net ([212.159.7.36]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QZT9W-0006jl-5x for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2011 19:31:54 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArI1ANlCAk5UXeb0/2dsb2JhbABTgiGCapJ7Mo5Zd4h1sCQChy2JJQ6GHwSWT4RHhmA Received: from outmx03.plus.net ([84.93.230.244]) by relay.ptn-ipout02.plus.net with ESMTP; 22 Jun 2011 20:31:51 +0100 Received: from [87.115.0.203] (helo=paul) by outmx03.plus.net with esmtp (Exim) id 1QZT9S-0004Vb-Hv; Wed, 22 Jun 2011 20:31:50 +0100 Subject: [PATCH REPOST] pxa/hx4700: Add ASIC3 LED support From: "Paul Parsons" To: Date: Wed, 22 Jun 2011 19:31:49 +0000 Mime-Version: 1.0 X-Mailer: email v2.5.0 (Linux 2.6.39 x86_64 [http://email.cleancode.org]) Message-Id: X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110622_153154_471680_DBB8BAC1 X-CRM114-Status: GOOD ( 14.14 ) X-Spam-Score: 1.5 (+) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (1.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.159.7.36 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (lost.distance[at]yahoo.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED 1.0 FORGED_YAHOO_RCVD 'From' yahoo.com does not match 'Received' headers 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain 1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list Cc: eric.y.miao@gmail.com, philipp.zabel@gmail.com, mad_soft@inbox.ru X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 22 Jun 2011 19:32:34 +0000 (UTC) Add LED support for the HTC ASIC3. Underlying support is provided by the mfd/asic3 and leds/leds-asic3 drivers. An example configuration is provided by the pxa/hx4700 platform. Signed-off-by: Paul Parsons --- This part of the HTC ASIC3 LED driver patch set was seemingly dropped, hence repost. --- clean-3.0-rc4/arch/arm/mach-pxa/hx4700.c 2011-06-21 04:25:46.000000000 +0100 +++ linux-3.0-rc4/arch/arm/mach-pxa/hx4700.c 2011-06-22 10:43:18.986382990 +0100 @@ -280,6 +280,21 @@ static u16 asic3_gpio_config[] = { ASIC3_GPIOD15_nPIOW, }; +static struct asic3_led asic3_leds[ASIC3_NUM_LEDS] = { + [0] = { + .name = "hx4700:amber", + .default_trigger = "ds2760-battery.0-charging-blink-full-solid", + }, + [1] = { + .name = "hx4700:green", + .default_trigger = "unused", + }, + [2] = { + .name = "hx4700:blue", + .default_trigger = "hx4700-radio", + }, +}; + static struct resource asic3_resources[] = { /* GPIO part */ [0] = { @@ -310,6 +325,7 @@ static struct asic3_platform_data asic3_ .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), .irq_base = IRQ_BOARD_START, .gpio_base = HX4700_ASIC3_GPIO_BASE, + .leds = asic3_leds, }; static struct platform_device asic3 = {