From nobody Tue Nov 26 08:41:10 2024 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 DF86C18D65C; Fri, 18 Oct 2024 21:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287625; cv=none; b=W/CUeQF2l7UtLedxzCfAW65IjTgZsiLrbiCiLNejLMvtY/z727mkjiWEv6kQOV8UljbL4e6FJQegeENPdgSeCC5w9L7N3TJdM6tEd0mh3qxMAGN4A2xS+dRVtW/5nrWOsbMfq7r6f+kK0K3pqVHmfbySK9KF508ClABvtowEVSU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287625; c=relaxed/simple; bh=shzTkSVeDAoYPdbpkz2nRxG6xjYT1Tvs40xs92JMLzM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rAb1+JxDIL07j9kbWIodX1lsjEtLPwj8LnvFTChjV86sC98/vjPgbSfBYNwUY2HsNPRRazBAfjaekzTbel4PTPd/ZlYKSbYGsS990lvxNgdBiQDTs5VakrYqjn0pxwoufI6S4LdGpe2krYbc/gRPIQ9OBimpcDKWu0Ivhvlm7sA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=HtDdSJYm; arc=none smtp.client-ip=148.251.105.195 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 (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="HtDdSJYm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1729287620; bh=shzTkSVeDAoYPdbpkz2nRxG6xjYT1Tvs40xs92JMLzM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HtDdSJYmu9zPXuzH7jfRr8/dPL6a9kKdttYn4Yjm/Dk/9FmkvbIYJOpXMfvgzAQGR DEgpnCTn9VpynTKE1YG7TmC+I4ty/EoX4OK12WdjxsyaHFuyGeNr8/7wJy9WgMyK9g 0VD7z/Fjpb06b1zSHV7YXW/vCRgedGpBI07p+AfXlG+APTuWPdugP6nlNCoM3BmJ9u +Cu7msuxhTzFaRCuR+F7XZrkCViaSjDkSB7oo4Wabf41bfeBlAH96iwF+Kq7q1DvmB KnMUKXrSPPoHOXrS42ArtN88CvwC2+DVqhNweLxoL+gts2ScAjF1iPCxs9XynlXpqB F1aJ6h3KW9Hjw== Received: from localhost (unknown [188.24.146.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id AFCA917E375C; Fri, 18 Oct 2024 23:40:20 +0200 (CEST) From: Cristian Ciocaltea Date: Sat, 19 Oct 2024 00:39:49 +0300 Subject: [PATCH 1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241019-rk3588-hdmi0-dt-v1-1-bd8f299feacd@collabora.com> References: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> In-Reply-To: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Luis de Arquer , Alexandre ARNOUD Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 Add support for the HDMI0 output port found on RK3588 SoC. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 41 +++++++++++++++++++++++= ++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boo= t/dts/rockchip/rk3588-base.dtsi index fc67585b64b7baa33d5a816517f20c4cb940b52d..a337f3fb8377e4a3a200d4d3a37= 73a237de2bd6e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi @@ -1370,6 +1370,47 @@ i2s9_8ch: i2s@fddfc000 { status =3D "disabled"; }; =20 + hdmi0: hdmi@fde80000 { + compatible =3D "rockchip,rk3588-dw-hdmi-qp"; + reg =3D <0x0 0xfde80000 0x0 0x20000>; + clocks =3D <&cru PCLK_HDMITX0>, + <&cru CLK_HDMITX0_EARC>, + <&cru CLK_HDMITX0_REF>, + <&cru MCLK_I2S5_8CH_TX>, + <&cru CLK_HDMIHDP0>, + <&cru HCLK_VO1>; + clock-names =3D "pclk", "earc", "ref", "aud", "hdp", "hclk_vo1"; + interrupts =3D , + , + , + , + ; + interrupt-names =3D "avp", "cec", "earc", "main", "hpd"; + phys =3D <&hdptxphy_hdmi0>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&hdmim0_tx0_cec &hdmim0_tx0_hpd + &hdmim0_tx0_scl &hdmim0_tx0_sda>; + power-domains =3D <&power RK3588_PD_VO1>; + resets =3D <&cru SRST_HDMITX0_REF>, <&cru SRST_HDMIHDP0>; + reset-names =3D "ref", "hdp"; + rockchip,grf =3D <&sys_grf>; + rockchip,vo-grf =3D <&vo1_grf>; + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + hdmi0_in: port@0 { + reg =3D <0>; + }; + + hdmi0_out: port@1 { + reg =3D <1>; + }; + }; + }; + qos_gpu_m0: qos@fdf35000 { compatible =3D "rockchip,rk3588-qos", "syscon"; reg =3D <0x0 0xfdf35000 0x0 0x20>; --=20 2.47.0 From nobody Tue Nov 26 08:41:10 2024 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 8650D18E352; Fri, 18 Oct 2024 21:40:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287625; cv=none; b=aAbfAEDXNDc50C3oSwUGpimKP6I/nkL6RWuhWPgV3A0GYwwRZUkfdLyAcTPgGgfw6pKTMET4Ph0a4omb/vI6SaGpyhrOUnSke1/E9/G3xTvRXZh9lukt+yg0LZdxM9JkPQ1JjBLML2BrW5QhnOrmN0fjDz/509prKYBd+hT1Hio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287625; c=relaxed/simple; bh=cJF5Xn14Iajp/Nofss8kI/ABjJvgBiVISPtXNf5u3E0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r6c26kfHWD3YK24rYvMFHAg/QLkX1SAQZf+j8ABE74gnu/fMnCxPV2kNt1CHOdtdMEFnYNwmPolLC1VcDk4w0YnQm6BQUbo8rwyFGWoFipszz6hnzKmUVC+gdGKKxkmh3EHZ7zBZe6qN/biT/+cWTHTuOuu5eEtut6Tw9kbt8JA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=ZA6rIIt7; arc=none smtp.client-ip=148.251.105.195 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 (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ZA6rIIt7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1729287621; bh=cJF5Xn14Iajp/Nofss8kI/ABjJvgBiVISPtXNf5u3E0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZA6rIIt7nmyFRIiV2jIfdaU4cVEP5tCguP/ohu4Y/10MsrJOxVh+d1kasTM1r6lmF DOQfl47sN6IDmZfOLJLnUjSu1HkfkJah4y/ADdKrHgqc7H2v0dr4MEgE02M1LloSmY nC0vE3sYJjYcVyVm1jp9KJ6ptbDnEPWwrdYvF0xbfc+1BqmlGNO/E1H4MvvUpCsduz zNtWwoV5ZYrBpvQhqx/L83UBXjsV4mhEHiwA9vPdlZUhYETOJEtaKj3k+oZgzXWaws ibfLR87TODOCHHbP5h1DzD0x6EeieuhbLFidIIjlaHiI6Du4i4QbxuVE/Sr1Sfq+Z9 zKjyrcAGqDq2Q== Received: from localhost (unknown [188.24.146.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id A0E4117E375E; Fri, 18 Oct 2024 23:40:21 +0200 (CEST) From: Cristian Ciocaltea Date: Sat, 19 Oct 2024 00:39:50 +0300 Subject: [PATCH 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241019-rk3588-hdmi0-dt-v1-2-bd8f299feacd@collabora.com> References: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> In-Reply-To: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Luis de Arquer , Alexandre ARNOUD Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 Add the necessary DT changes to enable HDMI0 on Rock 5B. Signed-off-by: Cristian Ciocaltea Tested-by: FUKAUMI Naoki --- arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 47 +++++++++++++++++++++= ++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/b= oot/dts/rockchip/rk3588-rock-5b.dts index d6fff5b86b87020f115ce64795aee90c002a2255..0c3baf74981b714eb2a1edbc3fb= bb69cd688cfc2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -4,6 +4,7 @@ =20 #include #include +#include #include "rk3588.dtsi" =20 / { @@ -37,6 +38,17 @@ analog-sound { pinctrl-0 =3D <&hp_detect>; }; =20 + hdmi0-con { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint =3D <&hdmi0_out_con>; + }; + }; + }; + leds { compatible =3D "gpio-leds"; pinctrl-names =3D "default"; @@ -192,6 +204,26 @@ &gpu { status =3D "okay"; }; =20 +&hdmi0 { + status =3D "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint =3D <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status =3D "okay"; +}; + &i2c0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0m2_xfer>; @@ -858,3 +890,18 @@ &usb_host1_xhci { &usb_host2_xhci { status =3D "okay"; }; + +&vop_mmu { + status =3D "okay"; +}; + +&vop { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi0_in_vp0>; + }; +}; --=20 2.47.0 From nobody Tue Nov 26 08:41:10 2024 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 6153118D640; Fri, 18 Oct 2024 21:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287626; cv=none; b=l7i9drJreW7u4DGYpHYlTXj4YVqJCmTD/MynHCuNbxLgad8zOltKu/aAx5o8XBNvdD5voh7v6KPVK9faLWNbldaefYRZm5Gs/16/GE5/p0b0sxyyF478wdsONRL0w2xrJkZBeoh7PQuhdYryUVnb7oN+u6+uzdh5I2VUymh6muA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287626; c=relaxed/simple; bh=dcAzLYdeTArkjRaoR6EOKg0UQYPSvk1zvu+tq9qsMAc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QnAOnWaqU82D4p5w5H7jbRLK1Ee+Xs3alobxnOfsFrBBH/GsnrZISwLdRMlTQmRYmFAnZRq5kAkQRzcWYnP4o9wDdEpT6UoJFI3ILQqIfImRXF3veHiq67GNMl8gIM2VSTG1pSHglw8ChnEvYrsk+F6c4EJkqqYfICuTU4R4nRg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=fdxaEPPs; arc=none smtp.client-ip=148.251.105.195 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 (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="fdxaEPPs" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1729287622; bh=dcAzLYdeTArkjRaoR6EOKg0UQYPSvk1zvu+tq9qsMAc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=fdxaEPPsZ0cZbzcOismxEHksc24MU+GjT4/pQZMYTja2rK4PJoU17XkhsMDrm2GQS GOIhDBJgVzTy3CSNa0rymHNl3xzGEBmsyKSbgwuNVTtJEkUgj/dhShaP2c3QTIzvyb y2OrCv3kxX6Wsih8tuMLAPgdIbyEUGCSJQMD9lp2PqDMceyrbMthcqmlx6dDBRIuI1 JKHvvA9omTKNhpXdxyA1l4jijNeFx2zCEVmrUXKEFjhpYcyvkAZqRR7uuI+LkZrA0H 1/vcf/AA0s4vuymnT5qR3wG71eksEKUabvoyAw8Q2pnL8RhwQTRtPHD8cPbnh+0CnO l7wcLByO3TVLw== Received: from localhost (unknown [188.24.146.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 767C817E3761; Fri, 18 Oct 2024 23:40:22 +0200 (CEST) From: Cristian Ciocaltea Date: Sat, 19 Oct 2024 00:39:51 +0300 Subject: [PATCH 3/5] arm64: dts: rockchip: Enable HDMI0 on rk3588-evb1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241019-rk3588-hdmi0-dt-v1-3-bd8f299feacd@collabora.com> References: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> In-Reply-To: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Luis de Arquer , Alexandre ARNOUD Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 Add the necessary DT changes to enable HDMI0 on Rockchip RK3588 EVB1. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts | 47 ++++++++++++++++++++= ++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts b/arch/arm64/= boot/dts/rockchip/rk3588-evb1-v10.dts index df44dbc394ca54fac61664fc3c647cf8e1189dff..863a73b0e3da73150d2874abc57= 62ab0c4c0ce63 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "rk3588.dtsi" =20 @@ -120,6 +121,17 @@ backlight: backlight { pwms =3D <&pwm2 0 25000 0>; }; =20 + hdmi0-con { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint =3D <&hdmi0_out_con>; + }; + }; + }; + pcie20_avdd0v85: pcie20-avdd0v85-regulator { compatible =3D "regulator-fixed"; regulator-name =3D "pcie20_avdd0v85"; @@ -300,6 +312,26 @@ &gpu { status =3D "okay"; }; =20 +&hdmi0 { + status =3D "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint =3D <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status =3D "okay"; +}; + &i2c2 { status =3D "okay"; =20 @@ -1256,3 +1288,18 @@ &usb_host1_xhci { dr_mode =3D "host"; status =3D "okay"; }; + +&vop_mmu { + status =3D "okay"; +}; + +&vop { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi0_in_vp0>; + }; +}; --=20 2.47.0 From nobody Tue Nov 26 08:41:10 2024 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 2B72219004E; Fri, 18 Oct 2024 21:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287627; cv=none; b=Wlm6XWXMN5zcvdvVf4H3vxgtfbBN88bfsrsL7pDfj8r+csWPbOGGnNHeRMIHKM3FlTVvdOBVEF6HTWX9Vuv6wPUeqVR5AsUheNk7mvH0sT1V7mfKEy/76elG23ULOPScjhaKa2mRUIoI5k0+2OTDFC2COgtoIgaKJB+DCRLnVQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287627; c=relaxed/simple; bh=Jr41L06cJhaViYFmP0B+b+cWwpUnFddqeq9b14cNNXc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nVLRmGhi7hcMcBOW5AJuKmUAvGPiLvCkAylA9WgNluhXlO0u6GaWUNAP5jqRJtvYlv0/a1MCu3eZKrm4zBaEIFhezIdamo6G5YUHEMsC1dEMBDz2+FasiIwI66MlPdoip114gmSJs5c5gjWQIKVOrYyt1x3k1+vnE803aVKn0Wo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=S8+CYsaN; arc=none smtp.client-ip=148.251.105.195 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 (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="S8+CYsaN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1729287623; bh=Jr41L06cJhaViYFmP0B+b+cWwpUnFddqeq9b14cNNXc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=S8+CYsaNvWg/8oM5l8TiHg2+L0tUOQ5F+Ie2KbojtBwBr1rDzQJOHhh9CBp7bPoJ8 5eFB+hkripTfdshvfqpohHz0fOoqfA6Wxi23/2h80mAWOrYo1IgsbR29LIlgtsSNXU PjAEkC4jAP2vcOHB3JYZ7WfUnApqDt2vcJgLt8Ea6ZDX2ama+gePvRzYzRsmlcXN3L wEf+ACYpVNO59/GcwS2uICJiVVgOti6iHhZKIKGSV4sXX2KoguUJ1AmEmKxQuu/dpX w0HYrdHElE4tjDlkKnrLkEw8iv4nrHKy+w5Oq0ol0KVHhnlJq2iTQRhCreIvuY1ADo 0B6kdLuepMpnQ== Received: from localhost (unknown [188.24.146.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 3CBD117E3762; Fri, 18 Oct 2024 23:40:23 +0200 (CEST) From: Cristian Ciocaltea Date: Sat, 19 Oct 2024 00:39:52 +0300 Subject: [PATCH 4/5] arm64: dts: rockchip: Enable HDMI0 on orangepi-5-plus Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241019-rk3588-hdmi0-dt-v1-4-bd8f299feacd@collabora.com> References: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> In-Reply-To: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Luis de Arquer , Alexandre ARNOUD Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 Add the necessary DT changes to enable HDMI0 on Orange Pi 5 Plus. Signed-off-by: Cristian Ciocaltea --- .../boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 47 ++++++++++++++++++= ++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts b/arch= /arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts index c73fecf1c73c94944bb25e1243d5390b84241338..9b1f985a32ebe73478d4318d524= 6aada78c08ffa 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "rk3588.dtsi" =20 @@ -85,6 +86,17 @@ led { }; }; =20 + hdmi0-con { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint =3D <&hdmi0_out_con>; + }; + }; + }; + fan: pwm-fan { compatible =3D "pwm-fan"; cooling-levels =3D <0 70 75 80 100>; @@ -263,6 +275,26 @@ &cpu_l3 { cpu-supply =3D <&vdd_cpu_lit_s0>; }; =20 +&hdmi0 { + status =3D "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint =3D <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status =3D "okay"; +}; + &i2c0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0m2_xfer>; @@ -883,3 +915,18 @@ &usb_host1_ehci { &usb_host1_ohci { status =3D "okay"; }; + +&vop_mmu { + status =3D "okay"; +}; + +&vop { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi0_in_vp0>; + }; +}; --=20 2.47.0 From nobody Tue Nov 26 08:41:10 2024 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 2F801190664; Fri, 18 Oct 2024 21:40:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287628; cv=none; b=daxNNWWDDOBqCvEpNDaiiwlbKm2Nz/nQ9G4OTB598EhWeOLcUqzU8T43wRUu/6SASU4Ge+OZ3Eb8cFjBILAVcceqjWcY66ZdjB6sKH+TqZCnqaPXxeX+n4Ntk+9RpmL6gFc/ujRkz7fg+or2IvaeoevDdmHx1LiFYLNcq9KD7M4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729287628; c=relaxed/simple; bh=7X4VXD2CoeN6HcEiAGY/FCKJsj9HVJI36AIU9sGDip4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FZ6qdZ2a9rHL0wrjqIs+KAPtjWtUx99fjBZbzauBqA2I6gDbi9GszZ6W7crVUaG7AlLhTI05GR3WLMCxbxNaD22TXv8jfTyVXE1tochUMfMhrX63DC7uXaqkziCMwAtPnZG6bMWgGmGjyos3WJL7nL2+t9Ojxmbiha/9p2EW1q8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=CdIJ5Awg; arc=none smtp.client-ip=148.251.105.195 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 (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="CdIJ5Awg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1729287624; bh=7X4VXD2CoeN6HcEiAGY/FCKJsj9HVJI36AIU9sGDip4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CdIJ5Awghbn08lGkdq2mbYjQs/GQHnM3FkM1Lv1XQQO6+wAep8vvW/1gNG6rZW971 4QUdKX6J13FSGYRwYPMV+UkbgCy3ZIx88gG8ErG5tfVDuPkig3UocnlYjwuTYXLifR tOeiGy9OyU5LWqnuqwxBKiQr2ndFgJhLUB97eVlTpIHt9CbY5NT0dpOFh/TKy8ojyQ rvuZMy1Eq9cLGwANcQikIoLHc1M1YYRm6o5cr66gPVbYQBM1hOmnXCHUe6uoyKKHo+ GtIAKZg3ZvnxDmRZn1QNCAMjpkfLuq6h6I+06P605S34oNgQHQZ3WuNl8Iy4KlGf4+ tl6nGbgIxcc5Q== Received: from localhost (unknown [188.24.146.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 058F617E3763; Fri, 18 Oct 2024 23:40:23 +0200 (CEST) From: Cristian Ciocaltea Date: Sat, 19 Oct 2024 00:39:53 +0300 Subject: [PATCH UNTESTED 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241019-rk3588-hdmi0-dt-v1-5-bd8f299feacd@collabora.com> References: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> In-Reply-To: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Luis de Arquer , Alexandre ARNOUD Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 Add the necessary DT changes to enable HDMI0 on Rock 5A. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 47 ++++++++++++++++++++= ++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/= boot/dts/rockchip/rk3588s-rock-5a.dts index 87fce8d9a964cd53d179ce214ae1c0ff505a2dce..1fd122250b0c70e729b7a2239ab= 5f288a6387a70 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -5,6 +5,7 @@ #include #include #include +#include #include "rk3588s.dtsi" =20 / { @@ -35,6 +36,17 @@ chosen { stdout-path =3D "serial2:1500000n8"; }; =20 + hdmi0-con { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint =3D <&hdmi0_out_con>; + }; + }; + }; + leds { compatible =3D "gpio-leds"; pinctrl-names =3D "default"; @@ -296,6 +308,26 @@ &gmac1_rgmii_clk status =3D "okay"; }; =20 +&hdmi0 { + status =3D "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint =3D <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status =3D "okay"; +}; + &mdio1 { rgmii_phy1: ethernet-phy@1 { /* RTL8211F */ @@ -788,3 +820,18 @@ &usb_host1_ohci { &usb_host2_xhci { status =3D "okay"; }; + +&vop_mmu { + status =3D "okay"; +}; + +&vop { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi0_in_vp0>; + }; +}; --=20 2.47.0