From nobody Tue Dec 2 02:19:57 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 2A0742F6939; Thu, 20 Nov 2025 07:15:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763622938; cv=none; b=AwX15P7NyiNt3q5VLKWV44/4WsyjL0HEdwLLCo0CVTHB04VpHSDUv1ol3eI1pCQsjL2Lma3dFEITRLAcNW112yt7TwoGJDljLrqTMfgs0PM5gn/5nK2zu4gCa9/QWdAQJ1XtRclrFlvqN0sEhGrONuQPe2ZL6EHNWoD6f8TF/BI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763622938; c=relaxed/simple; bh=AsPtnUcX/Ztr257pka/IKN28UEQmtgTxH1Rjq+MdmdI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TZRprdlUQkP05gTLptv0qgTEnVnoylsb9nHgGJeorzzU6JW9gwEkVMvRZFo7xU6Cx/BvMpOGncWfZIeYuw4gW/xLTYrofm5fv+U6r+zPNc6UnZWIgZxEOSWWFHJtyAP9052a4fGoh02DEIaA+kwUICqvnX1z0QOllkq+6uPUqKw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=ze89Z213; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="ze89Z213" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1763622936; x=1795158936; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AsPtnUcX/Ztr257pka/IKN28UEQmtgTxH1Rjq+MdmdI=; b=ze89Z213blRjS6SZloTXLfmt7743j2tjDXhHt2gKlgtT9exFOqXUzFQF f+0U+VkpBeCeFmFcvZwhMXNSr697uODi/SLxNUFQHqwH6AvPcXZca8xxb 6p/PvJmnOvDgWG+ZkDcFx0gsOzgD5D92k1RxwVQ95oVaGYkRKjTRk0eu8 5u5pP/DWfjXXwamNXL3LoE33HQtLWcEscIr1pkWKOcOp4aOm67H+kYa4k FUVRonpvTRD3LQCSQQWAjHR+TJIscXpntuohmVN7cBdnZctSG1+/Huho2 tjb+4w9jkQLdi4fcYZZhitfvdmYTG9dYl48KCvA3J7EI1IqxTFWNGHkK9 A==; X-CSE-ConnectionGUID: b7CqKYCHTP+tqyFnCAjU2Q== X-CSE-MsgGUID: VLTFCyo+QVuYC1q/PA49KA== X-IronPort-AV: E=Sophos;i="6.19,317,1754982000"; d="scan'208";a="55961198" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 20 Nov 2025 00:14:32 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Thu, 20 Nov 2025 00:13:58 -0700 Received: from vduicu-Virtual-Machine.mshome.net (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 20 Nov 2025 00:13:55 -0700 From: To: , , , , CC: , , , , , Subject: [PATCH v2 1/2] dt-bindings: hwmon: add support for MCP998X Date: Thu, 20 Nov 2025 09:12:45 +0200 Message-ID: <20251120071248.3767-2-victor.duicu@microchip.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251120071248.3767-1-victor.duicu@microchip.com> References: <20251120071248.3767-1-victor.duicu@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Victor Duicu This is the devicetree schema for Microchip MCP998X/33 and MCP998XD/33D Multichannel Automotive Temperature Monitor Family. Acked-by: Conor Dooley Signed-off-by: Victor Duicu --- .../bindings/hwmon/microchip,mcp9982.yaml | 205 ++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 211 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,mcp99= 82.yaml diff --git a/Documentation/devicetree/bindings/hwmon/microchip,mcp9982.yaml= b/Documentation/devicetree/bindings/hwmon/microchip,mcp9982.yaml new file mode 100644 index 000000000000..05ea3c6a5618 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/microchip,mcp9982.yaml @@ -0,0 +1,205 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/microchip,mcp9982.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MCP998X/33 and MCP998XD/33D Temperature Monitor + +maintainers: + - Victor Duicu + +description: | + The MCP998X/33 and MCP998XD/33D family is a high-accuracy 2-wire + multichannel automotive temperature monitor. + The datasheet can be found here: + https://ww1.microchip.com/downloads/aemDocuments/documents/MSLD/Produc= tDocuments/DataSheets/MCP998X-Family-Data-Sheet-DS20006827.pdf + +properties: + compatible: + enum: + - microchip,mcp9933 + - microchip,mcp9933d + - microchip,mcp9982 + - microchip,mcp9982d + - microchip,mcp9983 + - microchip,mcp9983d + - microchip,mcp9984 + - microchip,mcp9984d + - microchip,mcp9985 + - microchip,mcp9985d + + reg: + maxItems: 1 + + interrupts: + items: + - description: Signal coming from ALERT/THERM pin. + - description: Signal coming from THERM/ADDR pin. + - description: Signal coming from SYS_SHDN pin. + + interrupt-names: + items: + - const: alert-therm + - const: therm-addr + - const: sys-shutdown + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + microchip,enable-anti-parallel: + description: + Enable anti-parallel diode mode operation. + MCP9984/84D/85/85D and MCP9933/33D support reading two external diod= es + in anti-parallel connection on the same set of pins. + type: boolean + + microchip,parasitic-res-on-channel1-2: + description: + Indicates that the chip and the diodes/transistors are sufficiently = far + apart that a parasitic resistance is added to the wires, which can a= ffect + the measurements. Due to the anti-parallel diode connections, channe= ls + 1 and 2 are affected together. + type: boolean + + microchip,parasitic-res-on-channel3-4: + description: + Indicates that the chip and the diodes/transistors are sufficiently = far + apart that a parasitic resistance is added to the wires, which can a= ffect + the measurements. Due to the anti-parallel diode connections, channe= ls + 3 and 4 are affected together. + type: boolean + + microchip,power-state: + description: + The chip can be set in Run state or Standby state. In Run state the = ADC + is converting on all channels at the programmed conversion rate. + In Standby state the host must initiate a conversion cycle by writing + to the One-Shot register. + True value sets Run state. + Chips with "D" in the name can only be set in Run mode. + type: boolean + + vdd-supply: true + +patternProperties: + "^channel@[1-4]$": + description: + Represents the external temperature channels to which + a remote diode is connected. + type: object + + properties: + reg: + items: + minItems: 1 + maxItems: 4 + + label: + description: Unique name to identify which channel this is. + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + - vdd-supply + +allOf: + - if: + properties: + compatible: + contains: + enum: + - microchip,mcp9982d + - microchip,mcp9983d + - microchip,mcp9984d + - microchip,mcp9985d + - microchip,mcp9933d + then: + properties: + interrupts-names: + items: + - const: alert-therm + - const: sys-shutdown + required: + - microchip,power-state + else: + properties: + interrupts-names: + items: + - const: alert-therm + - const: therm-addr + microchip,power-state: true + + - if: + properties: + compatible: + contains: + pattern: '^microchip,mcp998(2|3)$' + then: + properties: + microchip,enable-anti-parallel: false + + - if: + properties: + compatible: + contains: + pattern: '^microchip,mcp998(2|3)d$' + then: + properties: + microchip,enable-anti-parallel: false + required: + - microchip,parasitic-res-on-channel1-2 + - microchip,parasitic-res-on-channel3-4 + + - if: + properties: + compatible: + contains: + pattern: '^microchip,mcp99(33|8[4-5])d$' + then: + required: + - microchip,parasitic-res-on-channel1-2 + - microchip,parasitic-res-on-channel3-4 + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + temperature-sensor@4c { + compatible =3D "microchip,mcp9985"; + reg =3D <0x4c>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + microchip,enable-anti-parallel; + microchip,parasitic-res-on-channel1-2; + microchip,parasitic-res-on-channel3-4; + + vdd-supply =3D <&vdd>; + + channel@1 { + reg =3D <1>; + label =3D "Room Temperature"; + }; + + channel@2 { + reg =3D <2>; + label =3D "GPU Temperature"; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 4fda7ce36d74..c0fd4deebed0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16937,6 +16937,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml F: drivers/iio/adc/mcp3911.c =20 +MICROCHIP MCP9982 TEMPERATURE DRIVER +M: Victor Duicu +L: linux-hwmon@vger.kernel.org +S: Supported +F: Documentation/devicetree/bindings/hwmon/microchip,mcp9982.yaml + MICROCHIP MMC/SD/SDIO MCI DRIVER M: Aubin Constans S: Maintained --=20 2.48.1