linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing for i2c0
@ 2016-09-29 18:22 Uwe Kleine-König
  2016-09-29 18:22 ` [PATCH 2/2] ARM: dts: armada-370-rn104: drop specification of compatible " Uwe Kleine-König
  2016-10-06 14:54 ` [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing " Gregory CLEMENT
  0 siblings, 2 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2016-09-29 18:22 UTC (permalink / raw)
  To: linux-arm-kernel

Up to now a working i2c bus depended on the bootloader to configure the
pinmuxing. Make it explicit.

As a side effect this change makes i2c work in barebox.

Signed-off-by: Uwe Kleine-K?nig <uwe@kleine-koenig.org>
---
 arch/arm/boot/dts/armada-370-netgear-rn104.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
index 11565752b9f6..d44a850d879c 100644
--- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts
+++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
@@ -128,6 +128,10 @@
 			i2c at 11000 {
 				compatible = "marvell,mv64xxx-i2c";
 				clock-frequency = <100000>;
+
+				pinctrl-0 = <&i2c0_pins>;
+				pinctrl-names = "default";
+
 				status = "okay";
 
 				isl12057: isl12057 at 68 {
-- 
2.8.1

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

* [PATCH 2/2] ARM: dts: armada-370-rn104: drop specification of compatible for i2c0
  2016-09-29 18:22 [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing for i2c0 Uwe Kleine-König
@ 2016-09-29 18:22 ` Uwe Kleine-König
  2016-10-06 14:54   ` Gregory CLEMENT
  2016-10-06 14:54 ` [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing " Gregory CLEMENT
  1 sibling, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2016-09-29 18:22 UTC (permalink / raw)
  To: linux-arm-kernel

The compatible string is already provided by armada-370.dtsi.

Signed-off-by: Uwe Kleine-K?nig <uwe@kleine-koenig.org>
---
 arch/arm/boot/dts/armada-370-netgear-rn104.dts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
index d44a850d879c..14c379699350 100644
--- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts
+++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
@@ -126,7 +126,6 @@
 			};
 
 			i2c at 11000 {
-				compatible = "marvell,mv64xxx-i2c";
 				clock-frequency = <100000>;
 
 				pinctrl-0 = <&i2c0_pins>;
-- 
2.8.1

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

* [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing for i2c0
  2016-09-29 18:22 [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing for i2c0 Uwe Kleine-König
  2016-09-29 18:22 ` [PATCH 2/2] ARM: dts: armada-370-rn104: drop specification of compatible " Uwe Kleine-König
@ 2016-10-06 14:54 ` Gregory CLEMENT
  1 sibling, 0 replies; 4+ messages in thread
From: Gregory CLEMENT @ 2016-10-06 14:54 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Uwe,
 
 On jeu., sept. 29 2016, Uwe Kleine-K?nig <uwe@kleine-koenig.org> wrote:

> Up to now a working i2c bus depended on the bootloader to configure the
> pinmuxing. Make it explicit.
>
> As a side effect this change makes i2c work in barebox.
>
> Signed-off-by: Uwe Kleine-K?nig <uwe@kleine-koenig.org>

Applied on mvebu/dt-4.10

Thanks,

Gregory

> ---
>  arch/arm/boot/dts/armada-370-netgear-rn104.dts | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
> index 11565752b9f6..d44a850d879c 100644
> --- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts
> +++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
> @@ -128,6 +128,10 @@
>  			i2c at 11000 {
>  				compatible = "marvell,mv64xxx-i2c";
>  				clock-frequency = <100000>;
> +
> +				pinctrl-0 = <&i2c0_pins>;
> +				pinctrl-names = "default";
> +
>  				status = "okay";
>  
>  				isl12057: isl12057 at 68 {
> -- 
> 2.8.1
>

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [PATCH 2/2] ARM: dts: armada-370-rn104: drop specification of compatible for i2c0
  2016-09-29 18:22 ` [PATCH 2/2] ARM: dts: armada-370-rn104: drop specification of compatible " Uwe Kleine-König
@ 2016-10-06 14:54   ` Gregory CLEMENT
  0 siblings, 0 replies; 4+ messages in thread
From: Gregory CLEMENT @ 2016-10-06 14:54 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Uwe,
 
 On jeu., sept. 29 2016, Uwe Kleine-K?nig <uwe@kleine-koenig.org> wrote:

> The compatible string is already provided by armada-370.dtsi.
>
> Signed-off-by: Uwe Kleine-K?nig <uwe@kleine-koenig.org>

Applied on mvebu/dt-4.10

Thanks,

Gregory
> ---
>  arch/arm/boot/dts/armada-370-netgear-rn104.dts | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
> index d44a850d879c..14c379699350 100644
> --- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts
> +++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
> @@ -126,7 +126,6 @@
>  			};
>  
>  			i2c at 11000 {
> -				compatible = "marvell,mv64xxx-i2c";
>  				clock-frequency = <100000>;
>  
>  				pinctrl-0 = <&i2c0_pins>;
> -- 
> 2.8.1
>

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2016-10-06 14:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29 18:22 [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing for i2c0 Uwe Kleine-König
2016-09-29 18:22 ` [PATCH 2/2] ARM: dts: armada-370-rn104: drop specification of compatible " Uwe Kleine-König
2016-10-06 14:54   ` Gregory CLEMENT
2016-10-06 14:54 ` [PATCH 1/2] ARM: dts: armada-370-rn104: add pinmuxing " Gregory CLEMENT

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).