devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add R8A7794/SILK I2C device tree support
@ 2015-08-19 21:57 Sergei Shtylyov
  2015-08-19 22:00 ` [PATCH 1/2] ARM: shmobile: r8a7794: add I2C DT support Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2015-08-19 21:57 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's
'renesas-devel-20150819-v4.2-rc7' tag. Here we add the I2C device tree support
for the R8A7794/SILK board.

[1/2] ARM: shmobile: r8a7794: add I2C DT support
[2/2] ARM: shmobile: silk: add I2C1 DT support

WBR, Sergei


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

* [PATCH 1/2] ARM: shmobile: r8a7794: add I2C DT support
  2015-08-19 21:57 [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
@ 2015-08-19 22:00 ` Sergei Shtylyov
  2015-08-19 22:05 ` [PATCH 2/2] ARM: shmobile: silk: add I2C1 " Sergei Shtylyov
  2015-08-19 22:08 ` [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
  2 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2015-08-19 22:00 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Define the generic R8A7794 parts of the I2C[0-5] device nodes.

Based on the original patch by Koji Matsuoka <koji.matsuoka.xm@renesas.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7794.dtsi |   73 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7794.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi
+++ renesas/arch/arm/boot/dts/r8a7794.dtsi
@@ -20,6 +20,12 @@
 	#size-cells = <2>;
 
 	aliases {
+		i2c0 = &i2c0;
+		i2c1 = &i2c1;
+		i2c2 = &i2c2;
+		i2c3 = &i2c3;
+		i2c4 = &i2c4;
+		i2c5 = &i2c5;
 		spi0 = &qspi;
 	};
 
@@ -500,6 +506,73 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		status = "disabled";
+	};
+
+	/* The memory map in the User's Manual maps the cores to bus numbers */
+	i2c0: i2c@e6508000 {
+		compatible = "renesas,i2c-r8a7794";
+		reg = <0 0xe6508000 0 0x40>;
+		interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7794_CLK_I2C0>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	i2c1: i2c@e6518000 {
+		compatible = "renesas,i2c-r8a7794";
+		reg = <0 0xe6518000 0 0x40>;
+		interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7794_CLK_I2C1>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	i2c2: i2c@e6530000 {
+		compatible = "renesas,i2c-r8a7794";
+		reg = <0 0xe6530000 0 0x40>;
+		interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7794_CLK_I2C2>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	i2c3: i2c@e6540000 {
+		compatible = "renesas,i2c-r8a7794";
+		reg = <0 0xe6540000 0 0x40>;
+		interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7794_CLK_I2C3>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	i2c4: i2c@e6520000 {
+		compatible = "renesas,i2c-r8a7794";
+		reg = <0 0xe6520000 0 0x40>;
+		interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7794_CLK_I2C4>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	i2c5: i2c@e6528000 {
+		compatible = "renesas,i2c-r8a7794";
+		reg = <0 0xe6528000 0 0x40>;
+		interrupts = <0 20 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7794_CLK_I2C5>;
+		power-domains = <&cpg_clocks>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
 	};
 
 	mmcif0: mmc@ee200000 {


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

* [PATCH 2/2] ARM: shmobile: silk: add I2C1 DT support
  2015-08-19 21:57 [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
  2015-08-19 22:00 ` [PATCH 1/2] ARM: shmobile: r8a7794: add I2C DT support Sergei Shtylyov
@ 2015-08-19 22:05 ` Sergei Shtylyov
  2015-08-19 22:08 ` [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
  2 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2015-08-19 22:05 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Define the SILK board dependent part of the I2C1 device node.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7794-silk.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
+++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
@@ -85,6 +85,11 @@
 		renesas,function = "intc";
 	};
 
+	i2c1_pins: i2c1 {
+		renesas,groups = "i2c1";
+		renesas,function = "i2c1";
+	};
+
 	mmcif0_pins: mmcif0 {
 		renesas,groups = "mmc_data8", "mmc_ctrl";
 		renesas,function = "mmc";
@@ -124,6 +129,14 @@
 	};
 };
 
+&i2c1 {
+	pinctrl-0 = <&i2c1_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <400000>;
+};
+
 &mmcif0 {
 	pinctrl-0 = <&mmcif0_pins>;
 	pinctrl-names = "default";


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

* Re: [PATCH 0/2] Add R8A7794/SILK I2C device tree support
  2015-08-19 21:57 [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
  2015-08-19 22:00 ` [PATCH 1/2] ARM: shmobile: r8a7794: add I2C DT support Sergei Shtylyov
  2015-08-19 22:05 ` [PATCH 2/2] ARM: shmobile: silk: add I2C1 " Sergei Shtylyov
@ 2015-08-19 22:08 ` Sergei Shtylyov
  2015-08-20 18:54   ` Simon Horman
  2 siblings, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2015-08-19 22:08 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

On 08/20/2015 12:57 AM, Sergei Shtylyov wrote:

>     Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's
> 'renesas-devel-20150819-v4.2-rc7' tag. Here we add the I2C device tree support
> for the R8A7794/SILK board.
>
> [1/2] ARM: shmobile: r8a7794: add I2C DT support
> [2/2] ARM: shmobile: silk: add I2C1 DT support

    Simon, actually the above patch is atop of my SILK SDHI1 patch but should 
apply with offsets atop of your tag.

MBR, Sergei


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

* Re: [PATCH 0/2] Add R8A7794/SILK I2C device tree support
  2015-08-19 22:08 ` [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
@ 2015-08-20 18:54   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2015-08-20 18:54 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
	galak, devicetree, magnus.damm, linux, linux-arm-kernel

On Thu, Aug 20, 2015 at 01:08:33AM +0300, Sergei Shtylyov wrote:
> On 08/20/2015 12:57 AM, Sergei Shtylyov wrote:
> 
> >    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's
> >'renesas-devel-20150819-v4.2-rc7' tag. Here we add the I2C device tree support
> >for the R8A7794/SILK board.
> >
> >[1/2] ARM: shmobile: r8a7794: add I2C DT support
> >[2/2] ARM: shmobile: silk: add I2C1 DT support
> 
>    Simon, actually the above patch is atop of my SILK SDHI1 patch but should
> apply with offsets atop of your tag.

Thanks for following up.

I have queued up this series for v4.4.

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

end of thread, other threads:[~2015-08-20 18:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 21:57 [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
2015-08-19 22:00 ` [PATCH 1/2] ARM: shmobile: r8a7794: add I2C DT support Sergei Shtylyov
2015-08-19 22:05 ` [PATCH 2/2] ARM: shmobile: silk: add I2C1 " Sergei Shtylyov
2015-08-19 22:08 ` [PATCH 0/2] Add R8A7794/SILK I2C device tree support Sergei Shtylyov
2015-08-20 18:54   ` 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).