SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c
@ 2014-07-10 10:50 Wolfram Sang
  2014-07-11  8:50 ` Simon Horman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wolfram Sang @ 2014-07-10 10:50 UTC (permalink / raw)
  To: linux-sh

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

On Lager board, i2c and iic cores can be interchanged since they can be
muxed to the same wires. Commit e489c2a9bc82713167d9f721ca764f4b0d37e543
("ARM: shmobile: lager: enable i2c devices") activated the i2c cores,
yet the iic cores should be default since they have the more interesting
features for generic use cases, i.e. SMBUS_QUICK and DMA (yet to be
supported).

Reported-by: Khiem Nguyen <khiem.nguyen.xt@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

This applies on top of renesas-devel-v3.16-rc4-20140709 with "[PATCH v2] ARM:
shmobile: Lager: Correct I2C bus for VDD MPU regulator" applied. Both patches
should go into v3.16 IMO, otherwise the bus numbering change will be visible
for end users (i2c busses are 0-3, iic are 4-7 as mentioned in the hardware
manuals).

 arch/arm/boot/dts/r8a7790-lager.dts | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index ffe0523ff16f..856b4236b674 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -205,14 +205,14 @@
 		renesas,function = "msiof1";
 	};
 
-	i2c1_pins: i2c1 {
-		renesas,groups = "i2c1";
-		renesas,function = "i2c1";
+	iic1_pins: iic1 {
+		renesas,groups = "iic1";
+		renesas,function = "iic1";
 	};
 
-	i2c2_pins: i2c2 {
-		renesas,groups = "i2c2";
-		renesas,function = "i2c2";
+	iic2_pins: iic2 {
+		renesas,groups = "iic2";
+		renesas,function = "iic2";
 	};
 
 	iic3_pins: iic3 {
@@ -352,19 +352,19 @@
 	cpu0-supply = <&vdd_dvfs>;
 };
 
-&i2c0	{
+&iic0	{
 	status = "ok";
 };
 
-&i2c1	{
+&iic1	{
 	status = "ok";
-	pinctrl-0 = <&i2c1_pins>;
+	pinctrl-0 = <&iic1_pins>;
 	pinctrl-names = "default";
 };
 
-&i2c2	{
+&iic2	{
 	status = "ok";
-	pinctrl-0 = <&i2c2_pins>;
+	pinctrl-0 = <&iic2_pins>;
 	pinctrl-names = "default";
 };
 
-- 
2.0.0


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

* Re: [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c
  2014-07-10 10:50 [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c Wolfram Sang
@ 2014-07-11  8:50 ` Simon Horman
  2014-07-13 13:43 ` Wolfram Sang
  2014-07-15  4:17 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-07-11  8:50 UTC (permalink / raw)
  To: linux-sh

On Thu, Jul 10, 2014 at 12:50:56PM +0200, Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> On Lager board, i2c and iic cores can be interchanged since they can be
> muxed to the same wires. Commit e489c2a9bc82713167d9f721ca764f4b0d37e543
> ("ARM: shmobile: lager: enable i2c devices") activated the i2c cores,
> yet the iic cores should be default since they have the more interesting
> features for generic use cases, i.e. SMBUS_QUICK and DMA (yet to be
> supported).
> 
> Reported-by: Khiem Nguyen <khiem.nguyen.xt@renesas.com>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> 
> This applies on top of renesas-devel-v3.16-rc4-20140709 with "[PATCH v2] ARM:
> shmobile: Lager: Correct I2C bus for VDD MPU regulator" applied. Both patches
> should go into v3.16 IMO, otherwise the bus numbering change will be visible
> for end users (i2c busses are 0-3, iic are 4-7 as mentioned in the hardware
> manuals).

Thanks.

I have queued this up for v3.17 rather than v3.16 as I do not believe
there are any i2c (or iic) nodes present or scheduled for inclusion in
this file in v3.16: I checked v3.16-rc4.

>  arch/arm/boot/dts/r8a7790-lager.dts | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
> index ffe0523ff16f..856b4236b674 100644
> --- a/arch/arm/boot/dts/r8a7790-lager.dts
> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
> @@ -205,14 +205,14 @@
>  		renesas,function = "msiof1";
>  	};
>  
> -	i2c1_pins: i2c1 {
> -		renesas,groups = "i2c1";
> -		renesas,function = "i2c1";
> +	iic1_pins: iic1 {
> +		renesas,groups = "iic1";
> +		renesas,function = "iic1";
>  	};
>  
> -	i2c2_pins: i2c2 {
> -		renesas,groups = "i2c2";
> -		renesas,function = "i2c2";
> +	iic2_pins: iic2 {
> +		renesas,groups = "iic2";
> +		renesas,function = "iic2";
>  	};
>  
>  	iic3_pins: iic3 {
> @@ -352,19 +352,19 @@
>  	cpu0-supply = <&vdd_dvfs>;
>  };
>  
> -&i2c0	{
> +&iic0	{
>  	status = "ok";
>  };
>  
> -&i2c1	{
> +&iic1	{
>  	status = "ok";
> -	pinctrl-0 = <&i2c1_pins>;
> +	pinctrl-0 = <&iic1_pins>;
>  	pinctrl-names = "default";
>  };
>  
> -&i2c2	{
> +&iic2	{
>  	status = "ok";
> -	pinctrl-0 = <&i2c2_pins>;
> +	pinctrl-0 = <&iic2_pins>;
>  	pinctrl-names = "default";
>  };
>  
> -- 
> 2.0.0
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c
  2014-07-10 10:50 [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c Wolfram Sang
  2014-07-11  8:50 ` Simon Horman
@ 2014-07-13 13:43 ` Wolfram Sang
  2014-07-15  4:17 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2014-07-13 13:43 UTC (permalink / raw)
  To: linux-sh

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

> I have queued this up for v3.17 rather than v3.16 as I do not believe
> there are any i2c (or iic) nodes present or scheduled for inclusion in
> this file in v3.16: I checked v3.16-rc4.

In case the i2c char driver is activated, the nodes in /dev will change
from i2c-{0-3} to i2c-{4-7}, too. I'll let you decide about the
importance of it :)


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c
  2014-07-10 10:50 [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c Wolfram Sang
  2014-07-11  8:50 ` Simon Horman
  2014-07-13 13:43 ` Wolfram Sang
@ 2014-07-15  4:17 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-07-15  4:17 UTC (permalink / raw)
  To: linux-sh

On Sun, Jul 13, 2014 at 03:43:57PM +0200, Wolfram Sang wrote:
> > I have queued this up for v3.17 rather than v3.16 as I do not believe
> > there are any i2c (or iic) nodes present or scheduled for inclusion in
> > this file in v3.16: I checked v3.16-rc4.
> 
> In case the i2c char driver is activated, the nodes in /dev will change
> from i2c-{0-3} to i2c-{4-7}, too. I'll let you decide about the
> importance of it :)

Thanks, I think I am comfortable with that.

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

end of thread, other threads:[~2014-07-15  4:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 10:50 [PATCH] ARM: shmobile: r8a7790: lager: use iic cores instead of i2c Wolfram Sang
2014-07-11  8:50 ` Simon Horman
2014-07-13 13:43 ` Wolfram Sang
2014-07-15  4:17 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox