leds ok
This commit is contained in:
1 parent
296cf25b5a
commit
c768a29246
1 file changed
+18
-17
@@ -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 = <LED_COLOR_ID_RED>;
|
||||
+ gpios = <&tlmm 84 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+
|
||||
+ led-wan-green {
|
||||
+ function = LED_FUNCTION_WAN;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+
|
||||
+ led-battery-green {
|
||||
+ function = LED_FUNCTION_CHARGING;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ 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 = <LED_COLOR_ID_RED>;
|
||||
+ gpios = <&tlmm 72 GPIO_ACTIVE_HIGH>;
|
||||
+};
|
||||
+
|
||||
+/* LED WLAN verde (componente verde del bicolor) */
|
||||
+&led_g {
|
||||
+ function = LED_FUNCTION_WLAN;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&tlmm 73 GPIO_ACTIVE_HIGH>;
|
||||
+};
|
||||
+
|
||||
+/* LED WAN verde (componente verde del bicolor) */
|
||||
+&led_b {
|
||||
+ function = LED_FUNCTION_WAN;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
|
||||
+ function = LED_FUNCTION_CHARGING;
|
||||
+ color = <LED_COLOR_ID_RED>;
|
||||
+ 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";
|
||||
+};
|
||||
Reference in new issue
Block a user