]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: exynos: Add initial driver data for Exynos7
authorNaveen Krishna Ch <naveenkrishna.ch@gmail.com>
Thu, 9 Oct 2014 13:54:32 +0000 (19:24 +0530)
committerTomasz Figa <tomasz.figa@gmail.com>
Sun, 9 Nov 2014 13:27:23 +0000 (22:27 +0900)
This patch adds initial driver data for Exynos7 pinctrl support.

Signed-off-by: Naveen Krishna Ch <naveenkrishna.ch@gmail.com>
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-by: Thomas Abraham <thomas.ab@samsung.com>
Tested-by: Thomas Abraham <thomas.ab@samsung.com>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
drivers/pinctrl/samsung/pinctrl-exynos.c
drivers/pinctrl/samsung/pinctrl-samsung.c
drivers/pinctrl/samsung/pinctrl-samsung.h

index f80519a98df89e01b46948b9f96e7403d7d74de4..8425838a6dff981d95c17e4ce9ec7bf1cada1abe 100644 (file)
@@ -18,6 +18,7 @@ Required Properties:
   - "samsung,exynos5250-pinctrl": for Exynos5250 compatible pin-controller.
   - "samsung,exynos5260-pinctrl": for Exynos5260 compatible pin-controller.
   - "samsung,exynos5420-pinctrl": for Exynos5420 compatible pin-controller.
+  - "samsung,exynos7-pinctrl": for Exynos7 compatible pin-controller.
 
 - reg: Base address of the pin controller hardware module and length of
   the address space it occupies.
index d97765c204667d3b27d920dca35d6ec248bcb952..5622d8a3e4788a00f1225ca496eedbacfe44c33d 100644 (file)
@@ -1164,3 +1164,108 @@ const struct samsung_pin_ctrl exynos5420_pin_ctrl[] __initconst = {
                .eint_gpio_init = exynos_eint_gpio_init,
        },
 };
+
+/* pin banks of exynos7 pin-controller - ALIVE */
+static const struct samsung_pin_bank_data exynos7_pin_banks0[] __initconst = {
+       EXYNOS_PIN_BANK_EINTW(8, 0x000, "gpa0", 0x00),
+       EXYNOS_PIN_BANK_EINTW(8, 0x020, "gpa1", 0x04),
+       EXYNOS_PIN_BANK_EINTW(8, 0x040, "gpa2", 0x08),
+       EXYNOS_PIN_BANK_EINTW(8, 0x060, "gpa3", 0x0c),
+};
+
+/* pin banks of exynos7 pin-controller - BUS0 */
+static const struct samsung_pin_bank_data exynos7_pin_banks1[] __initconst = {
+       EXYNOS_PIN_BANK_EINTG(5, 0x000, "gpb0", 0x00),
+       EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpc0", 0x04),
+       EXYNOS_PIN_BANK_EINTG(2, 0x040, "gpc1", 0x08),
+       EXYNOS_PIN_BANK_EINTG(6, 0x060, "gpc2", 0x0c),
+       EXYNOS_PIN_BANK_EINTG(8, 0x080, "gpc3", 0x10),
+       EXYNOS_PIN_BANK_EINTG(4, 0x0a0, "gpd0", 0x14),
+       EXYNOS_PIN_BANK_EINTG(6, 0x0c0, "gpd1", 0x18),
+       EXYNOS_PIN_BANK_EINTG(8, 0x0e0, "gpd2", 0x1c),
+       EXYNOS_PIN_BANK_EINTG(5, 0x100, "gpd4", 0x20),
+       EXYNOS_PIN_BANK_EINTG(4, 0x120, "gpd5", 0x24),
+       EXYNOS_PIN_BANK_EINTG(6, 0x140, "gpd6", 0x28),
+       EXYNOS_PIN_BANK_EINTG(3, 0x160, "gpd7", 0x2c),
+       EXYNOS_PIN_BANK_EINTG(2, 0x180, "gpd8", 0x30),
+       EXYNOS_PIN_BANK_EINTG(2, 0x1a0, "gpg0", 0x34),
+       EXYNOS_PIN_BANK_EINTG(4, 0x1c0, "gpg3", 0x38),
+};
+
+/* pin banks of exynos7 pin-controller - NFC */
+static const struct samsung_pin_bank_data exynos7_pin_banks2[] __initconst = {
+       EXYNOS_PIN_BANK_EINTG(3, 0x000, "gpj0", 0x00),
+};
+
+/* pin banks of exynos7 pin-controller - TOUCH */
+static const struct samsung_pin_bank_data exynos7_pin_banks3[] __initconst = {
+       EXYNOS_PIN_BANK_EINTG(3, 0x000, "gpj1", 0x00),
+};
+
+/* pin banks of exynos7 pin-controller - FF */
+static const struct samsung_pin_bank_data exynos7_pin_banks4[] __initconst = {
+       EXYNOS_PIN_BANK_EINTG(4, 0x000, "gpg4", 0x00),
+};
+
+/* pin banks of exynos7 pin-controller - ESE */
+static const struct samsung_pin_bank_data exynos7_pin_banks5[] __initconst = {
+       EXYNOS_PIN_BANK_EINTG(5, 0x000, "gpv7", 0x00),
+};
+
+/* pin banks of exynos7 pin-controller - FSYS0 */
+static const struct samsung_pin_bank_data exynos7_pin_banks6[] __initconst = {
+       EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpr4", 0x00),
+};
+
+/* pin banks of exynos7 pin-controller - FSYS1 */
+static const struct samsung_pin_bank_data exynos7_pin_banks7[] __initconst = {
+       EXYNOS_PIN_BANK_EINTG(4, 0x000, "gpr0", 0x00),
+       EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpr1", 0x04),
+       EXYNOS_PIN_BANK_EINTG(5, 0x040, "gpr2", 0x08),
+       EXYNOS_PIN_BANK_EINTG(8, 0x060, "gpr3", 0x0c),
+};
+
+const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = {
+       {
+               /* pin-controller instance 0 Alive data */
+               .pin_banks      = exynos7_pin_banks0,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks0),
+               .eint_gpio_init = exynos_eint_gpio_init,
+               .eint_wkup_init = exynos_eint_wkup_init,
+       }, {
+               /* pin-controller instance 1 BUS0 data */
+               .pin_banks      = exynos7_pin_banks1,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks1),
+               .eint_gpio_init = exynos_eint_gpio_init,
+       }, {
+               /* pin-controller instance 2 NFC data */
+               .pin_banks      = exynos7_pin_banks2,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks2),
+               .eint_gpio_init = exynos_eint_gpio_init,
+       }, {
+               /* pin-controller instance 3 TOUCH data */
+               .pin_banks      = exynos7_pin_banks3,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks3),
+               .eint_gpio_init = exynos_eint_gpio_init,
+       }, {
+               /* pin-controller instance 4 FF data */
+               .pin_banks      = exynos7_pin_banks4,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks4),
+               .eint_gpio_init = exynos_eint_gpio_init,
+       }, {
+               /* pin-controller instance 5 ESE data */
+               .pin_banks      = exynos7_pin_banks5,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks5),
+               .eint_gpio_init = exynos_eint_gpio_init,
+       }, {
+               /* pin-controller instance 6 FSYS0 data */
+               .pin_banks      = exynos7_pin_banks6,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks6),
+               .eint_gpio_init = exynos_eint_gpio_init,
+       }, {
+               /* pin-controller instance 7 FSYS1 data */
+               .pin_banks      = exynos7_pin_banks7,
+               .nr_banks       = ARRAY_SIZE(exynos7_pin_banks7),
+               .eint_gpio_init = exynos_eint_gpio_init,
+       },
+};
index 96ef6e50f1f6d55bc813d0dca507c78b6499d58b..e5a81503f53334bbead252fc63809ae62b69893b 100644 (file)
@@ -1239,6 +1239,8 @@ static const struct of_device_id samsung_pinctrl_dt_match[] = {
                .data = (void *)exynos5420_pin_ctrl },
        { .compatible = "samsung,s5pv210-pinctrl",
                .data = (void *)s5pv210_pin_ctrl },
+       { .compatible = "samsung,exynos7-pinctrl",
+               .data = (void *)exynos7_pin_ctrl },
 #endif
 #ifdef CONFIG_PINCTRL_S3C64XX
        { .compatible = "samsung,s3c64xx-pinctrl",
index 3076b8b591c7a97214f3b8267cfadeb64b226770..29004be52eaa78a4d996c72a1b9fa1998f4ce42e 100644 (file)
@@ -270,6 +270,7 @@ extern const struct samsung_pin_ctrl exynos4x12_pin_ctrl[];
 extern const struct samsung_pin_ctrl exynos5250_pin_ctrl[];
 extern const struct samsung_pin_ctrl exynos5260_pin_ctrl[];
 extern const struct samsung_pin_ctrl exynos5420_pin_ctrl[];
+extern const struct samsung_pin_ctrl exynos7_pin_ctrl[];
 extern const struct samsung_pin_ctrl s3c64xx_pin_ctrl[];
 extern const struct samsung_pin_ctrl s3c2412_pin_ctrl[];
 extern const struct samsung_pin_ctrl s3c2416_pin_ctrl[];