xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/gpio-virtio.yaml (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1*354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*354d7675SEmmanuel Vadot%YAML 1.2
3*354d7675SEmmanuel Vadot---
4*354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/gpio-virtio.yaml#
5*354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*354d7675SEmmanuel Vadot
7*354d7675SEmmanuel Vadottitle: Virtio GPIO controller
8*354d7675SEmmanuel Vadot
9*354d7675SEmmanuel Vadotmaintainers:
10*354d7675SEmmanuel Vadot  - Viresh Kumar <viresh.kumar@linaro.org>
11*354d7675SEmmanuel Vadot
12*354d7675SEmmanuel VadotallOf:
13*354d7675SEmmanuel Vadot  - $ref: /schemas/virtio/virtio-device.yaml#
14*354d7675SEmmanuel Vadot
15*354d7675SEmmanuel Vadotdescription:
16*354d7675SEmmanuel Vadot  Virtio GPIO controller, see /schemas/virtio/virtio-device.yaml for more
17*354d7675SEmmanuel Vadot  details.
18*354d7675SEmmanuel Vadot
19*354d7675SEmmanuel Vadotproperties:
20*354d7675SEmmanuel Vadot  $nodename:
21*354d7675SEmmanuel Vadot    const: gpio
22*354d7675SEmmanuel Vadot
23*354d7675SEmmanuel Vadot  compatible:
24*354d7675SEmmanuel Vadot    const: virtio,device29
25*354d7675SEmmanuel Vadot
26*354d7675SEmmanuel Vadot  gpio-controller: true
27*354d7675SEmmanuel Vadot
28*354d7675SEmmanuel Vadot  "#gpio-cells":
29*354d7675SEmmanuel Vadot    const: 2
30*354d7675SEmmanuel Vadot
31*354d7675SEmmanuel Vadot  interrupt-controller: true
32*354d7675SEmmanuel Vadot
33*354d7675SEmmanuel Vadot  "#interrupt-cells":
34*354d7675SEmmanuel Vadot    const: 2
35*354d7675SEmmanuel Vadot
36*354d7675SEmmanuel Vadotrequired:
37*354d7675SEmmanuel Vadot  - compatible
38*354d7675SEmmanuel Vadot  - gpio-controller
39*354d7675SEmmanuel Vadot  - "#gpio-cells"
40*354d7675SEmmanuel Vadot
41*354d7675SEmmanuel VadotunevaluatedProperties: false
42*354d7675SEmmanuel Vadot
43*354d7675SEmmanuel Vadotexamples:
44*354d7675SEmmanuel Vadot  - |
45*354d7675SEmmanuel Vadot    virtio@3000 {
46*354d7675SEmmanuel Vadot        compatible = "virtio,mmio";
47*354d7675SEmmanuel Vadot        reg = <0x3000 0x100>;
48*354d7675SEmmanuel Vadot        interrupts = <41>;
49*354d7675SEmmanuel Vadot
50*354d7675SEmmanuel Vadot        gpio {
51*354d7675SEmmanuel Vadot            compatible = "virtio,device29";
52*354d7675SEmmanuel Vadot            gpio-controller;
53*354d7675SEmmanuel Vadot            #gpio-cells = <2>;
54*354d7675SEmmanuel Vadot            interrupt-controller;
55*354d7675SEmmanuel Vadot            #interrupt-cells = <2>;
56*354d7675SEmmanuel Vadot        };
57*354d7675SEmmanuel Vadot    };
58*354d7675SEmmanuel Vadot
59*354d7675SEmmanuel Vadot...
60