^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) twl4030 GPIO controller bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - "ti,twl4030-gpio" for twl4030 GPIO controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - #gpio-cells : Should be two.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - first cell is the pin number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) - second cell is used to specify optional parameters (unused)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - gpio-controller : Marks the device node as a GPIO controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - #interrupt-cells : Should be 2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - interrupt-controller: Mark the device node as an interrupt controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) The first cell is the GPIO number.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) The second cell is not used.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - ti,use-leds : Enables LEDA and LEDB outputs if set
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - ti,debounce : if n-th bit is set, debounces GPIO-n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - ti,mmc-cd : if n-th bit is set, GPIO-n controls VMMC(n+1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - ti,pullups : if n-th bit is set, set a pullup on GPIO-n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - ti,pulldowns : if n-th bit is set, set a pulldown on GPIO-n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) twl_gpio: gpio {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) compatible = "ti,twl4030-gpio";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #gpio-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) gpio-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #interrupt-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) interrupt-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) ti,use-leds;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) };