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-virtio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Virtio GPIO controller
0008
0009 maintainers:
0010 - Viresh Kumar <viresh.kumar@linaro.org>
0011
0012 allOf:
0013 - $ref: /schemas/virtio/virtio-device.yaml#
0014
0015 description:
0016 Virtio GPIO controller, see /schemas/virtio/virtio-device.yaml for more
0017 details.
0018
0019 properties:
0020 $nodename:
0021 const: gpio
0022
0023 compatible:
0024 const: virtio,device29
0025
0026 gpio-controller: true
0027
0028 "#gpio-cells":
0029 const: 2
0030
0031 interrupt-controller: true
0032
0033 "#interrupt-cells":
0034 const: 2
0035
0036 required:
0037 - compatible
0038 - gpio-controller
0039 - "#gpio-cells"
0040
0041 unevaluatedProperties: false
0042
0043 examples:
0044 - |
0045 virtio@3000 {
0046 compatible = "virtio,mmio";
0047 reg = <0x3000 0x100>;
0048 interrupts = <41>;
0049
0050 gpio {
0051 compatible = "virtio,device29";
0052 gpio-controller;
0053 #gpio-cells = <2>;
0054 interrupt-controller;
0055 #interrupt-cells = <2>;
0056 };
0057 };
0058
0059 ...