1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/gpio/brcm,x 4 $id: http://devicetree.org/schemas/gpio/brcm,xgs-iproc-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Broadcom XGS iProc GPIO controller 7 title: Broadcom XGS iProc GPIO controller 8 8 9 maintainers: 9 maintainers: 10 - Chris Packham <chris.packham@alliedtelesis. 10 - Chris Packham <chris.packham@alliedtelesis.co.nz> 11 11 12 description: | 12 description: | 13 This controller is the Chip Common A GPIO pr 13 This controller is the Chip Common A GPIO present on a number of Broadcom 14 switch ASICs with integrated SoCs. 14 switch ASICs with integrated SoCs. 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 const: brcm,iproc-gpio-cca 18 const: brcm,iproc-gpio-cca 19 19 20 reg: 20 reg: 21 items: 21 items: 22 - description: the I/O address containin !! 22 - description: the I/O address containing the GPIO controller 23 - description: the I/O address containin !! 23 registers. >> 24 - description: the I/O address containing the Chip Common A interrupt >> 25 registers. 24 26 25 gpio-controller: true 27 gpio-controller: true 26 28 27 '#gpio-cells': 29 '#gpio-cells': 28 const: 2 !! 30 const: 2 29 31 30 ngpios: 32 ngpios: 31 minimum: 0 33 minimum: 0 32 maximum: 32 34 maximum: 32 33 35 34 interrupt-controller: true 36 interrupt-controller: true 35 37 36 '#interrupt-cells': 38 '#interrupt-cells': 37 const: 2 39 const: 2 38 40 39 interrupts: 41 interrupts: 40 maxItems: 1 42 maxItems: 1 41 43 42 required: 44 required: 43 - compatible 45 - compatible 44 - reg 46 - reg 45 - "#gpio-cells" 47 - "#gpio-cells" 46 - gpio-controller 48 - gpio-controller 47 << 48 additionalProperties: false << 49 49 50 dependencies: 50 dependencies: 51 interrupt-controller: [ interrupts ] 51 interrupt-controller: [ interrupts ] 52 52 53 examples: 53 examples: 54 - | 54 - | 55 #include <dt-bindings/interrupt-controller 55 #include <dt-bindings/interrupt-controller/irq.h> 56 #include <dt-bindings/interrupt-controller 56 #include <dt-bindings/interrupt-controller/arm-gic.h> 57 gpio@18000060 { 57 gpio@18000060 { 58 compatible = "brcm,iproc-gpio-cca"; 58 compatible = "brcm,iproc-gpio-cca"; 59 #gpio-cells = <2>; 59 #gpio-cells = <2>; 60 reg = <0x18000060 0x50>, 60 reg = <0x18000060 0x50>, 61 <0x18000000 0x50>; 61 <0x18000000 0x50>; 62 ngpios = <12>; 62 ngpios = <12>; 63 gpio-controller; 63 gpio-controller; 64 interrupt-controller; 64 interrupt-controller; 65 #interrupt-cells = <2>; 65 #interrupt-cells = <2>; 66 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVE 66 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; 67 }; 67 }; 68 68 69 69 70 ... 70 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.