From ef1a9ea0071601797e3142ae2092d3fb0595075b Mon Sep 17 00:00:00 2001 From: Miguel Fuertes Date: Mon, 13 Oct 2025 11:20:11 +0200 Subject: [PATCH] changes --- ...4-dts-qcom-add-msm8916-generic-mf68e.patch | 150 +++++------------- 1 file changed, 40 insertions(+), 110 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 5ff614e..40d4f58 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,15 +2,14 @@ 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,208 @@ +@@ -0,0 +1,139 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-ufi.dtsi" +#include -+#include -+#include ++#include + +/ { + model = "MF68E 4G LTE Mobile WiFi Router"; @@ -25,16 +24,16 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts + + ocv-capacity-celsius = <25>; + ocv-capacity-table-0 = <4330000 100>, <4265000 95>, -+ <4208000 90>, <4154000 85>, <4102000 80>, -+ <4063000 75>, <4006000 70>, <3972000 65>, -+ <3931000 60>, <3880000 55>, <3841000 50>, -+ <3817000 45>, <3798000 40>, <3783000 35>, -+ <3767000 30>, <3747000 25>, <3729000 20>, -+ <3700000 16>, <3687000 13>, <3683000 11>, -+ <3681000 10>, <3680000 9>, <3678000 8>, -+ <3674000 7>, <3666000 6>, <3641000 5>, -+ <3597000 4>, <3537000 3>, <3457000 2>, -+ <3336000 1>, <3000000 0>; ++ <4208000 90>, <4154000 85>, <4102000 80>, ++ <4063000 75>, <4006000 70>, <3972000 65>, ++ <3931000 60>, <3880000 55>, <3841000 50>, ++ <3817000 45>, <3798000 40>, <3783000 35>, ++ <3767000 30>, <3747000 25>, <3729000 20>, ++ <3700000 16>, <3687000 13>, <3683000 11>, ++ <3681000 10>, <3680000 9>, <3678000 8>, ++ <3674000 7>, <3666000 6>, <3641000 5>, ++ <3597000 4>, <3537000 3>, <3457000 2>, ++ <3336000 1>, <3000000 0>; + }; + + usb_id: usb-id { @@ -47,85 +46,32 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pm8916_pwm 0 100000>; -+ brightness-levels = <0 32 64 128 255>; -+ num-interpolated-steps = <32>; -+ default-brightness-level = <128>; -+ }; -+ -+ gpio-keys { -+ compatible = "gpio-keys"; -+ -+ pinctrl-0 = <&button_default>; -+ pinctrl-names = "default"; -+ -+ label = "GPIO Buttons"; -+ -+ button-power { -+ label = "Power"; -+ linux,code = ; -+ gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; -+ }; -+ -+ button-reset { -+ label = "Reset"; -+ linux,code = ; -+ gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; -+ }; -+ }; -+ -+ leds { -+ compatible = "gpio-leds"; -+ -+ pinctrl-0 = <&gpio_leds_default>; -+ pinctrl-names = "default"; -+ -+ led-0 { -+ gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>; -+ function = LED_FUNCTION_WLAN; -+ color = ; -+ }; -+ -+ led-1 { -+ gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; -+ function = LED_FUNCTION_STATUS; -+ color = ; -+ }; ++ brightness-levels = <255 128 64 32 16 8 4 0>; ++ num-interpolated-steps = <255>; ++ default-brightness-level = <1>; + }; +}; + +&blsp_spi5 { + status = "okay"; + -+ pinctrl-0 = <&spi5_default &spi5_cs_default>; -+ pinctrl-names = "default"; -+ -+ display@0 { ++ panel@0 { + compatible = "sitronix,st7735s"; + reg = <0>; -+ spi-max-frequency = <16000000>; -+ spi-cpol; -+ spi-cpha; ++ spi-max-frequency = <32000000>; + -+ dc-gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>; -+ ++ dc-gpios = <&tlmm 30 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; -+ ++ + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + -+ rotation = <0>; -+ width-mm = <23>; -+ height-mm = <23>; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&panel_default>; + }; +}; + -+&pm8916_pwm { -+ pinctrl-0 = <&pwm_out>; -+ pinctrl-names = "default"; -+ status = "okay"; -+}; -+ +&pm8916_l6 { + regulator-always-on; +}; @@ -138,6 +84,22 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts + }; +}; + ++&pm8916_pwm { ++ status = "okay"; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&pwm_out>; ++}; ++ ++&pm8916_mpps { ++ pwm_out: mpp4-state { ++ pins = "mpp4"; ++ function = "digital"; ++ output-low; ++ qcom,dtest = <1>; ++ power-source = ; ++ }; ++}; ++ +&pm8916_bms { + status = "okay"; + monitored-battery = <&bat>; @@ -161,37 +123,15 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts +}; + +&sdhc_1 { -+ status = "okay"; ++ status = "okay"; +}; + +&tlmm { -+ button_default: button-default-state { -+ pins = "gpio35", "gpio37"; -+ function = "gpio"; -+ drive-strength = <2>; -+ bias-pull-up; -+ }; -+ -+ gpio_leds_default: gpio-leds-default-state { -+ pins = "gpio20", "gpio21"; -+ function = "gpio"; -+ drive-strength = <2>; -+ bias-disable; -+ }; -+ -+ spi5_default: spi5-default-state { -+ pins = "gpio16", "gpio17", "gpio19"; -+ function = "blsp_spi5"; -+ drive-strength = <8>; -+ bias-disable; -+ }; -+ -+ spi5_cs_default: spi5-cs-default-state { -+ pins = "gpio18"; ++ panel_default: panel-default-state { ++ pins = "gpio25", "gpio30"; + function = "gpio"; + drive-strength = <8>; + bias-disable; -+ output-high; + }; + + usb_id_default: usb-id-default-state { @@ -201,13 +141,3 @@ Index: arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts + bias-pull-up; + }; +}; -+ -+&pm8916_mpps { -+ pwm_out: pwm-out-state { -+ pins = "mpp4"; -+ function = "digital"; -+ power-source = ; -+ output-low; -+ qcom,dtest = <1>; -+ }; -+};