1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/gpio/sifive,gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SiFive GPIO controller
10 - Yash Shah <yash.shah@sifive.com>
11 - Paul Walmsley <paul.walmsley@sifive.com>
17 - sifive,fu540-c000-gpio
18 - sifive,fu740-c000-gpio
27 Interrupt mapping, one per GPIO. Maximum 32 GPIOs.
31 interrupt-controller: true
44 The number of GPIOs available on the controller implementation.
45 It is 16 for the SiFive SoCs and 32 for the Canaan K210.
56 - interrupt-controller
66 - sifive,fu540-c000-gpio
67 - sifive,fu740-c000-gpio
72 additionalProperties: false
76 #include <dt-bindings/clock/sifive-fu540-prci.h>
78 compatible = "sifive,fu540-c000-gpio", "sifive,gpio0";
79 interrupt-parent = <&plic>;
80 interrupts = <7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22>;
81 reg = <0x10060000 0x1000>;
82 clocks = <&tlclk PRCI_CLK_TLCLK>;
86 #interrupt-cells = <2>;