Skip to content

Commit

Permalink
overlays: Update display GPIO declarations
Browse files Browse the repository at this point in the history
The 5.4 kernel changes the way a number of display drivers use GPIOs.
That change has exposed flaws/broken a number of display overlays, so
after a trickle of single-display patches this is a best-guess attempt
to fix the remainder. As none of these changes have been tested on real
displays there is a possibility that this either doesn't fix the
problem or even breaks something that was working - apologies if that
is the case.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Oct 2, 2020
1 parent 1b1365e commit b7d685c
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/goodix-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
interrupt-parent = <&gpio>;
interrupts = <4 2>; // high-to-low edge triggered
irq-gpios = <&gpio 4 0>; // Pin7 on GPIO header
reset-gpios = <&gpio 17 0>; // Pin11 on GPIO header
reset-gpios = <&gpio 17 1>; // Pin11 on GPIO header
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/hy28a-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
fps = <50>;
buswidth = <8>;
startbyte = <0x70>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
led-gpios = <&gpio 18 1>;
debug = <0>;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/hy28b-2017-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
fps = <50>;
buswidth = <8>;
startbyte = <0x70>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
led-gpios = <&gpio 18 1>;

init = <0x10000e5 0x78F0
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/boot/dts/overlays/media-center-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
bgr;
fps = <30>;
buswidth = <8>;
reset-gpios = <&gpio 23 0>;
reset-gpios = <&gpio 23 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 12 1>;
led-gpios = <&gpio 12 0>;
debug = <0>;
};

Expand All @@ -66,7 +66,7 @@
spi-max-frequency = <2000000>;
interrupts = <25 2>; /* high-to-low edge triggered */
interrupt-parent = <&gpio>;
pendown-gpio = <&gpio 25 0>;
pendown-gpio = <&gpio 25 1>;
ti,x-plate-ohms = /bits/ 16 <60>;
ti,pressure-max = /bits/ 16 <255>;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/mz61581-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
buswidth = <8>;
txbuflen = <32768>;

reset-gpios = <&gpio 15 0>;
reset-gpios = <&gpio 15 1>;
dc-gpios = <&gpio 25 0>;
led-gpios = <&gpio 18 0>;

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/overlays/piscreen-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
fps = <30>;
buswidth = <8>;
regwidth = <16>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 22 1>;
led-gpios = <&gpio 22 0>;
debug = <0>;

init = <0x10000b0 0x00
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
buswidth = <8>;
regwidth = <16>;
txbuflen = <32768>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 22 1>;
led-gpios = <&gpio 22 0>;
debug = <0>;

init = <0x10000b0 0x00
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/sh1106-spi-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
rotate = <0>;
fps = <25>;
buswidth = <8>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
debug = <0>;

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
rotate = <0>;
fps = <25>;
buswidth = <8>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
debug = <0>;

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/ssd1351-spi-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
rotate = <0>;
fps = <25>;
buswidth = <8>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
debug = <0>;

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
fps = <20>;
bgr;
buswidth = <8>;
reset-gpios = <&gpio 25 0>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 18 1>;
led-gpios = <&gpio 18 0>;
debug = <0>;

init = <0x10000B0 0x80
Expand Down

0 comments on commit b7d685c

Please sign in to comment.