1 Cirrus Logic CLPS711X GPIO controller 1 Cirrus Logic CLPS711X GPIO controller 2 2 3 Required properties: 3 Required properties: 4 - compatible: Should be "cirrus,ep7209-gpio" 4 - compatible: Should be "cirrus,ep7209-gpio" 5 - reg: Physical base GPIO controller registers 5 - reg: Physical base GPIO controller registers location and length. 6 There should be two registers, first is DATA 6 There should be two registers, first is DATA register, the second 7 is DIRECTION. 7 is DIRECTION. 8 - gpio-controller: Marks the device node as a 8 - gpio-controller: Marks the device node as a gpio controller. 9 - #gpio-cells: Should be two. The first cell i 9 - #gpio-cells: Should be two. The first cell is the pin number and 10 the second cell is used to specify the gpio 10 the second cell is used to specify the gpio polarity: 11 0 = active high 11 0 = active high 12 1 = active low 12 1 = active low 13 13 14 Note: Each GPIO port should have an alias corr 14 Note: Each GPIO port should have an alias correctly numbered in "aliases" 15 node. 15 node. 16 16 17 Example: 17 Example: 18 18 19 aliases { 19 aliases { 20 gpio0 = &porta; 20 gpio0 = &porta; 21 }; 21 }; 22 22 23 porta: gpio@80000000 { 23 porta: gpio@80000000 { 24 compatible = "cirrus,ep7312-gpio","cir 24 compatible = "cirrus,ep7312-gpio","cirrus,ep7209-gpio"; 25 reg = <0x80000000 0x1>, <0x80000040 0x 25 reg = <0x80000000 0x1>, <0x80000040 0x1>; 26 gpio-controller; 26 gpio-controller; 27 #gpio-cells = <2>; 27 #gpio-cells = <2>; 28 }; 28 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.