71 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/gpio/renesas,em-gio.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas EMMA Mobile General Purpose I/O Interface8 9maintainers:10 - Magnus Damm <magnus.damm@gmail.com>11 12properties:13 compatible:14 const: renesas,em-gio15 16 reg:17 items:18 - description: First set of contiguous registers19 - description: Second set of contiguous registers20 21 interrupts:22 items:23 - description: Interrupt for the first set of 16 GPIO ports24 - description: Interrupt for the second set of 16 GPIO ports25 26 gpio-controller: true27 28 '#gpio-cells':29 const: 230 31 gpio-ranges:32 maxItems: 133 34 ngpios:35 minimum: 136 maximum: 3237 38 interrupt-controller: true39 40 '#interrupt-cells':41 const: 242 43required:44 - compatible45 - reg46 - interrupts47 - gpio-controller48 - '#gpio-cells'49 - gpio-ranges50 - ngpios51 - interrupt-controller52 - '#interrupt-cells'53 54additionalProperties: false55 56examples:57 - |58 #include <dt-bindings/interrupt-controller/arm-gic.h>59 gpio0: gpio@e0050000 {60 compatible = "renesas,em-gio";61 reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;62 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,63 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;64 gpio-controller;65 #gpio-cells = <2>;66 gpio-ranges = <&pfc 0 0 32>;67 ngpios = <32>;68 interrupt-controller;69 #interrupt-cells = <2>;70 };71