diff --git a/msm89xx/patches-6.12/805-arm64-dts-qcom-add-msm8916-generic-m9s.patch b/msm89xx/patches-6.12/805-arm64-dts-qcom-add-msm8916-generic-m9s.patch index 92f9145..f8bcc5b 100644 --- a/msm89xx/patches-6.12/805-arm64-dts-qcom-add-msm8916-generic-m9s.patch +++ b/msm89xx/patches-6.12/805-arm64-dts-qcom-add-msm8916-generic-m9s.patch @@ -1,6 +1,6 @@ --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-generic-m9s.dts -@@ -0,0 +1,117 @@ +@@ -0,0 +1,118 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; @@ -13,7 +13,6 @@ + model = "M9S 4G LTE Mobile WiFi Router"; + compatible = "generic,m9s", "qcom,msm8916"; + -+ /* Batería - Voltaje máximo corregido a 4.4V */ + bat: battery { + compatible = "simple-battery"; + voltage-min-design-microvolt = <3400000>; @@ -35,7 +34,6 @@ + <3336000 1>, <3000000 0>; + }; + -+ /* USB ID detection - GPIO 110 */ + usb_id: usb-id { + compatible = "linux,extcon-usb-gpio"; + id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; @@ -43,7 +41,6 @@ + pinctrl-0 = <&usb_id_default>; + }; + -+ /* LED WLAN rojo (componente rojo del LED bicolor) */ + leds-extra { + compatible = "gpio-leds"; + @@ -52,10 +49,22 @@ + color = ; + gpios = <&tlmm 84 GPIO_ACTIVE_HIGH>; + }; ++ ++ led-wan-green { ++ function = LED_FUNCTION_WAN; ++ color = ; ++ gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>; ++ }; ++ ++ led-battery-green { ++ function = LED_FUNCTION_CHARGING; ++ color = ; ++ gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; ++ default-state = "on"; ++ }; + }; +}; + -+/* USB con extcon */ +&usb { + extcon = <&usb_id>, <&usb_id>; +}; @@ -64,35 +73,28 @@ + extcon = <&usb_id>; +}; + -+/* Botón Reset - GPIO 102 */ +&button_restart { + gpios = <&tlmm 102 GPIO_ACTIVE_LOW>; +}; + -+/* LEDs - 2 LEDs bicolores (WAN y WLAN) = 4 componentes */ -+ -+/* LED WAN rojo (componente rojo del bicolor) */ +&led_r { + function = LED_FUNCTION_WAN; + color = ; + gpios = <&tlmm 72 GPIO_ACTIVE_HIGH>; +}; + -+/* LED WLAN verde (componente verde del bicolor) */ +&led_g { + function = LED_FUNCTION_WLAN; + color = ; + gpios = <&tlmm 73 GPIO_ACTIVE_HIGH>; +}; + -+/* LED WAN verde (componente verde del bicolor) */ +&led_b { -+ function = LED_FUNCTION_WAN; -+ color = ; -+ gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>; ++ function = LED_FUNCTION_CHARGING; ++ color = ; ++ gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>; +}; + -+/* BMS y Charger */ +&pm8916_bms { + monitored-battery = <&bat>; +}; @@ -101,7 +103,6 @@ + qcom,fast-charge-safe-voltage = <4400000>; +}; + -+/* Pinctrl definitions */ +&tlmm { + usb_id_default: usb-id-default-state { + pins = "gpio110"; @@ -116,5 +117,5 @@ +}; + +&gpio_leds_default { -+ pins = "gpio72", "gpio73", "gpio84", "gpio85"; ++ pins = "gpio0", "gpio1", "gpio72", "gpio73", "gpio84", "gpio85"; +};