From patchwork Wed Dec 30 11:16:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 7932571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 881189F387 for ; Wed, 30 Dec 2015 11:19:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4FE5202EC for ; Wed, 30 Dec 2015 11:19:27 +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 02917202E6 for ; Wed, 30 Dec 2015 11:19:27 +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 1aEEkw-00008i-6I; Wed, 30 Dec 2015 11:17:26 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aEEkt-00007r-EX; Wed, 30 Dec 2015 11:17:24 +0000 Received: by mail-wm0-x232.google.com with SMTP id b14so45203906wmb.1; Wed, 30 Dec 2015 03:17:03 -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=CzaZ/qOhTpcNzNHuGwYs3te/z6wd768nNWKRmvaktTc=; b=nlLsb9S3ezgQMHI7eLSi9K3I3P6wE2vJu+aN8d241ZaVP91ZNHPeD3GvdeZ6GMD52S lGvlpywRVvYRESwSrbjND4MLhtES9yEHZNS/gDhzOaHUQxqjhqrlfuDdsD8FewKVOBf3 YbdZAigMwqkPLjneWc164vyi5rSP1cxC68920zRCgIAN/QYWUnMsGhUOXVh2iRdkvK6l HBgXRVHm5ai5AW2xrnaTjLM6eoeki3SbWLWsCkSdk0yb9d4eZmi7uwjyxr5rI+TMfn4/ e3k0aF1yCfAIIWU5NksgT3aRLyrvQDBnfqth6pTSCoKsXUqdPgTfArGsGc91k89URZXP p8RQ== X-Received: by 10.28.189.11 with SMTP id n11mr34060979wmf.3.1451474221869; Wed, 30 Dec 2015 03:17:01 -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 a126sm6679300wmh.0.2015.12.30.03.17.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Dec 2015 03:17:00 -0800 (PST) From: Romain Perier To: heiko@sntech.de Subject: [PATCH] ARM: dts: rockchip: Adding LEDs handling via leds-gpio for the Radxa Rock2 Square Date: Wed, 30 Dec 2015 12:16:59 +0100 Message-Id: <1451474219-1313-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-20151230_031723_642072_13164FCD X-CRM114-Status: UNSURE ( 6.98 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.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: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 Signed-off-by: Romain Perier Reviewed-by: Sjoerd Simons --- 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..a33020f 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:heartbeat"; + linux,default-trigger = "heartbeat"; + }; + + mmc { + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + label = "rock2:blue:mmc"; + linux,default-trigger = "mmc0"; + }; + }; + + sound { compatible = "simple-audio-card"; simple-audio-card,name = "SPDIF";