162306a36Sopenharmony_ciBinding for Qualcomm Atheros AR7xxx/AR9xxx GPIO controller 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci- compatible: has to be "qca,<soctype>-gpio" and one of the following 562306a36Sopenharmony_ci fallbacks: 662306a36Sopenharmony_ci - "qca,ar7100-gpio" 762306a36Sopenharmony_ci - "qca,ar9340-gpio" 862306a36Sopenharmony_ci- reg: Base address and size of the controllers memory area 962306a36Sopenharmony_ci- gpio-controller : Marks the device node as a GPIO controller. 1062306a36Sopenharmony_ci- #gpio-cells : Should be two. The first cell is the pin number and the 1162306a36Sopenharmony_ci second cell is used to specify optional parameters. 1262306a36Sopenharmony_ci- ngpios: Should be set to the number of GPIOs available on the SoC. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciOptional properties: 1562306a36Sopenharmony_ci- interrupts: Interrupt specifier for the controllers interrupt. 1662306a36Sopenharmony_ci- interrupt-controller : Identifies the node as an interrupt controller 1762306a36Sopenharmony_ci- #interrupt-cells : Specifies the number of cells needed to encode interrupt 1862306a36Sopenharmony_ci source, should be 2 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciPlease refer to interrupts.txt in this directory for details of the common 2162306a36Sopenharmony_ciInterrupt Controllers bindings used by client devices. 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciExample: 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci gpio@18040000 { 2662306a36Sopenharmony_ci compatible = "qca,ar9132-gpio", "qca,ar7100-gpio"; 2762306a36Sopenharmony_ci reg = <0x18040000 0x30>; 2862306a36Sopenharmony_ci interrupts = <2>; 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci ngpios = <22>; 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci gpio-controller; 3362306a36Sopenharmony_ci #gpio-cells = <2>; 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci interrupt-controller; 3662306a36Sopenharmony_ci #interrupt-cells = <2>; 3762306a36Sopenharmony_ci }; 38