Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
53514 views
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
7
title: Raspberry Pi VideoCore firmware driver
8
9
maintainers:
10
- Eric Anholt <eric@anholt.net>
11
- Stefan Wahren <wahrenst@gmx.net>
12
13
select:
14
properties:
15
compatible:
16
contains:
17
const: raspberrypi,bcm2835-firmware
18
19
required:
20
- compatible
21
22
properties:
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
additionalProperties: false
34
35
properties:
36
compatible:
37
const: raspberrypi,firmware-clocks
38
39
"#clock-cells":
40
const: 1
41
description: >
42
The argument is the ID of the clocks contained by the
43
firmware messages.
44
45
required:
46
- compatible
47
- "#clock-cells"
48
49
gpio:
50
type: object
51
additionalProperties: false
52
53
properties:
54
compatible:
55
const: raspberrypi,firmware-gpio
56
57
gpio-controller: true
58
59
"#gpio-cells":
60
const: 2
61
description:
62
The first cell is the pin number, and the second cell is used to
63
specify the gpio polarity (GPIO_ACTIVE_HIGH or GPIO_ACTIVE_LOW).
64
65
gpio-line-names:
66
minItems: 8
67
68
patternProperties:
69
'-hog$':
70
required:
71
- gpio-hog
72
73
required:
74
- compatible
75
- gpio-controller
76
- "#gpio-cells"
77
78
reset:
79
type: object
80
additionalProperties: false
81
82
properties:
83
compatible:
84
const: raspberrypi,firmware-reset
85
86
"#reset-cells":
87
const: 1
88
description: >
89
The argument is the ID of the firmware reset line to affect.
90
91
required:
92
- compatible
93
- "#reset-cells"
94
95
power:
96
$ref: /schemas/power/raspberrypi,bcm2835-power.yaml#
97
98
pwm:
99
type: object
100
additionalProperties: false
101
102
properties:
103
compatible:
104
const: raspberrypi,firmware-poe-pwm
105
106
"#pwm-cells":
107
# See pwm.yaml in this directory for a description of the cells format.
108
const: 2
109
110
required:
111
- compatible
112
- "#pwm-cells"
113
114
touchscreen:
115
type: object
116
$ref: /schemas/input/touchscreen/touchscreen.yaml#
117
additionalProperties: false
118
119
properties:
120
compatible:
121
const: raspberrypi,firmware-ts
122
123
firmware:
124
deprecated: true
125
description: Phandle to RPi's firmware device node.
126
127
touchscreen-size-x: true
128
touchscreen-size-y: true
129
touchscreen-inverted-x: true
130
touchscreen-inverted-y: true
131
touchscreen-swapped-x-y: true
132
133
required:
134
- compatible
135
136
required:
137
- compatible
138
- mboxes
139
140
additionalProperties: false
141
142
examples:
143
- |
144
firmware {
145
compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
146
mboxes = <&mailbox>;
147
148
firmware_clocks: clocks {
149
compatible = "raspberrypi,firmware-clocks";
150
#clock-cells = <1>;
151
};
152
153
expgpio: gpio {
154
compatible = "raspberrypi,firmware-gpio";
155
gpio-controller;
156
#gpio-cells = <2>;
157
};
158
159
reset: reset {
160
compatible = "raspberrypi,firmware-reset";
161
#reset-cells = <1>;
162
};
163
164
pwm: pwm {
165
compatible = "raspberrypi,firmware-poe-pwm";
166
#pwm-cells = <2>;
167
};
168
169
ts: touchscreen {
170
compatible = "raspberrypi,firmware-ts";
171
touchscreen-size-x = <800>;
172
touchscreen-size-y = <480>;
173
};
174
};
175
...
176
177