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