From patchwork Thu Dec 31 09:13:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 7935831 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 E56CDBEEE5 for ; Thu, 31 Dec 2015 09:14:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1347A20265 for ; Thu, 31 Dec 2015 09:14:30 +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 2993320263 for ; Thu, 31 Dec 2015 09:14:29 +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 1aEZJT-0003Tx-06; Thu, 31 Dec 2015 09:14:27 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aEZJJ-0003RH-KW; Thu, 31 Dec 2015 09:14:18 +0000 Received: by mail-wm0-x22e.google.com with SMTP id b14so76321789wmb.1; Thu, 31 Dec 2015 01:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=FOe6Ca6vmDh7EHoq6WBbMeQ1M8mGiIg+aMnxeOERBu8=; b=kjnnduHHc2ebWoH0eEZUxtEIljNFzrfWugWAS6jcn22DY0PpS0s4MdyosyFGTN88Gh EjLnys5bDoTFw8yjcuN+kysFFMo8nkRtUOAQwiyYfTv4KOQqM55Fw1gH8kskiSnOt6OZ nvnWgWXeQFWpNH/0pH0hvFiBlAXot7bQEeYwiuUMplGks7XvjIcIIs+lkMtK2ZpyuKUE 2glCJtTEYEFhkvJqFTHJiNeJ7dFNfvsqECqRudrz/V6aZnYuWrwsbYoCIHED4VVXnB2N Ty/qBcML2Bp5pg7bq4PnQw56Rbmev1rxc38KEjOEIExOf7MLUhBHNGhURir77uktHFdQ gzRQ== X-Received: by 10.28.7.138 with SMTP id 132mr79917545wmh.100.1451553235723; Thu, 31 Dec 2015 01:13:55 -0800 (PST) Received: from localhost.localdomain (i19-les01-ntr-176-186-2-137.sfr.lns.abo.bbox.fr. [176.186.2.137]) by smtp.gmail.com with ESMTPSA id u12sm34789117wmu.10.2015.12.31.01.13.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Dec 2015 01:13:54 -0800 (PST) From: Romain Perier To: heiko@sntech.de Subject: [PATCH v2] ARM: dts: rockchip: Adding LEDs handling via leds-gpio for the Radxa Rock2 Square Date: Thu, 31 Dec 2015 10:13:52 +0100 Message-Id: <1451553232-2533-1-git-send-email-romain.perier@gmail.com> X-Mailer: git-send-email 2.5.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151231_011417_824680_0DF40892 X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.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: linux-rockchip@lists.infradead.org, sjoerd.simons@collabora.co.uk, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY 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 Describe the two user-controllable LEDs on Rock2 Square boards. All information have been retrieved from the schematics and the vendor devicetree. The default-triggers mimic the behaviour of the vendor-kernel to keep functionalities in sync. Signed-off-by: Romain Perier Reviewed-by: Sjoerd Simons --- Changes in v2: - Changed labels according to what is defined in the schematics - Added a long commit message describing this patch in details arch/arm/boot/dts/rk3288-rock2-square.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts index c5453a0..0813428 100644 --- a/arch/arm/boot/dts/rk3288-rock2-square.dts +++ b/arch/arm/boot/dts/rk3288-rock2-square.dts @@ -56,6 +56,23 @@ pinctrl-0 = <&ir_int>; }; + gpio-leds { + compatible = "gpio-leds"; + + heartbeat { + gpios = <&gpio7 15 GPIO_ACTIVE_LOW>; + label = "rock2:green:state1"; + linux,default-trigger = "heartbeat"; + }; + + mmc { + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + label = "rock2:blue:state2"; + linux,default-trigger = "mmc0"; + }; + }; + + sound { compatible = "simple-audio-card"; simple-audio-card,name = "SPDIF";