Skip to content

Commit d171cd0

Browse files
Vivek GautamLinus Walleij
authored andcommitted
pinctrl: exynos: Add BUS1 pin controller for exynos7
USB and Power regulator on Exynos7 require gpios available in BUS1 pin controller block. So adding the BUS1 pinctrl support. Signed-off-by: Naveen Krishna Ch <naveenkrishna.ch@gmail.com> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com> Acked-by: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent b9b0a5c commit d171cd0

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

‎Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ Aliases for controllers compatible with "samsung,exynos7-pinctrl":
180180
- pinctrl5: pin controller of ESE block,
181181
- pinctrl6: pin controller of FSYS0 block,
182182
- pinctrl7: pin controller of FSYS1 block,
183+
- pinctrl8: pin controller of BUS1 block,
183184

184185
Example: A pin-controller node with pin banks:
185186

‎drivers/pinctrl/samsung/pinctrl-exynos.c‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,20 @@ static const struct samsung_pin_bank_data exynos7_pin_banks7[] __initconst = {
13001300
EXYNOS_PIN_BANK_EINTG(8, 0x060, "gpr3", 0x0c),
13011301
};
13021302

1303+
/* pin banks of exynos7 pin-controller - BUS1 */
1304+
static const struct samsung_pin_bank_data exynos7_pin_banks8[] __initconst = {
1305+
EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpf0", 0x00),
1306+
EXYNOS_PIN_BANK_EINTG(8, 0x040, "gpf1", 0x04),
1307+
EXYNOS_PIN_BANK_EINTG(4, 0x060, "gpf2", 0x08),
1308+
EXYNOS_PIN_BANK_EINTG(5, 0x080, "gpf3", 0x0c),
1309+
EXYNOS_PIN_BANK_EINTG(8, 0x0a0, "gpf4", 0x10),
1310+
EXYNOS_PIN_BANK_EINTG(8, 0x0c0, "gpf5", 0x14),
1311+
EXYNOS_PIN_BANK_EINTG(5, 0x0e0, "gpg1", 0x18),
1312+
EXYNOS_PIN_BANK_EINTG(5, 0x100, "gpg2", 0x1c),
1313+
EXYNOS_PIN_BANK_EINTG(6, 0x120, "gph1", 0x20),
1314+
EXYNOS_PIN_BANK_EINTG(3, 0x140, "gpv6", 0x24),
1315+
};
1316+
13031317
const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = {
13041318
{
13051319
/* pin-controller instance 0 Alive data */
@@ -1342,5 +1356,10 @@ const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = {
13421356
.pin_banks = exynos7_pin_banks7,
13431357
.nr_banks = ARRAY_SIZE(exynos7_pin_banks7),
13441358
.eint_gpio_init = exynos_eint_gpio_init,
1359+
}, {
1360+
/* pin-controller instance 8 BUS1 data */
1361+
.pin_banks = exynos7_pin_banks8,
1362+
.nr_banks = ARRAY_SIZE(exynos7_pin_banks8),
1363+
.eint_gpio_init = exynos_eint_gpio_init,
13451364
},
13461365
};

0 commit comments

Comments
 (0)