Commit 8b1447ae authored by Chen-Yu Tsai's avatar Chen-Yu Tsai

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: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 026b89ce
...@@ -62,6 +62,17 @@ chosen { ...@@ -62,6 +62,17 @@ chosen {
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 @@ phy1: ethernet-phy@1 { ...@@ -162,6 +173,16 @@ phy1: ethernet-phy@1 {
}; };
}; };
&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 @@ ...@@ -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 @@ chosen { ...@@ -53,6 +53,17 @@ chosen {
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 @@ &codec { ...@@ -90,6 +101,10 @@ &codec {
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 @@ phy1: ethernet-phy@1 { ...@@ -112,6 +127,16 @@ phy1: ethernet-phy@1 {
}; };
}; };
&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>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment