56d9d9aca1f98c5da3f92f8f355af2dbe841d911
[openwrt/staging/hauke.git] /
1 From 467e9cb87261c27b6c70ec714ae3cb58b48d0f6b Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Fri, 9 Mar 2018 13:20:21 -0800
4 Subject: [PATCH] overlays: Add an overlay for the Adafruit Kippah with
5 their 7" panel
6
7 Signed-off-by: Eric Anholt <eric@anholt.net>
8 ---
9 arch/arm/boot/dts/overlays/Makefile | 1 +
10 arch/arm/boot/dts/overlays/README | 7 +++
11 .../overlays/vc4-kms-kippah-7inch-overlay.dts | 43 +++++++++++++++++++
12 3 files changed, 51 insertions(+)
13 create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts
14
15 --- a/arch/arm/boot/dts/overlays/Makefile
16 +++ b/arch/arm/boot/dts/overlays/Makefile
17 @@ -134,6 +134,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
18 upstream.dtbo \
19 upstream-aux-interrupt.dtbo \
20 vc4-fkms-v3d.dtbo \
21 + vc4-kms-kippah-7inch.dtbo \
22 vc4-kms-v3d.dtbo \
23 vga666.dtbo \
24 w1-gpio.dtbo \
25 --- a/arch/arm/boot/dts/overlays/README
26 +++ b/arch/arm/boot/dts/overlays/README
27 @@ -1920,6 +1920,13 @@ Params: cma-256 CMA is 2
28 cma-64 CMA is 64MB, 64MB-aligned
29
30
31 +Name: vc4-kms-kippah-7inch
32 +Info: Enable the Adafruit DPI Kippah with the 7" Ontat panel attached.
33 + Requires vc4-kms-v3d to be loaded.
34 +Load: dtoverlay=vc4-kms-kippah-7inch
35 +Params: <None>
36 +
37 +
38 Name: vc4-kms-v3d
39 Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver. Running startx or
40 booting to GUI while this overlay is in use will cause interesting
41 --- /dev/null
42 +++ b/arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts
43 @@ -0,0 +1,43 @@
44 +/*
45 + * vc4-kms-v3d-overlay.dts
46 + */
47 +
48 +/dts-v1/;
49 +/plugin/;
50 +
51 +#include <dt-bindings/pinctrl/bcm2835.h>
52 +
53 +/ {
54 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
55 +
56 + fragment@0 {
57 + target-path = "/";
58 + __overlay__ {
59 + panel: panel {
60 + compatible = "ontat,yx700wv03", "simple-panel";
61 +
62 + port {
63 + panel_in: endpoint {
64 + remote-endpoint = <&dpi_out>;
65 + };
66 + };
67 + };
68 + };
69 + };
70 +
71 + fragment@1 {
72 + target = <&dpi>;
73 + __overlay__ {
74 + status = "okay";
75 +
76 + pinctrl-names = "default";
77 + pinctrl-0 = <&dpi_18bit_gpio0>;
78 +
79 + port {
80 + dpi_out: endpoint@0 {
81 + remote-endpoint = <&panel_in>;
82 + };
83 + };
84 + };
85 + };
86 +};