* [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards
@ 2024-10-19 10:12 Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588 Cristian Ciocaltea
` (7 more replies)
0 siblings, 8 replies; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-19 10:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, FUKAUMI Naoki
Since the initial support for the RK3588 HDMI TX Controller [1] has been
merged as of next-20241018, let's enable the HDMI0 output port for the
following boards: Radxa ROCK 5A & 5B, Rockchip RK3588 EVB1 V10, Xunlong
Orange Pi 5+.
@Luis: Could you please verify this series still works as expected on
your Orange Pi device?
Thanks,
Cristian
[1]: https://lore.kernel.org/all/20241016-b4-rk3588-bridge-upstream-v10-0-87ef92a6d14e@collabora.com/
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
Changes in v2:
- Updated descriptions for rock-5a & rock-5b patches to include Radxa,
per Naoki's review; also collected his Tested-by on the latter
- Included Naoki's HPD pin related fix in rock-5a patch and dropped the
UNTESTED prefix from the subject
- Link to v1: https://lore.kernel.org/r/20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com
---
Cristian Ciocaltea (5):
arm64: dts: rockchip: Add HDMI0 node to rk3588
arm64: dts: rockchip: Enable HDMI0 on rock-5b
arm64: dts: rockchip: Enable HDMI0 on rk3588-evb1
arm64: dts: rockchip: Enable HDMI0 on orangepi-5-plus
arm64: dts: rockchip: Enable HDMI0 on rock-5a
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 41 +++++++++++++++++
arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts | 47 +++++++++++++++++++
.../boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 47 +++++++++++++++++++
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 47 +++++++++++++++++++
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 52 ++++++++++++++++++++++
5 files changed, 234 insertions(+)
---
base-commit: f2493655d2d3d5c6958ed996b043c821c23ae8d3
change-id: 20241018-rk3588-hdmi0-dt-1a135d0076af
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v2 1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
@ 2024-10-19 10:12 ` Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b Cristian Ciocaltea
` (6 subsequent siblings)
7 siblings, 0 replies; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-19 10:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel
Add support for the HDMI0 output port found on RK3588 SoC.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
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/boot/dts/rockchip/rk3588-base.dtsi
index fc67585b64b7baa33d5a816517f20c4cb940b52d..a337f3fb8377e4a3a200d4d3a3773a237de2bd6e 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 = "disabled";
};
+ hdmi0: hdmi@fde80000 {
+ compatible = "rockchip,rk3588-dw-hdmi-qp";
+ reg = <0x0 0xfde80000 0x0 0x20000>;
+ clocks = <&cru PCLK_HDMITX0>,
+ <&cru CLK_HDMITX0_EARC>,
+ <&cru CLK_HDMITX0_REF>,
+ <&cru MCLK_I2S5_8CH_TX>,
+ <&cru CLK_HDMIHDP0>,
+ <&cru HCLK_VO1>;
+ clock-names = "pclk", "earc", "ref", "aud", "hdp", "hclk_vo1";
+ interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH 0>;
+ interrupt-names = "avp", "cec", "earc", "main", "hpd";
+ phys = <&hdptxphy_hdmi0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&hdmim0_tx0_cec &hdmim0_tx0_hpd
+ &hdmim0_tx0_scl &hdmim0_tx0_sda>;
+ power-domains = <&power RK3588_PD_VO1>;
+ resets = <&cru SRST_HDMITX0_REF>, <&cru SRST_HDMIHDP0>;
+ reset-names = "ref", "hdp";
+ rockchip,grf = <&sys_grf>;
+ rockchip,vo-grf = <&vo1_grf>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hdmi0_in: port@0 {
+ reg = <0>;
+ };
+
+ hdmi0_out: port@1 {
+ reg = <1>;
+ };
+ };
+ };
+
qos_gpu_m0: qos@fdf35000 {
compatible = "rockchip,rk3588-qos", "syscon";
reg = <0x0 0xfdf35000 0x0 0x20>;
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588 Cristian Ciocaltea
@ 2024-10-19 10:12 ` Cristian Ciocaltea
2024-11-06 20:42 ` Link Mauve
2024-10-19 10:12 ` [PATCH v2 3/5] arm64: dts: rockchip: Enable HDMI0 on rk3588-evb1 Cristian Ciocaltea
` (5 subsequent siblings)
7 siblings, 1 reply; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-19 10:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, FUKAUMI Naoki
Add the necessary DT changes to enable HDMI0 on Radxa ROCK 5B.
Tested-by: FUKAUMI Naoki <naoki@radxa.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
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/boot/dts/rockchip/rk3588-rock-5b.dts
index d6fff5b86b87020f115ce64795aee90c002a2255..0c3baf74981b714eb2a1edbc3fbbb69cd688cfc2 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 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include "rk3588.dtsi"
/ {
@@ -37,6 +38,17 @@ analog-sound {
pinctrl-0 = <&hp_detect>;
};
+ hdmi0-con {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi0_con_in: endpoint {
+ remote-endpoint = <&hdmi0_out_con>;
+ };
+ };
+ };
+
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -192,6 +204,26 @@ &gpu {
status = "okay";
};
+&hdmi0 {
+ status = "okay";
+};
+
+&hdmi0_in {
+ hdmi0_in_vp0: endpoint {
+ remote-endpoint = <&vp0_out_hdmi0>;
+ };
+};
+
+&hdmi0_out {
+ hdmi0_out_con: endpoint {
+ remote-endpoint = <&hdmi0_con_in>;
+ };
+};
+
+&hdptxphy_hdmi0 {
+ status = "okay";
+};
+
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0m2_xfer>;
@@ -858,3 +890,18 @@ &usb_host1_xhci {
&usb_host2_xhci {
status = "okay";
};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vop {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi0_in_vp0>;
+ };
+};
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 3/5] arm64: dts: rockchip: Enable HDMI0 on rk3588-evb1
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588 Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b Cristian Ciocaltea
@ 2024-10-19 10:12 ` Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 4/5] arm64: dts: rockchip: Enable HDMI0 on orangepi-5-plus Cristian Ciocaltea
` (4 subsequent siblings)
7 siblings, 0 replies; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-19 10:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel
Add the necessary DT changes to enable HDMI0 on Rockchip RK3588 EVB1.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
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..863a73b0e3da73150d2874abc5762ab0c4c0ce63 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 <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include <dt-bindings/usb/pd.h>
#include "rk3588.dtsi"
@@ -120,6 +121,17 @@ backlight: backlight {
pwms = <&pwm2 0 25000 0>;
};
+ hdmi0-con {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi0_con_in: endpoint {
+ remote-endpoint = <&hdmi0_out_con>;
+ };
+ };
+ };
+
pcie20_avdd0v85: pcie20-avdd0v85-regulator {
compatible = "regulator-fixed";
regulator-name = "pcie20_avdd0v85";
@@ -300,6 +312,26 @@ &gpu {
status = "okay";
};
+&hdmi0 {
+ status = "okay";
+};
+
+&hdmi0_in {
+ hdmi0_in_vp0: endpoint {
+ remote-endpoint = <&vp0_out_hdmi0>;
+ };
+};
+
+&hdmi0_out {
+ hdmi0_out_con: endpoint {
+ remote-endpoint = <&hdmi0_con_in>;
+ };
+};
+
+&hdptxphy_hdmi0 {
+ status = "okay";
+};
+
&i2c2 {
status = "okay";
@@ -1256,3 +1288,18 @@ &usb_host1_xhci {
dr_mode = "host";
status = "okay";
};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vop {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi0_in_vp0>;
+ };
+};
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 4/5] arm64: dts: rockchip: Enable HDMI0 on orangepi-5-plus
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
` (2 preceding siblings ...)
2024-10-19 10:12 ` [PATCH v2 3/5] arm64: dts: rockchip: Enable HDMI0 on rk3588-evb1 Cristian Ciocaltea
@ 2024-10-19 10:12 ` Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a Cristian Ciocaltea
` (3 subsequent siblings)
7 siblings, 0 replies; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-19 10:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel
Add the necessary DT changes to enable HDMI0 on Orange Pi 5 Plus.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
.../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..9b1f985a32ebe73478d4318d5246aada78c08ffa 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 <dt-bindings/leds/common.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include <dt-bindings/usb/pd.h>
#include "rk3588.dtsi"
@@ -85,6 +86,17 @@ led {
};
};
+ hdmi0-con {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi0_con_in: endpoint {
+ remote-endpoint = <&hdmi0_out_con>;
+ };
+ };
+ };
+
fan: pwm-fan {
compatible = "pwm-fan";
cooling-levels = <0 70 75 80 100>;
@@ -263,6 +275,26 @@ &cpu_l3 {
cpu-supply = <&vdd_cpu_lit_s0>;
};
+&hdmi0 {
+ status = "okay";
+};
+
+&hdmi0_in {
+ hdmi0_in_vp0: endpoint {
+ remote-endpoint = <&vp0_out_hdmi0>;
+ };
+};
+
+&hdmi0_out {
+ hdmi0_out_con: endpoint {
+ remote-endpoint = <&hdmi0_con_in>;
+ };
+};
+
+&hdptxphy_hdmi0 {
+ status = "okay";
+};
+
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0m2_xfer>;
@@ -883,3 +915,18 @@ &usb_host1_ehci {
&usb_host1_ohci {
status = "okay";
};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vop {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi0_in_vp0>;
+ };
+};
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
` (3 preceding siblings ...)
2024-10-19 10:12 ` [PATCH v2 4/5] arm64: dts: rockchip: Enable HDMI0 on orangepi-5-plus Cristian Ciocaltea
@ 2024-10-19 10:12 ` Cristian Ciocaltea
2024-10-19 13:02 ` Jonas Karlman
2024-10-21 15:44 ` (subset) [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Heiko Stuebner
` (2 subsequent siblings)
7 siblings, 1 reply; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-19 10:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel
Add the necessary DT changes to enable HDMI0 on Radxa ROCK 5A.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 52 ++++++++++++++++++++++++
1 file changed, 52 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..2b141af5e709b0bc2193dbfb2327e6bc1fdaa502 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 <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include "rk3588s.dtsi"
/ {
@@ -35,6 +36,17 @@ chosen {
stdout-path = "serial2:1500000n8";
};
+ hdmi0-con {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi0_con_in: endpoint {
+ remote-endpoint = <&hdmi0_out_con>;
+ };
+ };
+ };
+
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -296,6 +308,31 @@ &gmac1_rgmii_clk
status = "okay";
};
+&hdmi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&hdmim0_tx0_cec
+ &hdmim1_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 = <&hdmi0_con_in>;
+ };
+};
+
+&hdptxphy_hdmi0 {
+ status = "okay";
+};
+
&mdio1 {
rgmii_phy1: ethernet-phy@1 {
/* RTL8211F */
@@ -788,3 +825,18 @@ &usb_host1_ohci {
&usb_host2_xhci {
status = "okay";
};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vop {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi0_in_vp0>;
+ };
+};
--
2.47.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a
2024-10-19 10:12 ` [PATCH v2 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a Cristian Ciocaltea
@ 2024-10-19 13:02 ` Jonas Karlman
2024-10-19 17:44 ` Cristian Ciocaltea
0 siblings, 1 reply; 14+ messages in thread
From: Jonas Karlman @ 2024-10-19 13:02 UTC (permalink / raw)
To: Cristian Ciocaltea
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD, kernel,
devicetree, linux-arm-kernel, linux-rockchip, linux-kernel
Hi Cristian,
On 2024-10-19 12:12, Cristian Ciocaltea wrote:
> Add the necessary DT changes to enable HDMI0 on Radxa ROCK 5A.
>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> ---
> arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 52 ++++++++++++++++++++++++
> 1 file changed, 52 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..2b141af5e709b0bc2193dbfb2327e6bc1fdaa502 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 <dt-bindings/gpio/gpio.h>
> #include <dt-bindings/leds/common.h>
> #include <dt-bindings/pinctrl/rockchip.h>
> +#include <dt-bindings/soc/rockchip,vop2.h>
> #include "rk3588s.dtsi"
>
> / {
> @@ -35,6 +36,17 @@ chosen {
> stdout-path = "serial2:1500000n8";
> };
>
> + hdmi0-con {
> + compatible = "hdmi-connector";
> + type = "a";
ROCK 5A use micro HDMI connector type, so this should be type = "d".
Regards,
Jonas
> +
> + port {
> + hdmi0_con_in: endpoint {
> + remote-endpoint = <&hdmi0_out_con>;
> + };
> + };
> + };
> +
[snip]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a
2024-10-19 13:02 ` Jonas Karlman
@ 2024-10-19 17:44 ` Cristian Ciocaltea
0 siblings, 0 replies; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-19 17:44 UTC (permalink / raw)
To: Jonas Karlman
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD, kernel,
devicetree, linux-arm-kernel, linux-rockchip, linux-kernel
Hi Jonas,
On 10/19/24 4:02 PM, Jonas Karlman wrote:
> Hi Cristian,
>
> On 2024-10-19 12:12, Cristian Ciocaltea wrote:
>> Add the necessary DT changes to enable HDMI0 on Radxa ROCK 5A.
>>
>> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
>> ---
>> arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 52 ++++++++++++++++++++++++
>> 1 file changed, 52 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..2b141af5e709b0bc2193dbfb2327e6bc1fdaa502 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 <dt-bindings/gpio/gpio.h>
>> #include <dt-bindings/leds/common.h>
>> #include <dt-bindings/pinctrl/rockchip.h>
>> +#include <dt-bindings/soc/rockchip,vop2.h>
>> #include "rk3588s.dtsi"
>>
>> / {
>> @@ -35,6 +36,17 @@ chosen {
>> stdout-path = "serial2:1500000n8";
>> };
>>
>> + hdmi0-con {
>> + compatible = "hdmi-connector";
>> + type = "a";
>
> ROCK 5A use micro HDMI connector type, so this should be type = "d".
Indeed, good catch, will fix in v3.
Thanks,
Cristian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: (subset) [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
` (4 preceding siblings ...)
2024-10-19 10:12 ` [PATCH v2 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a Cristian Ciocaltea
@ 2024-10-21 15:44 ` Heiko Stuebner
2024-10-21 17:12 ` Diederik de Haas
2024-10-22 16:29 ` Marcin Juszkiewicz
7 siblings, 0 replies; 14+ messages in thread
From: Heiko Stuebner @ 2024-10-21 15:44 UTC (permalink / raw)
To: Rob Herring, Alexandre ARNOUD, Krzysztof Kozlowski,
Sebastian Reichel, Luis de Arquer, Conor Dooley,
Cristian Ciocaltea
Cc: Heiko Stuebner, linux-rockchip, linux-arm-kernel, kernel,
devicetree, linux-kernel, FUKAUMI Naoki
On Sat, 19 Oct 2024 13:12:09 +0300, Cristian Ciocaltea wrote:
> Since the initial support for the RK3588 HDMI TX Controller [1] has been
> merged as of next-20241018, let's enable the HDMI0 output port for the
> following boards: Radxa ROCK 5A & 5B, Rockchip RK3588 EVB1 V10, Xunlong
> Orange Pi 5+.
>
> @Luis: Could you please verify this series still works as expected on
> your Orange Pi device?
>
> [...]
Applied, thanks!
[1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588
commit: 872c5aea392dc72ffe74eeab2b25864eadc12d23
[2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b
commit: 9dee4ce1c35129d9d1971cb840b6af84bc5cba4c
[3/5] arm64: dts: rockchip: Enable HDMI0 on rk3588-evb1
commit: c56ce5af882ffeb93d52560ad8c6199362698250
[4/5] arm64: dts: rockchip: Enable HDMI0 on orangepi-5-plus
commit: 76ba840373b9d064eeeab17798990662f5d5eac5
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
` (5 preceding siblings ...)
2024-10-21 15:44 ` (subset) [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Heiko Stuebner
@ 2024-10-21 17:12 ` Diederik de Haas
2024-10-22 16:29 ` Marcin Juszkiewicz
7 siblings, 0 replies; 14+ messages in thread
From: Diederik de Haas @ 2024-10-21 17:12 UTC (permalink / raw)
To: Cristian Ciocaltea, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiko Stuebner, Sebastian Reichel, Luis de Arquer,
Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, FUKAUMI Naoki
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]
On Sat Oct 19, 2024 at 12:12 PM CEST, Cristian Ciocaltea wrote:
> Since the initial support for the RK3588 HDMI TX Controller [1] has been
> merged as of next-20241018, let's enable the HDMI0 output port for the
> following boards: Radxa ROCK 5A & 5B, Rockchip RK3588 EVB1 V10, Xunlong
> Orange Pi 5+.
Would the DT changes be the same for the ROCK 5 ITX?
I don't have the board (yet), but apparently some bought it on my
'recommendation' (I only mentioned its existence) and it would be cool
if HDMI out would work for them too.
Cheers,
Diederik
> [1]: https://lore.kernel.org/all/20241016-b4-rk3588-bridge-upstream-v10-0-87ef92a6d14e@collabora.com/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
` (6 preceding siblings ...)
2024-10-21 17:12 ` Diederik de Haas
@ 2024-10-22 16:29 ` Marcin Juszkiewicz
2024-10-22 16:55 ` Cristian Ciocaltea
7 siblings, 1 reply; 14+ messages in thread
From: Marcin Juszkiewicz @ 2024-10-22 16:29 UTC (permalink / raw)
To: Cristian Ciocaltea, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiko Stuebner, Sebastian Reichel, Luis de Arquer,
Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, FUKAUMI Naoki
W dniu 19.10.2024 o 12:12, Cristian Ciocaltea pisze:
> Since the initial support for the RK3588 HDMI TX Controller [1] has been
> merged as of next-20241018, let's enable the HDMI0 output port for the
> following boards: Radxa ROCK 5A & 5B, Rockchip RK3588 EVB1 V10, Xunlong
> Orange Pi 5+.
I copied changes to FriendlyELEC NanoPC-T6 DT and booted 6.12-rc3 with
your changes on LTS variant of the board.
With my SBC monitor it complained about resolution (10.5" 1366x768px):
rockchip-drm display-subsystem: [drm] *ERROR* vp0 Cluster0-win0
actual_w[1366] not 4 pixel aligned
And monitor told me "no signal".
/sys/devices/platform/display-subsystem/drm/card1/card1-HDMI-A-1/modes
lists all resolutions available.
Would be nice to see system going to next EDID resolution in such case.
1280x720px is 4px aligned.
With my 34" 3440x1440px monitor it shown some output once. In resolution
close to original one but 16:9 instead of 21:9 one. Anyway monitor
behaved in "I do not like that signal" way - started blinking, had
problems with displaying even from my desktop after.
I got a feeling that 1920x1080px monitor landed on my "need to buy" list.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards
2024-10-22 16:29 ` Marcin Juszkiewicz
@ 2024-10-22 16:55 ` Cristian Ciocaltea
0 siblings, 0 replies; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-10-22 16:55 UTC (permalink / raw)
To: Marcin Juszkiewicz, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiko Stuebner, Sebastian Reichel, Luis de Arquer,
Alexandre ARNOUD
Cc: kernel, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, FUKAUMI Naoki
On 10/22/24 7:29 PM, Marcin Juszkiewicz wrote:
> W dniu 19.10.2024 o 12:12, Cristian Ciocaltea pisze:
>> Since the initial support for the RK3588 HDMI TX Controller [1] has been
>> merged as of next-20241018, let's enable the HDMI0 output port for the
>> following boards: Radxa ROCK 5A & 5B, Rockchip RK3588 EVB1 V10, Xunlong
>> Orange Pi 5+.
>
> I copied changes to FriendlyELEC NanoPC-T6 DT and booted 6.12-rc3 with
> your changes on LTS variant of the board.
>
> With my SBC monitor it complained about resolution (10.5" 1366x768px):
>
> rockchip-drm display-subsystem: [drm] *ERROR* vp0 Cluster0-win0
> actual_w[1366] not 4 pixel aligned
>
> And monitor told me "no signal".
>
> /sys/devices/platform/display-subsystem/drm/card1/card1-HDMI-A-1/modes
> lists all resolutions available.
>
> Would be nice to see system going to next EDID resolution in such case.
> 1280x720px is 4px aligned.
>
>
> With my 34" 3440x1440px monitor it shown some output once. In resolution
> close to original one but 16:9 instead of 21:9 one. Anyway monitor
> behaved in "I do not like that signal" way - started blinking, had
> problems with displaying even from my desktop after.
>
>
> I got a feeling that 1920x1080px monitor landed on my "need to buy" list.
I'd suggest giving [1] or [2] a try and see if it fixes your display
issues.
The VOP2 support for rk3588 in mainline is not able to properly handle all
display modes advertised by the connected displays. We have a workaround
and I'm currently working on an upstreamable solution.
[1] https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux
[2] https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux/-/tree/rk3588-hdmi-bridge-v6.12-rc2
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b
2024-10-19 10:12 ` [PATCH v2 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b Cristian Ciocaltea
@ 2024-11-06 20:42 ` Link Mauve
2024-11-06 21:26 ` Cristian Ciocaltea
0 siblings, 1 reply; 14+ messages in thread
From: Link Mauve @ 2024-11-06 20:42 UTC (permalink / raw)
To: Cristian Ciocaltea
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD, kernel,
devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
FUKAUMI Naoki
Hi,
I’ve tested this series on a Radxa Rock 5B using Weston, and thus
patches 1 and 2 are:
Tested-by: Link Mauve <linkmauve@linkmauve.fr>
On a TV which erroneously reports 1360×768 as its preferred mode,
nothing gets displayed. Only setting a 1920×1080 mode will display
things correctly, every other mode stays black.
Also, before starting Weston, drm_info reports Status: unknown, 0×0 mm,
no modes, and no EDID blob. After starting Weston all of these property
get loaded properly, aside from the physical size which gets set to the
obviously invalid 1600×900 mm.
The first start of Weston after reboot takes a total of 7.4s, which
seems very long just to (I believe) probe the screen and parse the EDID,
if that’s what the driver is doing. Subsequent launches complete in
about 400 ms, which is closer to my expectation.
Thanks a lot for this series!
On Sat, Oct 19, 2024 at 01:12:11PM +0300, Cristian Ciocaltea wrote:
> Add the necessary DT changes to enable HDMI0 on Radxa ROCK 5B.
>
> Tested-by: FUKAUMI Naoki <naoki@radxa.com>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> ---
> 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/boot/dts/rockchip/rk3588-rock-5b.dts
> index d6fff5b86b87020f115ce64795aee90c002a2255..0c3baf74981b714eb2a1edbc3fbbb69cd688cfc2 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 @@
>
> #include <dt-bindings/gpio/gpio.h>
> #include <dt-bindings/leds/common.h>
> +#include <dt-bindings/soc/rockchip,vop2.h>
> #include "rk3588.dtsi"
>
> / {
> @@ -37,6 +38,17 @@ analog-sound {
> pinctrl-0 = <&hp_detect>;
> };
>
> + hdmi0-con {
> + compatible = "hdmi-connector";
> + type = "a";
> +
> + port {
> + hdmi0_con_in: endpoint {
> + remote-endpoint = <&hdmi0_out_con>;
> + };
> + };
> + };
> +
> leds {
> compatible = "gpio-leds";
> pinctrl-names = "default";
> @@ -192,6 +204,26 @@ &gpu {
> status = "okay";
> };
>
> +&hdmi0 {
> + status = "okay";
> +};
> +
> +&hdmi0_in {
> + hdmi0_in_vp0: endpoint {
> + remote-endpoint = <&vp0_out_hdmi0>;
> + };
> +};
> +
> +&hdmi0_out {
> + hdmi0_out_con: endpoint {
> + remote-endpoint = <&hdmi0_con_in>;
> + };
> +};
> +
> +&hdptxphy_hdmi0 {
> + status = "okay";
> +};
> +
> &i2c0 {
> pinctrl-names = "default";
> pinctrl-0 = <&i2c0m2_xfer>;
> @@ -858,3 +890,18 @@ &usb_host1_xhci {
> &usb_host2_xhci {
> status = "okay";
> };
> +
> +&vop_mmu {
> + status = "okay";
> +};
> +
> +&vop {
> + status = "okay";
> +};
> +
> +&vp0 {
> + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
> + reg = <ROCKCHIP_VOP2_EP_HDMI0>;
> + remote-endpoint = <&hdmi0_in_vp0>;
> + };
> +};
>
> --
> 2.47.0
>
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
--
Link Mauve
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b
2024-11-06 20:42 ` Link Mauve
@ 2024-11-06 21:26 ` Cristian Ciocaltea
0 siblings, 0 replies; 14+ messages in thread
From: Cristian Ciocaltea @ 2024-11-06 21:26 UTC (permalink / raw)
To: Link Mauve
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
Sebastian Reichel, Luis de Arquer, Alexandre ARNOUD, kernel,
devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
FUKAUMI Naoki
On 11/6/24 10:42 PM, Link Mauve wrote:
> Hi,
>
> I’ve tested this series on a Radxa Rock 5B using Weston, and thus
> patches 1 and 2 are:
> Tested-by: Link Mauve <linkmauve@linkmauve.fr>
>
> On a TV which erroneously reports 1360×768 as its preferred mode,
> nothing gets displayed. Only setting a 1920×1080 mode will display
> things correctly, every other mode stays black.
I'd suggest to try the following patches from [1], they should improve the
display modes support:
94b5c31f969d ("[WIP] drm/rockchip: vop2: Improve display modes handling on rk3588")
c33c23053987 ("[WIP] arm64: dts: rockchip: Enable HDMI0 PHY clk provider on rk3588")
6059245635c0 ("[WIP] arm64: dts: rockchip: Make use of HDMI0 PHY PLL on rock-5b")
I'm currently cleaning this up and submit upstream when ready.
Thanks for testing,
Cristian
[1] https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux/-/commits/rk3588
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-11-06 21:28 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-19 10:12 [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588 Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 2/5] arm64: dts: rockchip: Enable HDMI0 on rock-5b Cristian Ciocaltea
2024-11-06 20:42 ` Link Mauve
2024-11-06 21:26 ` Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 3/5] arm64: dts: rockchip: Enable HDMI0 on rk3588-evb1 Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 4/5] arm64: dts: rockchip: Enable HDMI0 on orangepi-5-plus Cristian Ciocaltea
2024-10-19 10:12 ` [PATCH v2 5/5] arm64: dts: rockchip: Enable HDMI0 on rock-5a Cristian Ciocaltea
2024-10-19 13:02 ` Jonas Karlman
2024-10-19 17:44 ` Cristian Ciocaltea
2024-10-21 15:44 ` (subset) [PATCH v2 0/5] Enable HDMI0 on several RK3588 based boards Heiko Stuebner
2024-10-21 17:12 ` Diederik de Haas
2024-10-22 16:29 ` Marcin Juszkiewicz
2024-10-22 16:55 ` Cristian Ciocaltea
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).