1*c66ec88fSEmmanuel VadotSamsung Exynos4 GPIO Controller 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: Compatible property value should be "samsung,exynos4-gpio>". 5*c66ec88fSEmmanuel Vadot 6*c66ec88fSEmmanuel Vadot- reg: Physical base address of the controller and length of memory mapped 7*c66ec88fSEmmanuel Vadot region. 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadot- #gpio-cells: Should be 4. The syntax of the gpio specifier used by client nodes 10*c66ec88fSEmmanuel Vadot should be the following with values derived from the SoC user manual. 11*c66ec88fSEmmanuel Vadot <[phandle of the gpio controller node] 12*c66ec88fSEmmanuel Vadot [pin number within the gpio controller] 13*c66ec88fSEmmanuel Vadot [mux function] 14*c66ec88fSEmmanuel Vadot [flags and pull up/down] 15*c66ec88fSEmmanuel Vadot [drive strength]> 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel Vadot Values for gpio specifier: 18*c66ec88fSEmmanuel Vadot - Pin number: is a value between 0 to 7. 19*c66ec88fSEmmanuel Vadot - Flags and Pull Up/Down: 0 - Pull Up/Down Disabled. 20*c66ec88fSEmmanuel Vadot 1 - Pull Down Enabled. 21*c66ec88fSEmmanuel Vadot 3 - Pull Up Enabled. 22*c66ec88fSEmmanuel Vadot Bit 16 (0x00010000) - Input is active low. 23*c66ec88fSEmmanuel Vadot - Drive Strength: 0 - 1x, 24*c66ec88fSEmmanuel Vadot 1 - 3x, 25*c66ec88fSEmmanuel Vadot 2 - 2x, 26*c66ec88fSEmmanuel Vadot 3 - 4x 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadot- gpio-controller: Specifies that the node is a gpio controller. 29*c66ec88fSEmmanuel Vadot- #address-cells: should be 1. 30*c66ec88fSEmmanuel Vadot- #size-cells: should be 1. 31*c66ec88fSEmmanuel Vadot 32*c66ec88fSEmmanuel VadotExample: 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadot gpa0: gpio-controller@11400000 { 35*c66ec88fSEmmanuel Vadot #address-cells = <1>; 36*c66ec88fSEmmanuel Vadot #size-cells = <1>; 37*c66ec88fSEmmanuel Vadot compatible = "samsung,exynos4-gpio"; 38*c66ec88fSEmmanuel Vadot reg = <0x11400000 0x20>; 39*c66ec88fSEmmanuel Vadot #gpio-cells = <4>; 40*c66ec88fSEmmanuel Vadot gpio-controller; 41*c66ec88fSEmmanuel Vadot }; 42