1 From 6c6596610381249719e87e324a9689cabc2a7cd8 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Thu, 18 Feb 2021 21:05:44 +0000
4 Subject: [PATCH] overlays: Add minipitft13 overlay
6 minipitft13 is an overlay for the Adafruit 1.3" 240x240 display
9 See: https://github.com/raspberrypi/firmware/issues/1524
11 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 arch/arm/boot/dts/overlays/Makefile | 1 +
14 .../boot/dts/overlays/minipitft13-overlay.dts | 70 +++++++++++++++++++
15 2 files changed, 71 insertions(+)
16 create mode 100644 arch/arm/boot/dts/overlays/minipitft13-overlay.dts
18 --- a/arch/arm/boot/dts/overlays/Makefile
19 +++ b/arch/arm/boot/dts/overlays/Makefile
20 @@ -119,6 +119,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
29 +++ b/arch/arm/boot/dts/overlays/minipitft13-overlay.dts
32 + * Device Tree overlay for Adafruit Mini PiTFT 1.3" and 1.5" 240x240 Display
40 + compatible = "brcm,bcm2835";
48 + status = "disabled";
52 + status = "disabled";
60 + pitft_pins: pitft_pins {
62 + brcm,function = <1>; /* out */
63 + brcm,pull = <0>; /* none */
71 + /* needed to avoid dtc warning */
72 + #address-cells = <1>;
76 + compatible = "fbtft,minipitft13";
78 + pinctrl-names = "default";
79 + pinctrl-0 = <&pitft_pins>;
80 + spi-max-frequency = <32000000>;
85 + dc-gpios = <&gpio 25 0>;
86 + led-gpios = <&gpio 26 0>;
93 + speed = <&pitft>,"spi-max-frequency:0";
94 + rotate = <&pitft>,"rotate:0";
95 + width = <&pitft>,"width:0";
96 + height = <&pitft>,"height:0";
97 + fps = <&pitft>,"fps:0";
98 + debug = <&pitft>,"debug:0";