Re: [PATCH v10 1/2] dt-bindings: hwmon: add support for MCP998X
From: Krzysztof Kozlowski
Date: Tue Feb 17 2026 - 15:13:08 EST
On Tue, Feb 17, 2026 at 04:06:13PM +0200, Victor Duicu wrote:
> This is the devicetree schema for Microchip MCP998X/33 and MCP998XD/33D
"Add"
See submitting patches.
> Multichannel Automotive Temperature Monitor Family.
...
> +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:
Your interrupt-names say 1 item is correct, so these are de-synced. They
should be always constrained the same way.
> + maxItems: 2
> +
> + interrupt-names:
> + description:
> + The chip family has three different interrupt pins divided among them.
> + The chips without "D" have alert-therm and therm-addr.
> + The chips with "D" have alert-therm and sys-shtdwn.
> + minItems: 1
> + maxItems: 2
> + items:
> + enum: [alert-therm, therm-addr, sys-shtdwn]
> +
> + "#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 diodes
> + 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 affect
> + the measurements. Due to the anti-parallel diode connections, channels
> + 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 affect
> + the measurements. Due to the anti-parallel diode connections, channels
> + 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:
> + maxItems: 1
> +
> + 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:
Missing constraints for interrupt:
> + interrupt-names:
> + not:
> + contains:
> + const: therm-addr
No, you need to list the items. This *must* be strictly constrained.
It's explicitly requested by writing bindings.
Best regards,
Krzysztof