Received: by 10.223.185.116 with SMTP id b49csp4162659wrg; Mon, 19 Feb 2018 12:18:44 -0800 (PST) X-Google-Smtp-Source: AH8x227WBRgDrakdmoNQcxB9egwg0OtvVzIxsmLP9hwQBs7iiT3plJ61r/e+Hr4MU91Oa8ZhjSJK X-Received: by 10.101.73.7 with SMTP id p7mr8042686pgs.250.1519071524232; Mon, 19 Feb 2018 12:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519071524; cv=none; d=google.com; s=arc-20160816; b=pM1U3xHQXlmr/ojvvY0kZfwhjxFM2PCGwHXZU0s9PvKzqUWg2hy20/zonIKSAZapom m2nMCQzBg9h4TvwI/A40LRKMUgJHghbHZ/FBpVt/hRTo0jNWG+btZd3IRiICkM8I8aIG F1jVRqKjd+0Fq5v/cqXZUt7OZ3rp3Jw94mtkggd4nnn5bliHX8ATCDct2Nurf2oYhApL lWZMuIw+psovjOXkw5QL7kqtUPDL7e1DgL5sXHuEX61ywuvMT5bkXI6Q6NTcvFQdoGtf q7l0gDHN1x0wiM7w3aEG2lZnWo/1IULSkXmRMoE+upSU2PiSPBOJh5wMGYX2InTeqPuj SEhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=4mlKdFreOuJOQ4LetUJ6wYlwbVdBxilUh1Zu396IVvE=; b=ay3vE1f+eg3i8xD8lCR43N8WRDSK5BI5OYuoi1XwlKKQbM0qGiQ4Wxvdl7R4Gbu6m3 Giz0xuceJ0dguo78S2z7eA5qtK9vZzeSuAtDFBUOSijlHjxACtABfJMVmjk0sKfYlsUI Yg2kNbIdbti9yutrogBrQKokRwfBEA/VpfdWldARVCxSOy6wnpTfGQv0NWXvQdpQ2zaT w1M++3P5PWJD1th+TSbw6GEDD20r/TuhCS7YZFgslgPb+eYUa4cQ6csQlbgODbxnl2B9 rC/oWPWVbiEGIfFKGH3XymBQggUiutS4hXLZZuU1BihggObmxXyz9lMy9SQaVw4XW356 9gEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ws29fUNy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si9976pgn.281.2018.02.19.12.18.29; Mon, 19 Feb 2018 12:18:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ws29fUNy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753783AbeBSURN (ORCPT + 99 others); Mon, 19 Feb 2018 15:17:13 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34980 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753685AbeBSURL (ORCPT ); Mon, 19 Feb 2018 15:17:11 -0500 Received: by mail-lf0-f68.google.com with SMTP id 70so1149601lfw.2; Mon, 19 Feb 2018 12:17:10 -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=cp22h/SNHEV4VDgUtRFuMIaa9gyLlUhm+j5B4cYx4296D6g0T3/21pwo2a8EGSL4py AOpDt3X7CIlGplWEW1NU0kjPJZLRFbCSx8JMMdKnHq5sHXlaqZA+kPYCzmLYV/DjEhgF EtME//S/sfNx86uamk5XPRbx8NPEoB1H+BCS72e9a02/V5PxM02dTtkg8ZHLjowMldLt +pdJbBARJf4tdWAyaahotUAtqNpX9POF37OOg+UYcVYMcR6yq9mbNhKuw3Fm7HbP1Vsg 5aZZVatmdHTsznux36m8yPICAq/Q8yvZlUH/QGVrre+RN3kUyYPdlsjC0c3X7UfHcoPE uYNQ== X-Gm-Message-State: APf1xPAEwwvvvnGXJ1BVEx8Y4yNpX/2i50XlaQ5llwoXP+FlRAx8CdHO 91hzAfHjVTvXtjXjJYT1Eg8= 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 Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tomasz Maciej Nowak 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; -- 2.16.2