From patchwork Mon Oct 29 09:00:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 412BC14DE for ; Mon, 29 Oct 2018 09:20:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 330B029856 for ; Mon, 29 Oct 2018 09:20:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21BA42985B; Mon, 29 Oct 2018 09:20:23 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable 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 8BDE829856 for ; Mon, 29 Oct 2018 09:20:22 +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:References: In-Reply-To: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:List-Owner; bh=l43hQC7ABafmnbXu4Dl5D15qR+FKjGnA49TZvtQNkEc=; b=VpannE8ujrVQ/r9yfReKbW0HjA ASGuMBtW9FidxWXhVKl8sSlwdJvPMdOvIAAmKmUQArybWpiGqAbkDx1KuoDIyZ/ErQQ/hCB0yfiAa HqK87iMdWvX6UqHSdM4YfYNxx0ByLz205KXb1HXpYQnzEMhgwLGRvegepThrYYpTIjcI/XRSnW6wB h8EOQc1qJEM1rrQiisiXABf7ZO5ZSenV0ow2D7JKbz1XILQUYx0kZOF+tt7uJQCM6VEtX26QVCslP 3AVA5JdV2Evx/M7wCQcThzsgYzDO8mwoUz2Q1h5WXB+Pwy+8yIVOInB1bFApfbwUWNL16heQGT2AW 6KE9rAmA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3iZ-0003dc-LX; Mon, 29 Oct 2018 09:20:15 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3eG-0000mh-7f for linux-rockchip@bombadil.infradead.org; Mon, 29 Oct 2018 09:15:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wUFCaMP2U/9XAPvBBvehrJOX1gaBUfBxuvntsZn9/3s=; b=Jk249sjXZy1pRtMkYzPO5jlvy HI9BXGkvnFiMuuI20ppixKSbzFA+eerh8S84IQncPI+ruUmRpb88+0G9XUUgL2enhOb0cja0NoJTR FRPseu8QvDL3EGnxp3PY2w1lajDs2QILbWh1xqtm7MgpGn+zNjVW+m6jLdVpC6DbMd/nCoFvS6xol ZpNvcf0UGtABL/kbRH5f5ikI7awqrJv9bF9QK79CsHukegdJwH8QWYkWLNh2SqRZfMXjuJjg6QSRz 8FUlLNRJfJ5ymrZwRTJ4wnZ7aI+6VRRiN/mH8wou5LsrrZ51rTLj1pqus/S+XKiRui2Fq10P2zMiI iUwjNyISQ==; Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3Ps-00039r-28 for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:01:01 +0000 Received: by mail-pl1-x641.google.com with SMTP id n4-v6so2904748plp.2 for ; Mon, 29 Oct 2018 02:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wUFCaMP2U/9XAPvBBvehrJOX1gaBUfBxuvntsZn9/3s=; b=UcVmJDUJTEMSRAD52MJcxieQC6frO1KWadP4ewuApun+xrieIuXfhWE8fkGrRhJmfX tEe8Zl2+rjR6MS+a6ueso+hwF39C/cHy+5giwk4OdZydNcmyMRH4oAvbFapIWnDEvFBl SsOE30qVQ2/FsfFBGM5OW2/mM0LRm8qbiM+9k= 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:in-reply-to :references; bh=wUFCaMP2U/9XAPvBBvehrJOX1gaBUfBxuvntsZn9/3s=; b=PUoVHAwszK8yHtr+qPngl9Kh5TiJHX8SpEobna/SOgt+ca3ezr/McfSehfPg08SPtl 3rCR8hNQXeUGDwku5spoUs8ze+XQa4SdKQxopcs+taL2EFjaS3lsqQYpAIDpZUKi1jcE UzHFzet475H6gxWwqNi+g+Apg3hf3sl9dr10WCGLv7J+6X2lOUYQ1bOr2CLP0qICp8jZ PTUVC26UULYQCm7xcZSVq/KBle3d8uhlhpU446XAj3bnkBlyBI+Tg+xD9wp2fkFkNsaa 0Giwz8DIQGWWuqWud8FUTvhkrNAWUn545AQAYWRH3WUpx5kRil/6RtjDgghUhlJr9oWv 0hWw== X-Gm-Message-State: AGRZ1gLGrE1kRH7ISogc+LsWcGYMBFgUTOfoY3Ptc+aMH2DP6b3+zeUq ZFAbHYnlquXX8rxuNb6xIasQ X-Google-Smtp-Source: AJdET5fou1tXmV0BATRAsVHX+DyBIb6PC5TPzt+UmGy//qsIb+a9I3Y5E8XZ7vSo0Datp4ACTAY4QA== X-Received: by 2002:a17:902:8d88:: with SMTP id v8-v6mr13397557plo.21.1540803643884; Mon, 29 Oct 2018 02:00:43 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id m11-v6sm28265245pfi.102.2018.10.29.02.00.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:00:43 -0700 (PDT) From: Manivannan Sadhasivam To: robh@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com, pavel@ucw.cz, andy.gross@linaro.org Subject: [PATCH v2 1/7] arm64: dts: rockchip: ficus: Add on-board LED support Date: Mon, 29 Oct 2018 14:30:00 +0530 Message-Id: <20181029090006.4353-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> References: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181029_050056_200261_93BBB4BA X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 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, daniel.thompson@linaro.org, linux-arm-msm@vger.kernel.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, linux-leds@vger.kernel.org, Manivannan Sadhasivam , nicolas.dechesne@linaro.org, linux-soc@vger.kernel.org, linux-arm-kernel@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-Virus-Scanned: ClamAV using ClamSMTP Add on-board LED support for Ficus board based on the following standard used by other 96Boards: red:user1 default-trigger: heartbeat red:user2 default-trigger: mmc0/disk-activity (onboard-storage) red:user3 default-trigger: mmc1 (SD-card) red:user4 default-trigger: none, panic-indicator red:wlan default-trigger: phy0tx red:bt default-trigger: hci0-power Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/rockchip/rk3399-ficus.dts | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts index cce266da28cd..027d428917b8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts @@ -23,6 +23,52 @@ clock-output-names = "clkin_gmac"; #clock-cells = <0>; }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>, + <&user_led4>, <&wlan_led>, <&bt_led>; + + user_led1 { + label = "red:user1"; + gpios = <&gpio4 25 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "red:user2"; + gpios = <&gpio4 26 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "red:user3"; + gpios = <&gpio4 30 0>; + linux,default-trigger = "mmc1"; + }; + + user_led4 { + label = "red:user4"; + gpios = <&gpio1 0 0>; + panic-indicator; + linux,default-trigger = "none"; + }; + + wlan_active_led { + label = "red:wlan"; + gpios = <&gpio1 1 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "red:bt"; + gpios = <&gpio1 4 0>; + linux,default-trigger = "hci0-power"; + default-state = "off"; + }; + }; }; &gmac { @@ -66,6 +112,38 @@ <4 27 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + leds { + user_led1: user_led1 { + rockchip,pins = + <4 25 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led2: user_led2 { + rockchip,pins = + <4 26 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led3: user_led3 { + rockchip,pins = + <4 30 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led4: user_led4 { + rockchip,pins = + <1 0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + wlan_led: wlan_led { + rockchip,pins = + <1 1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_led: bt_led { + rockchip,pins = + <1 4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &usbdrd_dwc3_0 {