Path: blob/master/Documentation/devicetree/bindings/hwmon/microchip,mcp9982.yaml
170954 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/microchip,mcp9982.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Microchip MCP998X/33 and MCP998XD/33D Temperature Monitor78maintainers:9- Victor Duicu <victor.duicu@microchip.com>1011description: |12The MCP998X/33 and MCP998XD/33D family is a high-accuracy 2-wire13multichannel automotive temperature monitor.14The datasheet can be found here:15https://ww1.microchip.com/downloads/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP998X-Family-Data-Sheet-DS20006827.pdf1617properties:18compatible:19enum:20- microchip,mcp993321- microchip,mcp9933d22- microchip,mcp998223- microchip,mcp9982d24- microchip,mcp998325- microchip,mcp9983d26- microchip,mcp998427- microchip,mcp9984d28- microchip,mcp998529- microchip,mcp9985d3031reg:32maxItems: 13334interrupts:35minItems: 136maxItems: 23738interrupt-names:39description:40The chip family has three different interrupt pins divided among them.41The chips without "D" have alert-therm and therm-addr.42The chips with "D" have alert-therm and sys-shtdwn.43minItems: 144items:45- enum: [alert-therm, therm-addr, sys-shtdwn]46- enum: [therm-addr, sys-shtdwn]4748"#address-cells":49const: 15051"#size-cells":52const: 05354microchip,enable-anti-parallel:55description:56Enable anti-parallel diode mode operation.57MCP9984/84D/85/85D and MCP9933/33D support reading two external diodes58in anti-parallel connection on the same set of pins.59type: boolean6061microchip,parasitic-res-on-channel1-2:62description:63Indicates that the chip and the diodes/transistors are sufficiently far64apart that a parasitic resistance is added to the wires, which can affect65the measurements. Due to the anti-parallel diode connections, channels661 and 2 are affected together.67type: boolean6869microchip,parasitic-res-on-channel3-4:70description:71Indicates that the chip and the diodes/transistors are sufficiently far72apart that a parasitic resistance is added to the wires, which can affect73the measurements. Due to the anti-parallel diode connections, channels743 and 4 are affected together.75type: boolean7677microchip,power-state:78description:79The chip can be set in Run state or Standby state. In Run state the ADC80is converting on all channels at the programmed conversion rate.81In Standby state the host must initiate a conversion cycle by writing82to the One-Shot register.83True value sets Run state.84Chips with "D" in the name can only be set in Run mode.85type: boolean8687vdd-supply: true8889patternProperties:90"^channel@[1-4]$":91description:92Represents the external temperature channels to which93a remote diode is connected.94type: object9596properties:97reg:98items:99maxItems: 1100101label:102description: Unique name to identify which channel this is.103104required:105- reg106107additionalProperties: false108109required:110- compatible111- reg112- vdd-supply113114allOf:115- if:116properties:117compatible:118contains:119enum:120- microchip,mcp9982d121- microchip,mcp9983d122- microchip,mcp9984d123- microchip,mcp9985d124- microchip,mcp9933d125then:126properties:127interrupt-names:128items:129enum:130- alert-therm131- sys-shtdwn132required:133- microchip,power-state134- microchip,parasitic-res-on-channel1-2135else:136properties:137microchip,power-state: true138interrupt-names:139items:140enum:141- alert-therm142- therm-addr143144- if:145properties:146compatible:147contains:148enum:149- microchip,mcp9983d150- microchip,mcp9984d151- microchip,mcp9985d152then:153required:154- microchip,parasitic-res-on-channel3-4155156- if:157properties:158compatible:159contains:160enum:161- microchip,mcp9982162- microchip,mcp9982d163then:164properties:165microchip,enable-anti-parallel: false166patternProperties:167"^channel@[2-4]$": false168169- if:170properties:171compatible:172contains:173enum:174- microchip,mcp9983175- microchip,mcp9983d176then:177properties:178microchip,enable-anti-parallel: false179patternProperties:180"^channel@[3-4]$": false181182- if:183properties:184compatible:185contains:186enum:187- microchip,mcp9933188- microchip,mcp9933d189then:190patternProperties:191"^channel@[3-4]$": false192193- if:194properties:195compatible:196contains:197enum:198- microchip,mcp9984199- microchip,mcp9984d200then:201properties:202channel@4: false203204additionalProperties: false205206examples:207- |208i2c {209#address-cells = <1>;210#size-cells = <0>;211212temperature-sensor@4c {213compatible = "microchip,mcp9985";214reg = <0x4c>;215216#address-cells = <1>;217#size-cells = <0>;218219microchip,enable-anti-parallel;220microchip,parasitic-res-on-channel1-2;221microchip,parasitic-res-on-channel3-4;222vdd-supply = <&vdd>;223224channel@1 {225reg = <1>;226label = "Room Temperature";227};228229channel@2 {230reg = <2>;231label = "GPU Temperature";232};233};234};235236...237238239