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

dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller

Add YAML devicetree binding for IDT 79RC32434 GPIO controller

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

authored by

Thomas Bogendoerfer and committed by
Bartosz Golaszewski
03c36034 4195926a

+67
+67
Documentation/devicetree/bindings/gpio/idt,32434-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/idt,32434-gpio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: IDT 79RC32434 GPIO controller 8 + 9 + maintainers: 10 + - Thomas Bogendoerfer <tsbogend@alpha.franken.de> 11 + 12 + properties: 13 + compatible: 14 + const: idt,32434-gpio 15 + 16 + reg: 17 + maxItems: 2 18 + 19 + reg-names: 20 + items: 21 + - const: gpio 22 + - const: pic 23 + 24 + gpio-controller: true 25 + 26 + "#gpio-cells": 27 + const: 2 28 + 29 + ngpios: 30 + minimum: 1 31 + maximum: 32 32 + 33 + interrupt-controller: true 34 + 35 + "#interrupt-cells": 36 + const: 2 37 + 38 + interrupts: 39 + maxItems: 1 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - reg-names 45 + - gpio-controller 46 + - "#gpio-cells" 47 + 48 + additionalProperties: false 49 + 50 + examples: 51 + - | 52 + gpio0: gpio@50004 { 53 + compatible = "idt,32434-gpio"; 54 + reg = <0x50004 0x10>, <0x38030 0x0c>; 55 + reg-names = "gpio", "pic"; 56 + 57 + interrupt-controller; 58 + #interrupt-cells = <2>; 59 + 60 + interrupt-parent = <&cpuintc>; 61 + interrupts = <6>; 62 + 63 + gpio-controller; 64 + #gpio-cells = <2>; 65 + 66 + ngpios = <14>; 67 + };