summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'renesas-cleanup-for-v3.11' of ↵Arnd Bergmann2013-06-2111-1529/+9944
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/late From Simon Horman: Renesas ARM based SoC cleanups for v3.11 __initdata annotations for the r8a7790 SoC by Morimoto-san. * tag 'renesas-cleanup-for-v3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas: (158 commits) ARM: shmobile: r8a7790: add __initdata on resource and device data Based on 'renesas-pinmux-for-v3.11' and 'renesas-soc-for-v3.11 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
| * pinctrl: sh-pfc: r8a7779: Fix missing MOD_SEL2 entryPhil Edworthy2013-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The list of functions selected by the MOD_SEL2 register was missing an entry. This caused all entries after this to modify the MOD_SEL2 register incorrectly. This bug showed up when selecting i2c2_c pins on the Renesas Hurricane board. This bug has been present since pinmux support was added for the r8a7779 SoC by 881023d28b465eb457067dc8bbca0f24d8b34279 ("sh-pfc: Add r8a7779 pinmux support") in v3.8-rc4. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * pinctrl: r8a7790: add pinmux data for MMCIF and SDHI interfacesGuennadi Liakhovetski2013-06-051-0/+294
| | | | | | | | | | | | | | | | This patch adds pinmux groups and functions for the two MMCIF and four SDHI interfaces on r8a73a4 (APE6). Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: add MMCIF pin groupsKuninori Morimoto2013-06-051-0/+38
| | | | | | | | | | | | | | Add MMCIF CLK/CMD/DATA groups to R8A7778 PFC driver. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: add HSPI pin groupsKuninori Morimoto2013-06-051-0/+61
| | | | | | | | | | | | | | Add HSPI CLK/CS/RX/TX pin groups to R8A7778 PFC driver. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: add I2C pin groupsKuninori Morimoto2013-06-051-0/+54
| | | | | | | | | | | | | | Add I2C SDA/SCL pin groups to R8A7778 PFC driver. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * pinctrl: sh-pfc: fix a typo in pfc-r8a7790Guennadi Liakhovetski2013-06-051-9/+9
| | | | | | | | | | | | | | | | | | Fix multiple occurrences of the "RESEVED" typo. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * pinctrl: sh-pfc: fix r8a7790 Function Select register tablesGuennadi Liakhovetski2013-06-051-8/+6
| | | | | | | | | | | | | | | | | | | | | | Fix several errors in Peripheral Function Select register tables for r8a7790, which prevent various function pins from being correctly configured. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: fixup IRQ1A settingsKuninori Morimoto2013-06-051-1/+1
| | | | | | | | | | | | | | | | IP2[31] func2 is IRQ1A, not IRQ3A Reported-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7779: add Ether pin groupsSergei Shtylyov2013-06-051-0/+42
| | | | | | | | | | | | | | | | | | Add Ether RMII/LINK/MAGIC pin groups to R8A7779 PFC driver. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Laurent Pinchart<laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: add Ether pin groupsSergei Shtylyov2013-06-051-0/+26
| | | | | | | | | | | | | | | | | | Add Ether RMII/LINK/MAGIC pin groups to R8A7778 PFC driver. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Laurent Pinchart<laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: add VIN pin groupsVladimir Barinov2013-06-051-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver. While at it, add SH_PFC_MUX8() macro for 8-bit data busses. Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com> [Sergei: updated the copyrights, added SH_PFC_MUX8() macro for 8-bit data bus, made use of SH_PFC_*() macros to define the pin groups.] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh73a0: Remove function GPIOsLaurent Pinchart2013-06-051-395/+0
| | | | | | | | | | | | | | No sh73a0 platform use the function GPIOs API. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7790: Add TPU pin groups and functionsLaurent Pinchart2013-06-051-0/+41
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add TPU pin groups and functionsLaurent Pinchart2013-06-051-0/+50
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh73a0: Add TPU pin groups and functionsLaurent Pinchart2013-06-051-0/+213
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: add USB pin groupsSergei Shtylyov2013-06-051-0/+28
| | | | | | | | | | | | | | | | | | Add USB0/1 PENC/USB_OVC pin groups to R8A7778 PFC driver. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh73a0: Add VCCQ MC0 regulatorLaurent Pinchart2013-06-052-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sh73a0 has an internal power gate on the VCCQ power supply for the SDHI0 device that is controlled (for some strange reason) by a bit in a PFC register. This feature should be exposed as a regulator. As the same register is also used for pin control purposes there is no way to achieve atomic read/write sequences with a separate regulator driver. We thus need to implement the regulator here. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: Add support for SoC-specific initializationLaurent Pinchart2013-06-053-1/+18
| | | | | | | | | | | | | | | | | | Add two optional init and exit SoC operations and call them from the core at probe and remove time. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: tidyup SDHI naming suffixes and sort it alphabeticallyKuninori Morimoto2013-06-051-84/+80
| | | | | | | | | | | | | | | | SDHI 1/2 are the target Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7778: Fix outdated GPIO_FN commentsLaurent Pinchart2013-06-051-13/+13
| | | | | | | | | | | | | | | | Function GPIOs have been removed, remove comments that refer to them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add bias (pull-up/down) pinconf supportLaurent Pinchart2013-06-051-145/+220
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Replace GPIO_PORTx enum with GPIO port numbersLaurent Pinchart2013-06-051-32/+39
| | | | | | | | | | | | | | | | | | The PFC GPIO API implementation moved to using port numbers. Replace all GPIO_PORTx enum usage with the corresponding port number. The GPIO_PORTx enum values are identical to the port number on this platform. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove function GPIOsLaurent Pinchart2013-06-051-205/+0
| | | | | | | | | | | | | | No r8a7740 platform use the function GPIOs API. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove HDMI function GPIOSLaurent Pinchart2013-06-041-4/+0
| | | | | | | | | | | | | | | | All r8a7740 platforms now use the pinctrl API to control the HDMI pins, the corresponding function GPIOS are unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove FSI function GPIOSLaurent Pinchart2013-06-041-12/+0
| | | | | | | | | | | | | | | | All r8a7740 platforms now use the pinctrl API to control the FSI pins, the corresponding function GPIOS are unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove CEU function GPIOSLaurent Pinchart2013-06-041-28/+0
| | | | | | | | | | | | | | | | All r8a7740 platforms now use the pinctrl API to control the CEU pins, the corresponding function GPIOS are unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove GETHER function GPIOSLaurent Pinchart2013-06-041-20/+0
| | | | | | | | | | | | | | | | All r8a7740 platforms now use the pinctrl API to control the GETHER pins, the corresponding function GPIOS are unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove BSC function GPIOSLaurent Pinchart2013-06-041-24/+2
| | | | | | | | | | | | | | | | All r8a7740 platforms now use the pinctrl API to control the BSC pins, the corresponding function GPIOS are unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove INTC function GPIOSLaurent Pinchart2013-06-041-34/+0
| | | | | | | | | | | | | | | | All r8a7740 platforms now use the pinctrl API to control the INTC pins, the corresponding function GPIOS are unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Remove SCIF function GPIOSLaurent Pinchart2013-06-041-72/+0
| | | | | | | | | | | | | | | | All r8a7740 platforms now use the pinctrl API to control the SCIF pins, the corresponding function GPIOS are unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Hardcode the LCDC0 outputLaurent Pinchart2013-06-041-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The r8a7740 has two LCDC units and two sets of LCDC output signals. By default LCDC0 is routed to the LCD0 signals, and LCDC1 to the LCD1 signals. However, LCDC1 can be routed to the LCD0 signals by setting bit MSEL6 in MSEL3CR (the LCD0 signals are further pinmuxed the usual way). This could be configured by duplicating the LCD0 pin groups for LCDC1. However, this would unnecessarily complicate the LCD pin groups, as no r8a7740 board supported in mainline use such a configuration. Hardcode the MSEL3CR MSEL6 bit to 0 for now. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add HDMI pin groups and functionsLaurent Pinchart2013-06-041-0/+14
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add FSI pin groups and functionsLaurent Pinchart2013-06-041-0/+118
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add CEU pin groups and functionsLaurent Pinchart2013-06-041-0/+124
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add GETHER pin groups and functionsLaurent Pinchart2013-06-041-0/+82
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add BSC pin groups and functionsLaurent Pinchart2013-06-041-0/+155
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Declare missing INTC functionLaurent Pinchart2013-06-041-0/+1
| | | | | | | | | | | | | | | | When adding the INTC pin groups the INTC function hasn't been added to the functions list. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: r8a7740: Add SCIF pin groups and functionsLaurent Pinchart2013-06-041-0/+346
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add bias (pull-up/down) pinconf supportLaurent Pinchart2013-06-041-130/+211
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Remove function GPIOsLaurent Pinchart2013-06-041-247/+0
| | | | | | | | | | | | | | No sh7372 platform use the function GPIOs API. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Replace GPIO_PORTx enum with GPIO port numbersLaurent Pinchart2013-06-041-32/+39
| | | | | | | | | | | | | | | | | | The PFC GPIO API implementation moved to using port numbers. Replace all GPIO_PORTx enum usage with the corresponding port number. The GPIO_PORTx enum values are identical to the port number on this platform. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add USB pin groups and functionsLaurent Pinchart2013-06-041-0/+82
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add SCIF pin groups and functionsLaurent Pinchart2013-06-041-0/+197
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add LCDC pin groups and functionsLaurent Pinchart2013-06-041-0/+121
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add KEYSC pin groups and functionsLaurent Pinchart2013-06-041-0/+91
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add INTC pin groups and functionsLaurent Pinchart2013-06-041-0/+161
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add HDMI pin groups and functionsLaurent Pinchart2013-06-041-0/+14
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add FSI pin groups and functionsLaurent Pinchart2013-06-041-0/+91
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| * sh-pfc: sh7372: Add FLCTL pin groups and functionsLaurent Pinchart2013-06-041-0/+44
| | | | | | | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
OpenPOWER on IntegriCloud