[PATCH v2 4/4] gpio: scmi: Add gpio_scmi driver

Peng Fan peng.fan at oss.nxp.com
Tue Mar 17 10:05:41 CET 2026


Hi Dan,

On Wed, Mar 11, 2026 at 10:41:36PM +0300, Dan Carpenter wrote:
>This provides GPIO support over SCMI.  It is built on top of the
>pinctrl-scmi driver.  The device tree entry would work the same as
>in linux.  Perhaps something like this.
>
>        gpio1 {
>            compatible = "scmi-pinctrl-gpio";
>            gpio-controller;
>            #gpio-cells = <2>;
>            ngpios = <10>;
>            gpio-ranges = <&scmi_pinctrl 0 8 4>,
>                          <&scmi_pinctrl 4 12 1>,
>                          <&scmi_pinctrl 5 15 1>,
>                          <&scmi_pinctrl 6 17 4>;
>            pinctrl-names = "default";
>            pinctrl-0 = <&i2c2_pins>;
>        };
>
>The &i2c2_pins phandle from the pinctrl section does pin muxing
>and the gpio-ranges property describes the pins.
>
>Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

Acked-by: Peng Fan <peng.fan at nxp.com>


More information about the U-Boot mailing list