* [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
@ 2024-10-24 13:32 Heiko Stuebner
2024-10-24 13:32 ` [PATCH 2/2] arm64: dts: rockchip: add HDMI support to rk3588-jaguar Heiko Stuebner
2024-10-24 13:46 ` [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Quentin Schulz
0 siblings, 2 replies; 3+ messages in thread
From: Heiko Stuebner @ 2024-10-24 13:32 UTC (permalink / raw)
To: heiko
Cc: quentin.schulz, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner@cherry.de>
The Haikou baseboard has an hdmi output port, which is connected
via the Q7 connector to the hdmi0 controller of the rk3588.
Add the necessary plumbing to enable it using the recently merged
hdmi-qp controller.
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
.../boot/dts/rockchip/rk3588-tiger-haikou.dts | 50 +++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
index e4b7a0a4444b..e3596341b816 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
@@ -5,6 +5,7 @@
/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include "rk3588-tiger.dtsi"
/ {
@@ -61,6 +62,17 @@ switch-lid-btn-n {
};
};
+ hdmi-con {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi_con_in: endpoint {
+ remote-endpoint = <&hdmi0_out_con>;
+ };
+ };
+ };
+
i2s3-sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
@@ -155,6 +167,29 @@ &gmac0 {
status = "okay";
};
+&hdmi0 {
+ /* No CEC on Haikou */
+ pinctrl-names = "default";
+ pinctrl-0 = <&hdmim0_tx0_hpd &hdmim1_tx0_scl &hdmim1_tx0_sda>;
+ status = "okay";
+};
+
+&hdmi0_in {
+ hdmi0_in_vp0: endpoint {
+ remote-endpoint = <&vp0_out_hdmi0>;
+ };
+};
+
+&hdmi0_out {
+ hdmi0_out_con: endpoint {
+ remote-endpoint = <&hdmi_con_in>;
+ };
+};
+
+&hdptxphy_hdmi0 {
+ status = "okay";
+};
+
&i2c1 {
status = "okay";
@@ -321,3 +356,18 @@ &usb_host1_xhci {
&usb_host2_xhci {
status = "okay";
};
+
+&vop {
+ status = "okay";
+};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi0_in_vp0>;
+ };
+};
--
2.45.2
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 2/2] arm64: dts: rockchip: add HDMI support to rk3588-jaguar
2024-10-24 13:32 [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Heiko Stuebner
@ 2024-10-24 13:32 ` Heiko Stuebner
2024-10-24 13:46 ` [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Quentin Schulz
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Stuebner @ 2024-10-24 13:32 UTC (permalink / raw)
To: heiko
Cc: quentin.schulz, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner@cherry.de>
The jaguar has an hdmi output port, which is connected
to the hdmi0 controller of the rk3588.
Add the necessary plumbing to enable it using the recently merged
hdmi-qp controller.
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
.../arm64/boot/dts/rockchip/rk3588-jaguar.dts | 50 +++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts
index e24da1a4331d..6a59887979ce 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts
@@ -8,6 +8,7 @@
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include <dt-bindings/usb/pd.h>
#include "rk3588.dtsi"
@@ -58,6 +59,17 @@ emmc_pwrseq: emmc-pwrseq {
reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
};
+ hdmi-con {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi_con_in: endpoint {
+ remote-endpoint = <&hdmi0_out_con>;
+ };
+ };
+ };
+
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -271,6 +283,29 @@ &gpu {
status = "okay";
};
+&hdmi0 {
+ /* No CEC on Jaguar */
+ pinctrl-names = "default";
+ pinctrl-0 = <&hdmim0_tx0_hpd &hdmim0_tx0_scl &hdmim0_tx0_sda>;
+ status = "okay";
+};
+
+&hdmi0_in {
+ hdmi0_in_vp0: endpoint {
+ remote-endpoint = <&vp0_out_hdmi0>;
+ };
+};
+
+&hdmi0_out {
+ hdmi0_out_con: endpoint {
+ remote-endpoint = <&hdmi_con_in>;
+ };
+};
+
+&hdptxphy_hdmi0 {
+ status = "okay";
+};
+
&i2c0 {
pinctrl-0 = <&i2c0m2_xfer>;
status = "okay";
@@ -1052,3 +1087,18 @@ &usb_host1_ehci {
&usb_host1_ohci {
status = "okay";
};
+
+&vop {
+ status = "okay";
+};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi0_in_vp0>;
+ };
+};
--
2.45.2
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
2024-10-24 13:32 [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Heiko Stuebner
2024-10-24 13:32 ` [PATCH 2/2] arm64: dts: rockchip: add HDMI support to rk3588-jaguar Heiko Stuebner
@ 2024-10-24 13:46 ` Quentin Schulz
1 sibling, 0 replies; 3+ messages in thread
From: Quentin Schulz @ 2024-10-24 13:46 UTC (permalink / raw)
To: Heiko Stuebner
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Heiko Stuebner
Hi Heiko,
On 10/24/24 3:32 PM, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@cherry.de>
>
> The Haikou baseboard has an hdmi output port, which is connected
> via the Q7 connector to the hdmi0 controller of the rk3588.
>
> Add the necessary plumbing to enable it using the recently merged
> hdmi-qp controller.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
> ---
> .../boot/dts/rockchip/rk3588-tiger-haikou.dts | 50 +++++++++++++++++++
> 1 file changed, 50 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
> index e4b7a0a4444b..e3596341b816 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
> @@ -5,6 +5,7 @@
>
> /dts-v1/;
> #include <dt-bindings/input/input.h>
> +#include <dt-bindings/soc/rockchip,vop2.h>
> #include "rk3588-tiger.dtsi"
>
> / {
> @@ -61,6 +62,17 @@ switch-lid-btn-n {
> };
> };
>
> + hdmi-con {
> + compatible = "hdmi-connector";
> + type = "a";
> +
> + port {
> + hdmi_con_in: endpoint {
> + remote-endpoint = <&hdmi0_out_con>;
> + };
> + };
> + };
> +
> i2s3-sound {
> compatible = "simple-audio-card";
> simple-audio-card,format = "i2s";
> @@ -155,6 +167,29 @@ &gmac0 {
> status = "okay";
> };
>
> +&hdmi0 {
> + /* No CEC on Haikou */
> + pinctrl-names = "default";
> + pinctrl-0 = <&hdmim0_tx0_hpd &hdmim1_tx0_scl &hdmim1_tx0_sda>;
The pinctrl for HDMI is fixed on Tiger so we should rather have this in
Tiger DTSI.
Why we have those defined in Haikou as well downstream is because we do
not have CEC routed on Haikou, but it is exposed by Tiger on Q7
connector, so basically, the point is the pinctrl-0 in Haikou is a
subset of the one in Tiger.
So please have the following in rk3588-tiger.dtsi as well:
pinctrl-0 = <&hdmim1_tx0_cec &hdmim0_tx0_hpd &hdmim1_tx0_scl
&hdmim1_tx0_sda>;
It'd be nice to have HDMI audio as well, but one thing after the other I
guess :)
> + status = "okay";
> +};
> +
> +&hdmi0_in {
BTW, I'm not very happy with this naming.
There is an HDMI-RX controller on RK3588 as well, which is routed on
Tiger, so this will be unnecessarily confusing: "which one REALLY is the
HDMI input".
Maybe hdmitx0_in would have made more sense. Anyway, I'm too late to the
party :)
Cheers,
Quentin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-24 13:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-24 13:32 [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Heiko Stuebner
2024-10-24 13:32 ` [PATCH 2/2] arm64: dts: rockchip: add HDMI support to rk3588-jaguar Heiko Stuebner
2024-10-24 13:46 ` [PATCH 1/2] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Quentin Schulz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®