Skip to content

pinctrl: airoha: fix pinconf_get and pinmux_set

Vikrant Yadav u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pinctrl: airoha: fix bias readback in airoha_pinconf_get()drivers/pinctrl/airoha/pinctrl-airoha.c+1 -10 replies
2/2pinctrl: airoha: fix pin lookup in airoha_pinmux_set()drivers/pinctrl/airoha/pinctrl-airoha.c+35 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] pinctrl: airoha: fix pinconf_get and pinmux_set

Two independent fixes for the Airoha pinctrl common code:

1/2 airoha_pinconf_get() always failed when reading back a pull-up or
pull-down.
2/2 airoha_pinmux_set() matched pin names against group names. It now
resolves the pin to a single-pin group of the requested function.

Patch 2 changes what "pins =" accepts when combined with "function":
multi-pin groups must now be selected with "groups =". The binding only documents "function" + "groups" for mux nodes, and no in-tree DT uses "function" at all: the Airoha DTs only have pinconf nodes (e.g. drive-open-drain on pcie_reset0/1), which do not go through pinmux_set().

Both patches are compile-tested only, with an7581_evb_defconfig.

Vikrant Yadav (2):
pinctrl: airoha: fix bias readback in airoha_pinconf_get()
pinctrl: airoha: fix pin lookup in airoha_pinmux_set()

 drivers/pinctrl/airoha/pinctrl-airoha.c | 46 +++++++++++++++++++------
 1 file changed, 36 insertions(+), 10 deletions(-)
Signature · 1 line
2.34.1