From ee76a5373bb051bebdf6123579dec265c1983e7a Mon Sep 17 00:00:00 2001 From: Miguel Fuertes Date: Tue, 14 Oct 2025 14:09:01 +0200 Subject: [PATCH] pwmligth --- ...4-dts-qcom-add-msm8916-generic-mf68e.patch | 27 +++++++++---------- .../patches-6.12/900-fbtft-st7735-mf68e.patch | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/msm89xx/patches-6.12/802-arm64-dts-qcom-add-msm8916-generic-mf68e.patch b/msm89xx/patches-6.12/802-arm64-dts-qcom-add-msm8916-generic-mf68e.patch index 68bcf69..45d32f1 100644 --- a/msm89xx/patches-6.12/802-arm64-dts-qcom-add-msm8916-generic-mf68e.patch +++ b/msm89xx/patches-6.12/802-arm64-dts-qcom-add-msm8916-generic-mf68e.patch @@ -2,7 +2,7 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts =================================================================== --- a/arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts -@@ -0,0 +1,147 @@ +@@ -0,0 +1,146 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; @@ -42,14 +42,6 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts + pinctrl-names = "default"; + pinctrl-0 = <&usb_id_default>; + }; -+ -+ backlight: backlight { -+ compatible = "pwm-backlight"; -+ pwms = <&pm8916_pwm 0 100000>; -+ brightness-levels = <255 128 64 32 16 8 4 0>; -+ num-interpolated-steps = <255>; -+ default-brightness-level = <1>; -+ }; +}; + +&blsp_spi3 { @@ -60,26 +52,33 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts + reg = <0>; + spi-max-frequency = <16000000>; + -+ reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; -+ dc-gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>; -+ backlight = <&backlight>; ++ reset-gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>; ++ dc-gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>; ++ backlight = <&pm8916_wled>; + + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + + buswidth = <8>; -+ width = <132>; -+ height = <132>; ++ width = <128>; ++ height = <128>; + rotate = <0>; + bgr; + fps = <27>; + debug = <7>; ++ bpp = <16>; + + pinctrl-names = "default"; + pinctrl-0 = <&panel_default>; + }; +}; + ++&pm8916_wled { ++ status = "okay"; ++ qcom,cs-out; ++ qcom,current-limit = <20>; ++}; ++ +&pm8916_l6 { + regulator-always-on; +}; diff --git a/msm89xx/patches-6.12/900-fbtft-st7735-mf68e.patch b/msm89xx/patches-6.12/900-fbtft-st7735-mf68e.patch index e1e8357..eeca884 100644 --- a/msm89xx/patches-6.12/900-fbtft-st7735-mf68e.patch +++ b/msm89xx/patches-6.12/900-fbtft-st7735-mf68e.patch @@ -288,7 +288,7 @@ Index: drivers/staging/fbtft/fb_st7735r.c - }, + .regwidth = 8, + .width = 128, -+ .height = 160, ++ .height = 128, + .init_sequence = default_init_sequence, + .gamma_num = 2, + .gamma_len = 16,