Path: blob/main/sys/contrib/device-tree/Bindings/gpio/gpio-aspeed.txt
48378 views
Aspeed GPIO controller Device Tree Bindings1-------------------------------------------23Required properties:4- compatible : Either "aspeed,ast2400-gpio", "aspeed,ast2500-gpio",5or "aspeed,ast2600-gpio".67- #gpio-cells : Should be two8- First cell is the GPIO line number9- Second cell is used to specify optional10parameters (unused)1112- reg : Address and length of the register set for the device13- gpio-controller : Marks the device node as a GPIO controller.14- interrupts : Interrupt specifier (see interrupt bindings for15details)16- interrupt-controller : Mark the GPIO controller as an interrupt-controller1718Optional properties:1920- clocks : A phandle to the clock to use for debounce timings21- ngpios : Number of GPIOs controlled by this controller. Should be set22when there are multiple GPIO controllers on a SoC (ast2600).2324The gpio and interrupt properties are further described in their respective25bindings documentation:2627- Documentation/devicetree/bindings/gpio/gpio.txt28- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt2930Example:31gpio@1e780000 {32#gpio-cells = <2>;33compatible = "aspeed,ast2400-gpio";34gpio-controller;35interrupts = <20>;36reg = <0x1e780000 0x1000>;37interrupt-controller;38};394041