Skip to content
Permalink
Rafa-Mi-ecki/p…
Switch branches/tags

Commits on Dec 15, 2021

  1. pinctrl: add one more "const" for generic function groups

    Generic code doesn't modify those strings and .get_function_groups
    callback has that extra "const" as well. This allows more flexibility in
    GENERIC_PINMUX_FUNCTIONS users.
    
    Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
    Rafał Miłecki authored and intel-lab-lkp committed Dec 15, 2021

Commits on Dec 9, 2021

  1. pinctrl: Sort Kconfig and Makefile entries alphabetically

    Sort Kconfig and Makefile entries alphabetically for better maintenance
    in the future.
    
    While at it fix some style issues, such as:
      - "Say Y"/"Say yes"/"Say Yes" --> "Say Y"
      - "pullup/pulldown" --> "pull-up and pull-down"
      - wrong indentation
    
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Link: https://lore.kernel.org/r/20211209113456.33977-1-andriy.shevchenko@linux.intel.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    andy-shev authored and linusw committed Dec 9, 2021
  2. pinctrl: Add Intel Thunder Bay pinctrl driver

    About Intel Thunder Bay:
    -----------------------
    Intel Thunder Bay is a computer vision AI accelerator SoC based on ARM CPU.
    
    Pinctrl IP:
    ----------
    The SoC has a customised pinmux controller IP which controls pin
    multiplexing and configuration.
    
    Thunder Bay pinctrl IP is not based on and have nothing in common with the
    existing pinctrl drivers. The registers used are incompatible with the
    existing drivers, so it requires a new driver.
    
    Add pinctrl driver to enable pin control support in the Intel Thunder Bay
    SoC.
    
    Co-developed-by: Kiran Kumar S <kiran.kumar1.s@intel.com>
    Signed-off-by: Kiran Kumar S <kiran.kumar1.s@intel.com>
    Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com>
    Link: https://lore.kernel.org/r/20211201072626.19599-3-lakshmi.sowjanya.d@intel.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Lakshmi-Sowjanya authored and linusw committed Dec 9, 2021
  3. dt-bindings: pinctrl: Add bindings for Intel Thunderbay pinctrl driver

    Add Device Tree bindings documentation and an entry in MAINTAINERS file
    for Intel Thunder Bay SoC's pin controller.
    
    Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com>
    Link: https://lore.kernel.org/r/20211201072626.19599-2-lakshmi.sowjanya.d@intel.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Lakshmi-Sowjanya authored and linusw committed Dec 9, 2021
  4. pinctrl: qcom: Add SM8450 pinctrl driver

    This adds pincontrol driver for tlmm block found in SM8450 SoC
    
    This patch is based on initial code downstream by
    Elliot Berman <eberman@codeaurora.org>
    
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
    Link: https://lore.kernel.org/r/20211201072434.3968768-3-vkoul@kernel.org
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    vinodkoul authored and linusw committed Dec 9, 2021
  5. dt-bindings: pinctrl: qcom: Add SM8450 pinctrl bindings

    Add device tree binding Documentation details for Qualcomm SM8450
    TLMM device
    
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20211201072434.3968768-2-vkoul@kernel.org
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    vinodkoul authored and linusw committed Dec 9, 2021

Commits on Dec 5, 2021

  1. Merge tag 'renesas-pinctrl-for-v5.17-tag1' of git://git.kernel.org/pu…

    …b/scm/linux/kernel/git/geert/renesas-drivers into devel
    
    pinctrl: renesas: Updates for v5.17
    
      - Add generic support for output impedance,
      - Add drive strength and output impedance support for the RZ/G2L SoC,
      - Miscellaneous fixes and improvements.
    linusw committed Dec 5, 2021
  2. dt-bindings: pinctrl: use pinctrl.yaml

    Also fix some examples to avoid warnings like:
    brcm,ns-pinmux.example.dt.yaml: pin-controller@1800c1c0: $nodename:0: 'pin-controller@1800c1c0' does not match '^pinctrl|pinmux@[0-9a-f]+$'
    
    Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20211202063216.24439-1-zajec5@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Rafał Miłecki authored and linusw committed Dec 5, 2021

Commits on Dec 4, 2021

  1. pinctrl: spear: plgpio: Introduce regmap phandle

    Resources need to be shared between pinmux and plgpio.
    
    Introduce regmap phandle in order to retrieve the regmap
    from the phandle if the property is present.
    This allows to retrieve an external regmap (ie the one
    used by pinmux if the phandle references the pinmux node)
    from plgpio.
    
    Signed-off-by: Herve Codina <herve.codina@bootlin.com>
    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
    Link: https://lore.kernel.org/r/20211202095255.165797-4-herve.codina@bootlin.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    hcodina authored and linusw committed Dec 4, 2021
  2. pinctrl: spear: plgpio: Convert to regmap

    Resources need to be shared between pinmux and plgpio.
    
    Use regmap (syscon) to access resources to allow an
    easy way to share resources.
    
    Signed-off-by: Herve Codina <herve.codina@bootlin.com>
    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
    Link: https://lore.kernel.org/r/20211202095255.165797-3-herve.codina@bootlin.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    hcodina authored and linusw committed Dec 4, 2021
  3. pinctrl: spear: spear: Convert to regmap

    Resources need to be shared between pinmux and plgpio.
    
    Use regmap (syscon) to access resources to allow an
    easy way to share resources.
    
    Signed-off-by: Herve Codina <herve.codina@bootlin.com>
    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
    Link: https://lore.kernel.org/r/20211202095255.165797-2-herve.codina@bootlin.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    hcodina authored and linusw committed Dec 4, 2021

Commits on Dec 2, 2021

  1. dt-bindings: pinctrl: convert controller description to the json-schema

    This helps validating DTS and writing YAML files.
    
    Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20211110165720.30242-1-zajec5@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Rafał Miłecki authored and linusw committed Dec 2, 2021
  2. pinctrl: apple-gpio: fix flexible_array.cocci warnings

    Zero-length and one-element arrays are deprecated, see
    Documentation/process/deprecated.rst
    Flexible-array members should be used instead.
    
    Generated by: scripts/coccinelle/misc/flexible_array.cocci
    
    CC: Joey Gouly <joey.gouly@arm.com>
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
    Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2111271859250.2864@hadrien
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    intel-lab-lkp authored and linusw committed Dec 2, 2021
  3. pinctrl: mediatek: add a check for error in mtk_pinconf_bias_get_rsel()

    All the other mtk_hw_get_value() calls have a check for "if (err)" so
    we can add one here as well.  This silences a Smatch warning:
    
        drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:819 mtk_pinconf_bias_get_rsel()
        error: uninitialized symbol 'pd'.
    
    Fixes: fb34a9a ("pinctrl: mediatek: support rsel feature")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Link: https://lore.kernel.org/r/20211127140836.GB24002@kili
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    error27 authored and linusw committed Dec 2, 2021
  4. pinctrl: mediatek: uninitialized variable in mtk_pctrl_show_one_pin()

    The "try_all_type" variable is not set if (hw->soc->pull_type) is false
    leading to the following Smatch warning:
    
        drivers/pinctrl/mediatek/pinctrl-paris.c:599 mtk_pctrl_show_one_pin()
        error: uninitialized symbol 'try_all_type'.
    
    Fixes: fb34a9a ("pinctrl: mediatek: support rsel feature")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Link: https://lore.kernel.org/r/20211127140750.GA24002@kili
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    error27 authored and linusw committed Dec 2, 2021
  5. pinctrl: freescale: Add i.MXRT1050 pinctrl driver support

    Add the pinctrl driver support for i.MXRT1050.
    
    Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
    Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
    Reviewed-by: Fabio Estevam <festevam@gmail.com>
    Link: https://lore.kernel.org/r/20211125211443.1150135-5-Mr.Bossman075@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    giuliobenetti authored and linusw committed Dec 2, 2021
  6. dt-bindings: pinctrl: add i.MXRT1050 pinctrl binding doc

    Add i.MXRT1050 pinctrl binding doc
    
    Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
    Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20211125211443.1150135-3-Mr.Bossman075@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Mr-Bossman authored and linusw committed Dec 2, 2021
  7. pinctrl/rockchip: fix gpio device creation

    GPIO nodes are not themselves busses, so passing rockchip_bank_match
    here is wrong.  Passing NULL instead uses the standard bus match table
    which is more appropriate.
    
    devm_of_platform_populate() shows that this is the normal way to call
    of_platform_populate() from a device driver, so in order to match that
    more closely also add the pinctrl device as the parent for the newly
    created GPIO controllers.
    
    Specifically, using the wrong match here can break dynamic GPIO hogs as
    marking the GPIO bank as a bus means that of_platform_notify() will set
    OF_POPULATED on new child nodes and if this happens before
    of_gpio_notify() is called then the new hog will be skipped as
    OF_POPULATED is already set.
    
    Fixes: 9ce9a02 ("pinctrl/rockchip: drop the gpio related codes")
    Signed-off-by: John Keeping <john@metanate.com>
    Link: https://lore.kernel.org/r/20211126151352.1509583-1-john@metanate.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    johnkeeping authored and linusw committed Dec 2, 2021

Commits on Nov 27, 2021

  1. Revert "dt-bindings: pinctrl: qcom: Add SDX65 pinctrl bindings"

    This reverts commit 3fe59cc.
    The bindings were not properly reviewed and were also
    causing errors in the automatic checkers once applied.
    
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    linusw committed Nov 27, 2021

Commits on Nov 26, 2021

  1. pinctrl: apple: return an error if pinmux is missing in the DT

    If of_property_count_u32_elems returned 0, return -EINVAL to indicate
    a failure. Previously this would return 0.
    
    Fixes: a0f160f ("pinctrl: add pinctrl/GPIO driver for Apple SoCs")
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-12-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  2. pinctrl: apple: use modulo rather than bitwise and

    This expresses the intention clearer.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-11-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  3. pinctrl: apple: don't set gpio_chip.of_node

    The gpio core code sets of_node, so no need to do it here.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-10-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  4. pinctrl: apple: remove gpio-controller check

    Having this missing, but everything else valid shouldn't result
    in a failure.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-9-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  5. pinctrl: apple: give error label a specific name

    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-8-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  6. pinctrl: apple: make apple_gpio_get_direction more readable

    Try to make this more readable by not using a long line with
    a ternary operator.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-7-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  7. pinctrl: apple: handle regmap_read errors

    Explicitly return 0 if the regmap_read fails.
    Also change a uint32_t to a u32.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-6-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  8. pinctrl: apple: add missing bits.h header

    This is needed for the BIT(n) macro.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-5-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  9. pinctrl: apple: use C style comment

    This is the preferred comment style.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-4-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  10. pinctrl: apple: add missing comma

    Add a missing comma at the end of the regmap initialisation.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-3-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  11. pinctrl: apple: fix some formatting issues

    Reflow some of the code now that the extra '_gpio' was removed.
    
    Signed-off-by: Joey Gouly <joey.gouly@arm.com>
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Link: https://lore.kernel.org/r/20211121165642.27883-2-joey.gouly@arm.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jgouly authored and linusw committed Nov 26, 2021
  12. Merge tag 'v5.16-rc2' into devel

    Linux 5.16-rc2 is needed because nonurgent fixes headed
    for next are strongly textually dependent on a fix that
    was applied for rc2.
    
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    linusw committed Nov 26, 2021
  13. dt-bindings: pinctrl: qcom: pmic-gpio: Document pm8226 compatible

    Suggested-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
    Signed-off-by: Dominik Kobinski <dominikkobinski314@gmail.com>
    Link: https://lore.kernel.org/r/20211125215626.62447-1-dominikkobinski314@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Dominduchami authored and linusw committed Nov 26, 2021

Commits on Nov 22, 2021

  1. pinctrl: microchip-sgpio: update to support regmap

    Adopt regmap instead of a direct memory map so that custom regmaps and
    other interfaces can be supported.
    
    Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
    Link: https://lore.kernel.org/r/20211119195928.2498441-5-colin.foster@in-advantage.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    colin-foster-in-advantage authored and linusw committed Nov 22, 2021
  2. pinctrl: ocelot: convert pinctrl to regmap

    In order to allow external control via SPI, memory-mapped areas must be
    changed to use the generic regmap interface. This is step 1, and is
    followed by an implementation that allows a custom regmap.
    
    Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
    Link: https://lore.kernel.org/r/20211119195928.2498441-4-colin.foster@in-advantage.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    colin-foster-in-advantage authored and linusw committed Nov 22, 2021
  3. pinctrl: ocelot: update pinctrl to automatic base address

    struct gpio_chip recommends passing -1 as base to gpiolib. Doing so avoids
    conflicts when the chip is external and gpiochip0 already exists.
    
    Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
    Tested-by: Clément Léger <clement.leger@bootlin.com>
    Link: https://lore.kernel.org/r/20211119195928.2498441-3-colin.foster@in-advantage.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    colin-foster-in-advantage authored and linusw committed Nov 22, 2021
Older