* [PATCHv2 1/2] ARM: dts: imx23: Add i2c support
@ 2015-04-17 14:43 Harald Geyer
2015-04-17 14:43 ` [PATCHv2 2/2] ARM: dts: imx23-olinuxino: " Harald Geyer
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Harald Geyer @ 2015-04-17 14:43 UTC (permalink / raw)
To: linux-arm-kernel
The imx23-olinuxino board has an i2c interface exposed on UEXT connector.
This patch provides the generic devicetree infrastructure for a follow-up
patch to add support to the actual board files.
Tested all three possible pin groups with MOD-LCD1x9 from Olimex.
This patch is based on work by Fadil Berisha with his permission. However
all bugs are mine.
Signed-off-by: Harald Geyer <harald@ccbib.org>
---
changes since v1:
split in generic and board specific patches
arch/arm/boot/dts/imx23.dtsi | 40 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi
index bbcfb5a..c892d58 100644
--- a/arch/arm/boot/dts/imx23.dtsi
+++ b/arch/arm/boot/dts/imx23.dtsi
@@ -308,6 +308,39 @@
fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_ENABLE>;
};
+
+ i2c_pins_a: i2c at 0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ MX23_PAD_I2C_SCL__I2C_SCL
+ MX23_PAD_I2C_SDA__I2C_SDA
+ >;
+ fsl,drive-strength = <MXS_DRIVE_8mA>;
+ fsl,voltage = <MXS_VOLTAGE_HIGH>;
+ fsl,pull-up = <MXS_PULL_ENABLE>;
+ };
+
+ i2c_pins_b: i2c at 1 {
+ reg = <1>;
+ fsl,pinmux-ids = <
+ MX23_PAD_LCD_ENABLE__I2C_SCL
+ MX23_PAD_LCD_HSYNC__I2C_SDA
+ >;
+ fsl,drive-strength = <MXS_DRIVE_8mA>;
+ fsl,voltage = <MXS_VOLTAGE_HIGH>;
+ fsl,pull-up = <MXS_PULL_ENABLE>;
+ };
+
+ i2c_pins_c: i2c at 2 {
+ reg = <2>;
+ fsl,pinmux-ids = <
+ MX23_PAD_SSP1_DATA1__I2C_SCL
+ MX23_PAD_SSP1_DATA2__I2C_SDA
+ >;
+ fsl,drive-strength = <MXS_DRIVE_8mA>;
+ fsl,voltage = <MXS_VOLTAGE_HIGH>;
+ fsl,pull-up = <MXS_PULL_ENABLE>;
+ };
};
digctl at 8001c000 {
@@ -444,8 +477,13 @@
status = "disabled";
};
- i2c at 80058000 {
+ i2c: i2c at 80058000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "fsl,imx23-i2c";
reg = <0x80058000 0x2000>;
+ interrupts = <27>;
+ clock-frequency = <100000>;
dmas = <&dma_apbx 3>;
dma-names = "rx-tx";
status = "disabled";
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCHv2 2/2] ARM: dts: imx23-olinuxino: Add i2c support
2015-04-17 14:43 [PATCHv2 1/2] ARM: dts: imx23: Add i2c support Harald Geyer
@ 2015-04-17 14:43 ` Harald Geyer
2015-04-25 9:28 ` [PATCHv2 1/2] ARM: dts: imx23: " Stefan Wahren
2015-04-27 12:35 ` Shawn Guo
2 siblings, 0 replies; 5+ messages in thread
From: Harald Geyer @ 2015-04-17 14:43 UTC (permalink / raw)
To: linux-arm-kernel
The imx23-olinuxino board has an i2c interface exposed on UEXT connector.
This patch enables i2c and selects the pin group used on UEXT connector.
Tested with MOD-LCD1x9 from Olimex.
This patch is based on work by Fadil Berisha with his permission. However
all bugs are mine.
Signed-off-by: Harald Geyer <harald@ccbib.org>
---
changes since v1:
split in generic and board specific patches
arch/arm/boot/dts/imx23-olinuxino.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts
index 7e6eef2..85718df 100644
--- a/arch/arm/boot/dts/imx23-olinuxino.dts
+++ b/arch/arm/boot/dts/imx23-olinuxino.dts
@@ -73,6 +73,12 @@
status = "okay";
};
+ i2c: i2c at 80058000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c_pins_b>;
+ status = "okay";
+ };
+
duart: serial at 80070000 {
pinctrl-names = "default";
pinctrl-0 = <&duart_pins_a>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCHv2 1/2] ARM: dts: imx23: Add i2c support
2015-04-17 14:43 [PATCHv2 1/2] ARM: dts: imx23: Add i2c support Harald Geyer
2015-04-17 14:43 ` [PATCHv2 2/2] ARM: dts: imx23-olinuxino: " Harald Geyer
@ 2015-04-25 9:28 ` Stefan Wahren
2015-04-26 19:28 ` Marek Vasut
2015-04-27 12:35 ` Shawn Guo
2 siblings, 1 reply; 5+ messages in thread
From: Stefan Wahren @ 2015-04-25 9:28 UTC (permalink / raw)
To: linux-arm-kernel
Hi Harald,
[add Marek and Wolfram]
> Harald Geyer <harald@ccbib.org> hat am 17. April 2015 um 16:43 geschrieben:
>
>
> The imx23-olinuxino board has an i2c interface exposed on UEXT connector.
> This patch provides the generic devicetree infrastructure for a follow-up
> patch to add support to the actual board files.
> Tested all three possible pin groups with MOD-LCD1x9 from Olimex.
>
> This patch is based on work by Fadil Berisha with his permission. However
> all bugs are mine.
>
> Signed-off-by: Harald Geyer <harald@ccbib.org>
> ---
> changes since v1:
> split in generic and board specific patches
> arch/arm/boot/dts/imx23.dtsi | 40 +++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 39 insertions(+), 1 deletion(-)
>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCHv2 1/2] ARM: dts: imx23: Add i2c support
2015-04-25 9:28 ` [PATCHv2 1/2] ARM: dts: imx23: " Stefan Wahren
@ 2015-04-26 19:28 ` Marek Vasut
0 siblings, 0 replies; 5+ messages in thread
From: Marek Vasut @ 2015-04-26 19:28 UTC (permalink / raw)
To: linux-arm-kernel
On Saturday, April 25, 2015 at 11:28:30 AM, Stefan Wahren wrote:
> Hi Harald,
>
> [add Marek and Wolfram]
Thanks!
> > Harald Geyer <harald@ccbib.org> hat am 17. April 2015 um 16:43
> > geschrieben:
> >
> >
> > The imx23-olinuxino board has an i2c interface exposed on UEXT connector.
> > This patch provides the generic devicetree infrastructure for a follow-up
> > patch to add support to the actual board files.
> > Tested all three possible pin groups with MOD-LCD1x9 from Olimex.
> >
> > This patch is based on work by Fadil Berisha with his permission. However
> > all bugs are mine.
> >
> > Signed-off-by: Harald Geyer <harald@ccbib.org>
> > ---
> > changes since v1:
> > split in generic and board specific patches
> > arch/arm/boot/dts/imx23.dtsi | 40
> > +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39
> > insertions(+), 1 deletion(-)
>
> Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Marek Vasut <marex@denx.de>
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCHv2 1/2] ARM: dts: imx23: Add i2c support
2015-04-17 14:43 [PATCHv2 1/2] ARM: dts: imx23: Add i2c support Harald Geyer
2015-04-17 14:43 ` [PATCHv2 2/2] ARM: dts: imx23-olinuxino: " Harald Geyer
2015-04-25 9:28 ` [PATCHv2 1/2] ARM: dts: imx23: " Stefan Wahren
@ 2015-04-27 12:35 ` Shawn Guo
2 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2015-04-27 12:35 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Apr 17, 2015 at 02:43:24PM +0000, Harald Geyer wrote:
> The imx23-olinuxino board has an i2c interface exposed on UEXT connector.
> This patch provides the generic devicetree infrastructure for a follow-up
> patch to add support to the actual board files.
> Tested all three possible pin groups with MOD-LCD1x9 from Olimex.
>
> This patch is based on work by Fadil Berisha with his permission. However
> all bugs are mine.
>
> Signed-off-by: Harald Geyer <harald@ccbib.org>
Applied both, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-27 12:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17 14:43 [PATCHv2 1/2] ARM: dts: imx23: Add i2c support Harald Geyer
2015-04-17 14:43 ` [PATCHv2 2/2] ARM: dts: imx23-olinuxino: " Harald Geyer
2015-04-25 9:28 ` [PATCHv2 1/2] ARM: dts: imx23: " Stefan Wahren
2015-04-26 19:28 ` Marek Vasut
2015-04-27 12:35 ` Shawn Guo
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).