Skip to content

Commit cf0e365

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

1 file changed

Lines changed: 161 additions & 0 deletions

File tree

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

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,71 @@
2525
linux,default-trigger = "heartbeat";
2626
};
2727
};
28+
29+
reserved-memory {
30+
#address-cells = <2>;
31+
#size-cells = <2>;
32+
ranges;
33+
34+
linux,cma {
35+
compatible = "shared-dma-pool";
36+
reusable;
37+
size = <0x0 0x08000000>; /* 128 MiB */
38+
alignment = <0x0 0x1000>;
39+
alloc-ranges = <0x0 0x70000000 0x0 0x20000000>;
40+
linux,cma-default;
41+
};
42+
};
43+
};
44+
45+
&dc8200 {
46+
status = "okay";
47+
48+
dc_out: port {
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
dc_out_dpi0: endpoint@0 {
52+
reg = <0>;
53+
remote-endpoint = <&hdmi_input0>;
54+
};
55+
dc_out_dpi1: endpoint@1 {
56+
reg = <1>;
57+
remote-endpoint = <&hdmi_in_lcdc>;
58+
};
59+
60+
dc_out_dpi2: endpoint@2 {
61+
reg = <2>;
62+
remote-endpoint = <&mipi_in>;
63+
};
64+
};
65+
};
66+
67+
&display {
68+
ports = <&dc_out_dpi0>;
69+
status = "okay";
70+
};
71+
72+
&dsi_output {
73+
status = "okay";
74+
75+
ports {
76+
#address-cells = <1>;
77+
#size-cells = <0>;
78+
79+
port@0 {
80+
reg = <0>;
81+
mipi_in: endpoint {
82+
remote-endpoint = <&dc_out_dpi2>;
83+
};
84+
};
85+
86+
port@1 {
87+
reg = <1>;
88+
sf_dpi_output: endpoint {
89+
remote-endpoint = <&dsi_in_port>;
90+
};
91+
};
92+
};
2893
};
2994

3095
&gmac0 {
@@ -57,6 +122,50 @@
57122
status = "okay";
58123
};
59124

125+
&hdmi {
126+
status = "okay";
127+
pinctrl-names = "default";
128+
pinctrl-0 = <&hdmi_pins>;
129+
hpd-gpio = <&sysgpio 15 GPIO_ACTIVE_HIGH>;
130+
hdmi_0p9-supply = <&hdmi_0p9>;
131+
hdmi_1p8-supply = <&hdmi_1p8>;
132+
133+
hdmi_in: port {
134+
#address-cells = <1>;
135+
#size-cells = <0>;
136+
hdmi_in_lcdc: endpoint@0 {
137+
reg = <0>;
138+
remote-endpoint = <&dc_out_dpi1>;
139+
};
140+
};
141+
};
142+
143+
&mipi_dphy {
144+
status = "okay";
145+
};
146+
147+
&mipi_dsi {
148+
status = "okay";
149+
150+
ports {
151+
#address-cells = <1>;
152+
#size-cells = <0>;
153+
154+
port@0 {
155+
reg = <0>;
156+
#address-cells = <1>;
157+
#size-cells = <0>;
158+
};
159+
160+
port@1{
161+
reg = <1>;
162+
dsi_in_port: endpoint {
163+
remote-endpoint = <&sf_dpi_output>;
164+
};
165+
};
166+
};
167+
};
168+
60169
&mmc0 {
61170
cap-mmc-highspeed;
62171
cap-mmc-hw-reset;
@@ -116,11 +225,63 @@
116225
status = "okay";
117226
};
118227

228+
&rgb_output {
229+
status = "disabled";
230+
231+
ports {
232+
#address-cells = <1>;
233+
#size-cells = <0>;
234+
port@0 {
235+
#address-cells = <1>;
236+
#size-cells = <0>;
237+
reg = <0>;
238+
hdmi_input0:endpoint@0 {
239+
reg = <0>;
240+
remote-endpoint = <&dc_out_dpi0>;
241+
};
242+
};
243+
};
244+
};
245+
119246
&spi0 {
120247
status = "okay";
121248
};
122249

123250
&sysgpio {
251+
hdmi_pins: hdmi-0 {
252+
scl-pins {
253+
pinmux = <GPIOMUX(0, GPOUT_SYS_HDMI_DDC_SCL,
254+
GPOEN_SYS_HDMI_DDC_SCL,
255+
GPI_SYS_HDMI_DDC_SCL)>;
256+
bias-pull-up;
257+
input-enable;
258+
};
259+
260+
sda-pins {
261+
pinmux = <GPIOMUX(1, GPOUT_SYS_HDMI_DDC_SDA,
262+
GPOEN_SYS_HDMI_DDC_SDA,
263+
GPI_SYS_HDMI_DDC_SDA)>;
264+
bias-pull-up;
265+
input-enable;
266+
};
267+
268+
cec-pins {
269+
pinmux = <GPIOMUX(14, GPOUT_SYS_HDMI_CEC_SDA,
270+
GPOEN_SYS_HDMI_CEC_SDA,
271+
GPI_SYS_HDMI_CEC_SDA)>;
272+
bias-pull-up;
273+
input-enable;
274+
};
275+
276+
hpd-pins {
277+
pinmux = <GPIOMUX(15, GPOUT_LOW,
278+
GPOEN_DISABLE,
279+
GPI_SYS_HDMI_HPD)>;
280+
bias-disable; /* external pull-up */
281+
input-enable;
282+
};
283+
};
284+
124285
usb0_pins: usb0-0 {
125286
vbus-pins {
126287
pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,

0 commit comments

Comments
 (0)