From patchwork Sat Mar 2 17:03:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 10836687 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 4263117E0 for ; Sat, 2 Mar 2019 17:03:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2373D2AF1B for ; Sat, 2 Mar 2019 17:03:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 137CD2AF1D; Sat, 2 Mar 2019 17:03:24 +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 BA31E2AF1B for ; Sat, 2 Mar 2019 17:03:23 +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=2DA4idyqc6IIdv8jqxh/JzGrxENPGPRJoPeaHhlmPgI=; b=W7B1uWManUAUsT 0h5p4vaXWowaAqx1GEP2Rtuww0rHhTBCnCo2Ba9xSuH3UihGdlupHcxpiByb6PP/8eHm8ggf3NjjA t9o528AHTkbRqCK5eOpd7NuezwWAd9/6hEJrjTAdl+DcSVOUAWjOTUxUTruxVYEeNKp36nnk2pN0c 3GLYlJCgn2R/bnAgu/KnNbPLGeGxwbM91g3A4Vz+4A90DEpermXOxiJQWcdzlWSexuZViF7YAJaEL s9RS+yzI638hSkZoGioISejazS7U2R1J2JZidGh61/ZxKLJtxmDC+/2RGOKdFC8wRD/9+u+5vAyOZ z1ghtnPAbYsomiehyuxQ==; 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 1h082j-0001Jz-LX; Sat, 02 Mar 2019 17:03:21 +0000 Received: from mail-oln040092068093.outbound.protection.outlook.com ([40.92.68.93] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h082g-0001JN-7A; Sat, 02 Mar 2019 17:03:19 +0000 Received: from AM5EUR02FT035.eop-EUR02.prod.protection.outlook.com (10.152.8.58) by AM5EUR02HT187.eop-EUR02.prod.protection.outlook.com (10.152.9.22) 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:03:14 +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:03:14 +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:03:14 +0000 From: Jonas Karlman To: "linux-rockchip@lists.infradead.org" Subject: [PATCHi 3/3] arm64: dts: rockchip: add ir-receiver node on rk3328-rock64 Thread-Topic: [PATCHi 3/3] arm64: dts: rockchip: add ir-receiver node on rk3328-rock64 Thread-Index: AQHU0RnSV41nMhS4dkaA96HAG2l7fQ== Date: Sat, 2 Mar 2019 17:03:14 +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: AM5PR04CA0011.eurprd04.prod.outlook.com (2603:10a6:206:1::24) To AM3PR03MB0966.eurprd03.prod.outlook.com (2a01:111:e400:884c::23) x-incomingtopheadermarker: OriginalChecksum:90CC59655BF4AC12BDE79A7BC8AD6A80D278E372D49882EB116904F51CBF40F2; UpperCasedChecksum:094575092B066C72A5C6703ECD90F54E8A235E6C80771144E3189F5A40DFFD35; SizeAsReceived:7834; Count:51 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [OeEbGXKAatZLcbLOL17bwcjSC84gHXwR] x-microsoft-original-message-id: <20190302170305.11065-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:AM5EUR02HT187; x-ms-traffictypediagnostic: AM5EUR02HT187: x-microsoft-antispam-message-info: RKekIZF/GCb6HL4hM/iNS00YAkTvWLvsehIQX/rZLbaRQOckKHPJQHVCV1s0yrp4 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: e223b9e2-3587-40bf-2c0f-08d69f30f50f X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2019 17:03:14.4938 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT187 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_090318_260340_36D487F6 X-CRM114-Status: GOOD ( 10.26 ) 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 ir-receiver node to enable on-board IR on Rock64. Signed-off-by: Jonas Karlman --- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts index c4031b7718fc..25d0f57254fb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts @@ -79,6 +79,13 @@ }; }; + ir-receiver { + compatible = "gpio-ir-receiver"; + gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&ir_int>; + pinctrl-names = "default"; + }; + sound { compatible = "audio-graph-card"; label = "rockchip,rk3328"; @@ -297,6 +304,12 @@ }; &pinctrl { + ir { + ir_int: ir-int { + rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;