linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: shmobile: gose: add i2c2 bus to device tree
@ 2016-01-04 22:16 Simon Horman
  2016-01-06  8:51 ` Wolfram Sang
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2016-01-04 22:16 UTC (permalink / raw)
  To: linux-arm-kernel

Activate i2c2 bus in r8a7793/gose device tree.

Based on similar work for the r8a7791/koelsch by Wolfram Sang.

Cc: Wolfram Sang <wsa@sang-engineering.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

---
v2
* Update eprom compat strings to "renesas,r1ex24002", "atmel,24c02".
  The former needs to be documented once the desired mechanism
  for documenting eprom compat strings has been confirmed
  with the maintainer.
---
 arch/arm/boot/dts/r8a7793-gose.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts
index 90b587c3c736..987ed03b1e02 100644
--- a/arch/arm/boot/dts/r8a7793-gose.dts
+++ b/arch/arm/boot/dts/r8a7793-gose.dts
@@ -136,6 +136,11 @@
 };
 
 &pfc {
+	i2c2_pins: i2c2 {
+		renesas,groups = "i2c2";
+		renesas,function = "i2c2";
+	};
+
 	scif0_pins: serial0 {
 		renesas,groups = "scif0_data_d";
 		renesas,function = "scif0";
@@ -234,3 +239,17 @@
 		};
 	};
 };
+
+&i2c2 {
+	pinctrl-0 = <&i2c2_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <100000>;
+
+	eeprom at 50 {
+		compatible = "renesas,r1ex24002", "atmel,24c02";
+		reg = <0x50>;
+		pagesize = <16>;
+	};
+};
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2] ARM: shmobile: gose: add i2c2 bus to device tree
  2016-01-04 22:16 [PATCH v2] ARM: shmobile: gose: add i2c2 bus to device tree Simon Horman
@ 2016-01-06  8:51 ` Wolfram Sang
  2016-01-06 21:30   ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2016-01-06  8:51 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 05, 2016 at 09:16:20AM +1100, Simon Horman wrote:
> Activate i2c2 bus in r8a7793/gose device tree.
> 
> Based on similar work for the r8a7791/koelsch by Wolfram Sang.
> 
> Cc: Wolfram Sang <wsa@sang-engineering.com>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

> * Update eprom compat strings to "renesas,r1ex24002", "atmel,24c02".
>   The former needs to be documented once the desired mechanism
>   for documenting eprom compat strings has been confirmed
>   with the maintainer.

I'll take care of this now.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160106/e38b612e/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2] ARM: shmobile: gose: add i2c2 bus to device tree
  2016-01-06  8:51 ` Wolfram Sang
@ 2016-01-06 21:30   ` Simon Horman
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2016-01-06 21:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Jan 06, 2016 at 09:51:18AM +0100, Wolfram Sang wrote:
> On Tue, Jan 05, 2016 at 09:16:20AM +1100, Simon Horman wrote:
> > Activate i2c2 bus in r8a7793/gose device tree.
> > 
> > Based on similar work for the r8a7791/koelsch by Wolfram Sang.
> > 
> > Cc: Wolfram Sang <wsa@sang-engineering.com>
> > Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> 
> Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Thanks, I have queued this up.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-06 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04 22:16 [PATCH v2] ARM: shmobile: gose: add i2c2 bus to device tree Simon Horman
2016-01-06  8:51 ` Wolfram Sang
2016-01-06 21:30   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).