[PATCH v2 3/6] pinctrl: Add sun50i-a64 pinctrl driver
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Jan 14 00:39:09 PST 2025
On 07.01.25 15:37, Jules Maselbas wrote:
> sunxi pinctrl driver, adapted from Linux, is split in two parts:
> - pinctrl-sunxi.c that implements gpio, pinctrl and pinmux functions
> - pinctrl-sun50i-a64.c that declare sun50i pins and their functions.
> This file only require minor adaptations and be easily copied from Linux.
>
> The pin functions are needed for uart, SD/MMC, and likely for other
> controllers too.
>
> Signed-off-by: Jules Maselbas <jmaselbas at zdiv.net>]
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> v1->v2:
> - removed `!IS_ENABLED(CONFIG_PINCTRL)` (Ahmad)
Sascha suggested that of his own volition ;)
> + func_name = sunxi_pinctrl_parse_function_prop(np);
> + if (!func_name) {
> + dev_err(dev, "%s: missing 'function' property\n", np->full_name);
Nitpick: %pOF
> + return -EINVAL;
> + }
Cheers,
Ahmad
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list