Skip to contentSkip to conversation

ARM: dts: armada-370-rn102: add pinmuxing for i2c0

PATCH New Uwe Kleine-König 2 participants 2 messages Oct 20, 2016 – Nov 4, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: armada-370-rn102: add pinmuxing for i2c0

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.

---
 arch/arm/boot/dts/armada-370-netgear-rn102.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/armada-370-netgear-rn102.dts +4 -0
index 3ca6330a1752..a9e3810aea65 100644
@@ -121,6 +121,10 @@
 
 			i2c at 11000 {
 				clock-frequency = <100000>;
+
+				pinctrl-0 = <&i2c0_pins>;
+				pinctrl-names = "default";
+
 				status = "okay";
 
 				isl12057: isl12057 at 68 {
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 ARM: dts: armada-370-rn102: add pinmuxing for i2c0

Hi Uwe,

Quoted 6 lines · Uwe Kleine-K?nig

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.

Applied on mvebu/dt

Thanks,

Gregory

Quoted 22 lines
---
 arch/arm/boot/dts/armada-370-netgear-rn102.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/armada-370-netgear-rn102.dts +4 -0
index 3ca6330a1752..a9e3810aea65 100644
@@ -121,6 +121,10 @@
 
 			i2c at 11000 {
 				clock-frequency = <100000>;
+
+				pinctrl-0 = <&i2c0_pins>;
+				pinctrl-names = "default";
+
 				status = "okay";
 
 				isl12057: isl12057 at 68 {
Signature · 1 line
2.9.3
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com