Skip to content
Permalink
Zhiyong-Tao/Me…
Switch branches/tags

Commits on Jun 23, 2021

  1. pinctrl: mediatek: add rsel setting on MT8195

    This patch provides rsel setting on MT8195
    
    Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
    Zhiyong Tao authored and intel-lab-lkp committed Jun 23, 2021
  2. dt-bindings: pinctrl: mt8195: add rsel define

    This patch adds rsel define for mt8195.
    
    Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
    Zhiyong Tao authored and intel-lab-lkp committed Jun 23, 2021

Commits on Jun 18, 2021

  1. drivers: qcom: pinctrl: Add pinctrl driver for sm6125

    This patch adds pinctrl driver for sm6125.
    
    Signed-off-by: Martin Botka <martin.botka@somainline.org>
    Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
    Link: https://lore.kernel.org/r/20210614172713.558192-2-martin.botka@somainline.org
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Haxk20 authored and linusw committed Jun 18, 2021
  2. dt-bindings: pinctrl: qcom: sm6125: Document SM6125 pinctrl driver

    Document the newly added SM6125 pinctrl driver
    
    Signed-off-by: Martin Botka <martin.botka@somainline.org>
    Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
    Link: https://lore.kernel.org/r/20210614172713.558192-1-martin.botka@somainline.org
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Haxk20 authored and linusw committed Jun 18, 2021

Commits on Jun 12, 2021

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

    …b/scm/linux/kernel/git/geert/renesas-drivers into devel
    
    pinctrl: renesas: Updates for v5.14 (take two)
    
      - Add bias support for the R-Car H2, V2H, E2, V3M, and V3H, and
        RZ/G1C, RZ/G1H, and RZ/G1E SoCs.
    linusw committed Jun 12, 2021

Commits on Jun 11, 2021

  1. dt-bindings: pinctrl: mcp23s08: add documentation for reset-gpios

    The reset-gpios property is added to the optional dt-bindings and
    also an example for it's usage.
    
    Signed-off-by: Andreas Kaessens <akaessens@gmail.com>
    Signed-off-by: Darian Biastoch <d.biastoch@gmail.com>
    Link: https://lore.kernel.org/r/20210610132438.3085841-2-akaessens@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    akaessens authored and linusw committed Jun 11, 2021
  2. pinctrl: mcp23s08: Add optional reset GPIO

    The MCP23x port expander RESET# line can be connected to a host GPIO.
    The optional reset-gpio must be set to LOW if the reset is asserted
    at probing time.
    
    On page 5 in the datasheet [0] the "Device Active After Reset high"
    time is specified at 0 µs. Therefore no waiting is needed after the
    reset transition.
    
    [0] https://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf
    
    Signed-off-by: Andreas Kaessens <akaessens@gmail.com>
    Signed-off-by: Darian Biastoch <d.biastoch@gmail.com>
    Link: https://lore.kernel.org/r/20210610132438.3085841-1-akaessens@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    akaessens authored and linusw committed Jun 11, 2021

Commits on Jun 9, 2021

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

    …x/kernel/git/pinctrl/intel into devel
    
    intel-pinctrl for v5.14-1
    
    * Enabling pin controller on Intel Alder Lake-M
    
    The following is an automated git shortlog grouped by driver:
    
    tigerlake:
     -  Add Alder Lake-M ACPI ID
    linusw committed Jun 9, 2021
  2. pinctrl: mediatek: fix mode encoding

    Pin modes are encoded in the SoC data structure. Use that value to set
    IES SMT.
    
    Cc: Fabien Parent <fparent@baylibre.com>
    Cc: Sean Wang <sean.wang@kernel.org>
    Cc: Mattijs Korpershoek <mkorpershoek@baylibre.com>
    Cc: linux-mediatek@lists.infradead.org
    Fixes: 696beef ("pinctrl: mediatek: move bit assignment")
    Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
    Signed-off-by: Matthias Brugger <mbrugger@suse.com>
    Link: https://lore.kernel.org/r/20210608150656.29007-1-matthias.bgg@kernel.org
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    mbgg authored and linusw committed Jun 9, 2021
  3. pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq()

    Add the missing unlock before return from function mcp23s08_irq()
    in the error handling case.
    
    v1-->v2:
       remove the "return IRQ_HANDLED" line
    
    Fixes: 897120d ("pinctrl: mcp23s08: fix race condition in irq handler")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Zou Wei <zou_wei@huawei.com>
    Link: https://lore.kernel.org/r/1623134048-56051-1-git-send-email-zou_wei@huawei.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    SamuelZOU authored and linusw committed Jun 9, 2021
  4. pinctrl: bcm: Constify static pinmux_ops

    These are only assigned, either directly or via the bcm63xx_pinctrl_soc
    struct, to the pmxops field in the pinctrl_desc struct and never
    modified, so make them const to allow the compiler to put them in
    read-only memory.
    
    Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
    Acked-by: Florian Fainelli <f.fainelli@gmail.com>
    Link: https://lore.kernel.org/r/20210605185908.39982-3-rikard.falkeborn@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    rikardfalkeborn authored and linusw committed Jun 9, 2021
  5. pinctrl: bcm: Constify static pinctrl_ops

    These are only assigned, either directly or via the bcm63xx_pinctrl_soc
    struct, to the pctlops field in the pinctrl_desc struct and never
    modified, so make them const to allow the compiler to put them in
    read-only memory.
    
    Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
    Acked-by: Florian Fainelli <f.fainelli@gmail.com>
    Link: https://lore.kernel.org/r/20210605185908.39982-2-rikard.falkeborn@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    rikardfalkeborn authored and linusw committed Jun 9, 2021

Commits on Jun 7, 2021

  1. pinctrl: ralink: move RT288X SoC pinmux config into a new 'pinctrl-rt…

    …288x.c' file
    
    Move all related code for SoC RT288X into a new driver located
    in 'pinctrl-rt288x.c' source file.
    
    Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
    Link: https://lore.kernel.org/r/20210604115159.8834-7-sergio.paracuellos@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    paraka authored and linusw committed Jun 7, 2021
  2. pinctrl: ralink: move MT7620 SoC pinmux config into a new 'pinctrl-mt…

    …7620.c' file
    
    Move all related code for SoC MT7620 into a new driver located
    in 'pinctrl-mt7620.c' source file.
    
    Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
    Link: https://lore.kernel.org/r/20210604115159.8834-6-sergio.paracuellos@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    paraka authored and linusw committed Jun 7, 2021
  3. pinctrl: ralink: move RT305X SoC pinmux config into a new 'pinctrl-rt…

    …305x.c' file
    
    Move all related code for SoC RT305X into a new driver located
    in 'pinctrl-rt305x.c' source file.
    
    Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
    Link: https://lore.kernel.org/r/20210604115159.8834-5-sergio.paracuellos@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    paraka authored and linusw committed Jun 7, 2021
  4. pinctrl: ralink: move RT3883 SoC pinmux config into a new 'pinctrl-rt…

    …3883.c' file
    
    Move all related code for SoC RT3883 into a new driver located
    in 'pinctrl-rt3883.c' source file
    
    Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
    Link: https://lore.kernel.org/r/20210604115159.8834-4-sergio.paracuellos@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    paraka authored and linusw committed Jun 7, 2021
  5. pinctrl: ralink: move MT7621 SoC pinmux config into a new 'pinctrl-mt…

    …7621.c' file
    
    Move all related code for SoC MT7621 into a new driver located
    in 'pinctrl-mt7621.c' source file.
    
    Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
    Link: https://lore.kernel.org/r/20210604115159.8834-3-sergio.paracuellos@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    paraka authored and linusw committed Jun 7, 2021
  6. pinctrl: ralink: move ralink architecture pinmux header into the driver

    Ralink architecture is making use of the header located in
    'arch/mips/include/asm/mach-ralink/pinmux.h' to stablish the
    mechanisms to make derived SoCs to set its pin functions and
    groups. In order to move all architecture pinmux into a more
    accurate place which is 'drivers/pinctrl/ralink' we have to
    first of all move this file also there with a small modification
    which creates 'rt2880_pinmux_init' function to allow SoCs pinctrl
    drivers to pass its configuration to the common code located in
    'pinctrl-rt2880.c' file.
    
    Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
    Link: https://lore.kernel.org/r/20210604115159.8834-2-sergio.paracuellos@gmail.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    paraka authored and linusw committed Jun 7, 2021
  7. pinctrl: single: config: enable the pin's input

    It enables / disables the input buffer. As explained in the description
    of 'enum pin_config_param' this does not affect the pin's ability to
    drive output.
    
    Signed-off-by: Dario Binacchi <dariobin@libero.it>
    Acked-by: Tony Lindgren <tony@atomide.com>
    Link: https://lore.kernel.org/r/20210602150420.18202-1-dariobin@libero.it
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    passgat authored and linusw committed Jun 7, 2021
  8. pinctrl: mtk: Fix mt8365 Kconfig dependency

    This SoC needs to select PINCTRL_MTK or we can end up in
    kernel compiles that miss some symbols.
    
    Cc: Fabien Parent <fparent@baylibre.com>
    Reported-by: kernel test robot <lkp@intel.com>
    Fixes: e94d8b6 ("pinctrl: mediatek: add support for mt8365 SoC")
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    linusw committed Jun 7, 2021

Commits on Jun 6, 2021

  1. pinctrl: mcp23s08: fix race condition in irq handler

    Checking value of MCP_INTF in mcp23s08_irq suggests that the handler may be
    called even when there is no interrupt pending.
    
    But the actual interrupt could happened between reading MCP_INTF and MCP_GPIO.
    In this situation we got nothing from MCP_INTF, but the event gets acknowledged
    on the expander by reading MCP_GPIO. This leads to losing events.
    
    Fix the problem by not reading any register until we see something in MCP_INTF.
    
    The error was reproduced and fix tested on MCP23017.
    
    Signed-off-by: Radim Pavlik <radim.pavlik@tbs-biometrics.com>
    Link: https://lore.kernel.org/r/AM7PR06MB6769E1183F68DEBB252F665ABA3E9@AM7PR06MB6769.eurprd06.prod.outlook.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Radim Pavlik authored and linusw committed Jun 6, 2021

Commits on May 31, 2021

  1. pinctrl: renesas: r8a77980: Add bias pinconf support

    Implement support for pull-up and pull-down handling for the R-Car V3H
    SoC, using the common R-Car bias handling.
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Link: https://lore.kernel.org/r/448f47ccd89d9bc8621c7fda8c81508deb05cb82.1619785375.git.geert+renesas@glider.be
    geertu committed May 31, 2021
  2. pinctrl: renesas: r8a77970: Add bias pinconf support

    Implement support for pull-up (most pins, excl. DU_DOTCLKIN and EXTALR)
    and pull-down (most pins, excl. JTAG) handling for the R-Car V3M SoC,
    using the common R-Car bias handling.
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Link: https://lore.kernel.org/r/bcfad447624d874258a45a92554574b8fe9f712f.1619785375.git.geert+renesas@glider.be
    geertu committed May 31, 2021
  3. pinctrl: renesas: r8a7794: Add bias pinconf support

    Implement support for pull-up (most pins) and pull-down (ASEBRK#/ACK)
    handling for R-Car E2 and RZ/G1E SoCs, using the common R-Car bias
    handling.
    
    Note that on RZ/G1E, the "ASEBRK#/ACK" pin is called "ACK", but the code
    doesn't handle that naming difference.  Hence users should use the R-Car
    naming in DTS files.
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Link: https://lore.kernel.org/r/f78da2ba937ce98ae9196f4ee54149a5214fd545.1619785375.git.geert+renesas@glider.be
    geertu committed May 31, 2021
  4. pinctrl: renesas: r8a7792: Add bias pinconf support

    Implement support for pull-up (most pins) and pull-down (EDBGREQ)
    handling for the R-Car V2H SoC, using the common R-Car bias handling.
    
    Note that the R-Car V2H Hardware User's Manual Rev. 1.00 says that
    the LSI Pin Pull-Up Control Register 11 (PUPR11) controls pull-ups for
    the {SCK,WS,SDATA}[01] pins.  These are assumed to be typos, as R-Car
    V2H has only Serial Sound Interface channels 3 and 4.
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Link: https://lore.kernel.org/r/48d2abdd63ee43ed99cb32ed4a5f4d76ba563162.1619785375.git.geert+renesas@glider.be
    geertu committed May 31, 2021
  5. pinctrl: renesas: r8a7790: Add bias pinconf support

    Implement support for pull-up (most pins) and pull-down (ASEBRK#/ACK)
    handling for R-Car H2 and RZ/G1H SoCs, using the common R-Car bias
    handling.
    
    Note that on RZ/G1H, the "ASEBRK#/ACK" pin is called "ACK", but the code
    doesn't handle that naming difference.  Hence users should use the R-Car
    naming in DTS files.
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Link: https://lore.kernel.org/r/dde6e0b36a4e4494039a3466df208b5ec5c594ee.1619785375.git.geert+renesas@glider.be
    geertu committed May 31, 2021
  6. pinctrl: renesas: r8a77470: Add bias pinconf support

    Implement support for pull-up (most pins) and pull-down (ASEBRK#/ACK)
    handling for the RZ/G1C SoC, using the common R-Car bias handling.
    
    Note that on RZ/G1C, the "ASEBRK#/ACK" pin is called "ACK", but the code
    doesn't handle that naming difference.  Hence users should use the R-Car
    naming in DTS files.
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Link: https://lore.kernel.org/r/18c8ebf9fa9e239253a723857e9dffeec775db7e.1619785375.git.geert+renesas@glider.be
    geertu committed May 31, 2021

Commits on May 28, 2021

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

    …b/scm/linux/kernel/git/geert/renesas-drivers into devel
    
    pinctrl: renesas: Updates for v5.14
    
      - Minor fixes and improvements.
    linusw committed May 28, 2021
  2. pinctrl: mediatek: move bit assignment

    The bit needs offset to be defined which happens some lines
    below. Looks like a bug. The kernel test robot complains:
    
    drivers/pinctrl/mediatek/pinctrl-mtk-common.c:137:12:
    warning: variable 'offset' is uninitialized when used here [-Wuninitialized]
               bit = BIT(offset & pctl->devdata->mode_mask);
                         ^~~~~~
    
    Fix it up by reverting to what was done before.
    
    Cc: Fabien Parent <fparent@baylibre.com>
    Cc: Sean Wang <sean.wang@kernel.org>
    Cc: Matthias Brugger <matthias.bgg@gmail.com>
    Cc: Mattijs Korpershoek <mkorpershoek@baylibre.com>
    Cc: linux-mediatek@lists.infradead.org
    Fixes: 9f940d8 ("pinctrl: mediatek: don't hardcode mode encoding in common code")
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    linusw committed May 28, 2021
  3. docs/pinctrl: fix the reference to the u300 platform

    With commit ce1380c ("ARM: remove u300 platform") it is wrong to
    use arch/arm/mach-u300/Kconfig file as example. Since the u300 platform
    has been replaced by the u8500, let's use its Kconfig as example.
    
    Signed-off-by: Dario Binacchi <dariobin@libero.it>
    Link: https://lore.kernel.org/r/20210527201309.13308-1-dariobin@libero.it
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    passgat authored and linusw committed May 28, 2021
  4. pinctrl: bcm2835: Accept fewer than expected IRQs

    The downstream .dts files only request two GPIO IRQs. Truncate the
    array of parent IRQs when irq_of_parse_and_map returns 0.
    
    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
    Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
    Link: https://lore.kernel.org/r/20210521090158.26932-1-iivanov@suse.de
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    pelwell authored and linusw committed May 28, 2021
  5. pinctrl: Fix kernel-doc

    Fix function name in pinctrl-single.c kernel-doc comment
    to remove a warning found by clang_w1.
    
    drivers/pinctrl/pinctrl-single.c:1523: warning: expecting prototype for
    pcs_irq_handle(). Prototype was for pcs_irq_chain_handler() instead.
    
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
    Link: https://lore.kernel.org/r/1621998464-10918-1-git-send-email-yang.lee@linux.alibaba.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Yang Li authored and linusw committed May 28, 2021

Commits on May 27, 2021

  1. pinctrl: pinctrl-aspeed-g6: Add sgpio pinctrl settings

    AST2600 supports 2 SGPIO master interfaces and 2 SGPIO slave interfaces.
    Current pinctrl driver only define the first sgpio master and slave
    interfaces.
    The second SGPIO master and slave interfaces should be added in
    pinctrl driver as well.
    
    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
    Link: https://lore.kernel.org/r/20210525055308.31069-4-steven_lee@aspeedtech.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    stevenlee7189 authored and linusw committed May 27, 2021
  2. dt-bindings: pinctrl: Update enum for adding SGPM2 and SGPS2

    AST2600 has 2 SGPIO master interfaces one with 128 pins and another one
    has 80 pins. It also supports 2 SGPIO slave interfaces.
    In the current bindings, there are only SGPM1 and SGPS1 defined in enum,
    SGPM2 and SGPS2 should also be added in the bindings.
    
    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
    Link: https://lore.kernel.org/r/20210525055308.31069-2-steven_lee@aspeedtech.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    stevenlee7189 authored and linusw committed May 27, 2021
  3. pinctrl: mediatek: add support for mt8365 SoC

    Add pinctrl driver for MT8365 SoC.
    
    Signed-off-by: Fabien Parent <fparent@baylibre.com>
    Link: https://lore.kernel.org/r/20210519162409.3755679-3-fparent@baylibre.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Fabo authored and linusw committed May 27, 2021
Older