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 { From patchwork Mon Oct 29 09:00:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658975 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 A49F813A9 for ; Mon, 29 Oct 2018 09:43:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93F9F296EF for ; Mon, 29 Oct 2018 09:43:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 873C429865; Mon, 29 Oct 2018 09:43:59 +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 D5313296EF for ; Mon, 29 Oct 2018 09:43:58 +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=OiE69jMtz6t2hVoNo6QV1oeMqHD8IzRPsPsrcow6ulI=; b=fevTzHw3bOf0tp4qQH2xLOWyhc ZxUM+kNlS1ChQqnG9ogRIBWp8ZGK+xt4E/LjmxdnjtmcKwmRtSjkknMNhC4h8QtOURJbec9Ap3mpW ajVf/PENuc7AmM5vSJO982Jghw9ymq4+ejorpJ7jOITOq2j3903Xfmfe9uOFs+NJ9UFCPnyYREVbX L5iM2f7btnG1XwzR5dR9egSYSEjlCKYSMzLWxiyZwqjhyA3Nh2/OPHKkwZnXPsUA+gl1XqzlzXftS G7w/V+lOBgdLj3f0r25+7OeSIyCwphhQVYz85gh6M+puGKxTAbn5OJ1xZ1yYG1+j07hRPNRpGxZIO 1m7HisHg==; 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 1gH45Q-00077Q-7L; Mon, 29 Oct 2018 09:43:52 +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 1gH3eE-0000mh-NX for linux-rockchip@bombadil.infradead.org; Mon, 29 Oct 2018 09:15:46 +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=pCPQcI73UddaBWggkh570wXZTWiaCyv6lTgOSiLnbCM=; b=nT7+uYRIoVXa8tSIIexREdqGI IWSjMxhAu5H3mIUwtv9ATGNbIChEgUbmtFrX1ePl+opiA6qJYMCMfo8DXPwNfnLGJ9C+7pvhRyD82 C8l4nzFmb2zXDaeaIsByQaPJaPQ323k+2fKf+jiVomLdkS6MuKQ1Y0Z/QRIqJ8cXNnP8yD0LxpRF+ UZZXU/0a3i6uaXp0gGqaH0WS985YSYCjnjp9PXFlGbExE2uBxWSpZdDdoODEznWErr1VRK/bQYVgq OOXYxh4VYKHw6Cs3ZZeF+dzDTB/kD7sK/+/QV6Lddz2L9ihU575BY0i1vXn3qEoyU43V8OK27wSLg JJnH1uLmw==; Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3Q3-0003Ai-9U for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:01:07 +0000 Received: by mail-pf1-x441.google.com with SMTP id z2-v6so1087816pfe.2 for ; Mon, 29 Oct 2018 02:00:57 -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=pCPQcI73UddaBWggkh570wXZTWiaCyv6lTgOSiLnbCM=; b=Eojx8vHsmBS5mnFqb6X3/ycGgyVwyHU6+FHo16QyQgDddknzVYY2SInRI91PsXWqeT r7Z4KvvogstHZvTgaE2+cjZCL76kiyVUZ3u9QuV8AH/1EfqER+41fPNuhh+yKUxybPcl lbCN4JF/VPXBNQJAGgyp01X4mBJZtR/ake2b0= 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=pCPQcI73UddaBWggkh570wXZTWiaCyv6lTgOSiLnbCM=; b=QmIN4U56mBIwDJmgdFS2X9LMFfVNUvQFXx3hf79PEh6TGz0Oq/YHHBXeNg9WF6NKPO VniDFPx/6Q3P8qomMOd8b0ZujGn1PsGOdTYMp5iHtctZH1m+gfvuywpB80CvZZTvHzl2 MOEjUR8R8fzJ6Nkt4rN7ecpxbQ9k3zgWvlic/TNmjNREHzRY0+p4iaF8SRiPqTLkJhb3 Wm861xIkV2JW83Zc12CR8KLOv8X6UdbmDVOhivta+oCxQFlqcjc/F079Acwh5UKijSZ3 wXSwtiavWeOtZ5upBlYGDgAXpC2btduAmhBPRGi1t5d70ap+R096QqEtep/2iFLbtJxG tHlw== X-Gm-Message-State: AGRZ1gLIXCNvjKcTb9EeYWmFy5VXjS7Q48yZJTIjbpw42c7bYzW4VZ1+ qeeSVNhFp1M7f6bvGO9Ufdhq X-Google-Smtp-Source: AJdET5cDGg24Q2EbW7Y9fxYf6WbiLYUdZbXbLtdhqIGTx/Z1UdUVjzewiHBPknCPPWi+ZFH7Jqdg7w== X-Received: by 2002:a62:d2c7:: with SMTP id c190-v6mr157684pfg.26.1540803654681; Mon, 29 Oct 2018 02:00:54 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:00:54 -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 2/7] arm64: dts: rockchip: rock960: Add on-board LED support Date: Mon, 29 Oct 2018 14:30:01 +0530 Message-Id: <20181029090006.4353-3-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_050107_405225_8CFE5B9A X-CRM114-Status: GOOD ( 11.58 ) 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 Rock960 board based on the following standard used by rest of the 96Boards: green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power Signed-off-by: Manivannan Sadhasivam --- .../boot/dts/rockchip/rk3399-rock960.dts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts index 3c3308daec98..12285c51cceb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts @@ -13,6 +13,53 @@ chosen { stdout-path = "serial2:1500000n8"; }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>, + <&user_led4>, <&wlan_led>, <&bt_led>; + + user_led1 { + label = "green:user1"; + gpios = <&gpio4 RK_PC2 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "green:user2"; + gpios = <&gpio4 RK_PC6 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "green:user3"; + gpios = <&gpio4 RK_PD0 0>; + linux,default-trigger = "mmc1"; + }; + + user_led4 { + label = "green:user4"; + gpios = <&gpio4 RK_PD4 0>; + panic-indicator; + linux,default-trigger = "none"; + }; + + wlan_active_led { + label = "yellow:wlan"; + gpios = <&gpio4 RK_PD5 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "blue:bt"; + gpios = <&gpio4 RK_PD6 0>; + linux,default-trigger = "hci0-power"; + default-state = "off"; + }; + }; + }; &pcie0 { @@ -20,6 +67,38 @@ }; &pinctrl { + leds { + user_led1: user_led1 { + rockchip,pins = + <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led2: user_led2 { + rockchip,pins = + <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led3: user_led3 { + rockchip,pins = + <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led4: user_led4 { + rockchip,pins = + <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + wlan_led: wlan_led { + rockchip,pins = + <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_led: bt_led { + rockchip,pins = + <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pcie { pcie_drv: pcie-drv { rockchip,pins = From patchwork Mon Oct 29 09:00:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658919 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 026FF14DE for ; Mon, 29 Oct 2018 09:11:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB68D29902 for ; Mon, 29 Oct 2018 09:11:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E904C29838; Mon, 29 Oct 2018 09:11:31 +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 7FEAB29838 for ; Mon, 29 Oct 2018 09:11:31 +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=6bnTDwtQ9vfjZfNddtAOJfbMEUySc16q8EtJQcV3HYc=; b=QvB9C8LskUdhJjxlnoeK/Sy8uw 31ajKby2PGxXq0tmRgmZTuRqUq/xX95IC4SaxfMTT+GAbNvksqalk2WzwxNZ2TTR2oqEtU4H2onMD dhFbkb5jt5vyaT4k4d/igFGdMY6xVoJKWKnmkHRsIdKJMm2bywCzsyaWNLOedT1Xh/nl9FVOgQQd/ fjDWXjk9qgdXRqA+HjjrUR7Gnb4IYLrgisnuv2/5ZWoECRnlIl8pTX6xHqVWeSJYUiKEsdO+H2CUz xW0Upsh85xRNGo6bqDbV8UiBBdER5aPCItpBmqHjmsuF2WpSsH8rpiR5+B+vZUuJO4ToJgnC4naYR 3iJTO3PA==; 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 1gH3Zz-0006bh-29; Mon, 29 Oct 2018 09:11:23 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3Zu-0006Rn-PW for linux-rockchip@bombadil.infradead.org; Mon, 29 Oct 2018 09:11:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=j2cyl7pk/6O0Vid/aGybHYEdGtKHVLDUxG+HI9FVaoA=; b=rAdA9TrdBTjEsfDq1FH1Rl3dv giFcoPT38pkymzfDmQ+orNqmqk+YVIubsDXU0oExKLv/5CrFg8r7GtGzZQXZ7OuIJ7xwysYlBrc1B vqAGMUFRGK/XHuVqbr7lMoHC0k0jmA2Stu0NrgDQUNe7tc3xUtxWKHwNOvHgj7HeS5Kz6fn0UQ873 qNx8Cr6c/ZuGwrSqP/6reKwlrPSapbL7/4NefPaBDGk0eNCEnWGlNPM7P7URCo4tiktXUI+SOLnE6 WYXWqtt/5/OciCf9e08QLT5sbuBHdtrfdDLwIsWyh+FO8/rEX2rn9ZktRlgQ11xWIgC1EoZ8N/1J1 kjFIYnZDw==; Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3QC-0008ED-JR for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:01:19 +0000 Received: by mail-pg1-x543.google.com with SMTP id n10-v6so3545234pgv.10 for ; Mon, 29 Oct 2018 02:01:06 -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=j2cyl7pk/6O0Vid/aGybHYEdGtKHVLDUxG+HI9FVaoA=; b=WXYEBIOSHhZvGe/6kt/SgeSbslSJXkqbZ0fRzs5jy48Ai3Gc5kXSPFxH5AG+BZjr6C B8f0LxSrx+RoBc/wlrR8K3+o3ubakn5wC9RYOi0OH6DXdqpa4AqjNR/8PSzd70NoaSxV ckPCguDAiO4rZ6yBzcYnXf2ULxRM/JwZTjQYo= 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=j2cyl7pk/6O0Vid/aGybHYEdGtKHVLDUxG+HI9FVaoA=; b=QqpU4GrA5gdx9/Hx5gEC3i4Oomhl71aksJgBAf/WdK7OpnddF24fVWfJ9oBGcJ8srq zQhyKBpNNvCQNXJKusiA6+sb7G/9Cs4R54tYbGCpDY6L7yuxPt4G5JtzcVyNupArtXaP J50xWOsq5HQS5EcYoEyo0ZftBokODS99hJMiQuuClZp1jUHniv/NVPbXh8ujh89aU9vd 7wBmUHUZyiJLUuILeCD2v/n23tUopcVA6YVSGerGfE+qIrQq4ECuvU7yDLUwxbXAnm5M CJRXU0ScmS/h4I4FITHKSBmDdor7CNZ2OnkSqadtSPgywkXoBSib+83n5Zq7f/2CgLnp /K9Q== X-Gm-Message-State: AGRZ1gKSDsJ02A7TlRaKPvxj2a+pb6CvgO8CteP6ok5r7eOlE/RWj5Lg Gu3YDKHWyxL0D1BM1RrZxrYu X-Google-Smtp-Source: AJdET5cG27bKpgsyGYQbxkexpabn/WBOGJscC8thahsoxQZ/qTda67toB8MZqGc9CCMcVJDDRtux1w== X-Received: by 2002:a62:764e:: with SMTP id r75-v6mr14316497pfc.230.1540803664889; Mon, 29 Oct 2018 02:01:04 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:01:04 -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 3/7] arm64: dts: hisilicon: hikey: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 14:30:02 +0530 Message-Id: <20181029090006.4353-4-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_090116_635615_B70AFC65 X-CRM114-Status: GOOD ( 11.38 ) 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 For all 96Boards, the following standard is used for onboard LEDs. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power So lets adopt the same for HiKey, which is one of the 96Boards CE platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index f4964bee6a1a..d2bb5912dee7 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -340,42 +340,43 @@ leds { compatible = "gpio-leds"; + user_led4 { - label = "user_led4"; + label = "green:user1"; gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ linux,default-trigger = "heartbeat"; }; user_led3 { - label = "user_led3"; + label = "green:user2"; gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ linux,default-trigger = "mmc0"; }; user_led2 { - label = "user_led2"; + label = "green:user3"; gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ linux,default-trigger = "mmc1"; }; user_led1 { - label = "user_led1"; + label = "green:user4"; gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */ panic-indicator; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; }; wlan_active_led { - label = "wifi_active"; + label = "yellow:wlan"; gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ linux,default-trigger = "phy0tx"; default-state = "off"; }; bt_active_led { - label = "bt_active"; + label = "blue:bt"; gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ - linux,default-trigger = "hci0rx"; + linux,default-trigger = "hci0-power"; default-state = "off"; }; }; From patchwork Mon Oct 29 09:00:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658917 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 6DBF413A9 for ; Mon, 29 Oct 2018 09:11:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F557298F4 for ; Mon, 29 Oct 2018 09:11:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C5BA29902; Mon, 29 Oct 2018 09:11:27 +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 B2697298D8 for ; Mon, 29 Oct 2018 09:11:26 +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=V5yvvzUymK/MW2ykvWpfyJv80yDHpKDWK0QoV0a4NVQ=; b=QmWe6rArQ8u7e8fL7Enh3Dil/M bdpML3Yg9tHbh1K4+htuI67bn9bCZUAXVwmGusJPj2pSy9EyzQ6YHorptC8KGS1LOobL84jPKvyk8 hqZ6UPCJjyxYmsfUA9BTr7cjLZV6+Nmylvf6NjcPhr+J/S0YlAoOJHVay2pLjZNUr9LWuE9Ki5H9A bgr8uY5Exn5GCE0W1nK6ga2sJ35HiRBPlZjmdOAM7debflMH076KP2BpO98HRDtl7lapWVEJZrOLA NdifxLz3XZf2OXsGwm5YqPWNleYv0EbmhsbXlVzokzsrwuMYSC/QOJjLLlwS8Xtwn3Ko3htbD/qdI MVdHSJ6Q==; 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 1gH3Zw-0006aZ-Cq; Mon, 29 Oct 2018 09:11:20 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3Zt-0006Rn-Ho for linux-rockchip@bombadil.infradead.org; Mon, 29 Oct 2018 09:11:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=qiPc7+pFvXoljKcM3oPGvfYWKPi0YXvGMfaOhIYBWYY=; b=m0xqoWEDskcqPuvma7fBEy673 ZApO5BOLZXnmn7UfLqJxzIMb2CLscBJa5KjPLLu3m7/h+BBPzJaJX+KSgrTJSDAJGHbooOVBHyUDO T/uJ6+32sd8ZtnlP0R5vKFHj/TLHGFrfd9ca5REzak6k7+0XzvEdDI1IJCR69lBzO6tqx80LT3rRN 5CEHZCWqsBEPIAGav1p0Pd8jHDWJUiTU1YR1TlcvWf9x+A9A4gYDtyQTPsBGJK4r857nUOv3NMz5V R0lzE55FcvZQ56Sv9biStY3hbaBS6RcFNmANgCroes/uGa+43R04lKoYF2XkE4hxZs2Jst7nf5dB+ Mrb4RaXRw==; Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3QD-0008Eo-2K for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:01:21 +0000 Received: by mail-pf1-x443.google.com with SMTP id l81-v6so3680886pfg.3 for ; Mon, 29 Oct 2018 02:01:16 -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=qiPc7+pFvXoljKcM3oPGvfYWKPi0YXvGMfaOhIYBWYY=; b=ELZ5WO0S/23V0UdRmgKRvDxZVuNu6bYA5IenqCxz5yktJa7MW60rvS+wcD1cZ+MkIS Xkl3eWIzSiIb1K93HoSZorED2aIJUgUBg2IcoCM3glPbjDopmMz5WrutlClBCFMoK85u OjbR/cap8ylCkd+J/bUjSRLirqaumdi+9CBic= 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=qiPc7+pFvXoljKcM3oPGvfYWKPi0YXvGMfaOhIYBWYY=; b=p15U1aOoIhH985/OHzqkTLC6V9gW4fTio71QR+6K5/Ye8QepKLeGa4dCmtuL2sDtvt sxld2CnlNaXv8jy1YazBazRnjf0XaYZwbGb6gbrYI8I4jCZogpD7ksud1LLTIdfr3YT0 tyPKJQEqce2z+mvhlBVXFHKmBXKqrp1Un9evoR6D6fD34DFTqWL/38JAzMXULMGbQBn4 vgm+g91uyr69jb6O+cjkEiEH+Lz5R5UCMO/qqRhQGfTlpKI447uEN2EijwnuB2+nMp+s SCHeWMw0UHboy644VXoUbBBc8jEicuGaazN/KzVdkGr27oHQxv1Cxppl8a/DEhRl1QZ5 iRvw== X-Gm-Message-State: AGRZ1gIjJfC5jKvTJtOLp9X8oqJn2vYylcE5Y/k6Q1AY9uKSi0RzgLXN jHN5Shw28W6FML+RZkHSqcQAczyAYg== X-Google-Smtp-Source: AJdET5dogNaqGTrd/NLfBSY786haoLdaKxO8hPfqgv+0s7bjecUpnYFQbeuhhA74lAM2RYt0fhnZgQ== X-Received: by 2002:a63:e40e:: with SMTP id a14-v6mr13070918pgi.28.1540803675488; Mon, 29 Oct 2018 02:01:15 -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.01.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:01:15 -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 4/7] arm64: dts: hisilicon: hikey960: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 14:30:03 +0530 Message-Id: <20181029090006.4353-5-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_090117_110740_7AA39A67 X-CRM114-Status: GOOD ( 12.10 ) 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 For all 96Boards, the following standard is used for onboard LEDs. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power So lets adopt the same for HiKey960 which is one of the 96Boards CE platform. Since there is no trigger available for onboard-storage UFS now, user2 trigger is set to none. Signed-off-by: Manivannan Sadhasivam --- .../boot/dts/hisilicon/hi3660-hikey960.dts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index c98bcbc8dfba..46435466f1ab 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -85,36 +85,36 @@ compatible = "gpio-leds"; user_led1 { - label = "user_led1"; + label = "green:user1"; /* gpio_150_user_led1 */ gpios = <&gpio18 6 0>; linux,default-trigger = "heartbeat"; }; user_led2 { - label = "user_led2"; + label = "green:user2"; /* gpio_151_user_led2 */ gpios = <&gpio18 7 0>; - linux,default-trigger = "mmc0"; + linux,default-trigger = "none"; }; user_led3 { - label = "user_led3"; + label = "green:user3"; /* gpio_189_user_led3 */ gpios = <&gpio23 5 0>; - default-state = "off"; + linux,default-trigger = "mmc0"; }; user_led4 { - label = "user_led4"; + label = "green:user4"; /* gpio_190_user_led4 */ gpios = <&gpio23 6 0>; panic-indicator; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; }; wlan_active_led { - label = "wifi_active"; + label = "yellow:wlan"; /* gpio_205_wifi_active */ gpios = <&gpio25 5 0>; linux,default-trigger = "phy0tx"; @@ -122,7 +122,7 @@ }; bt_active_led { - label = "bt_active"; + label = "blue:bt"; gpios = <&gpio25 7 0>; /* gpio_207_user_led1 */ linux,default-trigger = "hci0-power"; From patchwork Mon Oct 29 09:00:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658915 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 73BD614DE for ; Mon, 29 Oct 2018 09:11:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68BC6298E8 for ; Mon, 29 Oct 2018 09:11:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6624F29821; Mon, 29 Oct 2018 09:11:19 +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=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 B2B1F29821 for ; Mon, 29 Oct 2018 09:11:18 +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=s+mC7Hxx3ojjbLXgPZvQuqo7HwJpgMDehg33HZDZ8AU=; b=WnMw5iRN34bPiDhbyeFIGwbVe4 kMKZ1YG+lNUd2LnDR/FnYx5+t/Y3b08oIY6BAo7SbIngvjhk+QfPnEfiEwQhSuN/wkcB2X3/PD7NR M+FJgRr2f+wGt7VBwKTT4IK7ZyT6ZVW39UZC1/RuvTQqcxZ2ZDs1Ap1myvKjpg0I5eLtxWT5t6H7E 3QVkImtSEktZBD/mjnYBWJnxQ6xZtQ1CDb7kPrVQH4dPeoQIFx4uLKrT7Di3OTSkLk3mrZeern45K sPO8vl5IgXly6g7Rr0Heo1IivnPoaPa2UtV4Bq6KDEJNxAiFBmGbewzgZjLxE2IGZXo9e7/EUlJN3 qtyBsGSQ==; 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 1gH3Zq-0006WD-H4; Mon, 29 Oct 2018 09:11:14 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3Zp-0006Rn-59 for linux-rockchip@bombadil.infradead.org; Mon, 29 Oct 2018 09:11:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=Vbqz/FFQSiZYMz4Ct6V+6er7vQMDEB5XowGv/dcExWY=; b=EnqgzNzcednZERa++8tynsRjz Pn6zEd/jqsR48hfA2cRz/DrOVhCBq88LHgiSJt/fQIWjG2a+2DLUgHJbvasDDTWDdVs/7zPa3d+2I McRsDhx4D5883DN7U/WBVuTbF1eJtL5ajLPdijQu4R9AGokmq01U+RgtFW6y0AL7hnAoZyxh0Soav O10rTz8LaDhQJvfgf0wCochfnBZfoa0syC1PCxw0NQM895EN5Bvh22rNfXRTBJVCuucZz7oreYZEm T1WVPhN4HATHTYa8Gfs+n12KEG6VHFee368Yn/ZvEsGgfXQ9PGGLQ0hADbR6Z3JBMFbc924DaAq4t nepVfV6UQ==; Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3QY-0008GZ-20 for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:01:44 +0000 Received: by mail-pg1-x542.google.com with SMTP id c10-v6so3564466pgq.4 for ; Mon, 29 Oct 2018 02:01:27 -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=Vbqz/FFQSiZYMz4Ct6V+6er7vQMDEB5XowGv/dcExWY=; b=ebZDNOIlEKX7hx6BlBHcemhr+HLPaoSt2U0XQFC+CPJBEhjHMe7qiFAeOXuC7T4XVs bmPNma2YUkdycffAOC7nyECgJ5M2TlpIt/vauRBNOp9QcgN019BNj9UYrHPeYiGqsGqb ogA5vbqtg6LuiRXUgHDGDwOvc5/kmp7U04osE= 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=Vbqz/FFQSiZYMz4Ct6V+6er7vQMDEB5XowGv/dcExWY=; b=puGfktGYhZArEq6MzDn+lrwnleKNGLukP4sNMPR6NiIdJC3TKnLbYiZvhCHXVDk7Zd LCnki+0NWQNOqBs803mXX/PFevZpUkM+qL7RM5CJ39jnfBqInzAKkJH+UYF+M+UvpHyK yyCNtyI+BudqAMAxyBZtUl6VJvIqkDPl2M/+aVmtxpteCCEyZ8o3Kaqo6zuG2nu80qGl P2cVUxufXW35t0sWBIN3WlrsxWJKg2Isndm3+6UWkn+8thbcSmsDA/XiNe/Lz/uxY9Z9 q6/Gaw3Am6wmd80GHZCgBKDFZNg5amkeH3vLGfbi6KUIA7tZD8V5bQ1C64iORH5RPfIi pIuA== X-Gm-Message-State: AGRZ1gJ0V3yTaee1M6gmhRty09vAqQTJ3bJHF3hLBEv+vcT/T38LUUr1 fecGT0o++iYJ1kt6tTnHTd1q X-Google-Smtp-Source: AJdET5e3QeUReF9X4kWXeWZOBl9EJIP0WP+hIpU5igB4fbS1kv0fMu5WdNZLxaWv2jaqr0KAFGxOGg== X-Received: by 2002:aa7:8603:: with SMTP id p3-v6mr3225827pfn.247.1540803686248; Mon, 29 Oct 2018 02:01:26 -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.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:01:25 -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 5/7] arm64: dts: hisilicon: poplar: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 14:30:04 +0530 Message-Id: <20181029090006.4353-6-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_090138_093520_1798C196 X-CRM114-Status: GOOD ( 11.75 ) 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 For all 96Boards, the following standard is used for onboard LEDs. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power So lets adopt the same for Poplar, which is one of the 96Boards Enterprise edition platform. Due to absence of WLAN and BT support, corresponding LED nodes are not considered. Signed-off-by: Manivannan Sadhasivam --- .../arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts index d30f6eb8a5ee..32716c96b457 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts @@ -35,30 +35,31 @@ compatible = "gpio-leds"; user-led0 { - label = "USER-LED0"; + label = "green:user1"; gpios = <&gpio6 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; default-state = "off"; }; user-led1 { - label = "USER-LED1"; + label = "green:user2"; gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; linux,default-trigger = "mmc0"; default-state = "off"; }; user-led2 { - label = "USER-LED2"; + label = "green:user3"; gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "none"; + linux,default-trigger = "mmc1"; default-state = "off"; }; user-led3 { - label = "USER-LED3"; + label = "green:user4"; gpios = <&gpio10 6 GPIO_ACTIVE_LOW>; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; + panic-indicator; default-state = "off"; }; }; From patchwork Mon Oct 29 09:00:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658929 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 13DC714BD for ; Mon, 29 Oct 2018 09:17:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 091C5288D3 for ; Mon, 29 Oct 2018 09:17:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F13E8289BA; Mon, 29 Oct 2018 09:17:31 +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 4E937296DB for ; Mon, 29 Oct 2018 09:17:08 +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=/+3J5xMYhvlC87MEF0GiCmqJj84VgWHuM99xKxTCJwY=; b=kLn2FzQiKxOIvgHGpGBxlOoxa1 kj+KUtteetKFZoHIY8aDTyRJO8FrTjDNaMxGgR7r/AC9Vcz+V0nWYCtpGIOIjMpcXYFzkFJ9BhoRL GxHaBNFaxJIGkPjP8qDyo9QR4vCINcnTbzPt2ahnwh4WRzzhkB43v9xjXRkqSOjC/PlhuvwhBFiI9 R81TqvRyMIQtF1U8slQ7AT+5+3loLA8AJyWA/ZxiLB6/ClUtUuS0pHt8uVBW37s4vyJYxDyhviPe0 K89LYbwBgYFta5g9fC4MuFwIUXtrOhA96UajccMdNYRykU0uv9Ib6JZHZZ0TPXYT1Q5+UbtgN+2wa jQwXoXUw==; 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 1gH3fQ-0001nD-Hl; Mon, 29 Oct 2018 09:17:00 +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 1gH3e7-0000mh-3D for linux-rockchip@bombadil.infradead.org; Mon, 29 Oct 2018 09:15:39 +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=NLzRC/KoanQ3Q5K4K9dSGjby1oMGO+7mKnxsVzSkG80=; b=Z1hO96UK4WKGRg1Wxv4c/IR0G f3sMOeIjgifWX+sKXnkBClaj14oYhtc/XJlPcyXZgodllqaI+rjNUyC+i8UH/QdoTW9lxiSpA23hW uw0AWFZvzm76D+V+JjCvhhjHXvd36OVVUnS2553M4Qk25x+CGSIhjTCpg6RZaCWz3uLsA3B5fJQDm F5KArFzrbKdgcNAYX2Y/T/IeP3OyxxvO/YDShk0rJY6uxd4BPUphidypcBylG/BTOpg69rM5ZbEUQ E6J0NiYcUhzUrG9a/jRg46rxjKjU1pAChusLOicInq2i/nGAJ3NIGS5TWWXG9+yZRvGA987J6Bp1/ EZOf5GBmA==; Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3Qj-0003EQ-25 for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:01:49 +0000 Received: by mail-pg1-x541.google.com with SMTP id m9-v6so850789pgl.13 for ; Mon, 29 Oct 2018 02:01:38 -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=NLzRC/KoanQ3Q5K4K9dSGjby1oMGO+7mKnxsVzSkG80=; b=aExSshojtG9ni6smjsNi6BkeI2F8jP3k9Okm2/0Su0Zm9mu3nd5jdu4BOnd/Jqdcf7 c9C1/yArFC0+QRZDVuTBiCmd2Qrwx97GhmSlKFxUyhwSueFbawNiFpmZWopeAc+to0lh 3Ut5O+z3O4l+6cqAyLNi3DTC6ehqiKzTcJhKo= 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=NLzRC/KoanQ3Q5K4K9dSGjby1oMGO+7mKnxsVzSkG80=; b=HIvU+L9yq3G5TMs3FkRN2wou0f/rJf5QxXEnqBjRlva0qjsP6sVSvcSRHeKrx2cI/V qpNmDRFv9PCi+QmL4AzQMhdCH4DW7UwSZQf0QnJ0QVxhrN431CHZlU3YGE2+O2tY7o+e nmgGiEq0xMfEpMjFyWIaZiP+ZnWIMtLa1kKNGCCJCp7Usnuuwq2+nKpry9OFTHvzUTLB 29+ud1OQ7whizWFdWrEr+YDOKhp3awucLgl9LGooEtbqetvMf/4NhAOo+H5Qa0ABULUs 8eehS2B6l2gx06zsJ1ItXL79up6bx4T0lUbLunoNtLAuUQ7gJlG2bCTBET1YZokhUMsW RugQ== X-Gm-Message-State: AGRZ1gJ2izChs7m6q6Fmy1Q9AkMGBxLDGCaSryjEvpAcQg2HKgfa77l8 9dERyEu6ix1tAjh7hg/yVBLp X-Google-Smtp-Source: AJdET5f7yjdBhpK0/xvzalXuvlcstZCO6jqqq0YRdqKCfVbbmQaoBj0I3B9c5NdxC8HKkfiYsUG4VQ== X-Received: by 2002:a63:ca0c:: with SMTP id n12-v6mr13075596pgi.109.1540803696842; Mon, 29 Oct 2018 02:01:36 -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.01.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:01:36 -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 6/7] arm64: dts: xilinx: ultra96: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 14:30:05 +0530 Message-Id: <20181029090006.4353-7-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_050149_137388_DBC926AA X-CRM114-Status: GOOD ( 11.17 ) 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 For all 96Boards, the following standard is used for onboard LEDs. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power So lets adopt the same for Ultra96, which is one of the 96Boards CE and AI platform. Since the WLAN and BT LEDs are hardwired onboard, consolidate only User LEDs. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts index eb5e8bddb610..c08a8753215b 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts @@ -57,29 +57,30 @@ leds { compatible = "gpio-leds"; ds2 { - label = "ds2"; + label = "green:user1"; gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; }; ds3 { - label = "ds3"; + label = "green:user2"; gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tx"; /* WLAN tx */ + linux,default-trigger = "mmc0"; default-state = "off"; }; ds4 { - label = "ds4"; + label = "green:user3"; gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0rx"; /* WLAN rx */ + linux,default-trigger = "mmc1"; default-state = "off"; }; ds5 { - label = "ds5"; + label = "green:user4"; gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "bluetooth-power"; + linux,default-trigger = "none"; + panic-indicator; }; vbus_det { /* U5 USB5744 VBUS detection via MIO25 */ From patchwork Mon Oct 29 09:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658913 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 0E35A1734 for ; Mon, 29 Oct 2018 09:05:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01D1928639 for ; Mon, 29 Oct 2018 09:05:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E903D28901; Mon, 29 Oct 2018 09:05:00 +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 D34862870E for ; Mon, 29 Oct 2018 09:04:59 +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=9BAk/OeHedZEvIg8tnvJSjvw8bgDXG9pQE5gJkbdAA8=; b=nW4w4qUm9Gu9CeoBUajRQ/t2uw arxVbrX/lWx/vwvfQdq3/T6xxVXMpG8UZCaMFne/DEnT/SyV9rzKhbXf5aM5gVoW5HjxXwxcoNROY tZxnNmYRyEWt8/d2aJLNi+lNrt+mo7AyKU3JD9YiXhOZ7Q48vVlFlDJBzMDfJ5M4b0ZhbHdh32RV1 PIPB5nTrTuEvibUihMwNVQY+YQq8a65RQZYhRAtp1OMCsXk3sYZCM4HrlD1P47I6WHm+Q2MK/V6d7 jf5dWf+2gTysWkQPZoX4jhd9HMGUzfgE5BOYYT4f97Gwa2Pf1EtXycnK9D3xZ0XNkKHasYV2iPWax UViTAmJw==; 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 1gH3Te-0002Bz-Fp; Mon, 29 Oct 2018 09:04:50 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH3Qr-0000vu-Pq for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:03:58 +0000 Received: by mail-pf1-x442.google.com with SMTP id f26-v6so3666067pfn.9 for ; Mon, 29 Oct 2018 02:01:47 -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=TvxtMQMr+s0zlpORARx/dbFxpLuRgUmSr0bYiw/Dal4=; b=jS5l+EQUy3AoLDQPMcTl0MNhVvcK6XiZ9hCvRysSZQ/QF8OmiOT4tzM7upYKpQuwfd LvbKRHgkPkmQswrQA4HmgtwBc1OadC6/UFL91j/04/2muix7bM0ntruw1sIbZtx3tIfY KYYOU6dGCOKPXTwspZw4tX3xmJgKb8EdYZgOw= 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=TvxtMQMr+s0zlpORARx/dbFxpLuRgUmSr0bYiw/Dal4=; b=JP5eiJWGW1W1EJh+hPVGsYxccWvAe8zMZJpElmX6CxBPlN5P74qYl61DFKaGbkmxrt 6Be+hKmX7IgM2kdKb7B5C+2jcUBpiwCHCaGMZJCsBzgUyEdWRmUP8/ofHHOSO9PxDYyR 7Jo4NvfUTlHsrDDfu4pL7+ImgRg/f81OnjsNh/nJ1jm9tUaTnULZW5Y14U4NrUPc03an etw3MCzx/CUAYvdbTwNCNf6wTacmX1Z1gBwl6j4iDNatWHXP9bz64aj+VBnZ9soZGTjT soeh/Cdm86qbJj5/SQd0hs0aaEcRQZ+nmOYMrOTyvlUC+emO6gq01zjiGyuUG21O0fc3 +akg== X-Gm-Message-State: AGRZ1gIJXyEFk9xXMEiI2qx6rKsYidQr1ko8Qpz/iE+RnMS34mwe8eMu vxJkKGe5vKH9+fLSqczm2Tvf X-Google-Smtp-Source: AJdET5fOLpu6T4PXpWFURgMefh9S3+b3GHBePEJQUo+y6/uhiwrsVYUbq60jmKngqzJAfQVAr+Pzkg== X-Received: by 2002:a63:e302:: with SMTP id f2mr13154444pgh.320.1540803706419; Mon, 29 Oct 2018 02:01:46 -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.01.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:01:45 -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 7/7] arm64: dts: qcom: apq8016-sbc: Standardize LED labels Date: Mon, 29 Oct 2018 14:30:06 +0530 Message-Id: <20181029090006.4353-8-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_020157_987739_9F15C76A X-CRM114-Status: GOOD ( 10.36 ) 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 For all 96Boards, the following standard is used for onboard LEDs. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power So lets adopt the same for APQ8016 SBC (Dragonboard410c), which is one of the 96Boards CE platform. Acked-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 46feedf7c989..35f95154316b 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -300,28 +300,28 @@ compatible = "gpio-leds"; led@1 { - label = "apq8016-sbc:green:user1"; + label = "green:user1"; gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; default-state = "off"; }; led@2 { - label = "apq8016-sbc:green:user2"; + label = "green:user2"; gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc0"; default-state = "off"; }; led@3 { - label = "apq8016-sbc:green:user3"; + label = "green:user3"; gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc1"; default-state = "off"; }; led@4 { - label = "apq8016-sbc:green:user4"; + label = "green:user4"; gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "none"; panic-indicator; @@ -329,14 +329,14 @@ }; led@5 { - label = "apq8016-sbc:yellow:wlan"; + label = "yellow:wlan"; gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tx"; default-state = "off"; }; led@6 { - label = "apq8016-sbc:blue:bt"; + label = "blue:bt"; gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>; linux,default-trigger = "bluetooth-power"; default-state = "off";