* [PATCH v3 0/3] Add display subsystem dt node on rk3576
@ 2024-12-31 9:57 Andy Yan
2024-12-31 9:57 ` [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576 Andy Yan
` (4 more replies)
0 siblings, 5 replies; 11+ messages in thread
From: Andy Yan @ 2024-12-31 9:57 UTC (permalink / raw)
To: heiko
Cc: detlev.casanova, krzk+dt, robh, devicetree, linux-arm-kernel,
linux-kernel, linux-rockchip, Andy Yan
From: Andy Yan <andy.yan@rock-chips.com>
As the VOP[0] and HDMI[1] driver have already been submitted for review.
This series enable hdmi display on sige5 board.
[0] https://lore.kernel.org/linux-rockchip/20241231090802.251787-1-andyshrk@163.com/T/#t
[1] https://lore.kernel.org/linux-rockchip/20241231094425.253398-1-andyshrk@163.com/T/#t
Changes in v3:
- Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
Andy Yan (3):
arm64: dts: rockchip: Add vop for rk3576
arm64: dts: rockchip: Add hdmi for rk3576
arm64: dts: rockchip: Enable hdmi display on sige5
.../boot/dts/rockchip/rk3576-armsom-sige5.dts | 47 +++++++
arch/arm64/boot/dts/rockchip/rk3576.dtsi | 126 ++++++++++++++++++
2 files changed, 173 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576
2024-12-31 9:57 [PATCH v3 0/3] Add display subsystem dt node on rk3576 Andy Yan
@ 2024-12-31 9:57 ` Andy Yan
2025-03-04 17:15 ` Detlev Casanova
2024-12-31 9:57 ` [PATCH v3 2/3] arm64: dts: rockchip: Add hdmi " Andy Yan
` (3 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Andy Yan @ 2024-12-31 9:57 UTC (permalink / raw)
To: heiko
Cc: detlev.casanova, krzk+dt, robh, devicetree, linux-arm-kernel,
linux-kernel, linux-rockchip, Andy Yan
From: Andy Yan <andy.yan@rock-chips.com>
Add VOP and VOP_MMU found on rk3576.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---
Changes in v3:
- Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
arch/arm64/boot/dts/rockchip/rk3576.dtsi | 68 ++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
index 436232ffe4d1..130d11a2cc89 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
@@ -393,6 +393,11 @@ opp-950000000 {
};
};
+ display_subsystem: display-subsystem {
+ compatible = "rockchip,display-subsystem";
+ ports = <&vop_out>;
+ };
+
firmware {
scmi: scmi {
compatible = "arm,scmi-smc";
@@ -826,6 +831,69 @@ gpu: gpu@27800000 {
status = "disabled";
};
+ vop: vop@27d00000 {
+ compatible = "rockchip,rk3576-vop";
+ reg = <0x0 0x27d00000 0x0 0x3000>, <0x0 0x27d05000 0x0 0x1000>;
+ reg-names = "vop", "gamma-lut";
+ interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 379 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 380 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 381 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "vop-sys",
+ "vop-vp0",
+ "vop-vp1",
+ "vop-vp2";
+ clocks = <&cru ACLK_VOP>,
+ <&cru HCLK_VOP>,
+ <&cru DCLK_VP0>,
+ <&cru DCLK_VP1>,
+ <&cru DCLK_VP2>;
+ clock-names = "aclk",
+ "hclk",
+ "dclk_vp0",
+ "dclk_vp1",
+ "dclk_vp2";
+ iommus = <&vop_mmu>;
+ power-domains = <&power RK3576_PD_VOP>;
+ rockchip,grf = <&sys_grf>;
+ rockchip,pmu = <&pmu>;
+ status = "disabled";
+
+ vop_out: ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ vp0: port@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0>;
+ };
+
+ vp1: port@1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <1>;
+ };
+
+ vp2: port@2 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <2>;
+ };
+ };
+ };
+
+ vop_mmu: iommu@27d07e00 {
+ compatible = "rockchip,rk3576-iommu", "rockchip,rk3568-iommu";
+ reg = <0x0 0x27d07e00 0x0 0x100>, <0x0 0x27d07f00 0x0 0x100>;
+ interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
+ clock-names = "aclk", "iface";
+ #iommu-cells = <0>;
+ power-domains = <&power RK3576_PD_VOP>;
+ status = "disabled";
+ };
+
qos_hdcp1: qos@27f02000 {
compatible = "rockchip,rk3576-qos", "syscon";
reg = <0x0 0x27f02000 0x0 0x20>;
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 2/3] arm64: dts: rockchip: Add hdmi for rk3576
2024-12-31 9:57 [PATCH v3 0/3] Add display subsystem dt node on rk3576 Andy Yan
2024-12-31 9:57 ` [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576 Andy Yan
@ 2024-12-31 9:57 ` Andy Yan
2025-03-04 17:17 ` Detlev Casanova
2024-12-31 9:57 ` [PATCH v3 3/3] arm64: dts: rockchip: Enable hdmi display on sige5 Andy Yan
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Andy Yan @ 2024-12-31 9:57 UTC (permalink / raw)
To: heiko
Cc: detlev.casanova, krzk+dt, robh, devicetree, linux-arm-kernel,
linux-kernel, linux-rockchip, Andy Yan
From: Andy Yan <andy.yan@rock-chips.com>
Add hdmi and it's phy dt node for rk3576.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---
(no changes since v1)
arch/arm64/boot/dts/rockchip/rk3576.dtsi | 58 ++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
index 130d11a2cc89..b83f421dc11d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
@@ -450,6 +450,11 @@ soc {
#size-cells = <2>;
ranges;
+ hdptxphy_grf: syscon@26032000 {
+ compatible = "rockchip,rk3576-hdptxphy-grf", "syscon";
+ reg = <0x0 0x26032000 0x0 0x100>;
+ };
+
sys_grf: syscon@2600a000 {
compatible = "rockchip,rk3576-sys-grf", "syscon";
reg = <0x0 0x2600a000 0x0 0x2000>;
@@ -894,6 +899,46 @@ vop_mmu: iommu@27d07e00 {
status = "disabled";
};
+ hdmi: hdmi@27da0000 {
+ compatible = "rockchip,rk3576-dw-hdmi-qp";
+ reg = <0x0 0x27da0000 0x0 0x20000>;
+ clocks = <&cru PCLK_HDMITX0>,
+ <&cru CLK_HDMITX0_EARC>,
+ <&cru CLK_HDMITX0_REF>,
+ <&cru MCLK_SAI6_8CH>,
+ <&cru CLK_HDMITXHDP>,
+ <&cru HCLK_VO0_ROOT>;
+ clock-names = "pclk", "earc", "ref", "aud", "hdp", "hclk_vo1";
+ interrupts = <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "avp", "cec", "earc", "main", "hpd";
+ phys = <&hdptxphy>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&hdmi_txm0_pins &hdmi_tx_scl &hdmi_tx_sda>;
+ power-domains = <&power RK3576_PD_VO0>;
+ resets = <&cru SRST_HDMITX0_REF>, <&cru SRST_HDMITXHDP>;
+ reset-names = "ref", "hdp";
+ rockchip,grf = <&ioc_grf>;
+ rockchip,vo-grf = <&vo0_grf>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hdmi_in: port@0 {
+ reg = <0>;
+ };
+
+ hdmi_out: port@1 {
+ reg = <1>;
+ };
+ };
+ };
+
qos_hdcp1: qos@27f02000 {
compatible = "rockchip,rk3576-qos", "syscon";
reg = <0x0 0x27f02000 0x0 0x20>;
@@ -1655,6 +1700,19 @@ uart11: serial@2afd0000 {
status = "disabled";
};
+ hdptxphy: hdmiphy@2b000000 {
+ compatible = "rockchip,rk3576-hdptx-phy", "rockchip,rk3588-hdptx-phy";
+ reg = <0x0 0x2b000000 0x0 0x2000>;
+ clocks = <&cru CLK_PHY_REF_SRC>, <&cru PCLK_HDPTX_APB>;
+ clock-names = "ref", "apb";
+ resets = <&cru SRST_P_HDPTX_APB>, <&cru SRST_HDPTX_INIT>,
+ <&cru SRST_HDPTX_CMN>, <&cru SRST_HDPTX_LANE>;
+ reset-names = "apb", "init", "cmn", "lane";
+ rockchip,grf = <&hdptxphy_grf>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
+
sram: sram@3ff88000 {
compatible = "mmio-sram";
reg = <0x0 0x3ff88000 0x0 0x78000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 3/3] arm64: dts: rockchip: Enable hdmi display on sige5
2024-12-31 9:57 [PATCH v3 0/3] Add display subsystem dt node on rk3576 Andy Yan
2024-12-31 9:57 ` [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576 Andy Yan
2024-12-31 9:57 ` [PATCH v3 2/3] arm64: dts: rockchip: Add hdmi " Andy Yan
@ 2024-12-31 9:57 ` Andy Yan
2024-12-31 12:57 ` [PATCH v3 0/3] Add display subsystem dt node on rk3576 Rob Herring (Arm)
2025-03-04 21:14 ` Heiko Stuebner
4 siblings, 0 replies; 11+ messages in thread
From: Andy Yan @ 2024-12-31 9:57 UTC (permalink / raw)
To: heiko
Cc: detlev.casanova, krzk+dt, robh, devicetree, linux-arm-kernel,
linux-kernel, linux-rockchip, Andy Yan
From: Andy Yan <andy.yan@rock-chips.com>
Enable hdmi display on sige5 board.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---
(no changes since v1)
.../boot/dts/rockchip/rk3576-armsom-sige5.dts | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts b/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts
index 7c7331936a7f..78798b0722a3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts
@@ -10,6 +10,7 @@
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include <dt-bindings/usb/pd.h>
#include "rk3576.dtsi"
@@ -26,6 +27,17 @@ chosen {
stdout-path = "serial0:1500000n8";
};
+ hdmi-con {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi_con_in: endpoint {
+ remote-endpoint = <&hdmi_out_con>;
+ };
+ };
+ };
+
leds: leds {
compatible = "gpio-leds";
@@ -214,6 +226,26 @@ &gpu {
status = "okay";
};
+&hdmi {
+ status = "okay";
+};
+
+&hdmi_in {
+ hdmi_in_vp0: endpoint {
+ remote-endpoint = <&vp0_out_hdmi>;
+ };
+};
+
+&hdmi_out {
+ hdmi_out_con: endpoint {
+ remote-endpoint = <&hdmi_con_in>;
+ };
+};
+
+&hdptxphy {
+ status = "okay";
+};
+
&i2c1 {
status = "okay";
@@ -656,3 +688,18 @@ &uart0 {
pinctrl-0 = <&uart0m0_xfer>;
status = "okay";
};
+
+&vop {
+ status = "okay";
+};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi_in_vp0>;
+ };
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v3 0/3] Add display subsystem dt node on rk3576
2024-12-31 9:57 [PATCH v3 0/3] Add display subsystem dt node on rk3576 Andy Yan
` (2 preceding siblings ...)
2024-12-31 9:57 ` [PATCH v3 3/3] arm64: dts: rockchip: Enable hdmi display on sige5 Andy Yan
@ 2024-12-31 12:57 ` Rob Herring (Arm)
2025-03-04 14:47 ` Sebastian Reichel
2025-03-04 21:14 ` Heiko Stuebner
4 siblings, 1 reply; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-12-31 12:57 UTC (permalink / raw)
To: Andy Yan
Cc: heiko, linux-arm-kernel, devicetree, detlev.casanova,
linux-rockchip, Andy Yan, krzk+dt, linux-kernel
On Tue, 31 Dec 2024 17:57:17 +0800, Andy Yan wrote:
> From: Andy Yan <andy.yan@rock-chips.com>
>
>
> As the VOP[0] and HDMI[1] driver have already been submitted for review.
> This series enable hdmi display on sige5 board.
>
> [0] https://lore.kernel.org/linux-rockchip/20241231090802.251787-1-andyshrk@163.com/T/#t
> [1] https://lore.kernel.org/linux-rockchip/20241231094425.253398-1-andyshrk@163.com/T/#t
>
> Changes in v3:
> - Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
>
> Andy Yan (3):
> arm64: dts: rockchip: Add vop for rk3576
> arm64: dts: rockchip: Add hdmi for rk3576
> arm64: dts: rockchip: Enable hdmi display on sige5
>
> .../boot/dts/rockchip/rk3576-armsom-sige5.dts | 47 +++++++
> arch/arm64/boot/dts/rockchip/rk3576.dtsi | 126 ++++++++++++++++++
> 2 files changed, 173 insertions(+)
>
> --
> 2.34.1
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y rockchip/rk3576-armsom-sige5.dtb' for 20241231095728.253943-1-andyshrk@163.com:
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: /soc/syscon@26032000: failed to match any schema with compatible: ['rockchip,rk3576-hdptxphy-grf', 'syscon']
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: /soc/vop@27d00000: failed to match any schema with compatible: ['rockchip,rk3576-vop']
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: iommu@27d07e00: compatible: 'oneOf' conditional failed, one must be fixed:
['rockchip,rk3576-iommu', 'rockchip,rk3568-iommu'] is too long
'rockchip,rk3576-iommu' is not one of ['rockchip,iommu', 'rockchip,rk3568-iommu']
'rockchip,rk3576-iommu' is not one of ['rockchip,rk3588-iommu']
from schema $id: http://devicetree.org/schemas/iommu/rockchip,iommu.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: /soc/iommu@27d07e00: failed to match any schema with compatible: ['rockchip,rk3576-iommu', 'rockchip,rk3568-iommu']
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: /soc/hdmi@27da0000: failed to match any schema with compatible: ['rockchip,rk3576-dw-hdmi-qp']
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: compatible:0: 'rockchip,rk3576-hdptx-phy' is not one of ['rockchip,rk3588-hdptx-phy']
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: compatible: ['rockchip,rk3576-hdptx-phy', 'rockchip,rk3588-hdptx-phy'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: resets: [[17, 428], [17, 450], [17, 451], [17, 452]] is too short
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: reset-names:0: 'phy' was expected
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: reset-names:1: 'apb' was expected
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: reset-names:2: 'init' was expected
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: reset-names:3: 'cmn' was expected
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: hdmiphy@2b000000: reset-names: ['apb', 'init', 'cmn', 'lane'] is too short
from schema $id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dtb: /soc/hdmiphy@2b000000: failed to match any schema with compatible: ['rockchip,rk3576-hdptx-phy', 'rockchip,rk3588-hdptx-phy']
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 0/3] Add display subsystem dt node on rk3576
2024-12-31 12:57 ` [PATCH v3 0/3] Add display subsystem dt node on rk3576 Rob Herring (Arm)
@ 2025-03-04 14:47 ` Sebastian Reichel
2025-03-04 21:16 ` Heiko Stübner
0 siblings, 1 reply; 11+ messages in thread
From: Sebastian Reichel @ 2025-03-04 14:47 UTC (permalink / raw)
To: Andy Yan, heiko
Cc: linux-arm-kernel, devicetree, detlev.casanova, linux-rockchip,
Andy Yan, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]
Hello,
On Tue, Dec 31, 2024 at 06:57:21AM -0600, Rob Herring (Arm) wrote:
> On Tue, 31 Dec 2024 17:57:17 +0800, Andy Yan wrote:
> > As the VOP[0] and HDMI[1] driver have already been submitted for review.
> > This series enable hdmi display on sige5 board.
> >
> > [0] https://lore.kernel.org/linux-rockchip/20241231090802.251787-1-andyshrk@163.com/T/#t
> > [1] https://lore.kernel.org/linux-rockchip/20241231094425.253398-1-andyshrk@163.com/T/#t
> >
> > Changes in v3:
> > - Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
> >
> > Andy Yan (3):
> > arm64: dts: rockchip: Add vop for rk3576
> > arm64: dts: rockchip: Add hdmi for rk3576
> > arm64: dts: rockchip: Enable hdmi display on sige5
> >
> > .../boot/dts/rockchip/rk3576-armsom-sige5.dts | 47 +++++++
> > arch/arm64/boot/dts/rockchip/rk3576.dtsi | 126 ++++++++++++++++++
> > 2 files changed, 173 insertions(+)
>
> [...] (a bunch of warnings due to dependency patch series not yet
> being in linux-next)
I think all dependencies have landed now. But it might be sensible
to do a quick resend considering how old this is.
Would be nice to have initial RK3576 HDMI support in 6.15 :)
Greetings,
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576
2024-12-31 9:57 ` [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576 Andy Yan
@ 2025-03-04 17:15 ` Detlev Casanova
0 siblings, 0 replies; 11+ messages in thread
From: Detlev Casanova @ 2025-03-04 17:15 UTC (permalink / raw)
To: heiko, Andy Yan
Cc: krzk+dt, robh, devicetree, linux-arm-kernel, linux-kernel,
linux-rockchip, Andy Yan
Hi andy,
On Tuesday, 31 December 2024 04:57:18 EST Andy Yan wrote:
> From: Andy Yan <andy.yan@rock-chips.com>
>
> Add VOP and VOP_MMU found on rk3576.
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
>
> ---
>
> Changes in v3:
> - Split from
> https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
>
> arch/arm64/boot/dts/rockchip/rk3576.dtsi | 68 ++++++++++++++++++++++++
> 1 file changed, 68 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> b/arch/arm64/boot/dts/rockchip/rk3576.dtsi index 436232ffe4d1..130d11a2cc89
> 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> @@ -393,6 +393,11 @@ opp-950000000 {
> };
> };
>
> + display_subsystem: display-subsystem {
> + compatible = "rockchip,display-subsystem";
> + ports = <&vop_out>;
> + };
> +
> firmware {
> scmi: scmi {
> compatible = "arm,scmi-smc";
> @@ -826,6 +831,69 @@ gpu: gpu@27800000 {
> status = "disabled";
> };
>
> + vop: vop@27d00000 {
> + compatible = "rockchip,rk3576-vop";
> + reg = <0x0 0x27d00000 0x0 0x3000>, <0x0 0x27d05000
0x0 0x1000>;
> + reg-names = "vop", "gamma-lut";
> + interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 379 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 380 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 381 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "vop-sys",
> + "vop-vp0",
> + "vop-vp1",
> + "vop-vp2";
These need to be renamed without the 'vop-' prefix.
> + clocks = <&cru ACLK_VOP>,
> + <&cru HCLK_VOP>,
> + <&cru DCLK_VP0>,
> + <&cru DCLK_VP1>,
> + <&cru DCLK_VP2>;
> + clock-names = "aclk",
> + "hclk",
> + "dclk_vp0",
> + "dclk_vp1",
> + "dclk_vp2";
> + iommus = <&vop_mmu>;
> + power-domains = <&power RK3576_PD_VOP>;
> + rockchip,grf = <&sys_grf>;
> + rockchip,pmu = <&pmu>;
> + status = "disabled";
> +
> + vop_out: ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + vp0: port@0 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0>;
> + };
> +
> + vp1: port@1 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <1>;
> + };
> +
> + vp2: port@2 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <2>;
> + };
> + };
> + };
> +
> + vop_mmu: iommu@27d07e00 {
> + compatible = "rockchip,rk3576-iommu",
"rockchip,rk3568-iommu";
> + reg = <0x0 0x27d07e00 0x0 0x100>, <0x0 0x27d07f00
0x0 0x100>;
> + interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
> + clock-names = "aclk", "iface";
> + #iommu-cells = <0>;
> + power-domains = <&power RK3576_PD_VOP>;
> + status = "disabled";
> + };
> +
> qos_hdcp1: qos@27f02000 {
> compatible = "rockchip,rk3576-qos", "syscon";
> reg = <0x0 0x27f02000 0x0 0x20>;
Regards,
Detlev
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 2/3] arm64: dts: rockchip: Add hdmi for rk3576
2024-12-31 9:57 ` [PATCH v3 2/3] arm64: dts: rockchip: Add hdmi " Andy Yan
@ 2025-03-04 17:17 ` Detlev Casanova
0 siblings, 0 replies; 11+ messages in thread
From: Detlev Casanova @ 2025-03-04 17:17 UTC (permalink / raw)
To: heiko, Andy Yan
Cc: krzk+dt, robh, devicetree, linux-arm-kernel, linux-kernel,
linux-rockchip, Andy Yan
Hi Andy,
On Tuesday, 31 December 2024 04:57:19 EST Andy Yan wrote:
> From: Andy Yan <andy.yan@rock-chips.com>
>
> Add hdmi and it's phy dt node for rk3576.
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
> ---
>
> (no changes since v1)
>
> arch/arm64/boot/dts/rockchip/rk3576.dtsi | 58 ++++++++++++++++++++++++
> 1 file changed, 58 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> b/arch/arm64/boot/dts/rockchip/rk3576.dtsi index 130d11a2cc89..b83f421dc11d
> 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> @@ -450,6 +450,11 @@ soc {
> #size-cells = <2>;
> ranges;
>
> + hdptxphy_grf: syscon@26032000 {
> + compatible = "rockchip,rk3576-hdptxphy-grf",
"syscon";
> + reg = <0x0 0x26032000 0x0 0x100>;
> + };
> +
> sys_grf: syscon@2600a000 {
> compatible = "rockchip,rk3576-sys-grf", "syscon";
> reg = <0x0 0x2600a000 0x0 0x2000>;
> @@ -894,6 +899,46 @@ vop_mmu: iommu@27d07e00 {
> status = "disabled";
> };
>
> + hdmi: hdmi@27da0000 {
> + compatible = "rockchip,rk3576-dw-hdmi-qp";
> + reg = <0x0 0x27da0000 0x0 0x20000>;
> + clocks = <&cru PCLK_HDMITX0>,
> + <&cru CLK_HDMITX0_EARC>,
> + <&cru CLK_HDMITX0_REF>,
> + <&cru MCLK_SAI6_8CH>,
> + <&cru CLK_HDMITXHDP>,
> + <&cru HCLK_VO0_ROOT>;
> + clock-names = "pclk", "earc", "ref", "aud", "hdp",
"hclk_vo1";
> + interrupts = <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "avp", "cec", "earc", "main",
"hpd";
> + phys = <&hdptxphy>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&hdmi_txm0_pins &hdmi_tx_scl
&hdmi_tx_sda>;
> + power-domains = <&power RK3576_PD_VO0>;
> + resets = <&cru SRST_HDMITX0_REF>, <&cru
SRST_HDMITXHDP>;
> + reset-names = "ref", "hdp";
> + rockchip,grf = <&ioc_grf>;
> + rockchip,vo-grf = <&vo0_grf>;
> + status = "disabled";
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + hdmi_in: port@0 {
> + reg = <0>;
> + };
> +
> + hdmi_out: port@1 {
> + reg = <1>;
> + };
> + };
> + };
> +
> qos_hdcp1: qos@27f02000 {
> compatible = "rockchip,rk3576-qos", "syscon";
> reg = <0x0 0x27f02000 0x0 0x20>;
> @@ -1655,6 +1700,19 @@ uart11: serial@2afd0000 {
> status = "disabled";
> };
>
> + hdptxphy: hdmiphy@2b000000 {
> + compatible = "rockchip,rk3576-hdptx-phy",
"rockchip,rk3588-hdptx-phy";
> + reg = <0x0 0x2b000000 0x0 0x2000>;
> + clocks = <&cru CLK_PHY_REF_SRC>, <&cru
PCLK_HDPTX_APB>;
> + clock-names = "ref", "apb";
> + resets = <&cru SRST_P_HDPTX_APB>, <&cru
SRST_HDPTX_INIT>,
> + <&cru SRST_HDPTX_CMN>, <&cru
SRST_HDPTX_LANE>;
> + reset-names = "apb", "init", "cmn", "lane";
> + rockchip,grf = <&hdptxphy_grf>;
> + #phy-cells = <0>;
> + status = "disabled";
> + };
> +
> sram: sram@3ff88000 {
> compatible = "mmio-sram";
> reg = <0x0 0x3ff88000 0x0 0x78000>;
This patch needs rebasing over the USB support patches.
Regards,
Detlev.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 0/3] Add display subsystem dt node on rk3576
2024-12-31 9:57 [PATCH v3 0/3] Add display subsystem dt node on rk3576 Andy Yan
` (3 preceding siblings ...)
2024-12-31 12:57 ` [PATCH v3 0/3] Add display subsystem dt node on rk3576 Rob Herring (Arm)
@ 2025-03-04 21:14 ` Heiko Stuebner
4 siblings, 0 replies; 11+ messages in thread
From: Heiko Stuebner @ 2025-03-04 21:14 UTC (permalink / raw)
To: Andy Yan
Cc: Heiko Stuebner, detlev.casanova, krzk+dt, robh, devicetree,
linux-arm-kernel, linux-kernel, linux-rockchip, Andy Yan
On Tue, 31 Dec 2024 17:57:17 +0800, Andy Yan wrote:
> As the VOP[0] and HDMI[1] driver have already been submitted for review.
> This series enable hdmi display on sige5 board.
>
> [0] https://lore.kernel.org/linux-rockchip/20241231090802.251787-1-andyshrk@163.com/T/#t
> [1] https://lore.kernel.org/linux-rockchip/20241231094425.253398-1-andyshrk@163.com/T/#t
>
> Changes in v3:
> - Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
>
> [...]
Applied, thanks!
[1/3] arm64: dts: rockchip: Add vop for rk3576
commit: d74b842cab0860e41a45df0dac41e4e56202c766
[2/3] arm64: dts: rockchip: Add hdmi for rk3576
commit: ad0ea230ab2a3535b186f7fb863b4bca7050e06f
[3/3] arm64: dts: rockchip: Enable hdmi display on sige5
commit: 2062b91b9f3c6afe9c2a7d1ddf0f3e6af5f3fa31
I've adapted the patches where needed.
- Moved the grf to it's address-related position
- updated the irq names
With all the driver patches in place, dtbscheck for the sige5 is happy.
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 0/3] Add display subsystem dt node on rk3576
2025-03-04 14:47 ` Sebastian Reichel
@ 2025-03-04 21:16 ` Heiko Stübner
2025-03-05 2:55 ` Andy Yan
0 siblings, 1 reply; 11+ messages in thread
From: Heiko Stübner @ 2025-03-04 21:16 UTC (permalink / raw)
To: Andy Yan, Sebastian Reichel
Cc: linux-arm-kernel, devicetree, detlev.casanova, linux-rockchip,
Andy Yan, linux-kernel
Am Dienstag, 4. März 2025, 15:47:28 MEZ schrieb Sebastian Reichel:
> Hello,
>
> On Tue, Dec 31, 2024 at 06:57:21AM -0600, Rob Herring (Arm) wrote:
> > On Tue, 31 Dec 2024 17:57:17 +0800, Andy Yan wrote:
> > > As the VOP[0] and HDMI[1] driver have already been submitted for review.
> > > This series enable hdmi display on sige5 board.
> > >
> > > [0] https://lore.kernel.org/linux-rockchip/20241231090802.251787-1-andyshrk@163.com/T/#t
> > > [1] https://lore.kernel.org/linux-rockchip/20241231094425.253398-1-andyshrk@163.com/T/#t
> > >
> > > Changes in v3:
> > > - Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
> > >
> > > Andy Yan (3):
> > > arm64: dts: rockchip: Add vop for rk3576
> > > arm64: dts: rockchip: Add hdmi for rk3576
> > > arm64: dts: rockchip: Enable hdmi display on sige5
> > >
> > > .../boot/dts/rockchip/rk3576-armsom-sige5.dts | 47 +++++++
> > > arch/arm64/boot/dts/rockchip/rk3576.dtsi | 126 ++++++++++++++++++
> > > 2 files changed, 173 insertions(+)
> >
> > [...] (a bunch of warnings due to dependency patch series not yet
> > being in linux-next)
>
> I think all dependencies have landed now. But it might be sensible
> to do a quick resend considering how old this is.
>
> Would be nice to have initial RK3576 HDMI support in 6.15 :)
now we can :-)
The update was not that difficult, so did it myself when applying.
Heiko
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re:Re: [PATCH v3 0/3] Add display subsystem dt node on rk3576
2025-03-04 21:16 ` Heiko Stübner
@ 2025-03-05 2:55 ` Andy Yan
0 siblings, 0 replies; 11+ messages in thread
From: Andy Yan @ 2025-03-05 2:55 UTC (permalink / raw)
To: Heiko Stübner
Cc: Sebastian Reichel, linux-arm-kernel, devicetree, detlev.casanova,
linux-rockchip, Andy Yan, linux-kernel
Hello,
在 2025-03-05 05:16:49,"Heiko Stübner" <heiko@sntech.de> 写道:
>Am Dienstag, 4. März 2025, 15:47:28 MEZ schrieb Sebastian Reichel:
>> Hello,
>>
>> On Tue, Dec 31, 2024 at 06:57:21AM -0600, Rob Herring (Arm) wrote:
>> > On Tue, 31 Dec 2024 17:57:17 +0800, Andy Yan wrote:
>> > > As the VOP[0] and HDMI[1] driver have already been submitted for review.
>> > > This series enable hdmi display on sige5 board.
>> > >
>> > > [0] https://lore.kernel.org/linux-rockchip/20241231090802.251787-1-andyshrk@163.com/T/#t
>> > > [1] https://lore.kernel.org/linux-rockchip/20241231094425.253398-1-andyshrk@163.com/T/#t
>> > >
>> > > Changes in v3:
>> > > - Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t
>> > >
>> > > Andy Yan (3):
>> > > arm64: dts: rockchip: Add vop for rk3576
>> > > arm64: dts: rockchip: Add hdmi for rk3576
>> > > arm64: dts: rockchip: Enable hdmi display on sige5
>> > >
>> > > .../boot/dts/rockchip/rk3576-armsom-sige5.dts | 47 +++++++
>> > > arch/arm64/boot/dts/rockchip/rk3576.dtsi | 126 ++++++++++++++++++
>> > > 2 files changed, 173 insertions(+)
>> >
>> > [...] (a bunch of warnings due to dependency patch series not yet
>> > being in linux-next)
>>
>> I think all dependencies have landed now. But it might be sensible
>> to do a quick resend considering how old this is.
>>
>> Would be nice to have initial RK3576 HDMI support in 6.15 :)
>
>now we can :-)
>
>The update was not that difficult, so did it myself when applying.
Thanks for you all, many thanks.
I also sent out a patch for eanble hdmi on rk3576 evb1.
>
>
>Heiko
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2025-03-05 3:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-31 9:57 [PATCH v3 0/3] Add display subsystem dt node on rk3576 Andy Yan
2024-12-31 9:57 ` [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576 Andy Yan
2025-03-04 17:15 ` Detlev Casanova
2024-12-31 9:57 ` [PATCH v3 2/3] arm64: dts: rockchip: Add hdmi " Andy Yan
2025-03-04 17:17 ` Detlev Casanova
2024-12-31 9:57 ` [PATCH v3 3/3] arm64: dts: rockchip: Enable hdmi display on sige5 Andy Yan
2024-12-31 12:57 ` [PATCH v3 0/3] Add display subsystem dt node on rk3576 Rob Herring (Arm)
2025-03-04 14:47 ` Sebastian Reichel
2025-03-04 21:16 ` Heiko Stübner
2025-03-05 2:55 ` Andy Yan
2025-03-04 21:14 ` Heiko Stuebner
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).