1Ingenic jz47xx GPIO controller 2 3That the Ingenic GPIO driver node must be a sub-node of the Ingenic pinctrl 4driver node. 5 6Required properties: 7-------------------- 8 9 - compatible: Must contain one of: 10 - "ingenic,jz4740-gpio" 11 - "ingenic,jz4770-gpio" 12 - "ingenic,jz4780-gpio" 13 - reg: The GPIO bank number. 14 - interrupt-controller: Marks the device node as an interrupt controller. 15 - interrupts: Interrupt specifier for the controllers interrupt. 16 - #interrupt-cells: Should be 2. Refer to 17 ../interrupt-controller/interrupts.txt for more details. 18 - gpio-controller: Marks the device node as a GPIO controller. 19 - #gpio-cells: Should be 2. The first cell is the GPIO number and the second 20 cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the 21 GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported. 22 - gpio-ranges: Range of pins managed by the GPIO controller. Refer to 23 'gpio.txt' in this directory for more details. 24 25Example: 26-------- 27 28&pinctrl { 29 #address-cells = <1>; 30 #size-cells = <0>; 31 32 gpa: gpio@0 { 33 compatible = "ingenic,jz4740-gpio"; 34 reg = <0>; 35 36 gpio-controller; 37 gpio-ranges = <&pinctrl 0 0 32>; 38 #gpio-cells = <2>; 39 40 interrupt-controller; 41 #interrupt-cells = <2>; 42 43 interrupt-parent = <&intc>; 44 interrupts = <28>; 45 }; 46}; 47