Skip to contentSkip to conversation

arm/dts: omap3-evm: Add i2c and twl4030 support

PATCH New Vaibhav Hiremath 2 participants 3 messages Jan 18, 2012 – Jan 23, 2012 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/dts: omap3-evm: Add i2c and twl4030 support

Add support for TWL4030, which is interfaced on i2c1 bus. Also add clock frequencies for other i2c instances(2 & 3) required for client-device exist on OMAP3EVM board.

Cc Benoit Cousson <[email protected]>
Cc Grant Likely <[email protected]>
Cc Tony Lindgren <[email protected]>
---
 arch/arm/boot/dts/omap3-evm.dts |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap3-evm.dts +28 -0
index 2eee16e..530bdc0 100644
@@ -18,3 +18,31 @@
 		reg = <0x80000000 0x10000000>; /* 256 MB */
 	};
 };
+
+&i2c1 {
+	clock-frequency = <2600000>;
+
+	twl: twl at 48 {
+		reg = <0x48>;
+		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+	};
+};
+
+/include/ "twl4030.dtsi"
+
+&i2c2 {
+	clock-frequency = <400000>;
+};
+
+&i2c3 {
+	clock-frequency = <400000>;
+
+	/*
+	 * TVP5146 Video decoder-in for analog input support.
+	 */
+	tvp5146 at 5C {
+		compatible = "ti,tvp5146m2";
+		reg = <0x5C>;
+	};
+};
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 arm/dts: omap3-evm: Add i2c and twl4030 support

Quoted 52 lines · Vaibhav

Add support for TWL4030, which is interfaced on i2c1 bus. Also add clock frequencies for other i2c instances(2 & 3) required for client-device exist on OMAP3EVM board.

Cc Benoit Cousson <[email protected]>
Cc Grant Likely <[email protected]>
Cc Tony Lindgren <[email protected]>
---
 arch/arm/boot/dts/omap3-evm.dts |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap3-evm.dts +28 -0
index 2eee16e..530bdc0 100644
@@ -18,3 +18,31 @@
 		reg = <0x80000000 0x10000000>; /* 256 MB */
 	};
 };
+
+&i2c1 {
+	clock-frequency = <2600000>;
+
+	twl: twl at 48 {
+		reg = <0x48>;
+		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+	};
+};
+
+/include/ "twl4030.dtsi"
+
+&i2c2 {
+	clock-frequency = <400000>;
+};
+
+&i2c3 {
+	clock-frequency = <400000>;
+
+	/*
+	 * TVP5146 Video decoder-in for analog input support.
+	 */
+	tvp5146 at 5C {
+		compatible = "ti,tvp5146m2";
+		reg = <0x5C>;
+	};
+};
Signature · 1 line
1.7.0.4

Benoit,

Can this (and also AM3517 DT support patch) be merged to your next pull request?

Thanks,
Vaibhav

#2 lore raw

PATCH 1/1 arm/dts: omap3-evm: Add i2c and twl4030 support

Hi Vaibhav,

Quoted 39 lines · Vaibhav
Quoted 38 lines · Vaibhav

Add support for TWL4030, which is interfaced on i2c1 bus. Also add clock frequencies for other i2c instances(2& 3) required for client-device exist on OMAP3EVM board.

Cc Benoit Cousson<[email protected]>
Cc Grant Likely<[email protected]>
Cc Tony Lindgren<[email protected]>
---
  arch/arm/boot/dts/omap3-evm.dts |   28 ++++++++++++++++++++++++++++
  1 files changed, 28 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap3-evm.dts +18 -0
index 2eee16e..530bdc0 100644
@@ -18,3 +18,31 @@
  		reg =<0x80000000 0x10000000>; /* 256 MB */
  	};
  };
+
+&i2c1 {
+	clock-frequency =<2600000>;
+
+	twl: twl at 48 {
+		reg =<0x48>;
+		interrupts =<7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent =<&intc>;
+	};
+};
+
+/include/ "twl4030.dtsi"
+
+&i2c2 {
+	clock-frequency =<400000>;
+};
+
+&i2c3 {
Quoted 8 lines

arch/arm/boot/dts/omap3-evm.dts

Quoted 8 lines
arch/arm/boot/dts/omap3-evm.dts +8 -0
+	clock-frequency =<400000>;
+
+	/*
+	 * TVP5146 Video decoder-in for analog input support.
+	 */
+	tvp5146 at 5C {
+		compatible = "ti,tvp5146m2";
+		reg =<0x5C>;

Minor nit: Use lower case for hexa value.

Quoted 11 lines
Quoted 6 lines
arch/arm/boot/dts/omap3-evm.dts +2 -1
+	};
+};
--

1.7.0.4

Benoit,

Can this (and also AM3517 DT support patch) be merged to your next pull request?

Yes, assuming that Grant/Rob will ack it, I can take it.

Regards,
Benoit