Skip to content

Commit 2c20d41

Browse files
Huicong Xurkhuangtao
authored andcommitted
ARM: dts: rockchip: add hdmi node for rk3128
Change-Id: I56437be5982740605052bc5d06e801996b198478 Signed-off-by: Huicong Xu <xhc@rock-chips.com>
1 parent 2d0ae7b commit 2c20d41

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

arch/arm/boot/dts/rk3128.dtsi

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,29 @@
4747
compatible = "syscon";
4848
reg = <0x1012f080 0x20>;
4949
};
50+
51+
hdmi: hdmi@20034000 {
52+
compatible = "rockchip,rk3128-inno-hdmi";
53+
reg = <0x20034000 0x4000>;
54+
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
55+
clocks = <&cru ACLK_VIO0>, <&cru PCLK_HDMI>;
56+
clock-names = "aclk", "pclk";
57+
rockchip,grf = <&grf>;
58+
pinctrl-names = "default";
59+
pinctrl-0 = <&hdmii2c_xfer &hdmi_hpd &hdmi_cec>;
60+
#address-cells = <1>;
61+
#size-cells = <0>;
62+
#sound-dai-cells = <0>;
63+
status = "disabled";
64+
hdmi_in: port {
65+
#address-cells = <1>;
66+
#size-cells = <0>;
67+
hdmi_in_vop: endpoint@0 {
68+
reg = <0>;
69+
remote-endpoint = <&vop_out_hdmi>;
70+
};
71+
};
72+
};
5073
};
5174

5275
&pd_vio {
@@ -60,3 +83,23 @@
6083
&vop_mmu {
6184
rockchip,skip-mmu-read;
6285
};
86+
87+
&vop_out {
88+
#address-cells = <1>;
89+
#size-cells = <0>;
90+
91+
vop_out_dsi: endpoint@0 {
92+
reg = <0>;
93+
remote-endpoint = <&dsi_in_vop>;
94+
};
95+
96+
vop_out_lvds: endpoint@1 {
97+
reg = <1>;
98+
remote-endpoint = <&lvds_in_vop>;
99+
};
100+
101+
vop_out_hdmi: endpoint@2 {
102+
reg = <2>;
103+
remote-endpoint = <&hdmi_in_vop>;
104+
};
105+
};

arch/arm/boot/dts/rk312x.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,14 @@
12941294
rockchip,pins = <0 RK_PA6 2 &pcfg_pull_none>,
12951295
<0 RK_PA7 2 &pcfg_pull_none>;
12961296
};
1297+
1298+
hdmi_hpd: hdmi-hpd {
1299+
rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>;
1300+
};
1301+
1302+
hdmi_cec: hdmi-cec {
1303+
rockchip,pins = <0 RK_PC4 1 &pcfg_pull_none>;
1304+
};
12971305
};
12981306

12991307
i2s {

0 commit comments

Comments
 (0)