From ddbe2789a923cfe088946bf018eb6e2445017073 Mon Sep 17 00:00:00 2001 From: eng33 Date: Fri, 29 Nov 2024 20:52:42 +0800 Subject: [PATCH] arch:arm:boot:dts:overlays: Added waveshare 13.3inch panel support Signed-off-by: eng33 --- arch/arm/boot/dts/overlays/README | 2 ++ .../overlays/vc4-kms-dsi-waveshare-panel-overlay.dts | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 2da54f781e3b94..818c25c252dc30 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -5324,6 +5324,8 @@ Params: 2_8_inch 2.8" 480x640 8_0_inch 8.0" 1280x800 10_1_inch 10.1" 1280x800 11_9_inch 11.9" 320x1480 + 13_3inch_2lane 13.3″ 1920x1080 2lane + 13_3inch_4lane 13.3″ 1920x1080 4lane i2c1 Use i2c-1 with jumper wires from GPIOs 2&3 disable_touch Disable the touch controller rotation Set the panel orientation property diff --git a/arch/arm/boot/dts/overlays/vc4-kms-dsi-waveshare-panel-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-dsi-waveshare-panel-overlay.dts index 3b03ef09cdb9e8..abaaa125c8890a 100644 --- a/arch/arm/boot/dts/overlays/vc4-kms-dsi-waveshare-panel-overlay.dts +++ b/arch/arm/boot/dts/overlays/vc4-kms-dsi-waveshare-panel-overlay.dts @@ -1,4 +1,4 @@ -/* +* * Device Tree overlay for Waveshare DSI Touchscreens * */ @@ -51,6 +51,12 @@ reg = <0x14>; compatible = "goodix,gt911"; }; + + touch2: ilitek@41 { + reg = <0x41>; + compatible = "tchip,ilitek2"; + ilitek,name = "ilitek_i2c"; + }; }; }; @@ -120,6 +126,8 @@ <&touch>, "touchscreen-inverted-x?", <&touch>, "touchscreen-inverted-y?"; 8_8_inch = <&panel>, "compatible=waveshare,8.8inch-panel"; + 13_3_inch_2lane = <&panel>, "compatible=waveshare,13.3inch-2lane-panel"; + 13_3_inch_4lane = <&panel>, "compatible=waveshare,13.3inch-4lane-panel"; i2c1 = <&i2c_frag>, "target:0=",<&i2c1>, <0>, "-3-4+5"; disable_touch = <&touch>, "status=disabled";