Skip to content

Commit 4564363

Browse files
mripardNicolas Saenz Julienne
authored and
Nicolas Saenz Julienne
committed
ARM: dts: bcm2711: Enable the display pipeline
Now that all the drivers have been adjusted for it, let's bring in the necessary device tree changes. The VEC and PV3 are left out for now, since it will require a more specific clock setup. Reviewed-by: Dave Stevenson <[email protected]> Tested-by: Chanwoo Choi <[email protected]> Tested-by: Hoegeun Kwon <[email protected]> Tested-by: Stefan Wahren <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Reviewed-by: Hoegeun Kwon <[email protected]> Signed-off-by: Nicolas Saenz Julienne <[email protected]> Link: https://lore.kernel.org/r/cfce2276d172d3d9c4d34d966b58fd47f77c4e46.1599120059.git-series.maxime@cerno.tech
1 parent 9123e3a commit 4564363

File tree

2 files changed

+169
-1
lines changed

2 files changed

+169
-1
lines changed

arch/arm/boot/dts/bcm2711-rpi-4-b.dts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@
6868
};
6969
};
7070

71+
&ddc0 {
72+
status = "okay";
73+
};
74+
75+
&ddc1 {
76+
status = "okay";
77+
};
78+
7179
&firmware {
7280
firmware_clocks: clocks {
7381
compatible = "raspberrypi,firmware-clocks";
@@ -163,6 +171,38 @@
163171
"RGMII_TXD3";
164172
};
165173

174+
&hdmi0 {
175+
clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>;
176+
clock-names = "hdmi", "bvb", "audio", "cec";
177+
status = "okay";
178+
};
179+
180+
&hdmi1 {
181+
clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
182+
clock-names = "hdmi", "bvb", "audio", "cec";
183+
status = "okay";
184+
};
185+
186+
&hvs {
187+
clocks = <&firmware_clocks 4>;
188+
};
189+
190+
&pixelvalve0 {
191+
status = "okay";
192+
};
193+
194+
&pixelvalve1 {
195+
status = "okay";
196+
};
197+
198+
&pixelvalve2 {
199+
status = "okay";
200+
};
201+
202+
&pixelvalve4 {
203+
status = "okay";
204+
};
205+
166206
&pwm1 {
167207
pinctrl-names = "default";
168208
pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
@@ -231,3 +271,11 @@
231271
&vchiq {
232272
interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
233273
};
274+
275+
&vc4 {
276+
status = "okay";
277+
};
278+
279+
&vec {
280+
status = "disabled";
281+
};

arch/arm/boot/dts/bcm2711.dtsi

Lines changed: 121 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212

1313
interrupt-parent = <&gicv2>;
1414

15+
vc4: gpu {
16+
compatible = "brcm,bcm2711-vc5";
17+
status = "disabled";
18+
};
19+
20+
clk_27MHz: clk-27M {
21+
#clock-cells = <0>;
22+
compatible = "fixed-clock";
23+
clock-frequency = <27000000>;
24+
clock-output-names = "27MHz-clock";
25+
};
26+
1527
clk_108MHz: clk-108M {
1628
#clock-cells = <0>;
1729
compatible = "fixed-clock";
@@ -238,6 +250,27 @@
238250
status = "disabled";
239251
};
240252

253+
pixelvalve0: pixelvalve@7e206000 {
254+
compatible = "brcm,bcm2711-pixelvalve0";
255+
reg = <0x7e206000 0x100>;
256+
interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
257+
status = "disabled";
258+
};
259+
260+
pixelvalve1: pixelvalve@7e207000 {
261+
compatible = "brcm,bcm2711-pixelvalve1";
262+
reg = <0x7e207000 0x100>;
263+
interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
264+
status = "disabled";
265+
};
266+
267+
pixelvalve2: pixelvalve@7e20a000 {
268+
compatible = "brcm,bcm2711-pixelvalve2";
269+
reg = <0x7e20a000 0x100>;
270+
interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
271+
status = "disabled";
272+
};
273+
241274
pwm1: pwm@7e20c800 {
242275
compatible = "brcm,bcm2835-pwm";
243276
reg = <0x7e20c800 0x28>;
@@ -248,17 +281,104 @@
248281
status = "disabled";
249282
};
250283

251-
hvs@7e400000 {
284+
pixelvalve4: pixelvalve@7e216000 {
285+
compatible = "brcm,bcm2711-pixelvalve4";
286+
reg = <0x7e216000 0x100>;
287+
interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
288+
status = "disabled";
289+
};
290+
291+
hvs: hvs@7e400000 {
292+
compatible = "brcm,bcm2711-hvs";
252293
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
253294
};
254295

296+
pixelvalve3: pixelvalve@7ec12000 {
297+
compatible = "brcm,bcm2711-pixelvalve3";
298+
reg = <0x7ec12000 0x100>;
299+
interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
300+
status = "disabled";
301+
};
302+
255303
dvp: clock@7ef00000 {
256304
compatible = "brcm,brcm2711-dvp";
257305
reg = <0x7ef00000 0x10>;
258306
clocks = <&clk_108MHz>;
259307
#clock-cells = <1>;
260308
#reset-cells = <1>;
261309
};
310+
311+
hdmi0: hdmi@7ef00700 {
312+
compatible = "brcm,bcm2711-hdmi0";
313+
reg = <0x7ef00700 0x300>,
314+
<0x7ef00300 0x200>,
315+
<0x7ef00f00 0x80>,
316+
<0x7ef00f80 0x80>,
317+
<0x7ef01b00 0x200>,
318+
<0x7ef01f00 0x400>,
319+
<0x7ef00200 0x80>,
320+
<0x7ef04300 0x100>,
321+
<0x7ef20000 0x100>;
322+
reg-names = "hdmi",
323+
"dvp",
324+
"phy",
325+
"rm",
326+
"packet",
327+
"metadata",
328+
"csc",
329+
"cec",
330+
"hd";
331+
clock-names = "hdmi", "bvb", "audio", "cec";
332+
resets = <&dvp 0>;
333+
ddc = <&ddc0>;
334+
dmas = <&dma 10>;
335+
dma-names = "audio-rx";
336+
status = "disabled";
337+
};
338+
339+
ddc0: i2c@7ef04500 {
340+
compatible = "brcm,bcm2711-hdmi-i2c";
341+
reg = <0x7ef04500 0x100>, <0x7ef00b00 0x300>;
342+
reg-names = "bsc", "auto-i2c";
343+
clock-frequency = <97500>;
344+
status = "disabled";
345+
};
346+
347+
hdmi1: hdmi@7ef05700 {
348+
compatible = "brcm,bcm2711-hdmi1";
349+
reg = <0x7ef05700 0x300>,
350+
<0x7ef05300 0x200>,
351+
<0x7ef05f00 0x80>,
352+
<0x7ef05f80 0x80>,
353+
<0x7ef06b00 0x200>,
354+
<0x7ef06f00 0x400>,
355+
<0x7ef00280 0x80>,
356+
<0x7ef09300 0x100>,
357+
<0x7ef20000 0x100>;
358+
reg-names = "hdmi",
359+
"dvp",
360+
"phy",
361+
"rm",
362+
"packet",
363+
"metadata",
364+
"csc",
365+
"cec",
366+
"hd";
367+
ddc = <&ddc1>;
368+
clock-names = "hdmi", "bvb", "audio", "cec";
369+
resets = <&dvp 1>;
370+
dmas = <&dma 17>;
371+
dma-names = "audio-rx";
372+
status = "disabled";
373+
};
374+
375+
ddc1: i2c@7ef09500 {
376+
compatible = "brcm,bcm2711-hdmi-i2c";
377+
reg = <0x7ef09500 0x100>, <0x7ef05b00 0x300>;
378+
reg-names = "bsc", "auto-i2c";
379+
clock-frequency = <97500>;
380+
status = "disabled";
381+
};
262382
};
263383

264384
/*

0 commit comments

Comments
 (0)