1*c66ec88fSEmmanuel VadotAPM X-Gene SoC GPIO controller bindings 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThis is a gpio controller that is part of the flash controller. 4*c66ec88fSEmmanuel VadotThis gpio controller controls a total of 48 gpios. 5*c66ec88fSEmmanuel Vadot 6*c66ec88fSEmmanuel VadotRequired properties: 7*c66ec88fSEmmanuel Vadot- compatible: "apm,xgene-gpio" for X-Gene GPIO controller 8*c66ec88fSEmmanuel Vadot- reg: Physical base address and size of the controller's registers 9*c66ec88fSEmmanuel Vadot- #gpio-cells: Should be two. 10*c66ec88fSEmmanuel Vadot - first cell is the pin number 11*c66ec88fSEmmanuel Vadot - second cell is used to specify the gpio polarity: 12*c66ec88fSEmmanuel Vadot 0 = active high 13*c66ec88fSEmmanuel Vadot 1 = active low 14*c66ec88fSEmmanuel Vadot- gpio-controller: Marks the device node as a GPIO controller. 15*c66ec88fSEmmanuel Vadot 16*c66ec88fSEmmanuel VadotExample: 17*c66ec88fSEmmanuel Vadot gpio0: gpio0@1701c000 { 18*c66ec88fSEmmanuel Vadot compatible = "apm,xgene-gpio"; 19*c66ec88fSEmmanuel Vadot reg = <0x0 0x1701c000 0x0 0x40>; 20*c66ec88fSEmmanuel Vadot gpio-controller; 21*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 22*c66ec88fSEmmanuel Vadot }; 23