Skip to content

Commit f10d479

Browse files
pelwellpopcornmix
authored andcommitted
overlays: Add dpi18 overlay (#1634)
Add support for 18-bit DPI displays. Although the dpi24 overlay could be used, this overlay leaves GPIOs 22-27 free for other uses.
1 parent f27221a commit f10d479

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dtbo-$(RPI_DT_OVERLAYS) += audremap.dtbo
2222
dtbo-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor.dtbo
2323
dtbo-$(RPI_DT_OVERLAYS) += dht11.dtbo
2424
dtbo-$(RPI_DT_OVERLAYS) += dionaudio-loco.dtbo
25+
dtbo-$(RPI_DT_OVERLAYS) += dpi18.dtbo
2526
dtbo-$(RPI_DT_OVERLAYS) += dpi24.dtbo
2627
dtbo-$(RPI_DT_OVERLAYS) += dwc-otg.dtbo
2728
dtbo-$(RPI_DT_OVERLAYS) += dwc2.dtbo

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ Load: dtoverlay=dionaudio-loco
283283
Params: <None>
284284

285285

286+
Name: dpi18
287+
Info: Overlay for a generic 18-bit DPI display
288+
This uses GPIOs 0-21 (so no I2C, uart etc.), and activates the output
289+
2-3 seconds after the kernel has started.
290+
Load: dtoverlay=dpi18
291+
Params: <None>
292+
293+
286294
Name: dpi24
287295
Info: Overlay for a generic 24-bit DPI display
288296
This uses GPIOs 0-27 (so no I2C, uart etc.), and activates the output
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/{
5+
compatible = "brcm,bcm2708";
6+
7+
// There is no DPI driver module, but we need a platform device
8+
// node (that doesn't already use pinctrl) to hang the pinctrl
9+
// reference on - leds will do
10+
11+
fragment@0 {
12+
target = <&leds>;
13+
__overlay__ {
14+
pinctrl-names = "default";
15+
pinctrl-0 = <&dpi18_pins>;
16+
};
17+
};
18+
19+
fragment@1 {
20+
target = <&gpio>;
21+
__overlay__ {
22+
dpi18_pins: dpi18_pins {
23+
brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
24+
12 13 14 15 16 17 18 19 20
25+
21>;
26+
brcm,function = <6>; /* alt2 */
27+
brcm,pull = <0>; /* no pull */
28+
};
29+
};
30+
};
31+
};

0 commit comments

Comments
 (0)