From patchwork Wed Jan 27 05:03:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8129951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 23B3DBEEE5 for ; Wed, 27 Jan 2016 05:05:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3FF9920295 for ; Wed, 27 Jan 2016 05:05:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7BBC32028D for ; Wed, 27 Jan 2016 05:05:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOIGT-0006By-H8; Wed, 27 Jan 2016 05:03:33 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOIGP-00069e-KK; Wed, 27 Jan 2016 05:03:30 +0000 Received: by mail-pa0-f50.google.com with SMTP id uo6so111947985pac.1; Tue, 26 Jan 2016 21:03:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AN3Mb+nBotjM8KV8MrGhxJ8OLFKCfE1iUwRDgMqUuS8=; b=KvDHz1Qt0QXxB/si/jYKvOJva/bByUP/E98cX97gqR03SmtHAf3BdP9ikD5zfO0jtd Xw+ejtiVgQrq7OA8K3FjVsrwfzO36nVNc1t/2kVZE4qGUecO/4BmSCCGrEuRi7ya+Mq1 p054lnGqmiTQnCztNj52aFusvgM6M8P4ACsla2ohZisJKNtRu5KOQSevPda8xrx24B5j eNdG8bBfpBN4rZTVtlPTIhp+DJ6QanhwGGkXwpuAPJa8YLMYNwdAhyWIpKEl1cAVz6dT uWl4RHI6DHvRsJWTYvQUagW3k6WN361gG/EUQPUUea1ciPcss1IcEN/nHq8gqOh8nst2 fgfw== X-Gm-Message-State: AG10YOSPGbjGUqEK0dnYhnP1ZajG2veRrmJ6fyXwjJmN7rnutcfk4zMD8HavATuit/k0kQ== X-Received: by 10.67.24.3 with SMTP id ie3mr39649736pad.23.1453870988765; Tue, 26 Jan 2016 21:03:08 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id x81sm5301447pfa.72.2016.01.26.21.03.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jan 2016 21:03:07 -0800 (PST) From: Caesar Wang To: heiko@sntech.de Subject: [PATCH] ARM: dts: rockchip: add the leds control for kylin board Date: Wed, 27 Jan 2016 13:03:09 +0800 Message-Id: <1453870989-6999-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160126_210329_730628_A7B74CFE X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Caesar Wang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_BLACK autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As the kylin schematic drawing, add the needed work led for kylin board. Run: ucho 0 > /sys/class/leds/kylin:red:led/brightness echo 1 > /sys/class/leds/kylin:red:led/brightness The led can be normall on/off on kylin board. Signed-off-by: Caesar Wang --- Hi Heiko, Describing the content: - This patch is based on your v4.6-clk/next branch. - Verified on https://github.com/Caesar-github/rockchip/commits/kylin/next. arch/arm/boot/dts/rk3036-kylin.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts index 190f22c..3332a7f 100644 --- a/arch/arm/boot/dts/rk3036-kylin.dts +++ b/arch/arm/boot/dts/rk3036-kylin.dts @@ -46,6 +46,17 @@ model = "Rockchip RK3036 KylinBoard"; compatible = "rockchip,rk3036-kylin", "rockchip,rk3036"; + leds: gpio-leds { + compatible = "gpio-leds"; + + work { + gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>; + label = "kylin:red:led"; + pinctrl-names = "default"; + pinctrl-0 = <&led_ctl>; + }; + }; + sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; @@ -359,6 +370,12 @@ }; &pinctrl { + leds { + led_ctl: led-ctl { + rockchip,pins = <2 30 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int: pmic-int { rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;