1*c66ec88fSEmmanuel VadotCirrus Logic CLPS711X GPIO controller 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: Should be "cirrus,ep7209-gpio" 5*c66ec88fSEmmanuel Vadot- reg: Physical base GPIO controller registers location and length. 6*c66ec88fSEmmanuel Vadot There should be two registers, first is DATA register, the second 7*c66ec88fSEmmanuel Vadot is DIRECTION. 8*c66ec88fSEmmanuel Vadot- gpio-controller: Marks the device node as a gpio controller. 9*c66ec88fSEmmanuel Vadot- #gpio-cells: Should be two. The first cell is the pin number and 10*c66ec88fSEmmanuel Vadot the second cell is used to specify the gpio polarity: 11*c66ec88fSEmmanuel Vadot 0 = active high 12*c66ec88fSEmmanuel Vadot 1 = active low 13*c66ec88fSEmmanuel Vadot 14*c66ec88fSEmmanuel VadotNote: Each GPIO port should have an alias correctly numbered in "aliases" 15*c66ec88fSEmmanuel Vadotnode. 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel VadotExample: 18*c66ec88fSEmmanuel Vadot 19*c66ec88fSEmmanuel Vadotaliases { 20*c66ec88fSEmmanuel Vadot gpio0 = &porta; 21*c66ec88fSEmmanuel Vadot}; 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel Vadotporta: gpio@80000000 { 24*c66ec88fSEmmanuel Vadot compatible = "cirrus,ep7312-gpio","cirrus,ep7209-gpio"; 25*c66ec88fSEmmanuel Vadot reg = <0x80000000 0x1>, <0x80000040 0x1>; 26*c66ec88fSEmmanuel Vadot gpio-controller; 27*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 28*c66ec88fSEmmanuel Vadot}; 29