From: Domenico Andreoli <cavokz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: [patch 2/2] Add GPIO DT support to s3c24xx
Date: Thu, 7 Apr 2011 18:39:45 +0200 [thread overview]
Message-ID: <20110407163945.GC17498@dandreoli.com> (raw)
In-Reply-To: 20110407163322.465935232@gmail.com
[-- Attachment #1: s3c24xx-gpio-add-dt-support --]
[-- Type: text/plain, Size: 3140 bytes --]
From: Domenico Andreoli <cavokz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Add DT compat strings to the GPIO chips registerd by s3c24xx SOCs.
Signed-off-by: Domenico Andreoli <cavokz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
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
},
},
};
next prev parent reply other threads:[~2011-04-07 16:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20110407163322.465935232@gmail.com>
2011-04-07 16:39 ` [patch 1/2] Add dt_compat field to struct gpio_chip Domenico Andreoli
[not found] ` <20110407163930.GB17498-iIV0ii4H0r6tG0bUXCXiUA@public.gmane.org>
2011-04-07 17:17 ` Grant Likely
[not found] ` <20110407171704.GC2455-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-04-07 20:41 ` Domenico Andreoli
[not found] ` <BANLkTi=WE_vOUAi8T60ESAH2kua4uB-_HA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-08 0:17 ` Grant Likely
2011-04-07 16:39 ` Domenico Andreoli [this message]
[not found] <20110410152735.338798127@gmail.com>
2011-04-10 15:33 ` [patch 2/2] Add GPIO DT support to s3c24xx Domenico Andreoli
[not found] ` <20110410153316.GC27088-iIV0ii4H0r6tG0bUXCXiUA@public.gmane.org>
2011-04-11 6:47 ` Grant Likely
[not found] <20110421130711.920096092@gmail.com>
2011-04-21 13:17 ` [PATCH " Domenico Andreoli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110407163945.GC17498@dandreoli.com \
--to=cavokz-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).