Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: gpio: brcm: Add bindings for xgs-iproc

This GPIO controller is present on a number of Broadcom switch ASICs
with integrated SoCs. It is similar to the nsp-gpio and iproc-gpio
blocks but different enough to require a separate driver.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20191028200555.27524-1-chris.packham@alliedtelesis.co.nz
Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Chris Packham and committed by
Linus Walleij
1dfc462a 921d6c32

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