sun8i-r40 dts wrong gpio name?

28 views
Skip to first unread message

JuanEsf

unread,
Mar 12, 2020, 12:02:18 PM3/12/20
to linux-sunxi
Hi.
How in the following case: https://groups.google.com/forum/m/#!topic/linux-sunxi/zDTxZrnXQ4E

In sun8i-r40 dts says gpio, should it be gpios? the same in the sun8i-v40 dts.

JuanEsf

unread,
Mar 12, 2020, 12:07:38 PM3/12/20
to linux-sunxi

Andre Przywara

unread,
Mar 12, 2020, 12:59:34 PM3/12/20
to JuanEsf, linux-sunxi
On Thu, 12 Mar 2020 09:02:18 -0700 (PDT)
JuanEsf <juan...@gmail.com> wrote:

Hi,

> How in the following case: https://groups.google.com/forum/m/#!topic/linux-sunxi/zDTxZrnXQ4E
>
> In sun8i-r40 dts says gpio, should it be gpios? the same in the sun8i-v40 dts.

No, it is indeed "gpio", singular.
The exact name of properties is defined in the DT bindings, you should find the right document by searching for the compatible string in Documentation/devicetree/bindings.
In this case it's: Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
Another (only indicative) source would be the actual driver implementation (in this case it turns out both names are accepted).

Cheers,
Andre.



Reply all
Reply to author
Forward
0 new messages