Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-thunderx.txt
26308 views
Cavium ThunderX/OCTEON-TX GPIO controller bindings12Required Properties:3- reg: The controller bus address.4- gpio-controller: Marks the device node as a GPIO controller.5- #gpio-cells: Must be 2.6- First cell is the GPIO pin number relative to the controller.7- Second cell is a standard generic flag bitfield as described in gpio.txt.89Optional Properties:10- compatible: "cavium,thunder-8890-gpio", unused as PCI driver binding is used.11- interrupt-controller: Marks the device node as an interrupt controller.12- #interrupt-cells: Must be present and have value of 2 if13"interrupt-controller" is present.14- First cell is the GPIO pin number relative to the controller.15- Second cell is triggering flags as defined in interrupts.txt.1617Example:1819gpio_6_0: gpio@6,0 {20compatible = "cavium,thunder-8890-gpio";21reg = <0x3000 0 0 0 0>; /* DEVFN = 0x30 (6:0) */22gpio-controller;23#gpio-cells = <2>;24interrupt-controller;25#interrupt-cells = <2>;26};272829