Skip to content

Commit 28f4b1e

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
Add vc4-kms-v3d overlay
1 parent 7b2c65e commit 28f4b1e

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ dtb-$(RPI_DT_OVERLAYS) += spi-bcm2835-overlay.dtb
5454
dtb-$(RPI_DT_OVERLAYS) += spi-gpio35-39-overlay.dtb
5555
dtb-$(RPI_DT_OVERLAYS) += tinylcd35-overlay.dtb
5656
dtb-$(RPI_DT_OVERLAYS) += uart1-overlay.dtb
57+
dtb-$(RPI_DT_OVERLAYS) += vc4-kms-v3d-overlay.dtb
5758
dtb-$(RPI_DT_OVERLAYS) += vga666-overlay.dtb
5859
dtb-$(RPI_DT_OVERLAYS) += w1-gpio-overlay.dtb
5960
dtb-$(RPI_DT_OVERLAYS) += w1-gpio-pullup-overlay.dtb
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/*
2+
* vc4-kms-v3d-overlay.dts
3+
*/
4+
5+
/dts-v1/;
6+
/plugin/;
7+
8+
#include "dt-bindings/clock/bcm2835.h"
9+
#include "dt-bindings/gpio/gpio.h"
10+
11+
/ {
12+
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
13+
14+
fragment@0 {
15+
target = <&i2c2>;
16+
__overlay__ {
17+
status = "okay";
18+
};
19+
};
20+
21+
fragment@1 {
22+
target = <&cprman>;
23+
__overlay__ {
24+
status = "okay";
25+
};
26+
};
27+
28+
fragment@2 {
29+
target = <&fb>;
30+
__overlay__ {
31+
status = "disabled";
32+
};
33+
};
34+
35+
fragment@3 {
36+
target = <&soc>;
37+
__overlay__ {
38+
#address-cells = <1>;
39+
#size-cells = <1>;
40+
41+
pixelvalve@7e206000 {
42+
compatible = "brcm,bcm2835-pixelvalve0";
43+
reg = <0x7e206000 0x100>;
44+
interrupts = <2 13>; /* pwa0 */
45+
};
46+
47+
pixelvalve@7e207000 {
48+
compatible = "brcm,bcm2835-pixelvalve1";
49+
reg = <0x7e207000 0x100>;
50+
interrupts = <2 14>; /* pwa1 */
51+
};
52+
53+
hvs@7e400000 {
54+
compatible = "brcm,bcm2835-hvs";
55+
reg = <0x7e400000 0x6000>;
56+
interrupts = <2 1>;
57+
};
58+
59+
pixelvalve@7e807000 {
60+
compatible = "brcm,bcm2835-pixelvalve2";
61+
reg = <0x7e807000 0x100>;
62+
interrupts = <2 10>; /* pixelvalve */
63+
};
64+
65+
hdmi@7e902000 {
66+
compatible = "brcm,bcm2835-hdmi";
67+
reg = <0x7e902000 0x600>,
68+
<0x7e808000 0x100>;
69+
interrupts = <2 8>, <2 9>;
70+
ddc = <&i2c2>;
71+
hpd-gpio = <&gpio 46 GPIO_ACTIVE_HIGH>;
72+
clocks = <&cprman BCM2835_PLLH_PIX>,
73+
<&cprman BCM2835_CLOCK_HSM>;
74+
clock-names = "pixel", "hdmi";
75+
};
76+
77+
v3d@7ec00000 {
78+
compatible = "brcm,vc4-v3d";
79+
reg = <0x7ec00000 0x1000>;
80+
interrupts = <1 10>;
81+
};
82+
83+
gpu@7e4c0000 {
84+
compatible = "brcm,bcm2835-vc4";
85+
};
86+
};
87+
};
88+
};

0 commit comments

Comments
 (0)