ARM: dts: rockchip: Add HDMI node for RK3128
authorAlex Bee <knaerzche@gmail.com>
Fri, 22 Dec 2023 17:42:19 +0000 (18:42 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 25 Jan 2024 20:38:41 +0000 (21:38 +0100)
RK3128 has Innosilicon based HDMI TX controller similar to the one found in
RK3036.
Add it and the respective port nodes to the SoC device tree.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
Link: https://lore.kernel.org/r/20231222174220.55249-29-knaerzche@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rockchip/rk3128.dtsi

index 1a3bc8b2bc6e1c7d3fce9770479fd92d080e1ac8..fb98873fd94e5994134a6107cadfeae57903ddb7 100644 (file)
                vop_out: port {
                        #address-cells = <1>;
                        #size-cells = <0>;
+
+                       vop_out_hdmi: endpoint@0 {
+                               reg = <0>;
+                               remote-endpoint = <&hdmi_in_vop>;
+                       };
                };
        };
 
                };
        };
 
+       hdmi: hdmi@20034000 {
+               compatible = "rockchip,rk3128-inno-hdmi";
+               reg = <0x20034000 0x4000>;
+               interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru PCLK_HDMI>, <&cru DCLK_VOP>;
+               clock-names = "pclk", "ref";
+               pinctrl-names = "default";
+               pinctrl-0 = <&hdmii2c_xfer &hdmi_hpd &hdmi_cec>;
+               power-domains = <&power RK3128_PD_VIO>;
+               status = "disabled";
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       hdmi_in: port@0 {
+                               reg = <0>;
+                               hdmi_in_vop: endpoint {
+                                       remote-endpoint = <&vop_out_hdmi>;
+                               };
+                       };
+
+                       hdmi_out: port@1 {
+                               reg = <1>;
+                       };
+               };
+       };
+
        timer0: timer@20044000 {
                compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer";
                reg = <0x20044000 0x20>;