Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -62,6 +62,17 @@
		stdout-path = "serial0:115200n8";
	};

	hdmi-connector {
		compatible = "hdmi-connector";
		type = "a";

		port {
			hdmi_con_in: endpoint {
				remote-endpoint = <&hdmi_out_con>;
			};
		};
	};

	vga-connector {
		compatible = "vga-connector";

@@ -162,6 +173,16 @@
	};
};

&hdmi {
	status = "okay";
};

&hdmi_out {
	hdmi_out_con: endpoint {
		remote-endpoint = <&hdmi_con_in>;
	};
};

&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c0_pins_a>;
+25 −0
Original line number Diff line number Diff line
@@ -52,17 +52,42 @@
/ {
	model = "MSI Primo81 tablet";
	compatible = "msi,primo81", "allwinner,sun6i-a31s";

	hdmi-connector {
		compatible = "hdmi-connector";
		type = "c";

		port {
			hdmi_con_in: endpoint {
				remote-endpoint = <&hdmi_out_con>;
			};
		};
	};
};

&cpu0 {
	cpu-supply = <&reg_dcdc3>;
};

&de {
	status = "okay";
};

&ehci0 {
	/* rtl8188etv wifi is connected here */
	status = "okay";
};

&hdmi {
	status = "okay";
};

&hdmi_out {
	hdmi_out_con: endpoint {
		remote-endpoint = <&hdmi_con_in>;
	};
};

&i2c0 {
	/* pull-ups and device VDDIO use AXP221 DLDO3 */
	pinctrl-names = "default";
+25 −0
Original line number Diff line number Diff line
@@ -53,6 +53,17 @@
		stdout-path = "serial0:115200n8";
	};

	hdmi-connector {
		compatible = "hdmi-connector";
		type = "a";

		port {
			hdmi_con_in: endpoint {
				remote-endpoint = <&hdmi_out_con>;
			};
		};
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
@@ -90,6 +101,10 @@
	status = "okay";
};

&de {
	status = "okay";
};

&ehci0 {
	/* USB 2.0 4 port hub IC */
	status = "okay";
@@ -112,6 +127,16 @@
	};
};

&hdmi {
	status = "okay";
};

&hdmi_out {
	hdmi_out_con: endpoint {
		remote-endpoint = <&hdmi_con_in>;
	};
};

&ir {
	pinctrl-names = "default";
	pinctrl-0 = <&ir_pins_a>;