From nobody Wed Sep 17 22:17:32 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B226C4332F for ; Wed, 14 Dec 2022 15:56:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238683AbiLNP4n (ORCPT ); Wed, 14 Dec 2022 10:56:43 -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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/arm6= 4/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 { }; }; =20 + ir-receiver { + compatible =3D "gpio-ir-receiver"; + gpios =3D <&gpio0 RK_PC2 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&ir_receiver_pin>; + }; + vcc3v3_sys: vcc3v3-sys-regulator { compatible =3D "regulator-fixed"; regulator-name =3D "vcc3v3_sys"; @@ -655,6 +662,12 @@ hym8563_int: hym8563-int { }; }; =20 + ir-receiver { + ir_receiver_pin: ir-receiver-pin { + rockchip,pins =3D <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pcie { minipcie_enable_h: minipcie-enable-h { rockchip,pins =3D <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none_drv_level_5>; --=20 2.34.1