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

Commit e0e23629 authored by Alok Chauhan's avatar Alok Chauhan Committed by Michael Bohan
Browse files

ARM: dts: msm: Config I2C on BLSP1 QUP2 for 8916



Configure I2C master controller on BLSP1 QUP2. Set
the pinctrl data and set its clocks in such a way
that it may be used for testing.

Change-Id: I62193b59e16a461d79dfe63fb726da7fcf85977e
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent c13b5fde
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -166,5 +166,31 @@
				bias-disable = <0>;
			};
		};

		i2c0_active {
			/* CLK, DATA */
			qcom,pins = <&gp 7>, <&gp 6>;
			qcom,num-grp-pins = <2>;
			qcom,pin-func = <3>;
			label = "i2c0-active";
			/* active state */
			i2c_default: default {
				drive-strength = <2>; /* 2 MA */
				bias-disable = <0>; /* No PULL */
			};
		};

		i2c0_suspend {
			/* CLK, DATA */
			qcom,pins = <&gp 7>, <&gp 6>;
			qcom,num-grp-pins = <2>;
			qcom,pin-func = <0>;
			label = "i2c0-suspend";
			/*suspended state */
			i2c_sleep: sleep {
				drive-strength = <2>; /* 2 MA */
				bias-disable = <0>; /* No PULL */
			};
		};
	};
};
+20 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
		smd36 = &smdtty_loopback;

		spi0 = &spi_0; /* SPI0 controller device */
		i2c0 = &i2c_0; /* I2C0 controller device */
	};

	cpus {
@@ -613,6 +614,25 @@
                qcom,bam-producer-pipe-index = <9>;
                qcom,master-id = <86>;
        };

	i2c_0: i2c@78b6000 { /* BLSP1 QUP2 */
		compatible = "qcom,i2c-msm-v2";
		reg-names = "qup_phys_addr", "bam_phys_addr";
		reg = <0x78b6000 0x600>,
		      <0x7884000 0x23000>;
		interrupt-names = "qup_irq", "bam_irq";
		interrupts = <0 96 0>, <0 238 0>;
		qcom,clk-freq-out = <100000>;
		qcom,clk-freq-in  = <19200000>;
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&i2c_default>;
		pinctrl-1 = <&i2c_sleep>;
		qcom,noise-rjct-scl = <0>;
		qcom,noise-rjct-sda = <0>;
		qcom,bam-pipe-idx-cons = <6>;
		qcom,bam-pipe-idx-prod = <7>;
		qcom,master-id = <86>;
	};
};

&gdsc_venus {
+2 −0
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@ static struct clk_lookup msm_clocks_8916[] = {
	CLK_DUMMY("dfab_clk",   DFAB_CLK,       "msm_sps", OFF),
	CLK_DUMMY("core_clk",	BLSP1_SPI_CLK,	"78b7000.spi", OFF),
	CLK_DUMMY("iface_clk",	BLSP1_SPI_CLK,	"78b7000.spi", OFF),
	CLK_DUMMY("core_clk",	BLSP1_I2C_CLK,	"78b6000.i2c", OFF),
	CLK_DUMMY("iface_clk",	BLSP1_I2C_CLK,  "78b6000.i2c", OFF),
	CLK_DUMMY("",	camss_ahb_clk_src.c,	"", OFF),
	CLK_DUMMY("",	csi0_clk_src.c,	"", OFF),
	CLK_DUMMY("",	csi1_clk_src.c,	"", OFF),