Commit 6fe8780b authored by Martin Blumenstingl's avatar Martin Blumenstingl
Browse files

ARM: dts: meson8: add the HDMI controller - WiP

parent 0e3cd7d0
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
@@ -310,6 +310,39 @@
			#cooling-cells = <2>; /* min followed by max */
		};

		hdmi_tx: hdmi-tx@42000 {
			compatible = "amlogic,meson8-hdmi-tx";
			reg = <0x42000 0xc>;
			interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
			phys = <&hdmi_tx_phy>;
			phy-names = "hdmi";
			clocks = <&clkc CLKID_HDMI_PCLK>,
				 <&clkc CLKID_HDMI_SYS>;
			clock-names = "pclk", "sys";

			#address-cells = <1>;
			#size-cells = <0>;

			#sound-dai-cells = <0>;
			sound-name-prefix = "HDMITX";

			status = "disabled";

			/* VPU VENC Input */
			hdmi_tx_venc_port: port@0 {
				reg = <0>;

				hdmi_tx_in: endpoint {
					remote-endpoint = <&hdmi_tx_out>;
				};
			};

			/* TMDS Output */
			hdmi_tx_tmds_port: port@1 {
				reg = <1>;
			};
		};

		vpu: vpu@100000 {
			compatible = "amlogic,meson8-vpu";

@@ -371,6 +404,15 @@
			cvbs_vdac_port: port@0 {
				reg = <0>;
			};

			/* HDMI-TX output port */
			hdmi_tx_port: port@1 {
				reg = <1>;

				hdmi_tx_out: endpoint {
					remote-endpoint = <&hdmi_tx_in>;
				};
			};
		};
	};
}; /* end of / */
@@ -474,6 +516,22 @@
			gpio-ranges = <&pinctrl_cbus 0 0 121>;
		};

		hdmi_hpd_pins: hdmi-hpd {
			mux {
				groups = "hdmi_hpd";
				function = "hdmi";
				bias-disable;
			};
		};

		hdmi_i2c_pins: hdmi-i2c {
			mux {
				groups = "hdmi_sda", "hdmi_scl";
				function = "hdmi";
				bias-disable;
			};
		};

		sd_a_pins: sd-a {
			mux {
				groups = "sd_d0_a", "sd_d1_a", "sd_d2_a",
@@ -618,6 +676,12 @@
		#reset-cells = <1>;
	};

	hdmi_tx_phy: phy {
		compatible = "amlogic,meson8-hdmi-tx-phy";
		clocks = <&clkc CLKID_HDMI_PLL_HDMI_OUT>;
		#phy-cells = <0>;
	};

	pwrc: power-controller {
		compatible = "amlogic,meson8-pwrc";
		#power-domain-cells = <1>;