overlays: Add an overlay for the Adafruit Kippah with their 7" panel
authorEric Anholt <eric@anholt.net>
Fri, 9 Mar 2018 21:20:21 +0000 (13:20 -0800)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:04 +0000 (00:08 +0100)
Signed-off-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/overlays/Makefile
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts [new file with mode: 0644]

index 6e5ac5c..051b026 100644 (file)
@@ -134,6 +134,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
        upstream.dtbo \
        upstream-aux-interrupt.dtbo \
        vc4-fkms-v3d.dtbo \
+       vc4-kms-kippah-7inch.dtbo \
        vc4-kms-v3d.dtbo \
        vga666.dtbo \
        w1-gpio.dtbo \
index b32f030..a867317 100644 (file)
@@ -1920,6 +1920,13 @@ Params: cma-256                 CMA is 256MB, 256MB-aligned (needs 1GB)
         cma-64                  CMA is 64MB, 64MB-aligned
 
 
+Name:   vc4-kms-kippah-7inch
+Info:   Enable the Adafruit DPI Kippah with the 7" Ontat panel attached.
+        Requires vc4-kms-v3d to be loaded.
+Load:   dtoverlay=vc4-kms-kippah-7inch
+Params: <None>
+
+
 Name:   vc4-kms-v3d
 Info:   Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver. Running startx or
         booting to GUI while this overlay is in use will cause interesting
diff --git a/arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts
new file mode 100644 (file)
index 0000000..1e20d7e
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * vc4-kms-v3d-overlay.dts
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/pinctrl/bcm2835.h>
+
+/ {
+       compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
+
+       fragment@0 {
+               target-path = "/";
+               __overlay__ {
+                       panel: panel {
+                               compatible = "ontat,yx700wv03", "simple-panel";
+
+                               port {
+                                       panel_in: endpoint {
+                                               remote-endpoint = <&dpi_out>;
+                                       };
+                               };
+                       };
+               };
+       };
+
+       fragment@1 {
+               target = <&dpi>;
+               __overlay__  {
+                       status = "okay";
+
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&dpi_18bit_gpio0>;
+
+                       port {
+                               dpi_out: endpoint@0 {
+                                       remote-endpoint = <&panel_in>;
+                               };
+                       };
+               };
+       };
+};