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/gpio-vf610.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Freescale VF610 PORT/GPIO module
0008 
0009 maintainers:
0010   - Stefan Agner <stefan@agner.ch>
0011 
0012 description: |
0013   The Freescale PORT/GPIO modules are two adjacent modules providing GPIO
0014   functionality. Each pair serves 32 GPIOs. The VF610 has 5 instances of
0015   each, and each PORT module has its own interrupt.
0016 
0017   Note: Each GPIO port should have an alias correctly numbered in "aliases"
0018   node.
0019 
0020 properties:
0021   compatible:
0022     oneOf:
0023       - const: fsl,vf610-gpio
0024       - items:
0025           - const: fsl,imx7ulp-gpio
0026           - const: fsl,vf610-gpio
0027       - items:
0028           - enum:
0029               - fsl,imx93-gpio
0030               - fsl,imx8ulp-gpio
0031           - const: fsl,imx7ulp-gpio
0032 
0033   reg:
0034     description: The first reg tuple represents the PORT module, the second tuple
0035       represents the GPIO module.
0036     maxItems: 2
0037 
0038   interrupts:
0039     maxItems: 1
0040 
0041   interrupt-controller: true
0042 
0043   "#interrupt-cells":
0044     const: 2
0045 
0046   "#gpio-cells":
0047     const: 2
0048 
0049   gpio-controller: true
0050 
0051   clocks:
0052     items:
0053       - description: SoC GPIO clock
0054       - description: SoC PORT clock
0055 
0056   clock-names:
0057     items:
0058       - const: gpio
0059       - const: port
0060 
0061   gpio-ranges:
0062     maxItems: 1
0063 
0064 required:
0065   - compatible
0066   - reg
0067   - interrupts
0068   - interrupt-controller
0069   - "#interrupt-cells"
0070   - "#gpio-cells"
0071   - gpio-controller
0072 
0073 additionalProperties: false
0074 
0075 examples:
0076   - |
0077     #include <dt-bindings/interrupt-controller/arm-gic.h>
0078 
0079     gpio1: gpio@40049000 {
0080         compatible = "fsl,vf610-gpio";
0081         reg = <0x40049000 0x1000>, <0x400ff000 0x40>;
0082         interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
0083         gpio-controller;
0084         #gpio-cells = <2>;
0085         interrupt-controller;
0086         #interrupt-cells = <2>;
0087         gpio-ranges = <&iomuxc 0 0 32>;
0088     };