ARM: dts: sun6i: Enable HDMI support on some A31/A31s devices

All the A31/A31s devices I own have some kind of HDMI connector wired
to the dedicated HDMI pins on the SoC:

  - A31 Hummingbird (standard HDMI connector, display already enabled)
  - Sinlinx SinA31s (standard HDMI connector)
  - MSI Primo81 tablet (micro HDMI connector)

Enable the display pipeline (if needed) and HDMI output for them.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
Chen-Yu Tsai 2017-10-10 11:20:08 +08:00
Родитель 026b89cec3
Коммит 8b1447aed5
3 изменённых файлов: 71 добавлений и 0 удалений

Просмотреть файл

@ -62,6 +62,17 @@
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
hdmi-connector {
compatible = "hdmi-connector";
type = "a";
port {
hdmi_con_in: endpoint {
remote-endpoint = <&hdmi_out_con>;
};
};
};
vga-connector { vga-connector {
compatible = "vga-connector"; compatible = "vga-connector";
@ -162,6 +173,16 @@
}; };
}; };
&hdmi {
status = "okay";
};
&hdmi_out {
hdmi_out_con: endpoint {
remote-endpoint = <&hdmi_con_in>;
};
};
&i2c0 { &i2c0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>; pinctrl-0 = <&i2c0_pins_a>;

Просмотреть файл

@ -52,17 +52,42 @@
/ { / {
model = "MSI Primo81 tablet"; model = "MSI Primo81 tablet";
compatible = "msi,primo81", "allwinner,sun6i-a31s"; compatible = "msi,primo81", "allwinner,sun6i-a31s";
hdmi-connector {
compatible = "hdmi-connector";
type = "c";
port {
hdmi_con_in: endpoint {
remote-endpoint = <&hdmi_out_con>;
};
};
};
}; };
&cpu0 { &cpu0 {
cpu-supply = <&reg_dcdc3>; cpu-supply = <&reg_dcdc3>;
}; };
&de {
status = "okay";
};
&ehci0 { &ehci0 {
/* rtl8188etv wifi is connected here */ /* rtl8188etv wifi is connected here */
status = "okay"; status = "okay";
}; };
&hdmi {
status = "okay";
};
&hdmi_out {
hdmi_out_con: endpoint {
remote-endpoint = <&hdmi_con_in>;
};
};
&i2c0 { &i2c0 {
/* pull-ups and device VDDIO use AXP221 DLDO3 */ /* pull-ups and device VDDIO use AXP221 DLDO3 */
pinctrl-names = "default"; pinctrl-names = "default";

Просмотреть файл

@ -53,6 +53,17 @@
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
hdmi-connector {
compatible = "hdmi-connector";
type = "a";
port {
hdmi_con_in: endpoint {
remote-endpoint = <&hdmi_out_con>;
};
};
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
@ -90,6 +101,10 @@
status = "okay"; status = "okay";
}; };
&de {
status = "okay";
};
&ehci0 { &ehci0 {
/* USB 2.0 4 port hub IC */ /* USB 2.0 4 port hub IC */
status = "okay"; status = "okay";
@ -112,6 +127,16 @@
}; };
}; };
&hdmi {
status = "okay";
};
&hdmi_out {
hdmi_out_con: endpoint {
remote-endpoint = <&hdmi_con_in>;
};
};
&ir { &ir {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ir_pins_a>; pinctrl-0 = <&ir_pins_a>;