<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/gpio/gpio_scmi.c, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>gpio: scmi: Add gpio_scmi driver</title>
<updated>2026-04-09T02:14:39+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@linaro.org</email>
</author>
<published>2026-03-24T11:16:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=af7b6bb05a810a0ec94fd864e3477401b3d1b60a'/>
<id>af7b6bb05a810a0ec94fd864e3477401b3d1b60a</id>
<content type='text'>
This provides GPIO support over SCMI.  It is built on top of the
pinctrl-scmi driver.  A typical device tree entry might look like
this:

    gpio1 {
        compatible = "scmi-pinctrl-gpio";
        gpio-controller;
        #gpio-cells = &lt;2&gt;;
        ngpios = &lt;10&gt;;
        gpio-ranges = &lt;&amp;scmi_pinctrl 0 8 4&gt;,
                      &lt;&amp;scmi_pinctrl 4 12 1&gt;,
                      &lt;&amp;scmi_pinctrl 5 15 1&gt;,
                      &lt;&amp;scmi_pinctrl 6 17 4&gt;;
        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;i2c2_pins&gt;;
    };

In this GPIO driver the one thing which is different is that in the
gpio-ranges the first numbers which represent how the pins are exposed
to the users have to start at zero and it can't have gaps.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provides GPIO support over SCMI.  It is built on top of the
pinctrl-scmi driver.  A typical device tree entry might look like
this:

    gpio1 {
        compatible = "scmi-pinctrl-gpio";
        gpio-controller;
        #gpio-cells = &lt;2&gt;;
        ngpios = &lt;10&gt;;
        gpio-ranges = &lt;&amp;scmi_pinctrl 0 8 4&gt;,
                      &lt;&amp;scmi_pinctrl 4 12 1&gt;,
                      &lt;&amp;scmi_pinctrl 5 15 1&gt;,
                      &lt;&amp;scmi_pinctrl 6 17 4&gt;;
        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;i2c2_pins&gt;;
    };

In this GPIO driver the one thing which is different is that in the
gpio-ranges the first numbers which represent how the pins are exposed
to the users have to start at zero and it can't have gaps.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
