[RFC 09/12] ARM: dts: Adding pinctrl support to Exynos5250 i2c nodes

Shaik Ameer Basha shaik.ameer at samsung.com
Wed Mar 6 22:53:55 EST 2013


This patch adds the default pinctrl functionality to the
i2c device nodes on exynos5250-smdk5250.dts file

Signed-off-by: Shaik Ameer Basha <shaik.ameer at samsung.com>
---
 arch/arm/boot/dts/exynos5250-smdk5250.dts |   22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts
index 942d576..4b10744 100644
--- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
+++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
@@ -30,8 +30,8 @@
 	i2c at 12C60000 {
 		samsung,i2c-sda-delay = <100>;
 		samsung,i2c-max-bus-freq = <20000>;
-		gpios = <&gpb3 0 2 3 0>,
-			<&gpb3 1 2 3 0>;
+		pinctrl-0 = <&i2c0_bus>;
+		pinctrl-names = "default";
 
 		eeprom at 50 {
 			compatible = "samsung,s524ad0xd1";
@@ -42,8 +42,8 @@
 	i2c at 12C70000 {
 		samsung,i2c-sda-delay = <100>;
 		samsung,i2c-max-bus-freq = <20000>;
-		gpios = <&gpb3 2 2 3 0>,
-			<&gpb3 3 2 3 0>;
+		pinctrl-0 = <&i2c1_bus>;
+		pinctrl-names = "default";
 
 		eeprom at 51 {
 			compatible = "samsung,s524ad0xd1";
@@ -69,8 +69,8 @@
 	i2c at 12C80000 {
 		samsung,i2c-sda-delay = <100>;
 		samsung,i2c-max-bus-freq = <66000>;
-		gpios = <&gpa0 6 3 3 0>,
-			<&gpa0 7 3 3 0>;
+		pinctrl-0 = <&i2c2_bus>;
+		pinctrl-names = "default";
 
 		hdmiddc at 50 {
 			compatible = "samsung,exynos5-hdmiddc";
@@ -80,22 +80,32 @@
 
 	i2c at 12C90000 {
 		status = "disabled";
+		pinctrl-0 = <&i2c3_bus>;
+		pinctrl-names = "default";
 	};
 
 	i2c at 12CA0000 {
 		status = "disabled";
+		pinctrl-0 = <&i2c4_bus>;
+		pinctrl-names = "default";
 	};
 
 	i2c at 12CB0000 {
 		status = "disabled";
+		pinctrl-0 = <&i2c5_bus>;
+		pinctrl-names = "default";
 	};
 
 	i2c at 12CC0000 {
 		status = "disabled";
+		pinctrl-0 = <&i2c6_bus>;
+		pinctrl-names = "default";
 	};
 
 	i2c at 12CD0000 {
 		status = "disabled";
+		pinctrl-0 = <&i2c7_bus>;
+		pinctrl-names = "default";
 	};
 
 	i2c at 12CE0000 {
-- 
1.7.9.5



More information about the devicetree-discuss mailing list