arm64: dts: add rk3399 display-related nodes
Subsystems (2)
v2 cover arm64: dts: add rk3399 display-related nodes
This series patches add the display-related nodes for rk3399.
Tested with kernel base on drm-misc and below patches.
https://cgit.freedesktop.org/drm/drm-misc/
"drm: bridge: synopsys/dw-hdmi: Provide default configuration function for HDMI 2.0 PHY" "iommu/rockchip: Enable Rockchip IOMMU on ARM64"
HDMI could work and have a display output.
eDP could link with panel but i didn't get a display(Maybe something wrong in power things).
For convenience, i think we should have those nodes in kernel now.
changes in V2:
- remove unused clock and reg for VOP.
- correct author.
Mark Yao (1):
arm64: dts: rockchip: Add rk3399 vop and display-subsystem
Elaine Zhang (1):
arm64: dts: rockchip: add pd_edp node for rk3399
Yakir Yang (1):
arm64: dts: rockchip: add rk3399 edp nodes
Jacob Chen (2):
arm64: dts: rockchip: add rk3399 mipi nodes
arm64: dts: rockchip: add rk3399 hdmi nodes
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 198 +++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+)
Signature · 1 line
2.7.4
PATCH v2 1/5 arm64: dts: rockchip: Add rk3399 vop and display-subsystem
From: Mark Yao <[email protected]>
Add devicetree nodes for rk3399 VOP (Video Output Processors), and the top level display-subsystem root node.
Later patches add endpoints (eDP, HDMI, MIPI, etc) that attach to the VOPs' output ports.
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 65 ++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +65 -0
@@ -1455,6 +1455,71 @@ status = "disabled"; }; + vopl: vop at ff8f0000 { + compatible = "rockchip,rk3399-vop-lit"; + reg = <0x0 0xff8f0000 0x0 0x3efc>; + interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; + clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; + resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>; + reset-names = "axi", "ahb", "dclk"; + power-domains = <&power RK3399_PD_VOPL>; + iommus = <&vopl_mmu>; + status = "disabled"; + + vopl_out: port { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + vopl_mmu: iommu at ff8f3f00 { + compatible = "rockchip,iommu"; + reg = <0x0 0xff8f3f00 0x0 0x100>; + interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>; + interrupt-names = "vopl_mmu"; + clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; + clock-names = "aclk", "hclk"; + power-domains = <&power RK3399_PD_VOPL>; + #iommu-cells = <0>; + status = "disabled"; + }; + + vopb: vop at ff900000 { + compatible = "rockchip,rk3399-vop-big"; + reg = <0x0 0xff900000 0x0 0x3efc>; + interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; + clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; + resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>; + reset-names = "axi", "ahb", "dclk"; + power-domains = <&power RK3399_PD_VOPB>; + iommus = <&vopb_mmu>; + status = "disabled"; + + vopb_out: port { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + vopb_mmu: iommu at ff903f00 { + compatible = "rockchip,iommu"; + reg = <0x0 0xff903f00 0x0 0x100>; + interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>; + interrupt-names = "vopb_mmu"; + clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; + clock-names = "aclk", "hclk"; + power-domains = <&power RK3399_PD_VOPB>; + #iommu-cells = <0>; + status = "disabled"; + }; + + display-subsystem { + compatible = "rockchip,display-subsystem"; + ports = <&vopl_out>, <&vopb_out>; + }; + pinctrl: pinctrl { compatible = "rockchip,rk3399-pinctrl"; rockchip,grf = <&grf>;
Signature · 1 line
2.7.4
PATCH v2 2/5 arm64: dts: rockchip: add pd_edp node for rk3399
In reply to Jacob ChenFrom: Elaine Zhang <[email protected]>
1. add pd node for RK3399 Soc
2. create power domain tree
3. add qos node for domain
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +4 -0
@@ -956,6 +956,10 @@ }; /* These power domains are grouped by VD_LOGIC */ + pd_edp at RK3399_PD_EDP { + reg = <RK3399_PD_EDP>; + clocks = <&cru PCLK_EDP_CTRL>; + }; pd_emmc at RK3399_PD_EMMC { reg = <RK3399_PD_EMMC>; clocks = <&cru ACLK_EMMC>;
Signature · 1 line
2.7.4
PATCH v2 3/5 arm64: dts: rockchip: add rk3399 edp nodes
In reply to Jacob ChenFrom: Yakir Yang <[email protected]>
Add an edp node, and also add edp endpoints to vopb and vopl output port nodes.
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +48 -0
@@ -1474,6 +1474,12 @@ vopl_out: port { #address-cells = <1>; #size-cells = <0>; + + vopl_out_edp: endpoint at 1 { + reg = <1>; + remote-endpoint = <&edp_in_vopl>; + }; + }; };
@@ -1504,6 +1510,12 @@ vopb_out: port { #address-cells = <1>; #size-cells = <0>; + + vopb_out_edp: endpoint at 0 { + reg = <0>; + remote-endpoint = <&edp_in_vopb>; + }; + }; };
@@ -1519,6 +1531,42 @@ status = "disabled"; }; + edp: edp at ff970000 { + compatible = "rockchip,rk3399-edp"; + reg = <0x0 0xff970000 0x0 0x8000>; + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>; + clock-names = "dp", "pclk"; + power-domains = <&power RK3399_PD_EDP>; + resets = <&cru SRST_P_EDP_CTRL>; + reset-names = "dp"; + rockchip,grf = <&grf>; + pinctrl-names = "default"; + pinctrl-0 = <&edp_hpd>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + edp_in: port at 0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + edp_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_edp>; + }; + + edp_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_edp>; + }; + }; + }; + }; + display-subsystem { compatible = "rockchip,display-subsystem"; ports = <&vopl_out>, <&vopb_out>;
Signature · 1 line
2.7.4
PATCH v2 4/5 arm64: dts: rockchip: add rk3399 mipi nodes
In reply to Jacob ChenAdd an mipi node, and also add mipi endpoints to vopb and vopl output port nodes.
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +44 -0
@@ -1475,6 +1475,11 @@ #address-cells = <1>; #size-cells = <0>; + vopl_out_mipi: endpoint at 0 { + reg = <0>; + remote-endpoint = <&mipi_in_vopl>; + }; + vopl_out_edp: endpoint at 1 { reg = <1>; remote-endpoint = <&edp_in_vopl>;
@@ -1516,6 +1521,11 @@ remote-endpoint = <&edp_in_vopb>; }; + vopb_out_mipi: endpoint at 1 { + reg = <1>; + remote-endpoint = <&mipi_in_vopb>; + }; + }; };
@@ -1531,6 +1541,40 @@ status = "disabled"; }; + mipi_dsi: mipi at ff960000 { + compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x0 0xff960000 0x0 0x8000>; + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>, + <&cru SCLK_DPHY_TX0_CFG>; + clock-names = "ref", "pclk", "phy_cfg"; + power-domains = <&power RK3399_PD_VIO>; + rockchip,grf = <&grf>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + mipi_in: port { + #address-cells = <1>; + #size-cells = <0>; + + mipi_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi>; + }; + mipi_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi>; + }; + }; + }; + }; + edp: edp at ff970000 { compatible = "rockchip,rk3399-edp"; reg = <0x0 0xff970000 0x0 0x8000>;
Signature · 1 line
2.7.4
PATCH v2 5/5 arm64: dts: rockchip: add rk3399 hdmi nodes
In reply to Jacob ChenAdd an hdmi node, and also add hdmi endpoints to vopb and vopl output port nodes.
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +37 -0
@@ -1485,6 +1485,11 @@ remote-endpoint = <&edp_in_vopl>; }; + vopl_out_hdmi: endpoint at 2 { + reg = <2>; + remote-endpoint = <&hdmi_in_vopl>; + }; + }; };
@@ -1526,6 +1531,11 @@ remote-endpoint = <&mipi_in_vopb>; }; + vopb_out_hdmi: endpoint at 2 { + reg = <2>; + remote-endpoint = <&hdmi_in_vopb>; + }; + }; };
@@ -1541,6 +1551,33 @@ status = "disabled"; }; + hdmi: hdmi at ff940000 { + compatible = "rockchip,rk3399-dw-hdmi"; + reg = <0x0 0xff940000 0x0 0x20000>; + reg-io-width = <4>; + rockchip,grf = <&grf>; + power-domains = <&power RK3399_PD_HDCP>; + interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_SFR>, <&cru PLL_VPLL>, <&cru PCLK_VIO_GRF>; + clock-names = "iahb", "isfr", "vpll", "grf"; + status = "disabled"; + + ports { + hdmi_in: port { + #address-cells = <1>; + #size-cells = <0>; + hdmi_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_hdmi>; + }; + hdmi_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_hdmi>; + }; + }; + }; + }; + mipi_dsi: mipi at ff960000 { compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; reg = <0x0 0xff960000 0x0 0x8000>;
Signature · 1 line
2.7.4
Heiko Stuebner
maintainerRe: [PATCH v2 1/5] arm64: dts: rockchip: Add rk3399 vop and display-subsystem
In reply to Jacob ChenAm Montag, 17. Juli 2017, 22:16:55 CEST schrieb Jacob Chen:
Quoted 5 lines
From: Mark Yao <[email protected]>
Add devicetree nodes for rk3399 VOP (Video Output Processors), and the top level display-subsystem root node.
Quoted 7 lines
Later patches add endpoints (eDP, HDMI, MIPI, etc) that attach to the VOPs' output ports.
Signed-off-by Mark Yao <[email protected]>Signed-off-by Yakir Yang <[email protected]>Signed-off-by Caesar Wang <[email protected]>Signed-off-by Jacob Chen <[email protected]>
applied for 4.14 after moving the display-subsystem node between cpus and pmu nodes (alphabetical sorting)
Thanks
Heiko
Heiko Stuebner
maintainerRe: [PATCH v2 2/5] arm64: dts: rockchip: add pd_edp node for rk3399
In reply to Jacob ChenAm Montag, 17. Juli 2017, 22:16:56 CEST schrieb Jacob Chen:
Quoted 9 lines
From: Elaine Zhang <[email protected]>
1. add pd node for RK3399 Soc
2. create power domain tree
3. add qos node for domainSigned-off-by Elaine Zhang <[email protected]>Signed-off-by Caesar Wang <[email protected]>Signed-off-by Jacob Chen <[email protected]>
applied for 4.14
Thanks
Heiko
Heiko Stuebner
maintainerRe: [PATCH v2 3/5] arm64: dts: rockchip: add rk3399 edp nodes
In reply to Jacob ChenAm Montag, 17. Juli 2017, 22:16:57 CEST schrieb Jacob Chen:
Quoted 8 lines
From: Yakir Yang <[email protected]>
Add an edp node, and also add edp endpoints to vopb and vopl output port nodes.
Signed-off-by Yakir Yang <[email protected]>Signed-off-by Caesar Wang <[email protected]>Signed-off-by Jacob Chen <[email protected]>
applied for 4.14 after some minimal property reordering
Thanks
Heiko
Heiko Stuebner
maintainerRe: [PATCH v2 4/5] arm64: dts: rockchip: add rk3399 mipi nodes
In reply to Jacob ChenAm Montag, 17. Juli 2017, 22:16:58 CEST schrieb Jacob Chen:
Quoted 41 lines
Add an mipi node, and also add mipi endpoints to vopb and vopl output port nodes.
Signed-off-by Jacob Chen <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)arch/arm64/boot/dts/rockchip/rk3399.dtsi +11
-0@@ -1475,6 +1475,11 @@ #address-cells = <1>; #size-cells = <0>; + vopl_out_mipi: endpoint at 0 { + reg = <0>; + remote-endpoint = <&mipi_in_vopl>; + }; + vopl_out_edp: endpoint at 1 { reg = <1>; remote-endpoint = <&edp_in_vopl>;@@ -1516,6 +1521,11 @@ remote-endpoint = <&edp_in_vopb>; }; + vopb_out_mipi: endpoint at 1 { + reg = <1>; + remote-endpoint = <&mipi_in_vopb>; + }; + }; };@@ -1531,6 +1541,40 @@ status = "disabled"; }; + mipi_dsi: mipi at ff960000 {
arch/arm64/boot/dts/rockchip/rk3399.dtsi line 1554
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3399.dtsi +10
-0+ compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x0 0xff960000 0x0 0x8000>; + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>, + <&cru SCLK_DPHY_TX0_CFG>; + clock-names = "ref", "pclk", "phy_cfg"; + power-domains = <&power RK3399_PD_VIO>; + rockchip,grf = <&grf>; + #address-cells = <1>; + #size-cells = <0>;
I've dropped these, as the ports node does not need a regs property. Similar to edp and hdmi.
arch/arm64/boot/dts/rockchip/rk3399.dtsi line 1560
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399.dtsi +6
-0+ status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>;
dropped this reg as well - see above
and applied the rest for 4.14
Thanks
Heiko
Heiko Stuebner
maintainerRe: [PATCH v2 5/5] arm64: dts: rockchip: add rk3399 hdmi nodes
In reply to Jacob ChenAm Montag, 17. Juli 2017, 22:16:59 CEST schrieb Jacob Chen:
Quoted 4 lines
Add an hdmi node, and also add hdmi endpoints to vopb and vopl output port nodes.
Signed-off-by Jacob Chen <[email protected]>
I've picked the separate hdmi node patch, so ignored this one
Heiko