1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/arm/bcm/raspberrypi,bcm2835-firmware.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Raspberry Pi VideoCore firmware driver
8
9maintainers:
10  - Eric Anholt <eric@anholt.net>
11  - Stefan Wahren <wahrenst@gmx.net>
12
13select:
14  properties:
15    compatible:
16      contains:
17        const: raspberrypi,bcm2835-firmware
18
19  required:
20    - compatible
21
22properties:
23  compatible:
24    items:
25      - const: raspberrypi,bcm2835-firmware
26      - const: simple-mfd
27
28  mboxes:
29    maxItems: 1
30
31  clocks:
32    type: object
33
34    properties:
35      compatible:
36        const: raspberrypi,firmware-clocks
37
38      "#clock-cells":
39        const: 1
40        description: >
41          The argument is the ID of the clocks contained by the
42          firmware messages.
43
44    required:
45      - compatible
46      - "#clock-cells"
47
48  reset:
49    type: object
50
51    properties:
52      compatible:
53        const: raspberrypi,firmware-reset
54
55      "#reset-cells":
56        const: 1
57        description: >
58          The argument is the ID of the firmware reset line to affect.
59
60    required:
61      - compatible
62      - "#reset-cells"
63
64    additionalProperties: false
65
66required:
67  - compatible
68  - mboxes
69
70additionalProperties: false
71
72examples:
73  - |
74    firmware {
75        compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
76        mboxes = <&mailbox>;
77
78        firmware_clocks: clocks {
79            compatible = "raspberrypi,firmware-clocks";
80            #clock-cells = <1>;
81        };
82
83        reset: reset {
84            compatible = "raspberrypi,firmware-reset";
85            #reset-cells = <1>;
86        };
87    };
88...
89