[patch 2/2] Add GPIO DT support to s3c24xx
Domenico Andreoli
cavokz at gmail.com
Fri Apr 8 02:39:45 EST 2011
From: Domenico Andreoli <cavokz at gmail.com>
Add DT compat strings to the GPIO chips registerd by s3c24xx SOCs.
Signed-off-by: Domenico Andreoli <cavokz at gmail.com>
---
arch/arm/plat-s3c24xx/gpiolib.c | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Index: b/arch/arm/plat-s3c24xx/gpiolib.c
===================================================================
--- a/arch/arm/plat-s3c24xx/gpiolib.c 2011-04-07 18:16:09.000000000 +0200
+++ b/arch/arm/plat-s3c24xx/gpiolib.c 2011-04-07 18:20:41.000000000 +0200
@@ -94,6 +94,9 @@
.owner = THIS_MODULE,
.label = "GPIOA",
.ngpio = 24,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-a",
+#endif
.direction_input = s3c24xx_gpiolib_banka_input,
.direction_output = s3c24xx_gpiolib_banka_output,
},
@@ -106,6 +109,9 @@
.owner = THIS_MODULE,
.label = "GPIOB",
.ngpio = 16,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-b",
+#endif
},
},
[2] = {
@@ -116,6 +122,9 @@
.owner = THIS_MODULE,
.label = "GPIOC",
.ngpio = 16,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-c",
+#endif
},
},
[3] = {
@@ -126,6 +135,9 @@
.owner = THIS_MODULE,
.label = "GPIOD",
.ngpio = 16,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-d",
+#endif
},
},
[4] = {
@@ -136,6 +148,9 @@
.label = "GPIOE",
.owner = THIS_MODULE,
.ngpio = 16,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-e",
+#endif
},
},
[5] = {
@@ -147,6 +162,9 @@
.label = "GPIOF",
.ngpio = 8,
.to_irq = s3c24xx_gpiolib_bankf_toirq,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-f",
+#endif
},
},
[6] = {
@@ -159,6 +177,9 @@
.label = "GPIOG",
.ngpio = 16,
.to_irq = samsung_gpiolib_to_irq,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-g",
+#endif
},
}, {
.base = S3C2410_GPHCON,
@@ -168,6 +189,9 @@
.owner = THIS_MODULE,
.label = "GPIOH",
.ngpio = 11,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2410-gpio-h",
+#endif
},
},
/* GPIOS for the S3C2443 and later devices. */
@@ -179,6 +203,9 @@
.owner = THIS_MODULE,
.label = "GPIOJ",
.ngpio = 16,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2440-gpio-j",
+#endif
},
}, {
.base = S3C2443_GPKCON,
@@ -188,6 +215,9 @@
.owner = THIS_MODULE,
.label = "GPIOK",
.ngpio = 16,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2443-gpio-k",
+#endif
},
}, {
.base = S3C2443_GPLCON,
@@ -197,6 +227,9 @@
.owner = THIS_MODULE,
.label = "GPIOL",
.ngpio = 15,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2443-gpio-l",
+#endif
},
}, {
.base = S3C2443_GPMCON,
@@ -206,6 +239,9 @@
.owner = THIS_MODULE,
.label = "GPIOM",
.ngpio = 2,
+#if defined(CONFIG_OF_GPIO)
+ .dt_compat = "samsung,s3c2443-gpio-m",
+#endif
},
},
};
More information about the devicetree-discuss
mailing list