From: Magnus Damm <magnus.damm@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 04/04 v2] ARM: shmobile: Genmai I2C-over-GPIO support
Date: Tue, 17 Dec 2013 05:03:24 +0000 [thread overview]
Message-ID: <20131217050324.727.61701.sendpatchset@w520> (raw)
In-Reply-To: <20131217050232.727.9552.sendpatchset@w520>
From: Magnus Damm <damm@opensource.se>
Add support for the Genmai I2C bus hooked up to P1_5 and P1_4 using
the i2c-gpio driver. On the bus sits a 24c128 EEPRROM.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
Changes since V1:
- Use compatible string "renesas,12c128" and set pagesize, thanks Wolfram!
- Use "flash@50", thanks Sergei!
arch/arm/boot/dts/r7s72100-genmai-reference.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
--- 0011/arch/arm/boot/dts/r7s72100-genmai-reference.dts
+++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-12-16 20:08:48.000000000 +0900
@@ -39,6 +39,24 @@
gpios = <&port4 11 GPIO_ACTIVE_LOW>;
};
};
+
+ i2c@0 {
+ compatible = "i2c-gpio";
+ gpios = <&port1 5 GPIO_ACTIVE_HIGH /* sda */
+ &port1 4 GPIO_ACTIVE_HIGH /* scl */
+ >;
+ i2c-gpio,sda-open-drain;
+ i2c-gpio,scl-open-drain;
+ i2c-gpio,delay-us = <5>; /* ~100 kHz */
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ flash@50 {
+ compatible = "renesas,24c128";
+ reg = <0x50>;
+ pagesize = <64>;
+ };
+ };
};
&pfc {
next prev parent reply other threads:[~2013-12-17 5:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 5:02 [PATCH 00/04 v2] ARM: shmobile: r7s72100 and Genmai GPIO / PINCTRL V2 Magnus Damm
2013-12-17 5:02 ` [PATCH 01/04] ARM: shmobile: r7s72100 GPIO and PINCTRL device nodes Magnus Damm
2013-12-17 16:29 ` Laurent Pinchart
2013-12-17 22:41 ` Magnus Damm
2013-12-18 0:40 ` Laurent Pinchart
2013-12-18 2:07 ` Magnus Damm
2013-12-19 0:15 ` Laurent Pinchart
2013-12-19 7:39 ` Magnus Damm
2013-12-17 17:01 ` Wolfram Sang
2013-12-17 5:03 ` [PATCH 02/04] ARM: shmobile: Genmai SCIF2 PINCTRL configuration Magnus Damm
2013-12-17 5:03 ` [PATCH 03/04] ARM: shmobile: Genmai LED1 and LED2 support Magnus Damm
2013-12-17 5:03 ` Magnus Damm [this message]
2013-12-17 16:34 ` [PATCH 04/04 v2] ARM: shmobile: Genmai I2C-over-GPIO support Wolfram Sang
2014-01-08 0:41 ` Simon Horman
2014-01-08 11:23 ` Wolfram Sang
2014-01-09 4:35 ` Simon Horman
2013-12-18 14:26 ` [PATCH 00/04 v2] ARM: shmobile: r7s72100 and Genmai GPIO / PINCTRL V2 Geert Uytterhoeven
2014-01-08 0:45 ` Simon Horman
2014-01-08 0:48 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131217050324.727.61701.sendpatchset@w520 \
--to=magnus.damm@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).