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

Commit 8f165580 authored by Ray Zhang's avatar Ray Zhang
Browse files

ARM: dts: msm: add lt9611 support for qcs605 camera



qcs605 camera uses LT9611 as the DSI to HDMI bridge chip.
DSI bridge device is working like a DSI client so add the
device tree changes to support this bridge device.

CRs-Fixed: 2140653
Change-Id: Ia5d489c7665496e29511847ada50a8a6db2e22e2
Signed-off-by: default avatarRay Zhang <rayz@codeaurora.org>
parent 829bf60c
Loading
Loading
Loading
Loading
+85 −1
Original line number Diff line number Diff line
@@ -43,10 +43,94 @@
	status = "disabled";
};

&dsi_dual_nt35597_truly_video {
&dsi_dual_nt35597_truly_video_display {
	status = "disabled";
};

&qupv3_se9_i2c {
	status = "okay";
	lt9611@3b {
		compatible = "lt,lt9611";
		reg = <0x3b>;
		interrupt-parent = <&tlmm>;
		interrupts = <125 0>;
		interrupt-names = "lt_irq";
		lt,irq-gpio = <&tlmm 125 0x0>;
		lt,reset-gpio = <&tlmm 134 0x0>;
		lt,hdmi-ps-gpio = <&tlmm 136 0x0>;
		lt,hdmi-en-gpio = <&tlmm 137 0x0>;
		lt,non-pluggable;

		vcc-supply = <&pm660l_l6>;
		vdd-supply = <&pm660_l11>;
		lt,supply-entries {
			#address-cells = <1>;
			#size-cells = <0>;

			lt,supply-entry@0 {
				reg = <0>;
				lt,supply-name = "vcc";
				lt,supply-min-voltage = <3300000>;
				lt,supply-max-voltage = <3300000>;
				lt,supply-enable-load = <200000>;
				lt,supply-post-on-sleep = <50>;
			};

			lt,supply-entry@1 {
				reg = <1>;
				lt,supply-name = "vdd";
				lt,supply-min-voltage = <1800000>;
				lt,supply-max-voltage = <1800000>;
				lt,supply-enable-load = <200000>;
				lt,supply-post-on-sleep = <50>;
			};
		};

		lt,customize-modes {
			lt,customize-mode-id@0 {
				lt,mode-h-active = <1920>;
				lt,mode-h-front-porch = <88>;
				lt,mode-h-pulse-width = <44>;
				lt,mode-h-back-porch = <148>;
				lt,mode-h-active-high;
				lt,mode-v-active = <1080>;
				lt,mode-v-front-porch = <4>;
				lt,mode-v-pulse-width = <5>;
				lt,mode-v-back-porch = <36>;
				lt,mode-v-active-high;
				lt,mode-refresh-rate = <60>;
				lt,mode-clock-in-khz = <148500>;
			};
		};

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

			port@0 {
				reg = <0>;
				lt9611_in: endpoint {
					remote-endpoint = <&ext_dsi_out>;
				};
			};
		};
	};
};

&soc {
	qcom,dsi-display@17 {
		qcom,dsi-display-active;

		ports {
			port@0 {
				endpoint {
					remote-endpoint = <&lt9611_in>;
				};
			};
		};
	};
};

&int_codec {
	qcom,model = "sdm670-360cam-snd-card";
	qcom,audio-routing =
+23 −0
Original line number Diff line number Diff line
@@ -489,6 +489,29 @@
		ibb-supply = <&lcdb_ncp_vreg>;
	};

	ext_dsi_bridge_display: qcom,dsi-display@17 {
		compatible = "qcom,dsi-display";
		label = "ext_dsi_bridge_display";
		qcom,display-type = "primary";

		qcom,dsi-ctrl = <&mdss_dsi0>;
		qcom,dsi-phy = <&mdss_dsi_phy0>;
		clocks = <&mdss_dsi0_pll BYTECLK_MUX_0_CLK>,
		       <&mdss_dsi0_pll PCLK_MUX_0_CLK>;
		clock-names = "src_byte_clk", "src_pixel_clk";

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

			port@0 {
				reg = <0>;
				ext_dsi_out: endpoint {
				};
			};
		};
	};

	sde_wb: qcom,wb-display@0 {
		compatible = "qcom,wb-display";
		cell-index = <0>;