Merge pull request #1979 from loki666/odin2-power-led

sm8550: restore power led and fan
This commit is contained in:
Philippe Simons
2025-11-07 21:19:28 +01:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ new file mode 100644
index 000000000000..0954c1854a05
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/qcs8550-ayn-common.dtsi
@@ -0,0 +1,1661 @@
@@ -0,0 +1,1698 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2025, Teguh Sobirin.
@@ -118,7 +118,14 @@ index 000000000000..0954c1854a05
+ pwms = <&pm8550_pwm 3 40000>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&fan_pwm_active>;
+ pinctrl-0 = <&fan_pwm_active>, <&fan_int>;
+
+ pulses-per-revolution = <4>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+
+ cooling-levels = <0 40 65 75 90 120 150 200>;
+ #cooling-cells = <2>;
+ };
+
+ reserved-memory {
@@ -1301,6 +1308,29 @@ index 000000000000..0954c1854a05
+
+&pm8550_pwm {
+ status = "okay";
+
+ power_led {
+ color = <LED_COLOR_ID_RGB>;
+ label = "power-led";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ red@1 {
+ reg = <1>;
+ color = <LED_COLOR_ID_RED>;
+ };
+
+ green@2 {
+ reg = <2>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ blue@3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_BLUE>;
+ };
+ };
+};
+
+&pm8550b_eusb2_repeater {
@@ -1489,6 +1519,13 @@ index 000000000000..0954c1854a05
+ output-low;
+ };
+
+ fan_int: fan-int-state {
+ pins = "gpio13";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ mcu_en_active: mcu-en-active-state {
+ pins = "gpio12";
+ function = "gpio";