* [PATCH v5 2/2] dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller [not found] <20210514123309.134048-1-tsbogend@alpha.franken.de> @ 2021-05-14 12:33 ` Thomas Bogendoerfer 2021-05-17 21:11 ` Rob Herring 2021-05-18 23:51 ` Linus Walleij 0 siblings, 2 replies; 3+ messages in thread From: Thomas Bogendoerfer @ 2021-05-14 12:33 UTC (permalink / raw) To: Linus Walleij, Bartosz Golaszewski, Rob Herring, linux-gpio, devicetree, linux-kernel Add YAML devicetree binding for IDT 79RC32434 GPIO controller Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> --- Changes in v5: - made interrupt controller optional - made ngpios setting optional Changes in v4: - renamed to idt,32434-gpio this time for real Changes in v3: - renamed to idt,32434-gpio - drop ngpio description - use gpio0: gpio@50004 in example .../bindings/gpio/idt,32434-gpio.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/idt,32434-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/idt,32434-gpio.yaml b/Documentation/devicetree/bindings/gpio/idt,32434-gpio.yaml new file mode 100644 index 000000000000..d38de8144656 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/idt,32434-gpio.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/idt,32434-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IDT 79RC32434 GPIO controller + +maintainers: + - Thomas Bogendoerfer <tsbogend@alpha.franken.de> + +properties: + compatible: + const: idt,32434-gpio + + reg: + maxItems: 2 + + reg-names: + items: + - const: gpio + - const: pic + + gpio-controller: true + + "#gpio-cells": + const: 2 + + ngpios: + minimum: 1 + maximum: 32 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + gpio0: gpio@50004 { + compatible = "idt,32434-gpio"; + reg = <0x50004 0x10>, <0x38030 0x0c>; + reg-names = "gpio", "pic"; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&cpuintc>; + interrupts = <6>; + + gpio-controller; + #gpio-cells = <2>; + + ngpios = <14>; + }; -- 2.29.2 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v5 2/2] dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller 2021-05-14 12:33 ` [PATCH v5 2/2] dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller Thomas Bogendoerfer @ 2021-05-17 21:11 ` Rob Herring 2021-05-18 23:51 ` Linus Walleij 1 sibling, 0 replies; 3+ messages in thread From: Rob Herring @ 2021-05-17 21:11 UTC (permalink / raw) To: Thomas Bogendoerfer Cc: Rob Herring, linux-gpio, Bartosz Golaszewski, devicetree, linux-kernel, Linus Walleij On Fri, 14 May 2021 14:33:08 +0200, Thomas Bogendoerfer wrote: > Add YAML devicetree binding for IDT 79RC32434 GPIO controller > > Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> > --- > Changes in v5: > - made interrupt controller optional > - made ngpios setting optional > > Changes in v4: > - renamed to idt,32434-gpio this time for real > > Changes in v3: > - renamed to idt,32434-gpio > - drop ngpio description > - use gpio0: gpio@50004 in example > > > .../bindings/gpio/idt,32434-gpio.yaml | 67 +++++++++++++++++++ > 1 file changed, 67 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/idt,32434-gpio.yaml > Reviewed-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v5 2/2] dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller 2021-05-14 12:33 ` [PATCH v5 2/2] dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller Thomas Bogendoerfer 2021-05-17 21:11 ` Rob Herring @ 2021-05-18 23:51 ` Linus Walleij 1 sibling, 0 replies; 3+ messages in thread From: Linus Walleij @ 2021-05-18 23:51 UTC (permalink / raw) To: Thomas Bogendoerfer Cc: Bartosz Golaszewski, Rob Herring, open list:GPIO SUBSYSTEM, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, linux-kernel On Fri, May 14, 2021 at 2:33 PM Thomas Bogendoerfer <tsbogend@alpha.franken.de> wrote: > Add YAML devicetree binding for IDT 79RC32434 GPIO controller > > Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> > --- > Changes in v5: Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-18 23:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210514123309.134048-1-tsbogend@alpha.franken.de>
2021-05-14 12:33 ` [PATCH v5 2/2] dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller Thomas Bogendoerfer
2021-05-17 21:11 ` Rob Herring
2021-05-18 23:51 ` Linus Walleij
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).