^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) Aspeed GPIO controller Device Tree Bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) -------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - compatible : Either "aspeed,ast2400-gpio", "aspeed,ast2500-gpio",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) or "aspeed,ast2600-gpio".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) - #gpio-cells : Should be two
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - First cell is the GPIO line number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - Second cell is used to specify optional
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) parameters (unused)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - reg : Address and length of the register set for the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - gpio-controller : Marks the device node as a GPIO controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - interrupts : Interrupt specifier (see interrupt bindings for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) details)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - interrupt-controller : Mark the GPIO controller as an interrupt-controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - clocks : A phandle to the clock to use for debounce timings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - ngpios : Number of GPIOs controlled by this controller. Should be set
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) when there are multiple GPIO controllers on a SoC (ast2600).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) The gpio and interrupt properties are further described in their respective
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) bindings documentation:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - Documentation/devicetree/bindings/gpio/gpio.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) gpio@1e780000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #gpio-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) compatible = "aspeed,ast2400-gpio";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) gpio-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) interrupts = <20>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) reg = <0x1e780000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) interrupt-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) };