diff options
| -rw-r--r-- | Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt | 2 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt | 2 | ||||
| -rw-r--r-- | drivers/pinctrl/core.c | 4 | ||||
| -rw-r--r-- | drivers/pinctrl/pinconf.c | 4 | ||||
| -rw-r--r-- | drivers/pinctrl/pinctrl-nomadik.c | 6 | ||||
| -rw-r--r-- | drivers/pinctrl/pinctrl-tegra.c | 2 | ||||
| -rw-r--r-- | drivers/pinctrl/pinctrl-tegra30.c | 24 |
7 files changed, 21 insertions, 23 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt index c8e578263ce2..683fde93c4fb 100644 --- a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt +++ b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt | |||
| @@ -93,7 +93,7 @@ Valid values for pin and group names are: | |||
| 93 | 93 | ||
| 94 | With some exceptions, these support nvidia,high-speed-mode, | 94 | With some exceptions, these support nvidia,high-speed-mode, |
| 95 | nvidia,schmitt, nvidia,low-power-mode, nvidia,pull-down-strength, | 95 | nvidia,schmitt, nvidia,low-power-mode, nvidia,pull-down-strength, |
| 96 | nvidia,pull-up-strength, nvidia,slew_rate-rising, nvidia,slew_rate-falling. | 96 | nvidia,pull-up-strength, nvidia,slew-rate-rising, nvidia,slew-rate-falling. |
| 97 | 97 | ||
| 98 | drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, drive_cdev2, | 98 | drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, drive_cdev2, |
| 99 | drive_csus, drive_dap1, drive_dap2, drive_dap3, drive_dap4, drive_dbg, | 99 | drive_csus, drive_dap1, drive_dap2, drive_dap3, drive_dap4, drive_dbg, |
diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt index c275b70349c1..6f426ed7009e 100644 --- a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt +++ b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt | |||
| @@ -83,7 +83,7 @@ Valid values for pin and group names are: | |||
| 83 | drive groups: | 83 | drive groups: |
| 84 | 84 | ||
| 85 | These all support nvidia,pull-down-strength, nvidia,pull-up-strength, | 85 | These all support nvidia,pull-down-strength, nvidia,pull-up-strength, |
| 86 | nvidia,slew_rate-rising, nvidia,slew_rate-falling. Most but not all | 86 | nvidia,slew-rate-rising, nvidia,slew-rate-falling. Most but not all |
| 87 | support nvidia,high-speed-mode, nvidia,schmitt, nvidia,low-power-mode. | 87 | support nvidia,high-speed-mode, nvidia,schmitt, nvidia,low-power-mode. |
| 88 | 88 | ||
| 89 | ao1, ao2, at1, at2, at3, at4, at5, cdev1, cdev2, cec, crt, csus, dap1, | 89 | ao1, ao2, at1, at2, at3, at4, at5, cdev1, cdev2, cec, crt, csus, dap1, |
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 0f1ec9e8ff14..2e39c04fc16b 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c | |||
| @@ -1061,8 +1061,10 @@ static int pinctrl_groups_show(struct seq_file *s, void *what) | |||
| 1061 | seq_printf(s, "group: %s\n", gname); | 1061 | seq_printf(s, "group: %s\n", gname); |
| 1062 | for (i = 0; i < num_pins; i++) { | 1062 | for (i = 0; i < num_pins; i++) { |
| 1063 | pname = pin_get_name(pctldev, pins[i]); | 1063 | pname = pin_get_name(pctldev, pins[i]); |
| 1064 | if (WARN_ON(!pname)) | 1064 | if (WARN_ON(!pname)) { |
| 1065 | mutex_unlock(&pinctrl_mutex); | ||
| 1065 | return -EINVAL; | 1066 | return -EINVAL; |
| 1067 | } | ||
| 1066 | seq_printf(s, "pin %d (%s)\n", pins[i], pname); | 1068 | seq_printf(s, "pin %d (%s)\n", pins[i], pname); |
| 1067 | } | 1069 | } |
| 1068 | seq_puts(s, "\n"); | 1070 | seq_puts(s, "\n"); |
diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index 43f474cdc110..baee2cc46a17 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers/pinctrl/pinconf.c | |||
| @@ -537,8 +537,6 @@ static int pinconf_groups_show(struct seq_file *s, void *what) | |||
| 537 | seq_puts(s, "Pin config settings per pin group\n"); | 537 | seq_puts(s, "Pin config settings per pin group\n"); |
| 538 | seq_puts(s, "Format: group (name): configs\n"); | 538 | seq_puts(s, "Format: group (name): configs\n"); |
| 539 | 539 | ||
| 540 | mutex_lock(&pinctrl_mutex); | ||
| 541 | |||
| 542 | while (selector < ngroups) { | 540 | while (selector < ngroups) { |
| 543 | const char *gname = pctlops->get_group_name(pctldev, selector); | 541 | const char *gname = pctlops->get_group_name(pctldev, selector); |
| 544 | 542 | ||
| @@ -549,8 +547,6 @@ static int pinconf_groups_show(struct seq_file *s, void *what) | |||
| 549 | selector++; | 547 | selector++; |
| 550 | } | 548 | } |
| 551 | 549 | ||
| 552 | mutex_unlock(&pinctrl_mutex); | ||
| 553 | |||
| 554 | return 0; | 550 | return 0; |
| 555 | } | 551 | } |
| 556 | 552 | ||
diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index 01aea1c3b5fa..cf82d9ce4dee 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c | |||
| @@ -1056,7 +1056,7 @@ static int nmk_gpio_to_irq(struct gpio_chip *chip, unsigned offset) | |||
| 1056 | struct nmk_gpio_chip *nmk_chip = | 1056 | struct nmk_gpio_chip *nmk_chip = |
| 1057 | container_of(chip, struct nmk_gpio_chip, chip); | 1057 | container_of(chip, struct nmk_gpio_chip, chip); |
| 1058 | 1058 | ||
| 1059 | return irq_find_mapping(nmk_chip->domain, offset); | 1059 | return irq_create_mapping(nmk_chip->domain, offset); |
| 1060 | } | 1060 | } |
| 1061 | 1061 | ||
| 1062 | #ifdef CONFIG_DEBUG_FS | 1062 | #ifdef CONFIG_DEBUG_FS |
| @@ -1281,7 +1281,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev) | |||
| 1281 | struct clk *clk; | 1281 | struct clk *clk; |
| 1282 | int secondary_irq; | 1282 | int secondary_irq; |
| 1283 | void __iomem *base; | 1283 | void __iomem *base; |
| 1284 | int irq_start = -1; | 1284 | int irq_start = 0; |
| 1285 | int irq; | 1285 | int irq; |
| 1286 | int ret; | 1286 | int ret; |
| 1287 | 1287 | ||
| @@ -1387,7 +1387,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev) | |||
| 1387 | 1387 | ||
| 1388 | if (!np) | 1388 | if (!np) |
| 1389 | irq_start = NOMADIK_GPIO_TO_IRQ(pdata->first_gpio); | 1389 | irq_start = NOMADIK_GPIO_TO_IRQ(pdata->first_gpio); |
| 1390 | nmk_chip->domain = irq_domain_add_simple(NULL, | 1390 | nmk_chip->domain = irq_domain_add_simple(np, |
| 1391 | NMK_GPIO_PER_CHIP, irq_start, | 1391 | NMK_GPIO_PER_CHIP, irq_start, |
| 1392 | &nmk_gpio_irq_simple_ops, nmk_chip); | 1392 | &nmk_gpio_irq_simple_ops, nmk_chip); |
| 1393 | if (!nmk_chip->domain) { | 1393 | if (!nmk_chip->domain) { |
diff --git a/drivers/pinctrl/pinctrl-tegra.c b/drivers/pinctrl/pinctrl-tegra.c index 729b686c3ad2..7da0b371fd65 100644 --- a/drivers/pinctrl/pinctrl-tegra.c +++ b/drivers/pinctrl/pinctrl-tegra.c | |||
| @@ -464,7 +464,7 @@ static int tegra_pinconf_reg(struct tegra_pmx *pmx, | |||
| 464 | *bank = g->drv_bank; | 464 | *bank = g->drv_bank; |
| 465 | *reg = g->drv_reg; | 465 | *reg = g->drv_reg; |
| 466 | *bit = g->lpmd_bit; | 466 | *bit = g->lpmd_bit; |
| 467 | *width = 1; | 467 | *width = 2; |
| 468 | break; | 468 | break; |
| 469 | case TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH: | 469 | case TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH: |
| 470 | *bank = g->drv_bank; | 470 | *bank = g->drv_bank; |
diff --git a/drivers/pinctrl/pinctrl-tegra30.c b/drivers/pinctrl/pinctrl-tegra30.c index 0386fdf0da16..7894f14c7059 100644 --- a/drivers/pinctrl/pinctrl-tegra30.c +++ b/drivers/pinctrl/pinctrl-tegra30.c | |||
| @@ -3345,10 +3345,10 @@ static const struct tegra_function tegra30_functions[] = { | |||
| 3345 | FUNCTION(vi_alt3), | 3345 | FUNCTION(vi_alt3), |
| 3346 | }; | 3346 | }; |
| 3347 | 3347 | ||
| 3348 | #define MUXCTL_REG_A 0x3000 | 3348 | #define DRV_PINGROUP_REG_A 0x868 /* bank 0 */ |
| 3349 | #define PINGROUP_REG_A 0x868 | 3349 | #define PINGROUP_REG_A 0x3000 /* bank 1 */ |
| 3350 | 3350 | ||
| 3351 | #define PINGROUP_REG_Y(r) ((r) - MUXCTL_REG_A) | 3351 | #define PINGROUP_REG_Y(r) ((r) - PINGROUP_REG_A) |
| 3352 | #define PINGROUP_REG_N(r) -1 | 3352 | #define PINGROUP_REG_N(r) -1 |
| 3353 | 3353 | ||
| 3354 | #define PINGROUP(pg_name, f0, f1, f2, f3, f_safe, r, od, ior) \ | 3354 | #define PINGROUP(pg_name, f0, f1, f2, f3, f_safe, r, od, ior) \ |
| @@ -3364,25 +3364,25 @@ static const struct tegra_function tegra30_functions[] = { | |||
| 3364 | }, \ | 3364 | }, \ |
| 3365 | .func_safe = TEGRA_MUX_ ## f_safe, \ | 3365 | .func_safe = TEGRA_MUX_ ## f_safe, \ |
| 3366 | .mux_reg = PINGROUP_REG_Y(r), \ | 3366 | .mux_reg = PINGROUP_REG_Y(r), \ |
| 3367 | .mux_bank = 0, \ | 3367 | .mux_bank = 1, \ |
| 3368 | .mux_bit = 0, \ | 3368 | .mux_bit = 0, \ |
| 3369 | .pupd_reg = PINGROUP_REG_Y(r), \ | 3369 | .pupd_reg = PINGROUP_REG_Y(r), \ |
| 3370 | .pupd_bank = 0, \ | 3370 | .pupd_bank = 1, \ |
| 3371 | .pupd_bit = 2, \ | 3371 | .pupd_bit = 2, \ |
| 3372 | .tri_reg = PINGROUP_REG_Y(r), \ | 3372 | .tri_reg = PINGROUP_REG_Y(r), \ |
| 3373 | .tri_bank = 0, \ | 3373 | .tri_bank = 1, \ |
| 3374 | .tri_bit = 4, \ | 3374 | .tri_bit = 4, \ |
| 3375 | .einput_reg = PINGROUP_REG_Y(r), \ | 3375 | .einput_reg = PINGROUP_REG_Y(r), \ |
| 3376 | .einput_bank = 0, \ | 3376 | .einput_bank = 1, \ |
| 3377 | .einput_bit = 5, \ | 3377 | .einput_bit = 5, \ |
| 3378 | .odrain_reg = PINGROUP_REG_##od(r), \ | 3378 | .odrain_reg = PINGROUP_REG_##od(r), \ |
| 3379 | .odrain_bank = 0, \ | 3379 | .odrain_bank = 1, \ |
| 3380 | .odrain_bit = 6, \ | 3380 | .odrain_bit = 6, \ |
| 3381 | .lock_reg = PINGROUP_REG_Y(r), \ | 3381 | .lock_reg = PINGROUP_REG_Y(r), \ |
| 3382 | .lock_bank = 0, \ | 3382 | .lock_bank = 1, \ |
| 3383 | .lock_bit = 7, \ | 3383 | .lock_bit = 7, \ |
| 3384 | .ioreset_reg = PINGROUP_REG_##ior(r), \ | 3384 | .ioreset_reg = PINGROUP_REG_##ior(r), \ |
| 3385 | .ioreset_bank = 0, \ | 3385 | .ioreset_bank = 1, \ |
| 3386 | .ioreset_bit = 8, \ | 3386 | .ioreset_bit = 8, \ |
| 3387 | .drv_reg = -1, \ | 3387 | .drv_reg = -1, \ |
| 3388 | } | 3388 | } |
| @@ -3401,8 +3401,8 @@ static const struct tegra_function tegra30_functions[] = { | |||
| 3401 | .odrain_reg = -1, \ | 3401 | .odrain_reg = -1, \ |
| 3402 | .lock_reg = -1, \ | 3402 | .lock_reg = -1, \ |
| 3403 | .ioreset_reg = -1, \ | 3403 | .ioreset_reg = -1, \ |
| 3404 | .drv_reg = ((r) - PINGROUP_REG_A), \ | 3404 | .drv_reg = ((r) - DRV_PINGROUP_REG_A), \ |
| 3405 | .drv_bank = 1, \ | 3405 | .drv_bank = 0, \ |
| 3406 | .hsm_bit = hsm_b, \ | 3406 | .hsm_bit = hsm_b, \ |
| 3407 | .schmitt_bit = schmitt_b, \ | 3407 | .schmitt_bit = schmitt_b, \ |
| 3408 | .lpmd_bit = lpmd_b, \ | 3408 | .lpmd_bit = lpmd_b, \ |
