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

Commit 1c3389e6 authored by Marcel Ziswiler's avatar Marcel Ziswiler Committed by Thierry Reding
Browse files

ARM: tegra: Fix I2C bus frequencies on Apalis/Colibri



Use a faster speed of 400 kbit/s for regular I2C busses.

Use a slower speed of 10 kbit/s for DDC/EDID to improve reliability.

Use a slower speed of 100 kbit/s for power I2C to be within specs of
the LM95245 temperature sensor.

While at it further annotate I2C pin usage.

Signed-off-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 1014e895
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -105,7 +105,7 @@
	 */
	 */
	i2c@7000c000 {
	i2c@7000c000 {
		status = "okay";
		status = "okay";
		clock-frequency = <100000>;
		clock-frequency = <400000>;


		pcie-switch@58 {
		pcie-switch@58 {
			compatible = "plx,pex8605";
			compatible = "plx,pex8605";
@@ -124,7 +124,6 @@
	 */
	 */
	hdmi_ddc: i2c@7000c400 {
	hdmi_ddc: i2c@7000c400 {
		status = "okay";
		status = "okay";
		clock-frequency = <100000>;
	};
	};


	/*
	/*
@@ -133,7 +132,7 @@
	 */
	 */
	i2c@7000c500 {
	i2c@7000c500 {
		status = "okay";
		status = "okay";
		clock-frequency = <100000>;
		clock-frequency = <400000>;
	};
	};


	/* I2C4 (DDC): unused */
	/* I2C4 (DDC): unused */
+1 −1
Original line number Original line Diff line number Diff line
@@ -1579,7 +1579,7 @@
	};
	};


	hdmi_ddc: i2c@7000c400 {
	hdmi_ddc: i2c@7000c400 {
		clock-frequency = <100000>;
		clock-frequency = <10000>;
	};
	};


	/* PWR_I2C: power I2C to audio codec, PMIC and temperature sensor */
	/* PWR_I2C: power I2C to audio codec, PMIC and temperature sensor */
+11 −5
Original line number Original line Diff line number Diff line
@@ -213,21 +213,27 @@
			GPIO_ACTIVE_HIGH>;
			GPIO_ACTIVE_HIGH>;
	};
	};


	/*
	 * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier
	 * board)
	 */
	i2c@7000c000 {
	i2c@7000c000 {
		clock-frequency = <400000>;
		clock-frequency = <400000>;
	};
	};


	/* DDC_SCL/SDA on X3 pin 15/16 (e.g. display EDID) */
	i2c_ddc: i2c@7000c400 {
	i2c_ddc: i2c@7000c400 {
		clock-frequency = <100000>;
		clock-frequency = <10000>;
	};
	};


	i2c@7000c500 {
	/* GEN2_I2C: unused */
		clock-frequency = <400000>;
	};


	/* CAM/GEN3_I2C: used as EXT_IO1/2 GPIOs on SODIMM pin 133/127 */

	/* PWR_I2C: power I2C to PMIC and temperature sensor (On-module) */
	i2c@7000d000 {
	i2c@7000d000 {
		status = "okay";
		status = "okay";
		clock-frequency = <400000>;
		clock-frequency = <100000>;


		pmic: tps6586x@34 {
		pmic: tps6586x@34 {
			compatible = "ti,tps6586x";
			compatible = "ti,tps6586x";
+1 −1
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@
	 */
	 */
	i2c@7000c000 {
	i2c@7000c000 {
		status = "okay";
		status = "okay";
		clock-frequency = <100000>;
		clock-frequency = <400000>;


		pcie-switch@58 {
		pcie-switch@58 {
			compatible = "plx,pex8605";
			compatible = "plx,pex8605";
+1 −1
Original line number Original line Diff line number Diff line
@@ -437,7 +437,7 @@
	};
	};


	hdmiddc: i2c@7000c700 {
	hdmiddc: i2c@7000c700 {
		clock-frequency = <100000>;
		clock-frequency = <10000>;
	};
	};


	/*
	/*
Loading