Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/renesas,em-gio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Renesas EMMA Mobile General Purpose I/O Interface
0008 
0009 maintainers:
0010   - Magnus Damm <magnus.damm@gmail.com>
0011 
0012 properties:
0013   compatible:
0014     const: renesas,em-gio
0015 
0016   reg:
0017     items:
0018       - description: First set of contiguous registers
0019       - description: Second set of contiguous registers
0020 
0021   interrupts:
0022     items:
0023       - description: Interrupt for the first set of 16 GPIO ports
0024       - description: Interrupt for the second set of 16 GPIO ports
0025 
0026   gpio-controller: true
0027 
0028   '#gpio-cells':
0029     const: 2
0030 
0031   gpio-ranges:
0032     maxItems: 1
0033 
0034   ngpios:
0035     minimum: 1
0036     maximum: 32
0037 
0038   interrupt-controller: true
0039 
0040   '#interrupt-cells':
0041     const: 2
0042 
0043 required:
0044   - compatible
0045   - reg
0046   - interrupts
0047   - gpio-controller
0048   - '#gpio-cells'
0049   - gpio-ranges
0050   - ngpios
0051   - interrupt-controller
0052   - '#interrupt-cells'
0053 
0054 additionalProperties: false
0055 
0056 examples:
0057   - |
0058     #include <dt-bindings/interrupt-controller/arm-gic.h>
0059     gpio0: gpio@e0050000 {
0060             compatible = "renesas,em-gio";
0061             reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
0062             interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
0063                          <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
0064             gpio-controller;
0065             #gpio-cells = <2>;
0066             gpio-ranges = <&pfc 0 0 32>;
0067             ngpios = <32>;
0068             interrupt-controller;
0069             #interrupt-cells = <2>;
0070     };