From patchwork Mon Oct 29 09:42:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149641 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3905802ljp; Mon, 29 Oct 2018 02:43:11 -0700 (PDT) X-Google-Smtp-Source: AJdET5eG5HvvcEpBu2GCvQvJY5ZQbCz9313tBOwRNIkhGDbzSYbys93/f8QjVe/gffyPJ+kfD1UR X-Received: by 2002:a17:902:6b4b:: with SMTP id g11-v6mr13604835plt.213.1540806191685; Mon, 29 Oct 2018 02:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806191; cv=none; d=google.com; s=arc-20160816; b=uraYFmIiK5tEo9DuitjB4HAZnAeS0rlf9aEzjjEfMPUWUpP5luYvbAYQjQHRLikA/Y n078GcTcN+o+A82agbycf5pd6alhm1fi1bdQl7PdTTwueR0rZ7q9UArKDlq+sKDNw+In Ih/RE/w9DFgd/H7aeDwmzAFK6C+UDgrpY3LBRbv8Gj5ZvV3UVq1MPBmjYum/ATvcXvJs JuUN7bFb7PS5HbbfoJ4yCwsdGBZDCmEvHrF0/+aZRUd3JZe/widYMHnzo2vcSEmdA8Oz tGJuKe7kS99Yeabrq5SirWMJq8v9bdjJaOsQ8r622c0bRup2xR3uyj3eI0+kL3Ro6LCL B9rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=wUFCaMP2U/9XAPvBBvehrJOX1gaBUfBxuvntsZn9/3s=; b=qT1h1eFGFSAfsrY2/OsOPt9BZ9YpW3ctDu4KwbUp6ntDyIH5UAs9Cc2eTGNEyMD4zp nT6mcM+NFtB6afGwZoqCPq9QdGhpMCoTIRTbkJsDCKunNhSVv5wnXyI9OgcO7pr/Vnc6 N+usNwnHqWKXKk+nCihgliyP19LlDxJB5yamChK+kWF6IVu/hRUgQiH1mJ2ZwzYQCTEN AOWYQgonGrttxgMZKswGpVFqBODd+qhbfUI5qVNM69aymNXhsb++5F8i0ULlX4SmBxA1 WWFola39pr1VDoJ/AaVmpWHXiVPhXGcxynjOKCz0KZFUhmKxdisSupFJ1+PoKRBnYqlg tejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C+RgILs3; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n188-v6si13129193pga.434.2018.10.29.02.43.11; Mon, 29 Oct 2018 02:43:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=@linaro.org header.s=google header.b=C+RgILs3; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729700AbeJ2SbD (ORCPT + 1 other); Mon, 29 Oct 2018 14:31:03 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34013 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729558AbeJ2SbC (ORCPT ); Mon, 29 Oct 2018 14:31:02 -0400 Received: by mail-pg1-f195.google.com with SMTP id k1-v6so2194813pgq.1 for ; Mon, 29 Oct 2018 02:43:09 -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=C+RgILs3dUJi3yraFCTU5KozzhnQqfd6aNaaH6g/niqa6DtxemChy0W8NGhvefe0hc eXZhBhncQ68vRSxmRQKktJb0TZtI/J6x6Rq6MfoPajHK5VBQBSxK/spann2Yv2cBvsDI RRb8GoLdALuemVCAody9oaWDnCsVGkEliQCd4= 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=U7UCK71c85UyvJWUG8S2zbCUReOeS6PI8CLwAtBr0txx4zqs1CjrcnXCN50hjaeokE SJFbWf7pusxYNNbk0aFB7R94XYZl/CLOlOLAFkPQ6j7AhekeY+bu/NJr9iGu0ESm3ZJQ K87EcbmHB4XQvcURWqQN/2IzwHV+0NK4AIshnIE/ozytkd2e8wWNYCgT2stjscNnE5zg Vu2IW99yuEClt1z0lokWnCG642TrDbDaavwzt8ctUOp+CobOxBjUV+YN3cERVt5FIoMq TXKOryRwgszX+eFgIGcwoIJwB32jYusNqpUceDM8svQHSn8TcIMEjA69QGtPBHCKQygy OZxw== X-Gm-Message-State: AGRZ1gJ1UNOV5dRLmP/FdYWPkCpr/Lf6VB9N9u6QDT9P0xUR0FFQvWJU IpEAMtAnx2wgjHXxUG5M5INY X-Received: by 2002:a63:1c1b:: with SMTP id c27-v6mr13211072pgc.351.1540806189478; Mon, 29 Oct 2018 02:43:09 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.43.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:09 -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 Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 1/7] arm64: dts: rockchip: ficus: Add on-board LED support Date: Mon, 29 Oct 2018 15:12:39 +0530 Message-Id: <20181029094245.7886-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org 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(+) -- 2.17.1 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:42:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149646 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3906416ljp; Mon, 29 Oct 2018 02:43:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5cnli2wm8xIVCjFA+FIYycJBLYdoS1h5mXJBhM5LXrtmzRo5/64cJQtjjAc95ACeiLHLtZL X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr14310556pfj.152.1540806231175; Mon, 29 Oct 2018 02:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806231; cv=none; d=google.com; s=arc-20160816; b=cdImaNH9EpEWwZ1l5dphoOf9ESPTZs9dn5Uv5+IA8zj0rRnJ6snUdCdn0JxIyhROpj izXEFmr9Xd+vVu1nAcMaV1j1ESz4qPSLj16EEb4mZ5Kk6+PkvCCNhzgdUB9PvKUiPmzo cljV8kCaJj4+TZMsOUh+jXVxpw83MENR9RjfkdxqhVbXpB4GIBTr9bArPchmmpUxowRA eC1/81G5Nuli+AxcQ8JJCHS0P/Uzhw6zJVC7cQQsk1rG9k5eiLHNJa952KSSFbFasgvN 0G49461jAmVvXIkJa8AxAPjQZwNCNp4Y3LRsMtRnT3QrluOjS/LJXQeNqpb7+HGb9PSK rz/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Vbqz/FFQSiZYMz4Ct6V+6er7vQMDEB5XowGv/dcExWY=; b=YQ3Z9bp1n09rCmgxsmmHJ+hpIsqJ8y+SpylMZ3JhIYJJur392dN3hRFNrwpZ+wQBPx 0ngOtENkH/FljacgncTfbyFqPey2wsHSNEnts5TtEp2lh9Nvf5wh0qGUaQozwXmP1U65 bHXwwGdr183h+ilDfDip9n0kzegN08JEqK6x9WNSjXLQH19RK2l3knE1PaoYJfQCgzqW Sr+4Di7jrxVhBlQ5p2Co691SRyrorzgHaPAcq0pCL9/UZbt15Ee0Kp2lXQAGPZgsllEz Saol2I6qYbVmkNbaoJ3lMw/TROPzxBQVA+qej8u6WeWMVQdXJGvyVgRcr3czlgJFbIOH e/Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eLuO/mrF"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30-v6si6664190pgb.404.2018.10.29.02.43.50; Mon, 29 Oct 2018 02:43:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=@linaro.org header.s=google header.b="eLuO/mrF"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729787AbeJ2Sbm (ORCPT + 1 other); Mon, 29 Oct 2018 14:31:42 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45127 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729788AbeJ2Sbl (ORCPT ); Mon, 29 Oct 2018 14:31:41 -0400 Received: by mail-pl1-f195.google.com with SMTP id o19-v6so3515454pll.12 for ; Mon, 29 Oct 2018 02:43:48 -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=eLuO/mrFrZhhfoTh7+ecSofPtV9INZyKge0eYhB0pd+HlMYW0bFQAN/PIf/pJIqKN9 73CuoW05pQJZ4MfnyiA8r0ZAk0pyRiYpGFUV0jbJuYTi7L90N23UIpQknS7+0GrD6XK/ XtDCMn04D+SenZUROSTtA8xPnONcQWNh82CWQ= 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=D/YBWyAzKtCAOkzK1SJnqEnqSIGx0cRBiyoYQonsJHm+8KrifZlXxPZhdLLxtbnQAo 6/t6QqX1HdwRxvwmWAueIkgMErl3xlBj3zwiPm3brDvL3caS5lOtWW7y0MqC1PO90gYG J1XhVkhBqzFPzq/hZVU4BKiEJ10ihP/+EBTgeD9CxgUj4i4kvg1Hal1jpUUXKbrVSiBL oBIAcP0ttIpGsWa+7IfGyRcez4KrryfUeC52tDs63Ohi2pvl9RQUDf/6siy4RuP7mY5s tdB9VT8mvcId3z+Zuy+W0jxXEMBOET4AL8yjKi8yoHwhPgkTtksKKR1czg8Hbc2m8e/s rOlg== X-Gm-Message-State: AGRZ1gJvPyZuQ5aJ/XOHz1XV4jk9rNcJBQ+0IqJCg4174ApiW/Cm/FVR xk3AxaZxH5dim7fRq9mY48hY X-Received: by 2002:a17:902:bb96:: with SMTP id m22-v6mr13451926pls.117.1540806228450; Mon, 29 Oct 2018 02:43:48 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.43.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:47 -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 Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 5/7] arm64: dts: hisilicon: poplar: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 15:12:43 +0530 Message-Id: <20181029094245.7886-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org 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(-) -- 2.17.1 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:42:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149647 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3906561ljp; Mon, 29 Oct 2018 02:44:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5em/5XGVJzeI+AQ+TDsnZ7LSvjrgrjSSsqBLXjNZAVt/LnZH6VClFeTSYELDQr4fnKkIcQp X-Received: by 2002:a17:902:443:: with SMTP id 61-v6mr13454056ple.216.1540806240937; Mon, 29 Oct 2018 02:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806240; cv=none; d=google.com; s=arc-20160816; b=RgPTZM2NrFBwxCSpXkjdkPPy7rvmjea0N27sjSICppazeLv/W/mQCbD7aHlYr+v1aP So0ZqLQ3lV+BLHCJTtdW4+Q16i5Mdmlq64QdXEff5KH8kjqfqOJ+UX9mat3kmKxkZGRQ 5/sgq+mD35R/XHNf0NduU472Nn/4jUIELEDnywv0kLnswqfLnpFvqM8vsLW9Is7sZrCF puwCxNhJquAXAFqEdp/mTU3kBKOXiTIMGkBZtFtXf/ZMHqLufJjk3IBXh/YCngXcpwwA 4zq8+a1w77Y6XSIm4df1FfbLo1DZzzktkMbawc9OUpVxpgET19717LcPdWvCidVFrtoA Djng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=NLzRC/KoanQ3Q5K4K9dSGjby1oMGO+7mKnxsVzSkG80=; b=k+HBkSZxdifCKr7KjBqibkGpGI+NldTaUnog0lN6XtoEDOHpTaPpW7rFqcDu1vQSTu 5Ud3tVUwuSD/seylklKUJXZAwzlqYqDj+A2T3ZAlpHU75bFItd5fQVNLxPPQhevyaaTW /Us4dYhkRxHwfNYC+OMdYZFaGMJz282jGIJ5+5POSfoIHIrNnSi1dCtClrQsmvZhtZ8D QxYLl3lJ4mKiplqXyisPRPJFgI3PToJ0N1hlyJMqqjmFcHCq+6d57nJajsl9Wigrh4T1 upAL0tIDAhbdIeOnyXzOrMfCn2mRiQHb+Ij7F1XwqlgO1EHxg+GKTbbcI9WCVtEkiDJy jmnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UqpfGP0y; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30-v6si6664190pgb.404.2018.10.29.02.44.00; Mon, 29 Oct 2018 02:44:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=@linaro.org header.s=google header.b=UqpfGP0y; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729568AbeJ2Sbx (ORCPT + 1 other); Mon, 29 Oct 2018 14:31:53 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40732 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729707AbeJ2Sbw (ORCPT ); Mon, 29 Oct 2018 14:31:52 -0400 Received: by mail-pf1-f193.google.com with SMTP id g21-v6so3725195pfi.7 for ; Mon, 29 Oct 2018 02:43:59 -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=UqpfGP0y4a0XVR5XmPWfmU2gcJBdOFyV/s6u1ofBMMYrnjTHVK4pBHDZo3FOVqiK/0 E8/VFEtos9QeFecDjI0WWI/VNe4Dngo2PZa/rDwJzDXOy/wECWzzl70mZiTaps1Oe1ks nwSE0dSujh4pAUV1LkO5bVT6uWmhX9Jej6AzE= 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=cc2TTyCYDck6RmnK2QnNpkXNjPK5OplORzv+aEK6iKyGx0b2VXiYp2vJSvrPjIlLU2 dF+UFBRKvFWVZtWlsgiLfzyzja5E4A09pNHd3qGPIbdnQdPzXLLQl/y5c1FY8t6lAQNn 4VNxbw9RCu59+pHFft/hBBxvvmiHHrICXvkVD4kZJQJgeUTvzxMeGidtcRfMzXPDVkeK oMyUGnQKFA1ETNBOF6yIqCs2Mv0zCXK/VAAmUaiPWfSbhYAgDwWg0knBiig20+BwczR2 YeNVlSKQDTI7qyAEMK9EjwYY1OKaFbNXh5XDA9DgKSePGlXfgiZh25qKv9mQK9qyyxEC WP0Q== X-Gm-Message-State: AGRZ1gJLKIPxYCyRHiz7WExM0MuCXsCVleLo70Axpbe4ogZUTvFwTtMi 754OJGeTmZOtHfaNM8Utp1ow X-Received: by 2002:a63:c949:: with SMTP id y9-v6mr12958292pgg.331.1540806239504; Mon, 29 Oct 2018 02:43:59 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.43.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:59 -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 Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 6/7] arm64: dts: xilinx: ultra96: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 15:12:44 +0530 Message-Id: <20181029094245.7886-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org 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(-) -- 2.17.1 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:42:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149648 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3906711ljp; Mon, 29 Oct 2018 02:44:11 -0700 (PDT) X-Google-Smtp-Source: AJdET5fmvmrUbqDRQO1w3nKtFbZIk2ROQ6e/2mZgXYx4xx7/1SW6kruDEDcJxlISsJ4mHAEqDSUL X-Received: by 2002:a65:55ca:: with SMTP id k10mr12957193pgs.448.1540806251669; Mon, 29 Oct 2018 02:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806251; cv=none; d=google.com; s=arc-20160816; b=lAbIbLIZGvz3Xq2caGGk1p9RoMPoC3aRJAGDlOqb995OBh1X/wjYGgOwqxxtSaVB0u RhssajfqZFFF+ccgNUxGysuGLOaFySN7ynzMmazeyDPQI1sxtl+NexVRsiR3CqO0qaLr 7qPOJOLMBmv1ghPsv6L+tpVmPO8+OQ5fUpd4yWIh5Ch/sxQHC2iLHIbikIPmXPUm/sGO h3cH5zBqnaX3jap7ouncaMeQAMjz2/FdYTsCCYmb8NbEHg+f6bGQeqhFFmEBLHzRRyw8 JUtV9PkP2ilbAC/wJp6IhzhpZnW14CwUhvSCvtJQqdgdKpSOaD8OoCGJOqp2VowQkJdC 9Nxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=iuq32Mpk0vaszYzvXRhuQKiIl4nbHWKFjX6gYWdOdwU=; b=Gh/wdYNvTQL2GJweJHCiwkFvOBwz+7/wo4xuZ8osXoZooIgVQLhr+9ugSaXPreEA8v yNVVWE+sKqPjK+q4qg2DWdVSef1EOj696Lh5y+lmAHNA8HT6L0na+13D2dX93APaOEB3 IamwBzKiXD2ONpT4gNJ02iqbIe+HfCa/T3m8Wfbm3xzmD0H0ocJ/G3Rj+4tqizy2lJQv 0zTu4Mk17dkzmoNVzXxCZxhzOaaw8mSZ5fTthjG7GPU7BI56Q7Ya598eE5UTGlkE2zKu oHaB2KYWp38fgOC4d+6xJfGd6vh2DAq323bUnw+RHs9a+sKBkkvgVxFLzpyLfNtH87Hh p5pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="E/GmGliZ"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5-v6si20303127pgw.184.2018.10.29.02.44.11; Mon, 29 Oct 2018 02:44:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=@linaro.org header.s=google header.b="E/GmGliZ"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729813AbeJ2ScE (ORCPT + 1 other); Mon, 29 Oct 2018 14:32:04 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33106 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729661AbeJ2ScD (ORCPT ); Mon, 29 Oct 2018 14:32:03 -0400 Received: by mail-pg1-f196.google.com with SMTP id z2-v6so3630494pgp.0 for ; Mon, 29 Oct 2018 02:44:10 -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=iuq32Mpk0vaszYzvXRhuQKiIl4nbHWKFjX6gYWdOdwU=; b=E/GmGliZXELDu7cEVJRJIqsKJbck9GtHx6wXKR+a7fgJ5zFzeK5Vjp7ZYEX1eBSmf/ /jAcysQLI9vxwNmOE4b3KBF8gOY9YvNEB0pVppDe0GQt4KCiRS0+G351HO8YH43ZPjyK Ncn2WifJJ41EKEguAIgM+htmHFgGKPpd51hSY= 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=iuq32Mpk0vaszYzvXRhuQKiIl4nbHWKFjX6gYWdOdwU=; b=m6x3aFxSYkYIHBqcqJTWMR6ysisaIOSMrz1ebtBPHDKfddwFdHOEpZtz6+Fusfd15s fZO+OPp5PCZWfsBWeZAtIFdXTEjynu8E8eJipvqWNJAov/Zu3Ka9bYKUOrdq0Te0ZrkG JaBnoTwxRhg7kApAAa6ND6IxYr3+O+ZvusTvqS2hpLeuP4asRUTpXKZg9cnoXHmo/z/q d18gjZCE0QYvYtEbZYrmC5rvyof0E2cW30VFOYonJ1fbCLM/7SSplm3x8uedEh14YhcY TvwfII+3cL07stFXfDDKQJ+r7H0RcqI69Wj0R9xQDp5920TD1D7FO6gwUsZoCMS4S9IE buIA== X-Gm-Message-State: AGRZ1gJfyTLxK6JSwt9tFA+M9Ie33RtGcXSLwiWy/A6KIWWUT/j7kn0x mrd52e4WrG6UEBakH0ON/jUt X-Received: by 2002:a63:2f86:: with SMTP id v128mr12722562pgv.407.1540806250535; Mon, 29 Oct 2018 02:44:10 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.44.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:44:10 -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 Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 7/7] arm64: dts: qcom: apq8016-sbc: Standardize LED labels Date: Mon, 29 Oct 2018 15:12:45 +0530 Message-Id: <20181029094245.7886-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org 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. Signed-off-by: Manivannan Sadhasivam Acked-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.17.1 Reviewed-by: Nicolas Dechesne 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";