Path: blob/master/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/moortec,mr75203.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Moortec Semiconductor MR75203 PVT Controller78maintainers:9- Rahul Tanwar <rtanwar@maxlinear.com>1011description: |12A Moortec PVT (Process, Voltage, Temperature) monitoring logic design can13include many different units.14Such a design will usually consists of several Moortec's embedded analog IPs,15and a single Moortec controller (mr75203) to configure and control the IPs.1617Some of the Moortec's analog hard IPs that can be used in a design:18*) Temperature Sensor (TS) - used to monitor core temperature (e.g. mr74137).19*) Voltage Monitor (VM) - used to monitor voltage levels (e.g. mr74138).20*) Process Detector (PD) - used to assess silicon speed (e.g. mr74139).21*) Delay Chain - ring oscillator connected to the PD, used to measure IO22based transistors (e.g. mr76008 ring oscillator at 1.1V, mr76007 ring23oscillator at 1.8V).24*) Pre Scaler - provides divide-by-X scaling of input voltage, which can then25be presented for VM for measurement within its range (e.g. mr76006 -26divide by 2 pre-scaler).2728TS, VM & PD also include a digital interface, which consists of configuration29inputs and measurement outputs.3031Some of the units have number of series, each series can have slightly32different characteristics.3334The mr75203 binding describes configuration for the controller unit, but also35for some of the analog IPs.3637properties:38compatible:39const: moortec,mr752034041reg:42items:43- description: PVT common registers44- description: PVT temperature sensor registers45- description: PVT process detector registers46- description: PVT voltage monitor registers4748reg-names:49items:50- const: common51- const: ts52- const: pd53- const: vm5455intel,vm-map:56description:57PVT controller has 5 VM (voltage monitor) sensors.58vm-map defines CPU core to VM instance mapping. A59value of 0xff means that VM sensor is unused.60$ref: /schemas/types.yaml#/definitions/uint8-array61maxItems: 56263clocks:64maxItems: 16566resets:67maxItems: 16869"#thermal-sensor-cells":70const: 17172moortec,vm-active-channels:73description:74Defines the number of channels per VM that are actually used and are75connected to some input source.76Maximum number of items - number of VMs.77Maximum value of each item - number of channels.78Minimum value of each item - 0 (which means entire VM sensor is not used).79$ref: /schemas/types.yaml#/definitions/uint8-array8081moortec,vm-pre-scaler-x2:82description:83Defines the channels that use a mr76006 pre-scaler to divide the input84source by 2.85The pre-scaler is used for input sources that exceed the VM input range.86The driver uses this information to present to the user with the actual87value of the voltage source.88For channels that are not listed, no pre-scaler is assumed.89Maximum number of items - total number of channels in all VMs.90Each channel should not appear more than once.91$ref: /schemas/types.yaml#/definitions/uint8-array9293moortec,ts-series:94description:95Definition of the temperature equation and coefficients that shall be96used to convert the digital output to value in milli-Celsius.97minimum: 598maximum: 699default: 5100$ref: /schemas/types.yaml#/definitions/uint32101102moortec,ts-coeff-g:103description:104G coefficient for temperature equation.105Default for series 5 = 60000106Default for series 6 = 57400107multipleOf: 100108minimum: 1000109$ref: /schemas/types.yaml#/definitions/uint32110111moortec,ts-coeff-h:112description:113H coefficient for temperature equation.114Default for series 5 = 200000115Default for series 6 = 249400116multipleOf: 100117minimum: 1000118$ref: /schemas/types.yaml#/definitions/uint32119120moortec,ts-coeff-cal5:121description:122cal5 coefficient for temperature equation.123Default for series 5 = 4094124Default for series 6 = 4096125minimum: 1126$ref: /schemas/types.yaml#/definitions/uint32127128moortec,ts-coeff-j:129description:130J coefficient for temperature equation.131Default for series 5 = -100132Default for series 6 = 0133multipleOf: 100134maximum: 0135$ref: /schemas/types.yaml#/definitions/int32136137required:138- compatible139- reg140- reg-names141- clocks142- "#thermal-sensor-cells"143144additionalProperties: false145146examples:147- |148pvt: pvt@e0680000 {149compatible = "moortec,mr75203";150reg = <0xe0680000 0x80>,151<0xe0680080 0x180>,152<0xe0680200 0x200>,153<0xe0680400 0xc00>;154reg-names = "common", "ts", "pd", "vm";155intel,vm-map = [03 01 04 ff ff];156clocks = <&osc0>;157resets = <&rcu0 0x40 7>;158moortec,vm-active-channels = /bits/ 8 <0x10 0x05>;159moortec,vm-pre-scaler-x2 = /bits/ 8 <5 6 20>;160moortec,ts-coeff-g = <61400>;161moortec,ts-coeff-h = <253700>;162#thermal-sensor-cells = <1>;163};164165166