From patchwork Wed Jan 27 05:06:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8129971 Return-Path: X-Original-To: patchwork-linux-rockchip@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 6CABFBEEE5 for ; Wed, 27 Jan 2016 05:07:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 927FE202E6 for ; Wed, 27 Jan 2016 05:07:33 +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 CE84C20295 for ; Wed, 27 Jan 2016 05:07:32 +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 1aOIKK-0008OP-F8; Wed, 27 Jan 2016 05:07:32 +0000 Received: from mail-pf0-f172.google.com ([209.85.192.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOIKI-0008Gl-FH; Wed, 27 Jan 2016 05:07:31 +0000 Received: by mail-pf0-f172.google.com with SMTP id x125so6038441pfb.0; Tue, 26 Jan 2016 21:07:10 -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=o+X8yQLaVHY1La6vUmGixKyBRbzlbLzwH0CIsO3I0YM=; b=N0dNREWZbUoT48fzrYN8crOfkTiO7yhJaFsIDlcqMTqvesFDDL9/Gdw+LwvtlnAigq gvApnmhCB7pJ/YD+K6DKf0KUZRQFVN6VGjdqaalwC3Crovodw5jxw4flmlR9RDl4Uq+g VxIRdVXdpoJ+LjB3Ns8eG9JDUlvVZ/zP8wiHMx4bJsNntpWHznb5VduuXNI3qe7BjWF+ UnPzXXM3YRDPPTkudCsX3sKQkyUbxzqaz5zesBeN+XSushydWQIN/NLW4TFSWsWCJzhu uHdprY5EfJfQQAljeGutzqxU8fTaePuZ52C4+YjAv+/FLfzHrLmZNifIJ8c/xaKdqByv F5Gw== X-Gm-Message-State: AG10YOTjWQWd069aVVMDHcgPf2Vos4eDVFzW6LxUCONNSH8JA68Dv0M+Z1WJt9/ne6CC1w== X-Received: by 10.98.67.149 with SMTP id l21mr1972188pfi.112.1453871229424; Tue, 26 Jan 2016 21:07:09 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id o75sm5384814pfi.17.2016.01.26.21.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jan 2016 21:07:08 -0800 (PST) From: Caesar Wang To: heiko@sntech.de Subject: [RESEND PATCH] ARM: dts: rockchip: add the leds control for kylin board Date: Wed, 27 Jan 2016 13:06:44 +0800 Message-Id: <1453871204-7312-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_210730_641077_DB067733 X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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: echo 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 for-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>;