Path: blob/main/sys/contrib/device-tree/Bindings/gpio/gpio-ath79.txt
48375 views
Binding for Qualcomm Atheros AR7xxx/AR9xxx GPIO controller12Required properties:3- compatible: has to be "qca,<soctype>-gpio" and one of the following4fallbacks:5- "qca,ar7100-gpio"6- "qca,ar9340-gpio"7- reg: Base address and size of the controllers memory area8- gpio-controller : Marks the device node as a GPIO controller.9- #gpio-cells : Should be two. The first cell is the pin number and the10second cell is used to specify optional parameters.11- ngpios: Should be set to the number of GPIOs available on the SoC.1213Optional properties:14- interrupts: Interrupt specifier for the controllers interrupt.15- interrupt-controller : Identifies the node as an interrupt controller16- #interrupt-cells : Specifies the number of cells needed to encode interrupt17source, should be 21819Please refer to interrupts.txt in this directory for details of the common20Interrupt Controllers bindings used by client devices.2122Example:2324gpio@18040000 {25compatible = "qca,ar9132-gpio", "qca,ar7100-gpio";26reg = <0x18040000 0x30>;27interrupts = <2>;2829ngpios = <22>;3031gpio-controller;32#gpio-cells = <2>;3334interrupt-controller;35#interrupt-cells = <2>;36};373839