* [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards
@ 2024-10-24 15:14 Heiko Stuebner
2024-10-24 15:14 ` [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM Heiko Stuebner
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Heiko Stuebner @ 2024-10-24 15:14 UTC (permalink / raw)
To: heiko
Cc: quentin.schulz, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel
This adds HDMI support for the Tiger and Jaguar boards.
Heiko Stuebner (3):
arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM
arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
arm64: dts: rockchip: add HDMI support to rk3588-jaguar
.../arm64/boot/dts/rockchip/rk3588-jaguar.dts | 50 +++++++++++++++++
.../boot/dts/rockchip/rk3588-tiger-haikou.dts | 53 +++++++++++++++++++
.../arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 6 +++
3 files changed, 109 insertions(+)
--
2.45.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM
2024-10-24 15:14 [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
@ 2024-10-24 15:14 ` Heiko Stuebner
2024-10-24 17:26 ` Quentin Schulz
2024-10-24 15:14 ` [PATCH v2 2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Heiko Stuebner
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Heiko Stuebner @ 2024-10-24 15:14 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 Tiger SoM routes all relevant HDMI pins to its Q7 connector.
Some from the M0 and some from the M1 set of pins.
Add the necessary pinctrl entry to the hdmi controller for the SoM.
Not all baseboards may use all pins, but even for them it'll serve
documentation purposes.
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi
index 615094bb8ba3..11c1cb27f9c3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi
@@ -152,6 +152,12 @@ &gpu {
status = "okay";
};
+&hdmi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&hdmim1_tx0_cec &hdmim0_tx0_hpd &hdmim1_tx0_scl
+ &hdmim1_tx0_sda>;
+};
+
&i2c1 {
pinctrl-0 = <&i2c1m0_xfer>;
};
--
2.45.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
2024-10-24 15:14 [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
2024-10-24 15:14 ` [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM Heiko Stuebner
@ 2024-10-24 15:14 ` Heiko Stuebner
2024-10-24 17:31 ` Quentin Schulz
2024-10-24 15:14 ` [PATCH v2 3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar Heiko Stuebner
2024-10-25 7:13 ` [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
3 siblings, 1 reply; 8+ messages in thread
From: Heiko Stuebner @ 2024-10-24 15:14 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 | 53 +++++++++++++++++++
1 file changed, 53 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..270d59a56037 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,32 @@ &gmac0 {
status = "okay";
};
+&hdmi0 {
+ /*
+ * While HDMI-CEC is present on the Q7 connector, it is not
+ * connected on Haikou itself.
+ */
+ 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 +359,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] 8+ messages in thread
* [PATCH v2 3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar
2024-10-24 15:14 [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
2024-10-24 15:14 ` [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM Heiko Stuebner
2024-10-24 15:14 ` [PATCH v2 2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Heiko Stuebner
@ 2024-10-24 15:14 ` Heiko Stuebner
2024-10-24 17:33 ` Quentin Schulz
2024-10-25 7:13 ` [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
3 siblings, 1 reply; 8+ messages in thread
From: Heiko Stuebner @ 2024-10-24 15:14 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] 8+ messages in thread
* Re: [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM
2024-10-24 15:14 ` [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM Heiko Stuebner
@ 2024-10-24 17:26 ` Quentin Schulz
0 siblings, 0 replies; 8+ messages in thread
From: Quentin Schulz @ 2024-10-24 17:26 UTC (permalink / raw)
To: Heiko Stuebner
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Heiko Stuebner
Hi Heiko,
On 10/24/24 5:14 PM, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@cherry.de>
>
> The Tiger SoM routes all relevant HDMI pins to its Q7 connector.
> Some from the M0 and some from the M1 set of pins.
>
> Add the necessary pinctrl entry to the hdmi controller for the SoM.
> Not all baseboards may use all pins, but even for them it'll serve
> documentation purposes.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Thanks!
Quentin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
2024-10-24 15:14 ` [PATCH v2 2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Heiko Stuebner
@ 2024-10-24 17:31 ` Quentin Schulz
0 siblings, 0 replies; 8+ messages in thread
From: Quentin Schulz @ 2024-10-24 17:31 UTC (permalink / raw)
To: Heiko Stuebner
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Heiko Stuebner
Hi Heiko,
On 10/24/24 5:14 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>
I have this Chinese portable HDMI display[1] which doesn't print
anything at boot but works with modetest. Same behavior can be observed
on downstream, maybe we can get some people interested in debugging this
now that it also impacts upstream :)
With a decent, FHD, monitor everything is fine so:
Tested-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Thanks!
Quentin
[1] https://www.amazon.de/dp/B0CKYR6FN5
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar
2024-10-24 15:14 ` [PATCH v2 3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar Heiko Stuebner
@ 2024-10-24 17:33 ` Quentin Schulz
0 siblings, 0 replies; 8+ messages in thread
From: Quentin Schulz @ 2024-10-24 17:33 UTC (permalink / raw)
To: Heiko Stuebner
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Heiko Stuebner
Hi Heiko,
On 10/24/24 5:14 PM, Heiko Stuebner wrote:
> 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>
I have this Chinese portable HDMI display[1] which doesn't print
anything at boot but works with modetest. Same behavior can be observed
on downstream, maybe we can get some people interested in debugging this
now that it also impacts upstream :)
With a decent, FHD, monitor everything is fine so:
Tested-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Thanks!
Quentin
[1] https://www.amazon.de/dp/B0CKYR6FN5
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards
2024-10-24 15:14 [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
` (2 preceding siblings ...)
2024-10-24 15:14 ` [PATCH v2 3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar Heiko Stuebner
@ 2024-10-25 7:13 ` Heiko Stuebner
3 siblings, 0 replies; 8+ messages in thread
From: Heiko Stuebner @ 2024-10-25 7:13 UTC (permalink / raw)
To: Heiko Stuebner
Cc: devicetree, quentin.schulz, linux-arm-kernel, linux-rockchip,
linux-kernel
On Thu, 24 Oct 2024 17:14:00 +0200, Heiko Stuebner wrote:
> This adds HDMI support for the Tiger and Jaguar boards.
>
> Heiko Stuebner (3):
> arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM
> arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
> arm64: dts: rockchip: add HDMI support to rk3588-jaguar
>
> [...]
Applied, thanks!
[1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM
commit: 16997a4aed061a369c51c698973ca6382cef3357
[2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
commit: 913eeb75a9aa6552a54befad18880b08c1ecd8bc
[3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar
commit: 3cf1add5adf67641d7b0b85310819511f8fe6556
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-10-25 7:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-24 15:14 [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
2024-10-24 15:14 ` [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM Heiko Stuebner
2024-10-24 17:26 ` Quentin Schulz
2024-10-24 15:14 ` [PATCH v2 2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou Heiko Stuebner
2024-10-24 17:31 ` Quentin Schulz
2024-10-24 15:14 ` [PATCH v2 3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar Heiko Stuebner
2024-10-24 17:33 ` Quentin Schulz
2024-10-25 7:13 ` [PATCH v2 0/3] HDMI Support for Theobroma/Cherry rk3588 boards Heiko Stuebner
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®