Path: blob/main/sys/contrib/device-tree/Bindings/gpio/abilis,tb10x-gpio.txt
48375 views
* Abilis TB10x GPIO controller12Required Properties:3- compatible: Should be "abilis,tb10x-gpio"4- reg: Address and length of the register set for the device5- gpio-controller: Marks the device node as a gpio controller.6- #gpio-cells: Should be <2>. The first cell is the pin number and the7second cell is used to specify optional parameters:8- bit 0 specifies polarity (0 for normal, 1 for inverted).9- abilis,ngpio: the number of GPIO pins this driver controls.1011Optional Properties:12- interrupt-controller: Marks the device node as an interrupt controller.13- #interrupt-cells: Should be <1>. Interrupts are triggered on both edges.14- interrupts: Defines the interrupt line connecting this GPIO controller to15its parent interrupt controller.1617GPIO ranges are specified as described in18Documentation/devicetree/bindings/gpio/gpio.txt1920Example:2122gpioa: gpio@ff140000 {23compatible = "abilis,tb10x-gpio";24interrupt-controller;25#interrupt-cells = <1>;26interrupt-parent = <&tb10x_ictl>;27interrupts = <27 2>;28reg = <0xFF140000 0x1000>;29gpio-controller;30#gpio-cells = <2>;31abilis,ngpio = <3>;32gpio-ranges = <&iomux 0 0 0>;33gpio-ranges-group-names = "gpioa_pins";34};353637