Skip to content

Commit 0e4ed1d

Browse files
committed
riscv: dts: starfive: jh7110-pine64-star64: add HDMI nodes
Signed-off-by: MichaIng <micha@dietpi.com>
1 parent 5e9e7f1 commit 0e4ed1d

1 file changed

Lines changed: 146 additions & 0 deletions

File tree

arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,56 @@
2727
};
2828
};
2929

30+
&dc8200 {
31+
status = "okay";
32+
33+
dc_out: port {
34+
#address-cells = <1>;
35+
#size-cells = <0>;
36+
dc_out_dpi0: endpoint@0 {
37+
reg = <0>;
38+
remote-endpoint = <&hdmi_input0>;
39+
};
40+
dc_out_dpi1: endpoint@1 {
41+
reg = <1>;
42+
remote-endpoint = <&hdmi_in_lcdc>;
43+
};
44+
45+
dc_out_dpi2: endpoint@2 {
46+
reg = <2>;
47+
remote-endpoint = <&mipi_in>;
48+
};
49+
};
50+
};
51+
52+
&display {
53+
ports = <&dc_out_dpi0>;
54+
status = "okay";
55+
};
56+
57+
&dsi_output {
58+
status = "okay";
59+
60+
ports {
61+
#address-cells = <1>;
62+
#size-cells = <0>;
63+
64+
port@0 {
65+
reg = <0>;
66+
mipi_in: endpoint {
67+
remote-endpoint = <&dc_out_dpi2>;
68+
};
69+
};
70+
71+
port@1 {
72+
reg = <1>;
73+
sf_dpi_output: endpoint {
74+
remote-endpoint = <&dsi_in_port>;
75+
};
76+
};
77+
};
78+
};
79+
3080
&gmac0 {
3181
starfive,tx-use-rgmii-clk;
3282
assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
@@ -57,6 +107,50 @@
57107
status = "okay";
58108
};
59109

110+
&hdmi {
111+
status = "okay";
112+
pinctrl-names = "default";
113+
pinctrl-0 = <&hdmi_pins>;
114+
hpd-gpio = <&sysgpio 15 GPIO_ACTIVE_HIGH>;
115+
hdmi_0p9-supply = <&hdmi_0p9>;
116+
hdmi_1p8-supply = <&hdmi_1p8>;
117+
118+
hdmi_in: port {
119+
#address-cells = <1>;
120+
#size-cells = <0>;
121+
hdmi_in_lcdc: endpoint@0 {
122+
reg = <0>;
123+
remote-endpoint = <&dc_out_dpi1>;
124+
};
125+
};
126+
};
127+
128+
&mipi_dphy {
129+
status = "okay";
130+
};
131+
132+
&mipi_dsi {
133+
status = "okay";
134+
135+
ports {
136+
#address-cells = <1>;
137+
#size-cells = <0>;
138+
139+
port@0 {
140+
reg = <0>;
141+
#address-cells = <1>;
142+
#size-cells = <0>;
143+
};
144+
145+
port@1{
146+
reg = <1>;
147+
dsi_in_port: endpoint {
148+
remote-endpoint = <&sf_dpi_output>;
149+
};
150+
};
151+
};
152+
};
153+
60154
&mmc0 {
61155
cap-mmc-highspeed;
62156
cap-mmc-hw-reset;
@@ -116,11 +210,63 @@
116210
status = "okay";
117211
};
118212

213+
&rgb_output {
214+
status = "disabled";
215+
216+
ports {
217+
#address-cells = <1>;
218+
#size-cells = <0>;
219+
port@0 {
220+
#address-cells = <1>;
221+
#size-cells = <0>;
222+
reg = <0>;
223+
hdmi_input0:endpoint@0 {
224+
reg = <0>;
225+
remote-endpoint = <&dc_out_dpi0>;
226+
};
227+
};
228+
};
229+
};
230+
119231
&spi0 {
120232
status = "okay";
121233
};
122234

123235
&sysgpio {
236+
hdmi_pins: hdmi-0 {
237+
scl-pins {
238+
pinmux = <GPIOMUX(0, GPOUT_SYS_HDMI_DDC_SCL,
239+
GPOEN_SYS_HDMI_DDC_SCL,
240+
GPI_SYS_HDMI_DDC_SCL)>;
241+
bias-pull-up;
242+
input-enable;
243+
};
244+
245+
sda-pins {
246+
pinmux = <GPIOMUX(1, GPOUT_SYS_HDMI_DDC_SDA,
247+
GPOEN_SYS_HDMI_DDC_SDA,
248+
GPI_SYS_HDMI_DDC_SDA)>;
249+
bias-pull-up;
250+
input-enable;
251+
};
252+
253+
cec-pins {
254+
pinmux = <GPIOMUX(14, GPOUT_SYS_HDMI_CEC_SDA,
255+
GPOEN_SYS_HDMI_CEC_SDA,
256+
GPI_SYS_HDMI_CEC_SDA)>;
257+
bias-pull-up;
258+
input-enable;
259+
};
260+
261+
hpd-pins {
262+
pinmux = <GPIOMUX(15, GPOUT_LOW,
263+
GPOEN_DISABLE,
264+
GPI_SYS_HDMI_HPD)>;
265+
bias-disable; /* external pull-up */
266+
input-enable;
267+
};
268+
};
269+
124270
usb0_pins: usb0-0 {
125271
vbus-pins {
126272
pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,

0 commit comments

Comments
 (0)