From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E7A0456E0B for ; Fri, 31 Jul 2026 18:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785521311; cv=none; b=EAlmGpMXF3g3RfJuNh1jgtd6wyYtNWpLDwst0K0LqygMME53jE2AH5h+cHP6Clr5xdfJ/ap4NzK5fTcI01NmcLip3PHsmnGFD4LFi9JEuDy/jcb4ZyvvngePDlz6i79Di8k265XT2v5TT7I5sZh6nVeDjuV4Nb5s5jfXyIwY4KA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785521311; c=relaxed/simple; bh=mO+gDYYOZlpsCThsUuBoelFkdhsSXI+BY4fE278O65U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mY9bvhr/gZF9Fkj6f/JmHa7h6oa83FWNc2OR+kltcY9Lh9U7jPd3W1ScjGUKi/CNJcGj8F2K8THiqXUw7RpmDA+avObn9fiBbu7WyZHTPYe548zAu00Otrk8yRvQDVuiXqrqUCyA0LuGTJiGc1DCQVTyB1SuirXboL4eqd4AzVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=ERK/nvUp; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KoZ/VKR/; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="ERK/nvUp"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KoZ/VKR/" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66VFOiG4404127 for ; Fri, 31 Jul 2026 18:08:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= rA6ZQIWHiF7qqcfR+J75sTkMZyZ9Cf4arjw2D7g9ICc=; b=ERK/nvUp7ENbBrW+ tC9ilCdIJXd8reBjxq9xGETLAKO64LNZbSIqcEEVEMCuxRvjZye39bd1g0KOlGjh cBy90mUPRZJSNqdI7yPc8wN/gHUfmD75/HmLRqLUsZvUmIqQSTG7Tzxw/BncaFw2 82Woyt8prQgvzbaiUBgcm8aqHLKaTQHhalIJrl9OUA5ZYBQ7CcGYz+CIEATPw74n PQyEuZtKkbko5j8FUPsA2vyLEdE6tgStANbcqFcdzoU2rEYB2hEK2e00qVHO/7r0 LTJI2eY9D1rio1xLIU+nJJ0iO8zo8doqyTJ1WofKYd7Dxz7q1vvruinYiarKE4lX DBhNiw== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4frufkhnhq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 31 Jul 2026 18:08:28 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cb11535e6a1so998607a12.0 for ; Fri, 31 Jul 2026 11:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785521307; x=1786126107; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=rA6ZQIWHiF7qqcfR+J75sTkMZyZ9Cf4arjw2D7g9ICc=; b=KoZ/VKR/I+yLsGsNuPnqL5yqaXhTUYSujaYXg3VafHNo/PT2J5d7hEW41yhZvjY/r6 wBRFechfsD2EXE+ujCOovoslHFNz2eyCKpSr9SUDZs0YcbOrTARknBnj/pRVs+V1kbiH rRzBS1nj8Ck2Hdujw/nXudxB4f3zd9K9XLUS0qBlzz8h4m+G+uwqvPEIEfw/I5cplGEA qUlV9ZfOSCvYOKyvGdAyZrA3qW6iH5tM2KAQzYitGwqS1mWnu9gZohdfaT+wyb7O2y8E VoQQa5rqjz+E9iRN1aRAkC1JFng3wba5b1LwFFnFu5J9nZ1eU+/GKUNyg7J09tAi9MLT lwsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785521307; x=1786126107; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rA6ZQIWHiF7qqcfR+J75sTkMZyZ9Cf4arjw2D7g9ICc=; b=DWolyeLepUlEJaOU8fpzjg4iVN15plI7hglbZloCcGgxDFJlttNnpDy7/qkkqVSFOz ThRzqINX4J1KW+sry2deKr0RhR/vSv4k9cs//77Yj1sU7NWCGwE1gJVGCALbNT5Zhh6i Hgtw1xtBnuRXXb/NJeYLJi24aa+UfpO8HqiltrIC83SFz8HcCrveORUhH5AdTZtq6MEk 8hI9auSuoFS+jpolBCPWQjiPG4tVEmRvRs0mU1bIARQxazZnxhfw01M0+WqezGd1ZhN/ 65pRFuMjb1HXyvvJkIh4tiyY1cW4FIjmpwoqr31TUvzF6aXUKDWT4p97UOZgReo5l6SM NAjg== X-Forwarded-Encrypted: i=1; AHgh+RrrEWhts+WtqlHnGx+yD7ukDQ7gBe6gPmqroK3vmJs5mMw8D7lNukRnRlYnegyyWdCp+l43i9WY62hBe1s=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/m1w2sKglJU40QMjKM8aj3fooTw29k++F8toWfL9GKO1lctNt vJqm5f6OTlOhMert8FAxF3tCdNr5Ch0jiGiLj5/ETb5pnXktGi3xf0QDtgrqJzFfICzkHQV2qfe Ef7qsGkXXuE9X4wlriDHXBj3atzlH4pxi6xRlM8JKmEHzGc57CbaFsrdDNrcm763KaIN07g2EQ2 c= X-Gm-Gg: AR+sD11P1lANQfgGe6xYZN8i0TVp9yuEtCcwvuoJRIHW80S5hk+LzSldA1ECIi/AJai cv8Z2w7MNmDtsy/VEjeomxVZp2HwXfl7EP6uIAWIilCAevBJkXPv5ggXwq/WLfLaMQaUC1p3b7c NsDTDweOzxkjNd4VNQa4gAKvCCMvj11D8AYTzWzT6TfzxhQV1rNHKKhSwJQUr1lKnJH+l0wwbYo ATdb3StSwYaUHQz4DFX21U2fZoXNrn/tPa2XSMnLO40x4pN5FxxtkZABrclv24fS/UIO1INBbF8 Lna9J4+nuFnJr0V+yRM4Tv0ui4EQfIhYOXFPrPQm5xx3nfiEBW3XoF+ngxYLFbL11Ab1vJTLbrm ULmMy1u4JjHTWVvF6WSE= X-Received: by 2002:a05:6a20:4309:b0:3bf:b68f:4685 with SMTP id adf61e73a8af0-3c92a5e1636mr780934637.23.1785521307217; Fri, 31 Jul 2026 11:08:27 -0700 (PDT) X-Received: by 2002:a05:6a20:4309:b0:3bf:b68f:4685 with SMTP id adf61e73a8af0-3c92a5e1636mr780875637.23.1785521306714; Fri, 31 Jul 2026 11:08:26 -0700 (PDT) Received: from [10.213.109.130] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3153e06fe9fsm7069923eec.25.2026.07.31.11.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 11:08:26 -0700 (PDT) From: Jishnu Prakash Date: Fri, 31 Jul 2026 23:36:20 +0530 Subject: [PATCH 7/7] arm64: dts: qcom: kaanapali: Add ADC support for Kaanapali boards Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260731-pmic5_gen4_adc-v1-7-9c49b2eea6f9@oss.qualcomm.com> References: <20260731-pmic5_gen4_adc-v1-0-9c49b2eea6f9@oss.qualcomm.com> In-Reply-To: <20260731-pmic5_gen4_adc-v1-0-9c49b2eea6f9@oss.qualcomm.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Bjorn Andersson , Konrad Dybcio Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, Kamal Wadhwa , Anjelique Melendez , Manaf Meethalavalappu Pallikunhi , Priyansh Jain , Jishnu Prakash X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785521244; l=15724; i=jishnu.prakash@oss.qualcomm.com; s=20251014; h=from:subject:message-id; bh=mO+gDYYOZlpsCThsUuBoelFkdhsSXI+BY4fE278O65U=; b=EFTeLqmSx1yGoO6t8ls2EKL+GhTNvI7RXj0a2ZMC8/Z7MTaKFhCR8HSfiQTkUt9/CGOXxdFpR sZixAzZT0jfDmMrjiuKE1nCLBR3gDmxNyzh5TBSLixbR8RWCfH6IWMf X-Developer-Key: i=jishnu.prakash@oss.qualcomm.com; a=ed25519; pk=g89pXdLVwRjdTeQ+uX1QzvBO346E3hQAc1N7fcTXgmk= X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMxMDEzOSBTYWx0ZWRfX7p68FQrjxzgS vhBc2JVdIS3Rc3nRv442d4kbc9q36Ii2kaU/uOnWBWXCzYIMvz5wvnWZouN6Z4W1sBKCZk3LPnA 4/UtdUZW+uHAdoPhnMYVa7i1ZpEOO10= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzMxMDEzOSBTYWx0ZWRfXxVgHBqB9N8mB 3HqdhKVotKZgxpApdoO8l+6TVKnuuviwHaxRE2aoVsIkvuvbeip1FeQ+eyBeK0ErCIA39ueJjD+ qPPzss11fduj9iJrWkqknYBL0fLaRgr/tD8CZEFwCJsw/QHg7rlyTke337z1T1UJ+YPULh8fEzH C5wbZ5NjXfkLVs9LftsBAPwdAZ3k42NmYtLeyBbWePDPBmp83HAOpgz/JUiekfhYNDU0ScnZT1N kzDSHTaT8JOkl0PTA8y9FVektxWrC//y5cAtFK74r3wzaT0OxPiKPLSbbK16Tvxq7FVWdvL9Mq7 8iW3x4UIg/95nlWmpwBgopmLjhvoB5yv7worZwjET060lPpc4cSwxLcw5lhGbEsa9ac2mJ17sW6 5xd/oKMWYjQA1mH3M0H49CpkkBU6ketDXCppnLBmOOdYPg3WcqXxK3NduI5Fpr/oORXFwzScCUY 3nzH32ZWvEd1v4wcbVQ== X-Proofpoint-GUID: XmyosJvibUNKuHcrMC9HYiGwq4xKseZv X-Authority-Analysis: v=2.4 cv=BpOtB4X5 c=1 sm=1 tr=0 ts=6a6ce49c cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=suU82zYbK_tq1bt87swA:9 a=F6syS2wt7qVtwVF1:21 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-ORIG-GUID: XmyosJvibUNKuHcrMC9HYiGwq4xKseZv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-31_05,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 bulkscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 adultscore=0 priorityscore=1501 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607310139 Add the ADC channels under the PMK8850 ADC node for the other PMICS on the board with ADC peripherals. This includes die temperature and VPH power channels per PMIC and channels for available system thermistors. Add thermal zones corresponding to the thermistor channels to enable temperature monitoring. Also add io-channels and io-channel-names properties to the temp_alarm nodes so that they can get temperature reading from the newly added ADC die_temp channels. Signed-off-by: Jishnu Prakash --- arch/arm64/boot/dts/qcom/kaanapali-mtp.dts | 312 +++++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/kaanapali-qrd.dts | 312 +++++++++++++++++++++++++++++ 2 files changed, 624 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts b/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts index f9b5b5718b90..41636641f1ce 100644 --- a/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts +++ b/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts @@ -8,8 +8,10 @@ #include #include #include +#include #include #include "kaanapali.dtsi" +#include "qcom-adc5-gen4.h" #include "pm8010-kaanapali.dtsi" /* SPMI1: SID-12/13 */ #include "pmd8028-kaanapali.dtsi" /* SPMI1: SID-4 */ @@ -163,6 +165,152 @@ platform { }; }; + thermal-zones { + sys-0-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX1_THM_100K_PU(0, 0)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-1-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX1_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-2-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX2_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-3-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX3_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-4-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX4_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-5-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX6_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-6-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX4_THM_100K_PU(1, 7)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-7-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX4_GPIO_100K_PU(1, 7)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + }; + wcd939x: audio-codec { compatible = "qcom,wcd9395-codec", "qcom,wcd9390-codec"; @@ -981,6 +1129,14 @@ led-1 { }; }; +&pmh0101_gpios { + sys_therm_5_gpio3: sys-therm-5-gpio3-state { + pins = "gpio3"; + function = PMIC_GPIO_FUNC_NORMAL; + bias-high-impedance; + }; +}; + &pmh0101_pwm { status = "okay"; @@ -1008,6 +1164,11 @@ led@3 { }; }; +&pmh0101_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 1)>; + io-channel-names = "thermal"; +}; + &pmh0104_j_e1_gpios { bt_default: bt-default-state { pins = "gpio5"; @@ -1038,6 +1199,11 @@ sde_mdp_vsync_p_1p8_active: sde-mdp-vsync-p-1p8-active-state { }; }; +&pmh0110_d_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 3)>; + io-channel-names = "thermal"; +}; + &pmh0110_f_e0_gpios { sde_disp0_rst_1p2_active: sde-disp0-rst-1p2-active-state { pins = "gpio9"; @@ -1056,6 +1222,152 @@ sde_disp0_rst_1p8_active: sde-disp0-rst-1p8-active-state { }; }; +&pmh0110_f_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 5)>; + io-channel-names = "thermal"; +}; + +&pmh0110_g_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 6)>; + io-channel-names = "thermal"; +}; + +&pmh0110_i_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 8)>; + io-channel-names = "thermal"; +}; + +&pmih0108_e1_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(1, 7)>; + io-channel-names = "thermal"; +}; + +&pmk8850_vadc { + pinctrl-0 = <&sys_therm_5_gpio3>; + pinctrl-names = "default"; + + channel@103 { + reg = ; + label = "pmh0101_die_temp"; + }; + + channel@18e { + reg = ; + label = "pmh0101_vph_pwr"; + }; + + channel@303 { + reg = ; + label = "pmh0110_3_die_temp"; + }; + + channel@38e { + reg = ; + label = "pmh0110_3_vph_pwr"; + }; + + channel@503 { + reg = ; + label = "pmh0110_5_die_temp"; + }; + + channel@58e { + reg = ; + label = "pmh0110_5_vph_pwr"; + }; + + channel@603 { + reg = ; + label = "pmh0110_6_die_temp"; + }; + + channel@68e { + reg = ; + label = "pmh0110_6_vph_pwr"; + }; + + channel@803 { + reg = ; + label = "pmh0110_8_die_temp"; + }; + + channel@88e { + reg = ; + label = "pmh0110_8_vph_pwr"; + }; + + channel@2703 { + reg = ; + label = "pmih0108_e1_die_temp"; + }; + + channel@278e { + reg = ; + label = "pmih0108_e1_vph_pwr"; + }; + + channel@278f { + reg = ; + label = "pmih0108_e1_vbat_sns_qbg"; + }; + + channel@144 { + reg = ; + label = "pmh0101_therm_1"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@145 { + reg = ; + label = "pmh0101_therm_2"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@146 { + reg = ; + label = "pmh0101_therm_3"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@147 { + reg = ; + label = "pmh0101_therm_4"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@149 { + reg = ; + label = "pmh0101_therm_5"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@2747 { + reg = ; + label = "pmih0108_e1_therm_6"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@274d { + reg = ; + label = "pmih0108_e1_therm_7"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; +}; + &pon_resin { linux,code = ; diff --git a/arch/arm64/boot/dts/qcom/kaanapali-qrd.dts b/arch/arm64/boot/dts/qcom/kaanapali-qrd.dts index 55d02219ef4e..303e7b316901 100644 --- a/arch/arm64/boot/dts/qcom/kaanapali-qrd.dts +++ b/arch/arm64/boot/dts/qcom/kaanapali-qrd.dts @@ -8,8 +8,10 @@ #include #include #include +#include #include #include "kaanapali.dtsi" +#include "qcom-adc5-gen4.h" #include "pm8010-kaanapali.dtsi" /* SPMI1: SID-12/13 */ #include "pmd8028-kaanapali.dtsi" /* SPMI1: SID-4 */ @@ -80,6 +82,152 @@ key-volume-up { wakeup-source; }; }; + + thermal-zones { + sys-0-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX1_THM_100K_PU(0, 0)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-1-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX1_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-2-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX2_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-3-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX3_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-4-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX4_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-5-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX6_THM_100K_PU(0, 1)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-6-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX4_THM_100K_PU(1, 7)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + sys-7-thermal { + thermal-sensors = <&pmk8850_vadc ADC5_GEN4_AMUX4_GPIO_100K_PU(1, 7)>; + + trips { + trip0 { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + trip1 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + }; }; &apps_rsc { @@ -717,6 +865,14 @@ led-1 { }; }; +&pmh0101_gpios { + sys_therm_5_gpio3: sys-therm-5-gpio3-state { + pins = "gpio3"; + function = PMIC_GPIO_FUNC_NORMAL; + bias-high-impedance; + }; +}; + &pmh0101_pwm { status = "okay"; @@ -744,11 +900,167 @@ led@3 { }; }; +&pmh0101_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 1)>; + io-channel-names = "thermal"; +}; + +&pmh0110_d_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 3)>; + io-channel-names = "thermal"; +}; + +&pmh0110_f_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 5)>; + io-channel-names = "thermal"; +}; + +&pmh0110_g_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 6)>; + io-channel-names = "thermal"; +}; + +&pmh0110_i_e0_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(0, 8)>; + io-channel-names = "thermal"; +}; + &pmih0108_e1_eusb2_repeater { vdd18-supply = <&vreg_l15b_1p8>; vdd3-supply = <&vreg_l5b_3p1>; }; +&pmih0108_e1_temp_alarm { + io-channels = <&pmk8850_vadc ADC5_GEN4_DIE_TEMP(1, 7)>; + io-channel-names = "thermal"; +}; + +&pmk8850_vadc { + pinctrl-0 = <&sys_therm_5_gpio3>; + pinctrl-names = "default"; + + channel@103 { + reg = ; + label = "pmh0101_die_temp"; + }; + + channel@18e { + reg = ; + label = "pmh0101_vph_pwr"; + }; + + channel@303 { + reg = ; + label = "pmh0110_3_die_temp"; + }; + + channel@38e { + reg = ; + label = "pmh0110_3_vph_pwr"; + }; + + channel@503 { + reg = ; + label = "pmh0110_5_die_temp"; + }; + + channel@58e { + reg = ; + label = "pmh0110_5_vph_pwr"; + }; + + channel@603 { + reg = ; + label = "pmh0110_6_die_temp"; + }; + + channel@68e { + reg = ; + label = "pmh0110_6_vph_pwr"; + }; + + channel@803 { + reg = ; + label = "pmh0110_8_die_temp"; + }; + + channel@88e { + reg = ; + label = "pmh0110_8_vph_pwr"; + }; + + channel@2703 { + reg = ; + label = "pmih0108_e1_die_temp"; + }; + + channel@278e { + reg = ; + label = "pmih0108_e1_vph_pwr"; + }; + + channel@278f { + reg = ; + label = "pmih0108_e1_vbat_sns_qbg"; + }; + + channel@144 { + reg = ; + label = "pmh0101_therm_1"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@145 { + reg = ; + label = "pmh0101_therm_2"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@146 { + reg = ; + label = "pmh0101_therm_3"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@147 { + reg = ; + label = "pmh0101_therm_4"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@149 { + reg = ; + label = "pmh0101_therm_5"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@2747 { + reg = ; + label = "pmih0108_e1_therm_6"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + + channel@274d { + reg = ; + label = "pmih0108_e1_therm_7"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; +}; + &pon_resin { linux,code = ; -- 2.43.0