From patchwork Sat Mar 2 17:00:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 10836683 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 2F1391575 for ; Sat, 2 Mar 2019 17:00:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06F4C2AF01 for ; Sat, 2 Mar 2019 17:00:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE8E82AF03; Sat, 2 Mar 2019 17:00:35 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 9250F2AF01 for ; Sat, 2 Mar 2019 17:00:35 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: 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=jUcCPj4U2Kcb5X9vxw4j/bDywZ4wchy+l5Re9dDGmN0=; b=TgNiiHsFkzU1Kp epbqs89RzMF/dK/gXvpe0YxWDyST5Lk8tgsYFyxp/2JJHY+JV4baA/3K0Lv+fLW0xVfIxQ7s6deYK JIJjwHc/6NKZ+Te2/xlsdRUDa6dTsKRn/Mwxjuy/Ax3BVvXOus+jj03rgFGrzMB05gR2kE3im3U5H OKEnOAGTEpnnThQxL368G8EJwh56t7khT2mJ+jy/HXqIMRRDPphEbY4DEbdpKKUw7DMPSNuPvhhWi sZ7vwx0kJHhKRVuOR4HHjoq+AHii6brk4CumroZKKvTR+4EAq4LwLX+ReWcVE5svuXEDLD4XLfdTm T2h2UUIo+df6y5jUuFXg==; 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 1h0801-0008T8-7g; Sat, 02 Mar 2019 17:00:33 +0000 Received: from mail-oln040092068080.outbound.protection.outlook.com ([40.92.68.80] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h07zx-0008Sd-W7; Sat, 02 Mar 2019 17:00:31 +0000 Received: from AM5EUR02FT035.eop-EUR02.prod.protection.outlook.com (10.152.8.57) by AM5EUR02HT219.eop-EUR02.prod.protection.outlook.com (10.152.9.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Sat, 2 Mar 2019 17:00:25 +0000 Received: from AM3PR03MB0966.eurprd03.prod.outlook.com (10.152.8.58) by AM5EUR02FT035.mail.protection.outlook.com (10.152.8.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21 via Frontend Transport; Sat, 2 Mar 2019 17:00:25 +0000 Received: from AM3PR03MB0966.eurprd03.prod.outlook.com ([fe80::8011:1f4d:3804:e5f3]) by AM3PR03MB0966.eurprd03.prod.outlook.com ([fe80::8011:1f4d:3804:e5f3%10]) with mapi id 15.20.1665.015; Sat, 2 Mar 2019 17:00:25 +0000 From: Jonas Karlman To: "linux-rockchip@lists.infradead.org" Subject: [PATCH 2/3] arm64: dts: rockchip: add leds node on rk3328-rock64 Thread-Topic: [PATCH 2/3] arm64: dts: rockchip: add leds node on rk3328-rock64 Thread-Index: AQHU0RluaSgsyo/73UmRn2IHPp5WoQ== Date: Sat, 2 Mar 2019 17:00:25 +0000 Message-ID: References: <20190302165641.10905-1-jonas@kwiboo.se> In-Reply-To: <20190302165641.10905-1-jonas@kwiboo.se> Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR04CA0015.eurprd04.prod.outlook.com (2603:10a6:206:1::28) To AM3PR03MB0966.eurprd03.prod.outlook.com (2a01:111:e400:884c::23) x-incomingtopheadermarker: OriginalChecksum:76CA04E884DC068B1AEAC4397BFBE305F0C23135E16C39C1F31455D91C7E5DEF; UpperCasedChecksum:3838A9C9B983DAE0FCA8D7BD03610489632A1345BF8B2ABD6923282E3C1FFC55; SizeAsReceived:7827; Count:51 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [dKoON8yenBTOHEy8UhW9+hUlpAJOJP6H] x-microsoft-original-message-id: <20190302170016.11010-1-jonas@kwiboo.se> x-ms-publictraffictype: Email x-incomingheadercount: 51 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045); SRVR:AM5EUR02HT219; x-ms-traffictypediagnostic: AM5EUR02HT219: x-microsoft-antispam-message-info: G4jYwftw9aqK5XLaUm3BJQnpmz1eNOK3Qi6DU4906p9PBJOWQyb2nre0NQfuTO2l MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 0fe0b1a8-cd9c-4e6a-b7db-08d69f309087 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2019 17:00:25.7618 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT219 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_090030_034746_C543A99A X-CRM114-Status: GOOD ( 10.65 ) 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: Mark Rutland , "devicetree@vger.kernel.org" , Heiko Stuebner , Jonas Karlman , "linux-kernel@vger.kernel.org" , Rob Herring , "linux-arm-kernel@lists.infradead.org" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add led nodes on Rock64. Use heartbeat trigger for the red standby led and use mmc0 trigger for the white power led. Signed-off-by: Jonas Karlman --- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts index 8f3e4b7d55c9..c4031b7718fc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts @@ -65,6 +65,20 @@ regulator-max-microvolt = <5000000>; }; + leds { + compatible = "gpio-leds"; + + standby { + gpios = <&rk805 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + + power { + gpios = <&rk805 1 GPIO_ACTIVE_LOW>; + linux,default-trigger = "mmc0"; + }; + }; + sound { compatible = "audio-graph-card"; label = "rockchip,rk3328"; @@ -157,6 +171,8 @@ interrupts = <6 IRQ_TYPE_LEVEL_LOW>; #clock-cells = <1>; clock-output-names = "xin32k", "rk805-clkout2"; + gpio-controller; + #gpio-cells = <2>; pinctrl-names = "default"; pinctrl-0 = <&pmic_int_l>; rockchip,system-power-controller;