From patchwork Mon Feb 19 20:16:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 10228835 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E000460392 for ; Mon, 19 Feb 2018 20:17:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0076285EF for ; Mon, 19 Feb 2018 20:17:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4C0D28703; Mon, 19 Feb 2018 20:17:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 33A22285EF for ; Mon, 19 Feb 2018 20:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=FqTzja2U9HvzcD0DmMMIJSp3G5RTmz8PTFokv9nINv8=; b=Mrj VhkvPnKnZvzh7HVZJnI0gJbSozTp3IRDsbjsRjCK+AOMTG1pc59R0VE28oi1oiF/221ou7cWjbv84 lBc4vPMRZxcZRDkjvbQ9tigiI9I5vTeEKUmSNiR1ukpC24zahAZJ86D9TJOg7RSFuUOIzSE21+AEh UzC9R0RL5PkXWDIMX8N+AiLV7aujguVTrNZEhkhcffGpJ1H6zOdgXV6suLhDA1Kk1Tg6MYLwQdxCI N4858ZBg0BA/oADJ8pbeH1eULA6ZRb9I8XdK/dW2MTeI0//KuP9q0MRJmxaZX1xA/IHqaLKc2/Lt1 T/99mCLH2GVP63rreceb8/Do6GmbxcQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1enrsM-000852-T9; Mon, 19 Feb 2018 20:17:26 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1enrsK-00083I-35 for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2018 20:17:25 +0000 Received: by mail-lf0-x244.google.com with SMTP id 37so1132606lfs.7 for ; Mon, 19 Feb 2018 12:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=4mlKdFreOuJOQ4LetUJ6wYlwbVdBxilUh1Zu396IVvE=; b=Ws29fUNyUlNA2y7u7vLLYJ0UlAVKyeXHurgRhqX+YnefGYsfmE2NkQNuWIPAUp8tga Ia9j4kWMwTe8VIEwqNzfEXPTiIBzr8hYRhM0CY+zoyVzXPtJ5fskDMIFOJWlgVA0YFNT e9UK14Hn6fY0gpnsT0eMRhxRajm5k4QRwIKnfr4nun4+RtUYZm0Nf2+dzX0uQtlw65JC Hw/+OC5fVnCDp3oKREDHHMMxZX9S4hDaB+pX5vCEkQKI+9LQcp8lpqtyRzOtwWQzT7HR AbZRTHc1IBLk8ZEp08khHfmuzxkoFrk6T2m+v+63HEDiVeB+5pjH/0f+4OeympEj32Ri TsDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4mlKdFreOuJOQ4LetUJ6wYlwbVdBxilUh1Zu396IVvE=; b=ats/905QfgJYIU+58GvgfBUqZdhG2rWSnRo2FSfU6WXm+uKkw+5bKRg6RYHtOIYwFj zvst5LsHdR76+mYZREunrVP6wfWIjbng0PPtuf8TBYZeKXo+5R08/5yhoK+dbVhFkY0A bNIYIX20YQ2FfmhwI7S1pVDU4GjS2D64aT7sS5K9jVzrPFtvohVSUbSxMwqKmRvTdSAB +U4ZJlU7PAbjYzkQ0eaVKamLp5uDdO21QgPKTP90lCcvYZ7iaRv0kZWh9yhxa2NtAiGT mjBAbPcA7YuVyvZqB1F2/y0sveXsvFRV8Mu1VcvkgrElhLIbltRcwbbQCfEEmf6Ku+Ds ZDMg== X-Gm-Message-State: APf1xPDbx+p3OCYpNzQ5AFoFvgWx3InAZznE81EkVa474SelIqh+YmWP 8GyJolxZ0Oin/JpT2/yHNNw= X-Google-Smtp-Source: AH8x226y9tOOS3l2HXvTS5qZgtahBY97bw5RcMVjPETFOJmu2Rn2vWf8IA/OaW2W6Sfsz6wyvwlBpw== X-Received: by 10.25.21.101 with SMTP id l98mr10876752lfi.139.1519071429769; Mon, 19 Feb 2018 12:17:09 -0800 (PST) Received: from vaio-vpcz1.lan (155-133-15-140.interka.pl. [155.133.15.140]) by smtp.gmail.com with ESMTPSA id 74sm2735864ljq.32.2018.02.19.12.17.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 12:17:09 -0800 (PST) From: Tomasz Maciej Nowak To: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-tegra@vger.kernel.org Subject: [PATCH] ARM: dtc: tegra: enable front panel leds in TrimSlice Date: Mon, 19 Feb 2018 21:16:23 +0100 Message-Id: <20180219201623.6987-1-tmn505@gmail.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180219_121724_144820_8FB14A9A X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Tomasz Maciej Nowak , linux@armlinux.org.uk, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@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-Virus-Scanned: ClamAV using ClamSMTP Adds device nodes for two front panel LEDs. Signed-off-by: Tomasz Maciej Nowak --- arch/arm/boot/dts/tegra20-trimslice.dts | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/tegra20-trimslice.dts b/arch/arm/boot/dts/tegra20-trimslice.dts index d55c6b240a30..31a8b088d386 100644 --- a/arch/arm/boot/dts/tegra20-trimslice.dts +++ b/arch/arm/boot/dts/tegra20-trimslice.dts @@ -200,16 +200,17 @@ conf_ata { nvidia,pins = "ata", "atc", "atd", "ate", "crtp", "dap2", "dap3", "dap4", "dta", - "dtb", "dtc", "dtd", "dte", "gmb", - "gme", "i2cp", "pta", "slxc", "slxd", - "spdi", "spdo", "uda"; + "dtb", "dtc", "dtd", "gmb", "gme", + "i2cp", "pta", "slxc", "slxd", "spdi", + "spdo", "uda"; nvidia,pull = ; nvidia,tristate = ; }; conf_atb { nvidia,pins = "atb", "cdev1", "cdev2", "dap1", - "gma", "gmc", "gmd", "gpu", "gpu7", - "gpv", "sdio1", "slxa", "slxk", "uac"; + "dte", "gma", "gmc", "gmd", "gpu", + "gpu7", "gpv", "sdio1", "slxa", "slxk", + "uac"; nvidia,pull = ; nvidia,tristate = ; }; @@ -402,6 +403,20 @@ }; }; + gpio-leds { + compatible = "gpio-leds"; + + ds2 { + label = "trimslice:green:right"; + gpios = <&gpio TEGRA_GPIO(D, 2) GPIO_ACTIVE_LOW>; + }; + + ds3 { + label = "trimslice:green:left"; + gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_LOW>; + }; + }; + poweroff { compatible = "gpio-poweroff"; gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;