From patchwork Wed Feb 26 09:49:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 13991900 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D612224E007; Wed, 26 Feb 2025 09:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740563478; cv=pass; b=Ma9g2OnhuPXVTfwJnwvn+s7wog9i6FWsCX4ddR+newQ7XIRLskFTYusSPpnstLirc5osp2BYXxiYAWGxsD+TDEl2kE/bOoFt9qshWPcYQjLlzfanZgrnOd8k5PUFC1QNQ0HW4Whfi5Pr+eWsi0Nqb/oM4Iv5XbDCYgXoDQ3AX/Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740563478; c=relaxed/simple; bh=Tzln5mfY2+RK5itMGZHBVwz8YCtbE9sO6UpTnDQrDdY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FvndVAHtEIYAdHg4xrefib/8s41UF7/FhraTVCTOerua7VoL703qslcNFxoVKidINIH5Iu98FzsEpDwGdkTsxvAf0M0ncnn4m4r07F0Cf+ntwMy1rd/Fpkav+vf1Itb9mVHHNrzkMtBQbp/Z06keNiU2mUO5a1UDJvGzHAy+4zc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=dmitry.osipenko@collabora.com header.b=auVSCfii; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=dmitry.osipenko@collabora.com header.b="auVSCfii" ARC-Seal: i=1; a=rsa-sha256; t=1740563435; cv=none; d=zohomail.com; s=zohoarc; b=XB/MDtwIJnYE6bdSvnp/4nOWgdl2Sw3eUkF2CUEnKaodpjar0O3j4KakylN96YnFhCO2e1Nq4xCwbztcmB2IySZ2vj1uN8A7cTtG44dSE9jbpexczjVa86NEOpHzGxEYiZytg2YzzIKuuY5VU42Eqpmc4mS+y4BsTg9MA+oWrOg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1740563435; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=/JMA7VJYsngtKi9ltZZXsV2uv0aQI0PgrBwadMgnHyg=; b=QZuvR+5tpHyck1RXf9hH0fUx5qCZcXsZULYsAwZfOnPxG4jet08xeR9Pr+hCvmwLwopOAiCQxADTMMYesQLW8bVHZ++xyUJeQLRYK7ntKYaypNZFCBKEMBRNYNA9qIi6yICdsHCwlSSE0dYsf6zSUM7SbbLzHxMzivrayslIk0E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=dmitry.osipenko@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1740563435; s=zohomail; d=collabora.com; i=dmitry.osipenko@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=/JMA7VJYsngtKi9ltZZXsV2uv0aQI0PgrBwadMgnHyg=; b=auVSCfiiCjtOpIhC0tA6uKo2ohz2XMRTaaCM9LCuxBexDXFDfq7GccpX3deyG+Yi bwtk63I96JiItxZaQjTUu3E3s+1ST6K1txB5GrIoSRplBB5XAEWcKO5Ne+nSIEvTVfz ywH/YngqLoZ1q2T0+Pzdj3PaNYW90sxqOsnSHUro= Received: by mx.zohomail.com with SMTPS id 1740563433929106.9367271611734; Wed, 26 Feb 2025 01:50:33 -0800 (PST) From: Dmitry Osipenko To: Shreeya Patel , Heiko Stuebner , Mauro Carvalho Chehab , Hans Verkuil , Rob Herring , Krzysztof Kozlowski , Conor Dooley , jose.abreu@synopsys.com, nelson.costa@synopsys.com, shawn.wen@rock-chips.com, nicolas.dufresne@collabora.com, Sebastian Reichel Cc: kernel@collabora.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Tim Surber , Christophe JAILLET Subject: [PATCH v11 5/6] arm64: dts: rockchip: Enable HDMI receiver on rock-5b Date: Wed, 26 Feb 2025 12:49:45 +0300 Message-ID: <20250226094946.665963-6-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250226094946.665963-1-dmitry.osipenko@collabora.com> References: <20250226094946.665963-1-dmitry.osipenko@collabora.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ZohoMailClient: External From: Sebastian Reichel The Rock 5B has a Micro HDMI port, which can be used for receiving HDMI data. This enables support for it. Signed-off-by: Sebastian Reichel Signed-off-by: Shreeya Patel Signed-off-by: Dmitry Osipenko --- .../arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index d597112f1d5b..377824e69e20 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -220,6 +220,18 @@ hdmi0_out_con: endpoint { }; }; +&hdmi_receiver_cma { + status = "okay"; +}; + +&hdmi_receiver { + status = "okay"; + hpd-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&hdmim1_rx_cec &hdmim1_rx_hpdin &hdmim1_rx_scl &hdmim1_rx_sda &hdmirx_hpd>; + pinctrl-names = "default"; + memory-region = <&hdmi_receiver_cma>; +}; + &hdptxphy_hdmi0 { status = "okay"; }; @@ -377,6 +389,12 @@ &pcie3x4 { }; &pinctrl { + hdmirx { + hdmirx_hpd: hdmirx-5v-detection { + rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + hym8563 { hym8563_int: hym8563-int { rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;