Skip to content

Commit ae1b8d2

Browse files
uiopaubotsbogend
authored andcommitted
MIPS: DTS: CI20: Add DT nodes for HDMI setup
We need to hook up * HDMI connector * HDMI power regulator * JZ4780_CLK_HDMI @ 27 MHz * DDC pinmux * HDMI and LCDC endpoint connections Signed-off-by: Paul Boddie <[email protected]> Signed-off-by: H. Nikolaus Schaller <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 9375100 commit ae1b8d2

File tree

1 file changed

+70
-2
lines changed

1 file changed

+70
-2
lines changed

arch/mips/boot/dts/ingenic/ci20.dts

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@
7878
enable-active-high;
7979
};
8080

81+
hdmi_out: connector {
82+
compatible = "hdmi-connector";
83+
label = "HDMI OUT";
84+
type = "a";
85+
86+
port {
87+
hdmi_con: endpoint {
88+
remote-endpoint = <&dw_hdmi_out>;
89+
};
90+
};
91+
};
92+
8193
ir: ir {
8294
compatible = "gpio-ir-receiver";
8395
gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
@@ -102,6 +114,17 @@
102114
gpio = <&gpf 14 GPIO_ACTIVE_LOW>;
103115
enable-active-high;
104116
};
117+
118+
hdmi_power: fixedregulator@3 {
119+
compatible = "regulator-fixed";
120+
121+
regulator-name = "hdmi_power";
122+
regulator-min-microvolt = <5000000>;
123+
regulator-max-microvolt = <5000000>;
124+
125+
gpio = <&gpa 25 0>;
126+
enable-active-high;
127+
};
105128
};
106129

107130
&ext {
@@ -114,11 +137,12 @@
114137
* precision.
115138
*/
116139
assigned-clocks = <&cgu JZ4780_CLK_OTGPHY>, <&cgu JZ4780_CLK_RTC>,
117-
<&cgu JZ4780_CLK_SSIPLL>, <&cgu JZ4780_CLK_SSI>;
140+
<&cgu JZ4780_CLK_SSIPLL>, <&cgu JZ4780_CLK_SSI>,
141+
<&cgu JZ4780_CLK_HDMI>;
118142
assigned-clock-parents = <0>, <&cgu JZ4780_CLK_RTCLK>,
119143
<&cgu JZ4780_CLK_MPLL>,
120144
<&cgu JZ4780_CLK_SSIPLL>;
121-
assigned-clock-rates = <48000000>, <0>, <54000000>;
145+
assigned-clock-rates = <48000000>, <0>, <54000000>, <0>, <27000000>;
122146
};
123147

124148
&tcu {
@@ -509,6 +533,12 @@
509533
bias-disable;
510534
};
511535

536+
pins_hdmi_ddc: hdmi_ddc {
537+
function = "hdmi-ddc";
538+
groups = "hdmi-ddc";
539+
bias-disable;
540+
};
541+
512542
pins_nemc: nemc {
513543
function = "nemc";
514544
groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
@@ -539,3 +569,41 @@
539569
bias-disable;
540570
};
541571
};
572+
573+
&hdmi {
574+
status = "okay";
575+
576+
pinctrl-names = "default";
577+
pinctrl-0 = <&pins_hdmi_ddc>;
578+
579+
hdmi-5v-supply = <&hdmi_power>;
580+
581+
ports {
582+
#address-cells = <1>;
583+
#size-cells = <0>;
584+
585+
port@0 {
586+
reg = <0>;
587+
dw_hdmi_in: endpoint {
588+
remote-endpoint = <&lcd_out>;
589+
};
590+
};
591+
592+
port@1 {
593+
reg = <1>;
594+
dw_hdmi_out: endpoint {
595+
remote-endpoint = <&hdmi_con>;
596+
};
597+
};
598+
};
599+
};
600+
601+
&lcdc0 {
602+
status = "okay";
603+
604+
port {
605+
lcd_out: endpoint {
606+
remote-endpoint = <&dw_hdmi_in>;
607+
};
608+
};
609+
};

0 commit comments

Comments
 (0)