Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/microchip,mpfs-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Microchip MPFS GPIO Controller Device Tree Bindings
0008 
0009 maintainers:
0010   - Conor Dooley <conor.dooley@microchip.com>
0011 
0012 properties:
0013   compatible:
0014     items:
0015       - enum:
0016           - microchip,mpfs-gpio
0017 
0018   reg:
0019     maxItems: 1
0020 
0021   interrupts:
0022     description:
0023       Interrupt mapping, one per GPIO. Maximum 32 GPIOs.
0024     minItems: 1
0025     maxItems: 32
0026 
0027   interrupt-controller: true
0028 
0029   clocks:
0030     maxItems: 1
0031 
0032   "#gpio-cells":
0033     const: 2
0034 
0035   "#interrupt-cells":
0036     const: 1
0037 
0038   ngpios:
0039     description:
0040       The number of GPIOs available.
0041     minimum: 1
0042     maximum: 32
0043     default: 32
0044 
0045   gpio-controller: true
0046 
0047 required:
0048   - compatible
0049   - reg
0050   - interrupts
0051   - "#interrupt-cells"
0052   - interrupt-controller
0053   - "#gpio-cells"
0054   - gpio-controller
0055   - clocks
0056 
0057 additionalProperties: false
0058 
0059 examples:
0060   - |
0061     gpio@20122000 {
0062         compatible = "microchip,mpfs-gpio";
0063         reg = <0x20122000 0x1000>;
0064         clocks = <&clkcfg 25>;
0065         interrupt-parent = <&plic>;
0066         gpio-controller;
0067         #gpio-cells = <2>;
0068         interrupt-controller;
0069         #interrupt-cells = <1>;
0070         interrupts = <53>, <53>, <53>, <53>,
0071                      <53>, <53>, <53>, <53>,
0072                      <53>, <53>, <53>, <53>,
0073                      <53>, <53>, <53>, <53>,
0074                      <53>, <53>, <53>, <53>,
0075                      <53>, <53>, <53>, <53>,
0076                      <53>, <53>, <53>, <53>,
0077                      <53>, <53>, <53>, <53>;
0078     };
0079 ...