Skip to content

Commit 8109713

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
BCM270X_DT: Overlay for the Fen Logic VGA666 board
The VGA666 board requires GPIOs 2-21 (so no I2C or UART). Using the overlay (instead of a custom dt-blob.bin) has the advantage that it will reserve those pins and stop other devices using them (except for GPIO), but it does delay the point at which the output becomes valid until 2-3 seconds after the kernel has started.
1 parent 208b35a commit 8109713

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ dtb-$(RPI_DT_OVERLAYS) += spi-bcm2708-overlay.dtb
4343
dtb-$(RPI_DT_OVERLAYS) += spi-bcm2835-overlay.dtb
4444
dtb-$(RPI_DT_OVERLAYS) += tinylcd35-overlay.dtb
4545
dtb-$(RPI_DT_OVERLAYS) += uart1-overlay.dtb
46+
dtb-$(RPI_DT_OVERLAYS) += vga666-overlay.dtb
4647
dtb-$(RPI_DT_OVERLAYS) += w1-gpio-overlay.dtb
4748
dtb-$(RPI_DT_OVERLAYS) += w1-gpio-pullup-overlay.dtb
4849

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,14 @@ Params: txd1_pin GPIO pin for TXD1 (14, 32 or 40 - default 14)
497497
rxd1_pin GPIO pin for RXD1 (15, 33 or 41 - default 15)
498498

499499

500+
Name: vga666
501+
Info: Overlay for the Fen Logic VGA666 board
502+
This uses GPIOs 2-21 (so no I2C), and activates the output 2-3 seconds
503+
after the kernel has started.
504+
Load: dtoverlay=vga666
505+
Params: <None>
506+
507+
500508
Name: w1-gpio
501509
Info: Configures the w1-gpio Onewire interface module.
502510
Use this overlay if you *don't* need a GPIO to drive an external pullup.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/{
5+
compatible = "brcm,bcm2708";
6+
7+
// There is no VGA 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 = <&vga666_pins>;
16+
};
17+
};
18+
19+
fragment@1 {
20+
target = <&gpio>;
21+
__overlay__ {
22+
vga666_pins: vga666_pins {
23+
brcm,pins = <2 3 4 5 6 7 8 9 10 11 12
24+
13 14 15 16 17 18 19 20 21>;
25+
brcm,function = <6>; /* alt2 */
26+
brcm,pull = <0>; /* no pull */
27+
};
28+
};
29+
};
30+
};

0 commit comments

Comments
 (0)