Skip to content

Commit 6d60168

Browse files
Heiko Stuebnermmind
authored andcommitted
arm64: dts: rockchip: Add HDMI node to RK3368
Add the HDMI controller node to the main SoC devicetree and hook it into the VOP. Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de> Link: https://patch.msgid.link/20260114230707.4175162-3-heiko@sntech.de Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 4f3df9a commit 6d60168

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3368.dtsi

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,11 @@
883883
reg = <0>;
884884
remote-endpoint = <&dsi_in_vop>;
885885
};
886+
887+
vop_out_hdmi: endpoint@1 {
888+
reg = <1>;
889+
remote-endpoint = <&hdmi_in_vop>;
890+
};
886891
};
887892
};
888893

@@ -941,6 +946,37 @@
941946
status = "disabled";
942947
};
943948

949+
hdmi: hdmi@ff980000 {
950+
compatible = "rockchip,rk3368-dw-hdmi";
951+
reg = <0x0 0xff980000 0x0 0x20000>;
952+
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
953+
clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>, <&cru SCLK_HDMI_CEC>;
954+
clock-names = "iahb", "isfr", "cec";
955+
pinctrl-names = "default";
956+
pinctrl-0 = <&hdmi_i2c_xfer>;
957+
power-domains = <&power RK3368_PD_VIO>;
958+
reg-io-width = <4>;
959+
rockchip,grf = <&grf>;
960+
status = "disabled";
961+
962+
ports {
963+
#address-cells = <1>;
964+
#size-cells = <0>;
965+
966+
hdmi_in: port@0 {
967+
reg = <0>;
968+
969+
hdmi_in_vop: endpoint {
970+
remote-endpoint = <&vop_out_hdmi>;
971+
};
972+
};
973+
974+
hdmi_out: port@1 {
975+
reg = <1>;
976+
};
977+
};
978+
};
979+
944980
hevc_mmu: iommu@ff9a0440 {
945981
compatible = "rockchip,iommu";
946982
reg = <0x0 0xff9a0440 0x0 0x40>,
@@ -1204,6 +1240,13 @@
12041240
};
12051241
};
12061242

1243+
hdmi {
1244+
hdmi_i2c_xfer: hdmi-i2c-xfer {
1245+
rockchip,pins = <3 RK_PD2 1 &pcfg_pull_none>,
1246+
<3 RK_PD3 1 &pcfg_pull_none>;
1247+
};
1248+
};
1249+
12071250
i2c0 {
12081251
i2c0_xfer: i2c0-xfer {
12091252
rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,

0 commit comments

Comments
 (0)