bcm27xx: add support for linux v5.15
[openwrt/staging/ldir.git] / target / linux / bcm27xx / patches-5.15 / 950-0830-overlays-mipi-dbi-spi-width-mm-and-height-mm-are-man.patch
1 From 4674b5a66946136f95de45b9e2e51a3f9330966c Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= <noralf@tronnes.org>
3 Date: Wed, 13 Apr 2022 19:28:35 +0200
4 Subject: [PATCH] overlays: mipi-dbi-spi: width-mm and height-mm are
5 mandatory
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 There was a last minute change to the binding in commit 1ecc0c09f19f
11 ("dt-bindings: display: panel: mipi-dbi-spi: Make width-mm/height-mm mandatory").
12 This was done so userspace can calculate DPI.
13
14 Update the overlay to ensure it will work with future kernels.
15 The driver changes won't be backported to rpi-5.15.
16
17 Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
18 ---
19 arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts | 3 +++
20 1 file changed, 3 insertions(+)
21
22 --- a/arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts
23 +++ b/arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts
24 @@ -31,6 +31,9 @@
25 reg = <0>;
26 spi-max-frequency = <32000000>;
27
28 + width-mm = <0>;
29 + height-mm = <0>;
30 +
31 timing: panel-timing {
32 hactive = <320>;
33 vactive = <240>;