1*c66ec88fSEmmanuel Vadot* Freescale VF610 PORT/GPIO module 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThe Freescale PORT/GPIO modules are two adjacent modules providing GPIO 4*c66ec88fSEmmanuel Vadotfunctionality. Each pair serves 32 GPIOs. The VF610 has 5 instances of 5*c66ec88fSEmmanuel Vadoteach, and each PORT module has its own interrupt. 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel VadotRequired properties for GPIO node: 8*c66ec88fSEmmanuel Vadot- compatible : Should be "fsl,<soc>-gpio", below is supported list: 9*c66ec88fSEmmanuel Vadot "fsl,vf610-gpio" 10*c66ec88fSEmmanuel Vadot "fsl,imx7ulp-gpio" 11*c66ec88fSEmmanuel Vadot- reg : The first reg tuple represents the PORT module, the second tuple 12*c66ec88fSEmmanuel Vadot the GPIO module. 13*c66ec88fSEmmanuel Vadot- interrupts : Should be the port interrupt shared by all 32 pins. 14*c66ec88fSEmmanuel Vadot- gpio-controller : Marks the device node as a gpio controller. 15*c66ec88fSEmmanuel Vadot- #gpio-cells : Should be two. The first cell is the pin number and 16*c66ec88fSEmmanuel Vadot the second cell is used to specify the gpio polarity: 17*c66ec88fSEmmanuel Vadot 0 = active high 18*c66ec88fSEmmanuel Vadot 1 = active low 19*c66ec88fSEmmanuel Vadot- interrupt-controller: Marks the device node as an interrupt controller. 20*c66ec88fSEmmanuel Vadot- #interrupt-cells : Should be 2. The first cell is the GPIO number. 21*c66ec88fSEmmanuel Vadot The second cell bits[3:0] is used to specify trigger type and level flags: 22*c66ec88fSEmmanuel Vadot 1 = low-to-high edge triggered. 23*c66ec88fSEmmanuel Vadot 2 = high-to-low edge triggered. 24*c66ec88fSEmmanuel Vadot 4 = active high level-sensitive. 25*c66ec88fSEmmanuel Vadot 8 = active low level-sensitive. 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel VadotOptional properties: 28*c66ec88fSEmmanuel Vadot-clocks: Must contain an entry for each entry in clock-names. 29*c66ec88fSEmmanuel Vadot See common clock-bindings.txt for details. 30*c66ec88fSEmmanuel Vadot-clock-names: A list of clock names. For imx7ulp, it must contain 31*c66ec88fSEmmanuel Vadot "gpio", "port". 32*c66ec88fSEmmanuel Vadot 33*c66ec88fSEmmanuel VadotNote: Each GPIO port should have an alias correctly numbered in "aliases" 34*c66ec88fSEmmanuel Vadotnode. 35*c66ec88fSEmmanuel Vadot 36*c66ec88fSEmmanuel VadotExamples: 37*c66ec88fSEmmanuel Vadot 38*c66ec88fSEmmanuel Vadotaliases { 39*c66ec88fSEmmanuel Vadot gpio0 = &gpio1; 40*c66ec88fSEmmanuel Vadot gpio1 = &gpio2; 41*c66ec88fSEmmanuel Vadot}; 42*c66ec88fSEmmanuel Vadot 43*c66ec88fSEmmanuel Vadotgpio1: gpio@40049000 { 44*c66ec88fSEmmanuel Vadot compatible = "fsl,vf610-gpio"; 45*c66ec88fSEmmanuel Vadot reg = <0x40049000 0x1000 0x400ff000 0x40>; 46*c66ec88fSEmmanuel Vadot interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; 47*c66ec88fSEmmanuel Vadot gpio-controller; 48*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 49*c66ec88fSEmmanuel Vadot interrupt-controller; 50*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 51*c66ec88fSEmmanuel Vadot gpio-ranges = <&iomuxc 0 0 32>; 52*c66ec88fSEmmanuel Vadot}; 53*c66ec88fSEmmanuel Vadot 54*c66ec88fSEmmanuel Vadotgpio2: gpio@4004a000 { 55*c66ec88fSEmmanuel Vadot compatible = "fsl,vf610-gpio"; 56*c66ec88fSEmmanuel Vadot reg = <0x4004a000 0x1000 0x400ff040 0x40>; 57*c66ec88fSEmmanuel Vadot interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; 58*c66ec88fSEmmanuel Vadot gpio-controller; 59*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 60*c66ec88fSEmmanuel Vadot interrupt-controller; 61*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 62*c66ec88fSEmmanuel Vadot gpio-ranges = <&iomuxc 0 32 32>; 63*c66ec88fSEmmanuel Vadot}; 64