From patchwork Wed Dec 14 15:54:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 33243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp307241wrn; Wed, 14 Dec 2022 08:00:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MhzvZZ2JXRoPMakAwPSvTWv7FHFK1IcikcZvj1n1soaCxW28+brWDbO1YdZLCIelWwkdR X-Received: by 2002:a05:6402:4006:b0:46c:d5e8:30e4 with SMTP id d6-20020a056402400600b0046cd5e830e4mr23780209eda.23.1671033657654; Wed, 14 Dec 2022 08:00:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671033657; cv=none; d=google.com; s=arc-20160816; b=USKXUDrkQycOPw5ZiZqAXn0Pxqrv8CrgtLDgOhUIeKcmUJJJSKWwjWDzuJeFH/r51W 8r4PzBbPMaxx6/ADWuHpfjGyUqGO42oZ1++NNQtTXOLCoRt/HxPrjjWVeQg7jGTX5+3y xsS311heikeYaxNm5pmfKpu/7yjouN3QmPRgNXfSVa0UTFG57cRXOHaVX9fCvWUeonm/ sj24svPOWfNZStqPslhSP+sxjqPnmCEi+jECXaV0waWAf666YzSoYDHxTWzHtbrg+FFG 7ZRTzKDTy7OH4NXJQjUekp9lp2Y93lhDh+wMAAC/aOdDSEHVQ5/g55PKEEbFZr1E1zKL vXvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JHabEsGCzp6neX/91Eo3uw+27IBRIbG6zMdrZJN0FiY=; b=CYGpq8J/PB/VTwQwHV4eZXWU7xu8pucKQgI8dnMUaDDseD9gm3DMCYcWSzKDO20J8T ba7X0+8n08HdqqUOeh+MMKrAR/ki0RDHFB/gqQ7SdVbPkbC6kCGrVf+isq7iuvr8dZcY XldqsyYn9xcXPSisPqMOP6KOUFmb2Coz/QohZOSlyhNLug7MyOlr+nWu24gdf7NYo4Tz z1eT0nAda9DH+UaGbAbxbg4y5eGv44Xy26mFY0UiBc4CnUK6cLSIZ4n9Mz4ulqqSAWjd 6XS5PoBSgisRI8piHNCk2Wg5VYXhMyJfeQBFB8FBpaPZ0qSKHvga7oYhr4MNgRG7VAuC MZRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=wXm+8GGy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020aa7ce0a000000b0046b5f81019fsi11710987edv.325.2022.12.14.08.00.25; Wed, 14 Dec 2022 08:00:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=wXm+8GGy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238316AbiLNP4l (ORCPT + 99 others); Wed, 14 Dec 2022 10:56:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238606AbiLNP4C (ORCPT ); Wed, 14 Dec 2022 10:56:02 -0500 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C10F627B22; Wed, 14 Dec 2022 07:54:41 -0800 (PST) Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout1.routing.net (Postfix) with ESMTP id DAB7F408C9; Wed, 14 Dec 2022 15:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1671033280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JHabEsGCzp6neX/91Eo3uw+27IBRIbG6zMdrZJN0FiY=; b=wXm+8GGyrvLBhaGhEDeCW6DxdJ6kTm/b8lyMIfsgtV4T7PCUwuYIz9B4lp1tSz5R1BKjjP tDDEWrZL0i2AoA0YZ27h39JKnOP+itg829Cw7lYgICnkX+tPUv9qgx7MM6FAxMINaMK7Mv 3qblT7wEZIQh3xcW5LvUnnMMYaVcFAs= Received: from frank-G5.. (fttx-pool-80.245.72.136.bambit.de [80.245.72.136]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id A85471226E7; Wed, 14 Dec 2022 15:54:39 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Alex Riabchenko , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Frank Wunderlich , Michael Riesch , Sebastian Reichel , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: Add IR receiver to BPI-R2Pro Date: Wed, 14 Dec 2022 16:54:33 +0100 Message-Id: <20221214155433.112257-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752205788458409812?= X-GMAIL-MSGID: =?utf-8?q?1752205788458409812?= From: Alex Riabchenko Add the infrared receiver and its associated pinctrl entry. Based on Aurelien Jarno's patchset: https://lore.kernel.org/lkml/20220930051246.391614-14-aurelien@aurel32.net/ Signed-off-by: Alex Riabchenko Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index 5701c96d31b1..6473756a69bf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -66,6 +66,13 @@ hdmi_con_in: endpoint { }; }; + ir-receiver { + compatible = "gpio-ir-receiver"; + gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&ir_receiver_pin>; + }; + vcc3v3_sys: vcc3v3-sys-regulator { compatible = "regulator-fixed"; regulator-name = "vcc3v3_sys"; @@ -655,6 +662,12 @@ hym8563_int: hym8563-int { }; }; + ir-receiver { + ir_receiver_pin: ir-receiver-pin { + rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pcie { minipcie_enable_h: minipcie-enable-h { rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none_drv_level_5>;