29 lines · plain
1Cirrus Logic CLPS711X GPIO controller2 3Required properties:4- compatible: Should be "cirrus,ep7209-gpio"5- reg: Physical base GPIO controller registers location and length.6 There should be two registers, first is DATA register, the second7 is DIRECTION.8- gpio-controller: Marks the device node as a gpio controller.9- #gpio-cells: Should be two. The first cell is the pin number and10 the second cell is used to specify the gpio polarity:11 0 = active high12 1 = active low13 14Note: Each GPIO port should have an alias correctly numbered in "aliases"15node.16 17Example:18 19aliases {20 gpio0 = &porta;21};22 23porta: gpio@80000000 {24 compatible = "cirrus,ep7312-gpio","cirrus,ep7209-gpio";25 reg = <0x80000000 0x1>, <0x80000040 0x1>;26 gpio-controller;27 #gpio-cells = <2>;28};29