From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1FBAB3328FA; Tue, 12 May 2026 05:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778563300; cv=none; b=CpEaz4J9Qbw4FWPsRaAYEB6RVc4Zm21VRp9nYuOQ3jjwC/h7j8ko7XVHdhEO7tMy3Ag2Xx1F+fi4fSvW7kp3zlSi/UMJT+Whg6dd4svyVZB4I11OBAOZ6tLeXxrHmS3EHqa5OLkDbWsRohpf+55xjB+7BqW0C5WDFtpoGJss34c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778563300; c=relaxed/simple; bh=aGHT9z1n3C9+p+Out5mHqpcJwPXX+WklX7bs9Uz0sH8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kiDZGuiYCABk15YNVrgbzBkfwR4m8afz44x0UIBbwoaSKGlP5CL6Q2cweJMo/R0DUwOwQUqYDRkQOWJ/ebiC/zcAfxz2MYHrjz9bAwdEnWpCoFnATxPgIth044qJTe4Iz3H4x2AlCE0xIlV5VOqAIv26mMf1AhYEoW5/c/X2EvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l09k1Uam; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l09k1Uam" Received: by smtp.kernel.org (Postfix) with ESMTPS id E00B7C4AF18; Tue, 12 May 2026 05:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778563300; bh=aGHT9z1n3C9+p+Out5mHqpcJwPXX+WklX7bs9Uz0sH8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=l09k1Uam453DaWI8qML4bLCZQ2dTuVOdbDa6f7b6qLpbrprwQLPE3lS4+g4fdm5XM VpDv6RTYiErKWDblTNhbgKTfL3jT+JBA3brMS0RNLbt7DL9hSo7fsNvfX0e97wZxAM Gfh/MPlwPPupLTmTzHH7N3SkN/CTqDicJrx6PFSTK1eUvofdmoL7+CM08gYAGWnF40 EQn46AC0anELq6ZM8z82O33cjs3txzU2ocFAuPWB4ce3ifO9AJQnx5AWMwwTZirhJw QiCcLNgAsMwjalQvKp0vCPSHB9hPjOd0t4pmoEpBXOau/UQuLDqPwbh9XECHYPsYpk WZQNuV9+JLLbg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6CC6CD4F22; Tue, 12 May 2026 05:21:39 +0000 (UTC) From: Roman Vivchar via B4 Relay Date: Tue, 12 May 2026 08:18:18 +0300 Subject: [PATCH v2 04/16] dt-bindings: mfd: mediatek: mt6397: add mt6323 PMIC thermal Precedence: bulk X-Mailing-List: linux-pm@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: <20260512-mt6323-v2-4-3efcba579e88@protonmail.com> References: <20260512-mt6323-v2-0-3efcba579e88@protonmail.com> In-Reply-To: <20260512-mt6323-v2-0-3efcba579e88@protonmail.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Sen Chu , Sean Wang , Macpaul Lin , Lee Jones , Roman Vivchar , Srinivas Kandagatla , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, Ben Grisdale X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778563297; l=2547; i=rva333@protonmail.com; s=20260510; h=from:subject:message-id; bh=ZpxlgI78YGvqL6f2ifb/QUYUxotfv5VA81LyEjs6Ymg=; b=5BpWueZ6TOkGclDn87Sy1sIhi9IvwPL+bOAayzD9G/vf7l+pNOHAza/evuYJiGk/kmkMyaTE6 fLx7vC0yprjDBloMp/NHwxiCGAjDohboW+0tPC3yFrcGLM/t0thkt9k X-Developer-Key: i=rva333@protonmail.com; a=ed25519; pk=zww/nWjBGoQ4POXCG0BV6fx2iuXK6jx77rsKPA5YK5Y= X-Endpoint-Received: by B4 Relay for rva333@protonmail.com/20260510 with auth_id=777 X-Original-From: Roman Vivchar Reply-To: rva333@protonmail.com From: Roman Vivchar The MediaTek mt6323 PMIC temperature can be read using AUXADC channel. Add the devicetree binding documentation for the MediaTek mt6323 thermal. While mt6323 exposes only a single thermal sensor, newer PMICs like mt6358 provide more than one sensor. Therefore define #thermal-sensor-cells as 1 to avoid breaking devicetree ABI in the future. Signed-off-by: Roman Vivchar --- .../devicetree/bindings/mfd/mediatek,mt6397.yaml | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml index beaa67bf0df2..2c826737189e 100644 --- a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml @@ -242,6 +242,31 @@ properties: description: Pin controller + thermal: + type: object + unevaluatedProperties: false + description: + PMIC thermal monitoring + + properties: + compatible: + const: mediatek,mt6323-thermal + + io-channels: + description: + IIO channel for the AUXADC to read raw data from. + maxItems: 1 + + nvmem-cells: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + required: + - compatible + - io-channels + - "#thermal-sensor-cells" + required: - compatible - regulators @@ -250,6 +275,7 @@ additionalProperties: false examples: - | + #include #include #include @@ -262,6 +288,16 @@ examples: efuse { compatible = "mediatek,mt6323-efuse"; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + mt6323_thermal_calibration_data: thermal-data@14 { + reg = <0x14 0x4>; + }; + }; }; leds { @@ -511,6 +547,14 @@ examples: rtc { compatible = "mediatek,mt6323-rtc"; }; + + thermal { + compatible = "mediatek,mt6323-thermal"; + nvmem-cells = <&mt6323_thermal_calibration_data>; + + io-channels = <&mt6323_adc MT6323_AUXADC_CHIP_TEMP>; + #thermal-sensor-cells = <1>; + }; }; - | -- 2.54.0