Christian Lamparter | 9a0d440 | 2016-05-12 00:07:48 +0200 | [diff] [blame] | 1 | * IBM/AMCC/APM GPIO Controller for PowerPC 4XX series and compatible SoCs |
| 2 | |
| 3 | All GPIOs are pin-shared with other functions. DCRs control whether a |
| 4 | particular pin that has GPIO capabilities acts as a GPIO or is used for |
| 5 | another purpose. GPIO outputs are separately programmable to emulate |
| 6 | an open-drain driver. |
| 7 | |
| 8 | Required properties: |
| 9 | - compatible: must be "ibm,ppc4xx-gpio" |
| 10 | - reg: address and length of the register set for the device |
| 11 | - #gpio-cells: must be set to 2. The first cell is the pin number |
| 12 | and the second cell is used to specify the gpio polarity: |
| 13 | 0 = active high |
| 14 | 1 = active low |
| 15 | - gpio-controller: marks the device node as a gpio controller. |
| 16 | |
| 17 | Example: |
| 18 | |
| 19 | GPIO0: gpio@ef600b00 { |
| 20 | compatible = "ibm,ppc4xx-gpio"; |
| 21 | reg = <0xef600b00 0x00000048>; |
| 22 | #gpio-cells = <2>; |
| 23 | gpio-controller; |
| 24 | }; |