Skip to content

Commit

Permalink
dtoverlays: Add drm option to piscreen overlay
Browse files Browse the repository at this point in the history
Adds the option of selecting the DRM/KMS TinyDRM driver for
this panel, rather than the deprecated FBTFT one.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 authored and pelwell committed Sep 1, 2023
1 parent 01b26b5 commit e2cd03e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -3245,6 +3245,9 @@ Params: speed Display SPI bus speed

xohms Touchpanel sensitivity (X-plate resistance)

drm Select the DRM/KMS driver instead of the FBTFT
one


Name: piscreen2r
Info: PiScreen 2 with resistive TP display by OzzMaker.com
Expand Down
10 changes: 7 additions & 3 deletions arch/arm/boot/dts/overlays/piscreen-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>

/ {
compatible = "brcm,bcm2835";

Expand Down Expand Up @@ -59,9 +61,9 @@
fps = <30>;
buswidth = <8>;
regwidth = <16>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 22 0>;
reset-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
dc-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
led-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
debug = <0>;

init = <0x10000b0 0x00
Expand Down Expand Up @@ -98,5 +100,7 @@
fps = <&piscreen>,"fps:0";
debug = <&piscreen>,"debug:0";
xohms = <&piscreen_ts>,"ti,x-plate-ohms;0";
drm = <&piscreen>,"compatible=waveshare,rpi-lcd-35",
<&piscreen>,"reset-gpios:8=",<GPIO_ACTIVE_HIGH>;
};
};

0 comments on commit e2cd03e

Please sign in to comment.