Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: samsung: Add GPF support for Exynos5433

This patch add the support of GPF[1-5] pin of Exynos5433 SoC. The GPFx need
to support the multiple memory map because the registers of GPFx are located
in the different domain.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Chanwoo Choi and committed by
Linus Walleij
ac8130e9 8b1bd11c

+25
+19
Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
··· 19 19 - "samsung,exynos5260-pinctrl": for Exynos5260 compatible pin-controller. 20 20 - "samsung,exynos5410-pinctrl": for Exynos5410 compatible pin-controller. 21 21 - "samsung,exynos5420-pinctrl": for Exynos5420 compatible pin-controller. 22 + - "samsung,exynos5433-pinctrl": for Exynos5433 compatible pin-controller. 22 23 - "samsung,exynos7-pinctrl": for Exynos7 compatible pin-controller. 23 24 24 25 - reg: Base address of the pin controller hardware module and length of 25 26 the address space it occupies. 27 + 28 + - reg: Second base address of the pin controller if the specific registers 29 + of the pin controller are separated into the different base address. 30 + 31 + Eg: GPF[1-5] of Exynos5433 are separated into the two base address. 32 + - First base address is for GPAx and GPF[1-5] external interrupt 33 + registers. 34 + - Second base address is for GPF[1-5] pinctrl registers. 35 + 36 + pinctrl_0: pinctrl@10580000 { 37 + compatible = "samsung,exynos5433-pinctrl"; 38 + reg = <0x10580000 0x1a20>, <0x11090000 0x100>; 39 + 40 + wakeup-interrupt-controller { 41 + compatible = "samsung,exynos7-wakeup-eint"; 42 + interrupts = <0 16 0>; 43 + }; 44 + }; 26 45 27 46 - Pin banks as child nodes: Pin banks of the controller are represented by child 28 47 nodes of the controller node. Bank name is taken from name of the node. Each
+6
drivers/pinctrl/samsung/pinctrl-exynos.c
··· 1339 1339 EXYNOS_PIN_BANK_EINTW(8, 0x020, "gpa1", 0x04), 1340 1340 EXYNOS_PIN_BANK_EINTW(8, 0x040, "gpa2", 0x08), 1341 1341 EXYNOS_PIN_BANK_EINTW(8, 0x060, "gpa3", 0x0c), 1342 + EXYNOS_PIN_BANK_EINTW_EXT(8, 0x020, "gpf1", 0x1004, 1), 1343 + EXYNOS_PIN_BANK_EINTW_EXT(4, 0x040, "gpf2", 0x1008, 1), 1344 + EXYNOS_PIN_BANK_EINTW_EXT(4, 0x060, "gpf3", 0x100c, 1), 1345 + EXYNOS_PIN_BANK_EINTW_EXT(8, 0x080, "gpf4", 0x1010, 1), 1346 + EXYNOS_PIN_BANK_EINTW_EXT(8, 0x0a0, "gpf5", 0x1014, 1), 1342 1347 }; 1343 1348 1344 1349 /* pin banks of exynos5433 pin-controller - AUD */ ··· 1425 1420 .eint_wkup_init = exynos_eint_wkup_init, 1426 1421 .suspend = exynos_pinctrl_suspend, 1427 1422 .resume = exynos_pinctrl_resume, 1423 + .nr_ext_resources = 1, 1428 1424 }, { 1429 1425 /* pin-controller instance 1 data */ 1430 1426 .pin_banks = exynos5433_pin_banks1,