Skip to content
Permalink
Masahiro-Yamad…
Switch branches/tags

Commits on Apr 8, 2021

  1. pm: allow drivers to drop #ifdef and __maybe_unused from pm callbacks

    Drivers typically surround suspend and resume callbacks with #ifdef
    CONFIG_PM(_SLEEP) or mark them as __maybe_unused in order to avoid
    -Wunused-const-variable warnings.
    
    With this commit, drivers will be able to remove #ifdef CONFIG_PM(_SLEEP)
    and __maybe_unsed because unused functions are dropped by the compiler
    instead of the preprocessor.
    
    Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
    masahir0y authored and intel-lab-lkp committed Apr 8, 2021
  2. linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in <linux/kernel.h>

    <linux/kconfig.h> is included from all the kernel-space source files,
    including C, assembly, linker scripts. It is intended to contain minimal
    set of macros to evaluate CONFIG options.
    
    IF_ENABLED() is an intruder here because (x ? y : z) is C code, which
    should not be included from assembly files or linker scripts.
    
    Also, <linux/kconfig.h> is no longer self-contained because NULL is
    defined in <linux/stddef.h>.
    
    Move IF_ENABLED() out to <linux/kernel.h> as PTR_IF().
    
    PTR_IF(IS_ENABLED(CONFIG_FOO), ...) is slightly longer than
    IF_ENABLED(CONFIG_FOO, ...), but it is not a big deal because
    sub-systems often define dedicated macros such as of_match_ptr(),
    pm_ptr() etc. for common use-cases.
    
    Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
    masahir0y authored and intel-lab-lkp committed Apr 8, 2021
  3. docs: pin-control: Fix error path for control state example

    The error is constructed using the wrong variable.
    
    Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Link: https://lore.kernel.org/r/20210328164222.720525-1-niklas.soderlund+renesas@ragnatech.se
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Niklas Söderlund authored and linusw committed Apr 8, 2021
  4. pinctrl: imx: Disallow driver unbind

    Performing the 'unbind' operation on pinctrl drivers is
    not a sensible usecase, so pass the suppress_bind_attrs
    atribute to prevent it.
    
    Signed-off-by: Fabio Estevam <festevam@gmail.com>
    Link: https://lore.kernel.org/r/20210328183034.555702-2-festevam@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    fabioestevam authored and linusw committed Apr 8, 2021
  5. pinctrl: imx: Remove unneeded of_match_ptr()

    i.MX is a DT-only platform, so of_match_ptr() can be safely
    removed.
    
    Remove the unneeded of_match_ptr().
    
    Signed-off-by: Fabio Estevam <festevam@gmail.com>
    Link: https://lore.kernel.org/r/20210328183034.555702-1-festevam@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    fabioestevam authored and linusw committed Apr 8, 2021
  6. pinctrl: ti: fix error return code of ti_iodelay_dt_node_to_map()

    when devm_kcalloc fails, use -ENOMEM instead of -EINVAL,
    and consistent with other devm_kcalloc return values.
    
    Signed-off-by: Junlin Yang <yangjunlin@yulong.com>
    Link: https://lore.kernel.org/r/20210330062655.1027-1-angkery@163.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Junlin Yang authored and linusw committed Apr 8, 2021
  7. pinctrl: rockchip: add support for rk3568

    RK3568 SoCs have 5 gpio controllers, each gpio has 32 pins. GPIO supports
    set iomux, pull, drive strength and schmitt.
    
    Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
    Link: https://lore.kernel.org/r/20210319081441.368358-1-jay.xu@rock-chips.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    jayxurockchip authored and linusw committed Apr 8, 2021
  8. pinctrl: stm32: Print invalid AF warning inside stm32_pctrl_is_functi…

    …on_valid()
    
    The "invalid function %d on pin %d .\n" message is triplicated in the
    driver in different variants, just pull it into the function and have
    it once in the driver. The bonus is that all variants of the message
    now print the pin number and AF consistently, so it is easier to debug
    such pinmux problems.
    
    Signed-off-by: Marek Vasut <marex@denx.de>
    Cc: Fabien Dessenne <fabien.dessenne@st.com>
    Cc: Alexandre Torgue <alexandre.torgue@st.com>
    Cc: Linus Walleij <linus.walleij@linaro.org>
    Cc: linux-stm32@st-md-mailman.stormreply.com
    To: linux-arm-kernel@lists.infradead.org
    Acked-by: Fabien Dessenne <fabien.dessenne@foss.st.com>
    Link: https://lore.kernel.org/r/20210406180035.279249-1-marex@denx.de
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Marek Vasut authored and linusw committed Apr 8, 2021
  9. pinctrl: bcm63xx: Fix More dependencies

    The additional patch below fixes all of the kconfig warnings and
    build errors for me.
    
    Link: https://lore.kernel.org/r/9e1cec76-1c0a-9203-7995-4c2d09b711d8@infradead.org
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    [Tweaked some other line in the BCMxxx]
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    rddunlap authored and linusw committed Apr 8, 2021

Commits on Apr 7, 2021

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

    …b/scm/linux/kernel/git/geert/renesas-drivers into devel
    
    pinctrl: renesas: Updates for v5.13 (take two)
    
      - Add bias support for the R-Car M2-W and M2-N, and RZ/G1M and RZ/G1N
        SoCs,
      - Miscellaneous cleanups and improvements.
    linusw committed Apr 7, 2021

Commits on Mar 31, 2021

  1. pinctrl: bcm63xx: Fix dependencies

    Add depends on OF so we don't get weird build errors on
    randconfig.
    
    Also order selects the same as the other drivers for
    pure aestetic reasons.
    
    Reported-by: Randy Dunlap <rdunlap@infradead.org>
    Cc: Álvaro Fernández Rojas <noltari@gmail.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    linusw committed Mar 31, 2021
  2. pinctrl: bcm: bcm6362: fix warning

    The current implementation of bcm6362_set_gpio() produces the following
    warning on x86_64:
    drivers/pinctrl/bcm/pinctrl-bcm6362.c: In function 'bcm6362_set_gpio':
    drivers/pinctrl/bcm/pinctrl-bcm6362.c:503:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      503 |        (uint32_t) desc->drv_data, 0);
          |        ^
    
    Modify the code to make it similar to bcm63268_set_gpio() in order to fix
    the warning.
    
    Fixes: 705791e ("pinctrl: add a pincontrol driver for BCM6362")
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210330103225.3949-1-noltari@gmail.com
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 31, 2021

Commits on Mar 29, 2021

  1. Merge tag 'intel-pinctrl-v5.13-1' of gitolite.kernel.org:pub/scm/linu…

    …x/kernel/git/pinctrl/intel into devel
    
    intel-pinctrl for v5.13-1
    
    * Don't disable disabled IRQs in the handler
    * Fix the base calculation for groups defined by size
    
    The following is an automated git shortlog grouped by driver:
    
    intel:
     -  No need to disable IRQs in the handler
     -  Show the GPIO base calculation explicitly
    linusw committed Mar 29, 2021
  2. drivers: pinctrl: Remove duplicate include of io.h

    linux/io.h has been included at line 6, so remove the
    duplicate include at line 18.
    
    Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
    Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
    Link: https://lore.kernel.org/r/20210323013727.135571-1-wanjiabing@vivo.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Wan Jiabing authored and linusw committed Mar 29, 2021
  3. pinctrl: add a pincontrol driver for BCM6318

    Add a pincontrol driver for BCM6318. BCM6318 allows muxing most GPIOs
    to different functions. BCM6318 is similar to BCM6328 with the addition
    of a pad register, and the GPIO meaning of the mux register changes
    based on the GPIO number.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210324081923.20379-23-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  4. dt-bindings: add BCM6318 GPIO sysctl binding documentation

    Add binding documentation for the GPIO sysctl found in BCM6318 SoCs.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-22-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  5. dt-bindings: add BCM6318 pincontroller binding documentation

    Add binding documentation for the pincontrol core found in BCM6318 SoCs.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-21-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  6. pinctrl: add a pincontrol driver for BCM63268

    Add a pincontrol driver for BCM63268. BCM63268 allows muxing GPIOs
    to different functions. Depending on the mux, these are either single
    pin configurations or whole pin groups.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210324081923.20379-20-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  7. dt-bindings: add BCM63268 GPIO sysctl binding documentation

    Add binding documentation for the GPIO sysctl found in BCM63268 SoCs.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-19-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  8. dt-bindings: add BCM63268 pincontroller binding documentation

    Add binding documentation for the pincontrol core found in the BCM63268
    family SoCs.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-18-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  9. pinctrl: add a pincontrol driver for BCM6368

    Add a pincontrol driver for BCM6368. BCM6368 allows muxing the first 32
    GPIOs onto alternative functions. Not all are documented.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210324081923.20379-17-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  10. dt-bindings: add BCM6368 GPIO sysctl binding documentation

    Add binding documentation for the GPIO sysctl found in BCM6368 SoCs.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-16-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  11. dt-bindings: add BCM6368 pincontroller binding documentation

    Add binding documentation for the pincontrol core found in BCM6368 SoCs.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-15-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  12. pinctrl: add a pincontrol driver for BCM6362

    Add a pincotrol driver for BCM6362. BCM6362 allows muxing individual
    GPIO pins to the LED controller, to be available by the integrated
    wifi, or other functions. It also supports overlay groups, of which
    only NAND is documented.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210324081923.20379-14-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  13. dt-bindings: add BCM6362 GPIO sysctl binding documentation

    Add binding documentation for the GPIO sysctl found in BCM6362 SoCs.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-13-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  14. dt-bindings: add BCM6362 pincontroller binding documentation

    Add binding documentation for the pincontrol core found in BCM6362 SoCs.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-12-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  15. pinctrl: add a pincontrol driver for BCM6358

    Add a pincotrol driver for BCM6358. BCM6358 allow overlaying different
    functions onto the GPIO pins. It does not support configuring individual
    pins but only whole groups. These groups may overlap, and still require
    the directions to be set correctly in the GPIO register. In addition the
    functions register controls other, not directly mux related functions.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210324081923.20379-11-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  16. dt-bindings: add BCM6358 GPIO sysctl binding documentation

    Add binding documentation for the GPIO sysctl found in BCM6358 SoCs.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-10-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  17. dt-bindings: add BCM6358 pincontroller binding documentation

    Add binding documentation for the pincontrol core found in BCM6358 SoCs.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-9-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  18. pinctrl: add a pincontrol driver for BCM6328

    Add a pincontrol driver for BCM6328. BCM6328 supports muxing 32 pins as
    GPIOs, as LEDs for the integrated LED controller, or various other
    functions. Its pincontrol mux registers also control other aspects, like
    switching the second USB port between host and device mode.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210324081923.20379-8-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  19. dt-bindings: add BCM6328 GPIO sysctl binding documentation

    Add binding documentation for the GPIO sysctl found in BCM6328 SoCs.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-7-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  20. dt-bindings: add BCM6328 pincontroller binding documentation

    Add binding documentation for the pincontrol core found in BCM6328 SoCs.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-6-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  21. pinctrl: bcm: add bcm63xx base code

    Add a helper for registering BCM63XX pin controllers.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Link: https://lore.kernel.org/r/20210324081923.20379-5-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
  22. dt-bindings: improve BCM6345 GPIO binding documentation

    Convert existing BCM6345 GPIO binding documentation to YAML and add binding
    documentation for the GPIO controller found in BCM6318, BCM6328, BCM6358,
    BCM6362, BCM6368 and BCM63268 SoCs.
    
    Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
    Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20210324081923.20379-4-noltari@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Noltari authored and linusw committed Mar 29, 2021
Older