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