]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: fix sifive gpio properties
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 10 Feb 2021 05:02:21 +0000 (14:02 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 23 Feb 2021 01:51:11 +0000 (17:51 -0800)
commit9c555728e429bb44afff8451a5b70264bc116819
treee12a7d430e91e50c90684f43351cf5bf13a6bcaa
parentd97ed523d41c72d96d05425016e7aec228ab2916
dt-bindings: fix sifive gpio properties

The sifive gpio IP block supports up to 32 GPIOs. Reflect that in the
interrupts property description and maxItems. Also add the standard
ngpios property to describe the number of GPIOs available on the
implementation.

Also add the "canaan,k210-gpiohs" compatible string to indicate the use
of this gpio controller in the Canaan Kendryte K210 SoC. If this
compatible string is used, do not define the clocks property as
required as the K210 SoC does not have a software controllable clock
for the Sifive gpio IP block.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Documentation/devicetree/bindings/gpio/sifive,gpio.yaml