1. 24 May, 2019 1 commit
  2. 21 May, 2019 1 commit
  3. 10 May, 2019 2 commits
  4. 03 May, 2019 2 commits
  5. 22 Dec, 2018 1 commit
  6. 21 Dec, 2018 1 commit
  7. 23 Nov, 2018 1 commit
  8. 02 Oct, 2018 1 commit
  9. 29 Aug, 2018 3 commits
  10. 06 Aug, 2018 1 commit
    • Quentin Schulz's avatar
      pinctrl: ocelot: add support for interrupt controller · be36abb7
      Quentin Schulz authored
      This GPIO controller can serve as an interrupt controller as well on the
      GPIOs it handles.
      An interrupt is generated whenever a GPIO line changes and the
      interrupt for this GPIO line is enabled. This means that both the
      changes from low to high and high to low generate an interrupt.
      For some use cases, it makes sense to ignore the high to low change and
      not generate an interrupt. Such a use case is a line that is hold in a
      level high/low manner until the event holding the line gets acked.
      This can be achieved by making sure the interrupt on the GPIO controller
      side gets acked and masked only after the line gets hold in its default
      state, this is what's done with the fasteoi functions.
      Only IRQ_TYPE_EDGE_BOTH and IRQ_TYPE_LEVEL_HIGH are supported for now.
      Signed-off-by: default avatarQuentin Schulz <quentin.schulz@bootlin.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
  11. 18 Jun, 2018 1 commit
  12. 05 Jun, 2018 1 commit
    • Richard Fitzgerald's avatar
      pinctrl: madera: Add driver for Cirrus Logic Madera codecs · 218d72a7
      Richard Fitzgerald authored
      These codecs have a variable number of I/O lines each of which
      is individually selectable to a wide range of possible functions.
      The functionality is slightly different from the traditional muxed
      GPIO since most of the functions can be mapped to any pin (and even
      the same function to multiple pins). Most pins have a dedicated
      "alternate" function that is only available on that pin. The
      alternate functions are usually a group of signals, though it is
      not always necessary to enable the full group, depending on the
      alternate function and how it is to be used. The mapping between
      alternate functions and GPIO pins varies between codecs depending
      on the number of alternate functions and available pins.
      Signed-off-by: default avatarRichard Fitzgerald <rf@opensource.cirrus.com>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
  13. 02 May, 2018 1 commit
  14. 26 Mar, 2018 1 commit
  15. 01 Mar, 2018 1 commit
  16. 09 Jan, 2018 1 commit
  17. 20 Dec, 2017 1 commit
  18. 07 Dec, 2017 1 commit
  19. 13 Nov, 2017 1 commit
  20. 08 Nov, 2017 1 commit
  21. 19 Oct, 2017 1 commit
    • Linus Walleij's avatar
      pinctrl: adi2: Fix Kconfig build problem · 1c363531
      Linus Walleij authored
      The build robot is complaining on Blackfin:
      drivers/pinctrl/pinctrl-adi2.c: In function 'port_setup':
      >> drivers/pinctrl/pinctrl-adi2.c:221:21: error: dereferencing
         pointer to incomplete type 'struct gpio_port_t'
            writew(readw(&regs->port_fer) & ~BIT(offset),
      drivers/pinctrl/pinctrl-adi2.c: In function 'adi_gpio_ack_irq':
      >> drivers/pinctrl/pinctrl-adi2.c:266:18: error: dereferencing
      pointer to incomplete type 'struct bfin_pint_regs'
            if (readl(&regs->invert_set) & pintbit)
      It seems the driver need to include <asm/gpio.h> and <asm/irq.h>
      to compile.
      The Blackfin architecture was re-defining the Kconfig
      PINCTRL symbol which is not OK, so replaced this with
      just like most arches do.
      Further, the old GPIO driver symbol GPIO_ADI was possible to
      select at the same time as selecting PINCTRL. This was not
      working because the arch-local <asm/gpio.h> header contains
      an explicit #ifndef PINCTRL clause making compilation break
      if you combine them. The same is true for DEBUG_MMRS.
      Make sure the ADI2 pinctrl driver is not selected at the same
      time as the old GPIO implementation. (This should be converted
      to use gpiolib or pincontrol and move to drivers/...) Also make
      sure the old GPIO_ADI driver or DEBUG_MMRS is not selected at
      the same time as the new PINCTRL implementation, and only make
      PINCTRL_ADI2 selectable for the Blackfin families that actually
      have it.
      This way it is still possible to add e.g. I2C-based pin
      control expanders on the Blackfin.
      Cc: Steven Miao <realmz6@gmail.com>
      Cc: Huanhuan Feng <huanhuan.feng@analog.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
  22. 16 Oct, 2017 1 commit
  23. 12 Oct, 2017 1 commit
  24. 11 Oct, 2017 1 commit
  25. 27 Sep, 2017 1 commit
    • Petr Mladek's avatar
      pinctrl/amd: Fix build dependency on pinmux code · 83b31c2a
      Petr Mladek authored
      The commit 79d2c8be ("pinctrl/amd: save pin registers over
      suspend/resume") caused the following compilation errors:
      drivers/pinctrl/pinctrl-amd.c: In function ‘amd_gpio_should_save’:
      drivers/pinctrl/pinctrl-amd.c:741:8: error: ‘const struct pin_desc’ has no member named ‘mux_owner’
        if (pd->mux_owner || pd->gpio_owner ||
      drivers/pinctrl/pinctrl-amd.c:741:25: error: ‘const struct pin_desc’ has no member named ‘gpio_owner’
        if (pd->mux_owner || pd->gpio_owner ||
      We need to enable CONFIG_PINMUX for this driver as well.
      Cc: stable@vger.kernel.org
      Fixes: 79d2c8be
       ("pinctrl/amd: save pin registers over suspend/resume")
      Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
  26. 31 Aug, 2017 1 commit
  27. 21 Aug, 2017 1 commit
  28. 14 Aug, 2017 1 commit
  29. 23 Jun, 2017 1 commit
  30. 30 May, 2017 1 commit
    • Arnd Bergmann's avatar
      pinctrl: mcp23s08: improve I2C Kconfig dependency · adeac775
      Arnd Bergmann authored
      With "SPI_MASTER=y && I2C=m", we can build mcp23s08 as a built-in driver,
      which then results in a link failure:
      drivers/pinctrl/built-in.o: In function `mcp23s08_probe_one.isra.0':
      :(.text+0x7910): undefined reference to `__devm_regmap_init_i2c'
      drivers/pinctrl/built-in.o: In function `mcp23s08_init':
      :(.init.text+0x110): undefined reference to `i2c_register_driver'
      drivers/pinctrl/built-in.o: In function `mcp23s08_exit':
      :(.exit.text+0x3c): undefined reference to `i2c_del_driver'
      To avoid the problem, this adds another dependency on I2C that enforces
      mcp23s08 to be a loadable module whenever the I2C core is a module.
      Fixes: 64ac43e6
       ("gpio: mcp23s08: move to pinctrl")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
  31. 29 May, 2017 1 commit
  32. 23 May, 2017 3 commits
  33. 22 May, 2017 2 commits
    • Paul Cercueil's avatar
      pinctrl: add a pinctrl driver for the Ingenic jz47xx SoCs · b5c23aa4
      Paul Cercueil authored
      This driver handles pin configuration and pin muxing for the
      JZ4740 and JZ4780 SoCs from Ingenic.
      Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    • Shawn Guo's avatar
      pinctrl: add ZTE ZX pinctrl driver support · cbff0c4d
      Shawn Guo authored
      The pin controller on ZTE ZX platforms is kinda of hybrid.  It consists
      of a main controller and an auxiliary one.  For example, on ZX296718 SoC,
      the main controller is TOP_PMM and the auxiliary one is AON_IOCFG.  Both
      controllers work together to control pin multiplexing and configuration.
      For most of pins, the pinmux function is controlled by main controller
      only, and this type of pins are meant by term 'TOP pins'.  For other
      pins, the pinmux is controlled by both main and auxiliary controllers,
      as the available multiplexing functions for the pin spread in both
      controllers.  This type of pins are called 'AON pins'.  Though pinmux
      implementation is quite different, pinconf is same for both types of
      pins.  Both are controlled by auxiliary controller, i.e. AON_IOCFG on
      The patch adds the ZTE ZX core pinctrl driver to support this hybrid
      pin controller as well as ZX296718 SoC specific pin data.
      Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>