Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3127004imd; Mon, 29 Oct 2018 02:01:56 -0700 (PDT) X-Google-Smtp-Source: AJdET5d/vQN44LeDn4iaipFjr1nQbAaCq73++AsVxIr9OV7qzzL8SnvSFFRL70BkBk5kIoFN7rRV X-Received: by 2002:a63:8948:: with SMTP id v69mr13060848pgd.39.1540803716296; Mon, 29 Oct 2018 02:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540803716; cv=none; d=google.com; s=arc-20160816; b=GMj8XsVm/FuzNeGfA6IloAstZTh+ju0M17vL8elLcGnhHx9YOSoFv2NMDxazKdDc6R uQGMUqzBj6mqoC276cbomthgQnB21AIiQw9fBu8CuRevDIwSrfw00qs4X2Lpc+jvXb91 f9ylwkvYPf7Hfz5N0gFk6C3YuiXZLFtNu4uB14JqwKnloIU8eW6cNd+XIBw8VEP4ryrl zA+NhAmXhQej802TIijkOnZ7sTZnPWf5FEucsTTQWU18s+3fXLwNplsmtaSJwdR3azZq +wItCMZsdCfwArzG5rKTTC4h96IAmOYsEyxHmBXI1nVeQMFoKCLkZJimEyOHZo0Goiw+ MaRQ== 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=pCPQcI73UddaBWggkh570wXZTWiaCyv6lTgOSiLnbCM=; b=DW4mPIPf8AYUpm+rEe93zvnmas5f8B46ZDexRLtoQhAtyvtKeaOPC+e2bh5ZYkh9wb CxpKhRGuulr4qAqf0mneI0R5mu+lmBKSaRr03AxnKz15GSrlJ8WsFRp6iN1NWXXfWt7Z +hMwAc/BA2wWIFl9bV/WKKJDkyOskkbMxHbah9VXhmTKv2aUq3fLw4KCdDmod3YIl4+F XLrkkbych0xuzTMsg/qkOePL6TKedrjbVycKV50juhRpkIybWPf5RFQJS/eopZqnGBQr EkBvnL/mTeZRXHkH/ar6ELY9K165maeRwjgcchQbVzH1k9+Q6qaQmNtT4FsB8Rd9AQUo jO2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Eojx8vHs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=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 g29-v6si12435136pgb.508.2018.10.29.02.01.40; Mon, 29 Oct 2018 02:01:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Eojx8vHs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729647AbeJ2Rsi (ORCPT + 99 others); Mon, 29 Oct 2018 13:48:38 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39970 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729591AbeJ2Rsi (ORCPT ); Mon, 29 Oct 2018 13:48:38 -0400 Received: by mail-pg1-f195.google.com with SMTP id o14-v6so3557276pgv.7 for ; Mon, 29 Oct 2018 02:00:55 -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=q0oXwnzPo9OJjecYy60wHdcV1ut0HT4uRZYK2dqfGX6KK9zEL3Ebg6DlERd/y/6SLc 8x16+vBcNarQR9JT8J0l6UoT3zOOo2ui4OjTuNk/cneSpJh59oJmELCM6lzKiQJxOHcg XxrciWJTK7Em8DU5Yn7raS53idYMrZWa0Z3Ojvr8nu61x1RuEJrUjS1JdxQkC9PR4Fwt qWKIPP9Oes2Xw7bT+8ysqfS7CWKdevn6eyVSZWTE/RlZBxF3psySazTa6CCuGaEXJbTz KZQ3/LHNLKrkWXFXynPDthgDZSdfW6f4KAzlCoAkiRx1ovSzofe2meXUWA8GWKKvB/mB 1MVg== X-Gm-Message-State: AGRZ1gK6OdcP1l/xnrGex5rqgMbSnPqORJ8RW1LtUD0Z20IpoA3KPeyL MrRVLU6SXAOwhMrMkPvQwlao 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 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 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = -- 2.17.1