0001 * IBM/AMCC/APM GPIO Controller for PowerPC 4XX series and compatible SoCs
0002
0003 All GPIOs are pin-shared with other functions. DCRs control whether a
0004 particular pin that has GPIO capabilities acts as a GPIO or is used for
0005 another purpose. GPIO outputs are separately programmable to emulate
0006 an open-drain driver.
0007
0008 Required properties:
0009 - compatible: must be "ibm,ppc4xx-gpio"
0010 - reg: address and length of the register set for the device
0011 - #gpio-cells: must be set to 2. The first cell is the pin number
0012 and the second cell is used to specify the gpio polarity:
0013 0 = active high
0014 1 = active low
0015 - gpio-controller: marks the device node as a gpio controller.
0016
0017 Example:
0018
0019 GPIO0: gpio@ef600b00 {
0020 compatible = "ibm,ppc4xx-gpio";
0021 reg = <0xef600b00 0x00000048>;
0022 #gpio-cells = <2>;
0023 gpio-controller;
0024 };