162306a36Sopenharmony_ciAspeed GPIO controller Device Tree Bindings
262306a36Sopenharmony_ci-------------------------------------------
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciRequired properties:
562306a36Sopenharmony_ci- compatible		: Either "aspeed,ast2400-gpio", "aspeed,ast2500-gpio",
662306a36Sopenharmony_ci					or "aspeed,ast2600-gpio".
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci- #gpio-cells 		: Should be two
962306a36Sopenharmony_ci			  - First cell is the GPIO line number
1062306a36Sopenharmony_ci			  - Second cell is used to specify optional
1162306a36Sopenharmony_ci			    parameters (unused)
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci- reg			: Address and length of the register set for the device
1462306a36Sopenharmony_ci- gpio-controller	: Marks the device node as a GPIO controller.
1562306a36Sopenharmony_ci- interrupts		: Interrupt specifier (see interrupt bindings for
1662306a36Sopenharmony_ci			  details)
1762306a36Sopenharmony_ci- interrupt-controller	: Mark the GPIO controller as an interrupt-controller
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciOptional properties:
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci- clocks		: A phandle to the clock to use for debounce timings
2262306a36Sopenharmony_ci- ngpios		: Number of GPIOs controlled by this controller. Should	be set
2362306a36Sopenharmony_ci				  when there are multiple GPIO controllers on a SoC (ast2600).
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciThe gpio and interrupt properties are further described in their respective
2662306a36Sopenharmony_cibindings documentation:
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci- Documentation/devicetree/bindings/gpio/gpio.txt
2962306a36Sopenharmony_ci- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci  Example:
3262306a36Sopenharmony_ci	gpio@1e780000 {
3362306a36Sopenharmony_ci		#gpio-cells = <2>;
3462306a36Sopenharmony_ci		compatible = "aspeed,ast2400-gpio";
3562306a36Sopenharmony_ci		gpio-controller;
3662306a36Sopenharmony_ci		interrupts = <20>;
3762306a36Sopenharmony_ci		reg = <0x1e780000 0x1000>;
3862306a36Sopenharmony_ci		interrupt-controller;
3962306a36Sopenharmony_ci	};
40