From 48372b8df63402d46381fc6b2c81d64d01a6a600 Mon Sep 17 00:00:00 2001 From: Minghao Zhang Date: Thu, 25 Apr 2024 14:32:37 +0800 Subject: [PATCH] ARM: dts: qcom: enable fan controller for SunP HDK Enable Fan Controller driver for SunP HDK. Change-Id: I635c98d89862ca5a7cb9c90fd5c8a4f0c663ea1d Signed-off-by: Minghao Zhang --- qcom/sunp-hdk.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/qcom/sunp-hdk.dtsi b/qcom/sunp-hdk.dtsi index f1fc1b16..b06d28f4 100644 --- a/qcom/sunp-hdk.dtsi +++ b/qcom/sunp-hdk.dtsi @@ -57,3 +57,36 @@ &tlmm 51 0 &tlmm 161 0 &tlmm 162 0x2008>; }; }; + +&tlmm { + fan_enable_pin { + mux { + pins = "gpio182"; + function = "gpio"; + }; + + config { + pins = "gpio182"; + bias-pull-up; + drive-strength = <16>; + }; + }; +}; + +&qupv3_se3_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + + fancontroller: max31760@50 { + compatible = "maxim,max31760"; + reg = <0x50>; + #cooling-cells = <2>; + maxim,fan-num = <1>; + maxim,vdd-supply = <&BOB1>; + maxim,vcca-supply = <&L15B>; + regulator-name = "maxim,vdd", "maxim,vcca"; + maxim,pwr-en-gpio = <&tlmm 182 GPIO_ACTIVE_LOW>; + status = "ok"; + }; +};