HDMI Support for Theobroma/Cherry rk3588 boards
Subsystems (2)
Heiko Stuebner
maintainerv2 cover HDMI Support for Theobroma/Cherry rk3588 boards
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(+)
Signature · 1 line
2.45.2
Heiko Stuebner
maintainerPATCH v2 1/3 arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM
From: Heiko Stuebner <[email protected]>
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.
--- arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi +6 -0
@@ -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>; };
Signature · 1 line
2.45.2
Re: [PATCH v2 1/3] arm64: dts: rockchip: add HDMI pinctrl to rk3588-tiger SoM
Hi Heiko,
Quoted 10 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
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 <[email protected]>
Thanks!
Quentin
Heiko Stuebner
maintainerPATCH v2 2/3 arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
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.
--- .../boot/dts/rockchip/rk3588-tiger-haikou.dts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+)
arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts +53 -0
@@ -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>; + }; +};
Signature · 1 line
2.45.2
Re: [PATCH v2 2/3] arm64: dts: rockchip: add HDMI support to rk3588-tiger-haikou
Hi Heiko,
Quoted 9 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
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 <[email protected]>
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:
Thanks!
Quentin
Heiko Stuebner
maintainerPATCH v2 3/3 arm64: dts: rockchip: add HDMI support to rk3588-jaguar
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
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.
--- .../arm64/boot/dts/rockchip/rk3588-jaguar.dts | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)
arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts +50 -0
@@ -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>; + }; +};
Signature · 1 line
2.45.2
Re: [PATCH v2 3/3] arm64: dts: rockchip: add HDMI support to rk3588-jaguar
Hi Heiko,
Quoted 9 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
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 <[email protected]>
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:
Thanks!
Quentin
Quoted 8 lines · Heiko Stuebner
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: 3cf1add5adf67641d7b0b85310819511f8fe6556Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>