Hi @stephan.tx,
Sorry to bring up this old question again. We upgraded our VF50 products to use Scarthgap and the upstream Linux kernel 6.12. The system boots and most functionalities work correctly, but I still don’t understand how pinctrl_additionalgpio is applied, since this group is orphaned and not bound to any driver. This group definition was somehow applied correctly on kernel 4.4, but not on 6.12.
While trying to understand the mechanism, I saw your reply here. From what I can see, the method you mentioned (imx_pmx_gpio_request_enable) was removed in 2017 with the commit below.
SHA-1: a5c771e6cbdbe026d933c28a7705f6246bac7e64
- pinctrl: imx: remove gpio_request_enable and gpio_disable_free
gpio_request_enable/disable_free actually are not quite necessary as
standard IMX pinctrl binding already sets GPIO mux from device tree,
e.g. VF610_PAD_PTB20__GPIO_42 or MX7D_PAD_SD2_CD_B__GPIO5_IO9
No need to do it again in gpio_request_enable.
And according to Stefan:
“For all GPIO I checked in upstream device trees we assign a pinctrl
to the same node, so in all cases gpio_request_enable/disable is really
unnecessary.”
So it should be safe to simply remove it.
Note that this changes semantics for Vybrid, e.g.
"The two functions have been introduced for Vybrid (through
SHARE_MUX_CONF_REG) and mux pins as GPIOs automatically when a GPIO
gets requested. The automatic mux is optional by the pinmux/gpio
subsystem semantics, and other NXP devices do not use it, instead an
explicit pinctrl node is added in the device tree to mux GPIOs where
required. Hence this change aligns Vybrid to other NXP (i.MX) devices.
Note that all upstream device tree assign proper pinctrl properties
where GPIOs are used so no change is necessary for device trees."
Cc: Alexandre Courbot gnurou@gmail.com
Cc: Shawn Guo shawnguo@kernel.org
Cc: Fugang Duan fugang.duan@nxp.com
Cc: Bai Ping ping.bai@nxp.com
Acked-by: Stefan Agner stefan@agner.ch
Signed-off-by: Dong Aisheng aisheng.dong@nxp.com
Signed-off-by: Linus Walleij linus.walleij@linaro.org
v4.4:
v6.12:
And v6.12 doesn’t have it anymore.
In the upstream kernel, there are other orphan groups as well for example:
So, can we say that the mechanism you mentioned is no longer available in the upstream code for handling orphaned nodes?
Thanks.