From 0d33d34eed704220196f6fcea08b26b4022ad219 Mon Sep 17 00:00:00 2001 From: Philippe Simons Date: Fri, 7 Nov 2025 21:18:24 +0100 Subject: [PATCH] sm8550: restore power led and fan --- ...4--dts--qcom--Add-AYN-QCS8550-Common.patch | 41 ++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/projects/ROCKNIX/devices/SM8550/patches/linux/0200_arm64--dts--qcom--Add-AYN-QCS8550-Common.patch b/projects/ROCKNIX/devices/SM8550/patches/linux/0200_arm64--dts--qcom--Add-AYN-QCS8550-Common.patch index cffc8ac001..33a5d76ad0 100644 --- a/projects/ROCKNIX/devices/SM8550/patches/linux/0200_arm64--dts--qcom--Add-AYN-QCS8550-Common.patch +++ b/projects/ROCKNIX/devices/SM8550/patches/linux/0200_arm64--dts--qcom--Add-AYN-QCS8550-Common.patch @@ -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 = ; ++ label = "power-led"; ++ ++ #address-cells = <1>; ++ #size-cells = <0>; ++ ++ red@1 { ++ reg = <1>; ++ color = ; ++ }; ++ ++ green@2 { ++ reg = <2>; ++ color = ; ++ }; ++ ++ blue@3 { ++ reg = <3>; ++ color = ; ++ }; ++ }; +}; + +&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";