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