1Aspeed SGPIO controller Device Tree Bindings
2--------------------------------------------
3
4This SGPIO controller is for ASPEED AST2500 SoC, it supports up to 80 full
5featured Serial GPIOs. Each of the Serial GPIO pins can be programmed to
6support the following options:
7- Support interrupt option for each input port and various interrupt
8  sensitivity option (level-high, level-low, edge-high, edge-low)
9- Support reset tolerance option for each output port
10- Directly connected to APB bus and its shift clock is from APB bus clock
11  divided by a programmable value.
12- Co-work with external signal-chained TTL components (74LV165/74LV595)
13
14Required properties:
15
16- compatible : Should be one of
17  "aspeed,ast2400-sgpio", "aspeed,ast2500-sgpio"
18- #gpio-cells : Should be 2, see gpio.txt
19- reg : Address and length of the register set for the device
20- gpio-controller : Marks the device node as a GPIO controller
21- interrupts : Interrupt specifier, see interrupt-controller/interrupts.txt
22- interrupt-controller : Mark the GPIO controller as an interrupt-controller
23- ngpios : number of GPIO lines, see gpio.txt
24  (should be multiple of 8, up to 80 pins)
25- clocks : A phandle to the APB clock for SGPM clock division
26- bus-frequency : SGPM CLK frequency
27
28The sgpio and interrupt properties are further described in their respective
29bindings documentation:
30
31- Documentation/devicetree/bindings/gpio/gpio.txt
32- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
33
34  Example:
35	sgpio: sgpio@1e780200 {
36		#gpio-cells = <2>;
37		compatible = "aspeed,ast2500-sgpio";
38		gpio-controller;
39		interrupts = <40>;
40		reg = <0x1e780200 0x0100>;
41		clocks = <&syscon ASPEED_CLK_APB>;
42		interrupt-controller;
43		ngpios = <8>;
44		bus-frequency = <12000000>;
45	};
46