Skip to content

Commit 748022e

Browse files
Rahul Tanwargroeck
authored andcommitted
hwmon: Add DT bindings schema for PVT controller
PVT controller (MR75203) is used to configure & control Moortec embedded analog IP which contains temprature sensor(TS), voltage monitor(VM) & process detector(PD) modules. Add DT bindings schema for PVT controller. Signed-off-by: Rahul Tanwar <rahul.tanwar@linux.intel.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/b540b49ca47d75c5f716f8a4e4eed0664a1116bf.1601889876.git.rahul.tanwar@linux.intel.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent efc2360 commit 748022e

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/moortec,mr75203.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Moortec Semiconductor MR75203 PVT Controller bindings
8+
9+
maintainers:
10+
- Rahul Tanwar <rtanwar@maxlinear.com>
11+
12+
properties:
13+
compatible:
14+
const: moortec,mr75203
15+
16+
reg:
17+
items:
18+
- description: PVT common registers
19+
- description: PVT temprature sensor registers
20+
- description: PVT process detector registers
21+
- description: PVT voltage monitor registers
22+
23+
reg-names:
24+
items:
25+
- const: common
26+
- const: ts
27+
- const: pd
28+
- const: vm
29+
30+
intel,vm-map:
31+
description:
32+
PVT controller has 5 VM (voltage monitor) sensors.
33+
vm-map defines CPU core to VM instance mapping. A
34+
value of 0xff means that VM sensor is unused.
35+
$ref: /schemas/types.yaml#definitions/uint8-array
36+
maxItems: 5
37+
38+
clocks:
39+
maxItems: 1
40+
41+
resets:
42+
maxItems: 1
43+
44+
"#thermal-sensor-cells":
45+
const: 1
46+
47+
required:
48+
- compatible
49+
- reg
50+
- reg-names
51+
- intel,vm-map
52+
- clocks
53+
- resets
54+
- "#thermal-sensor-cells"
55+
56+
additionalProperties: false
57+
58+
examples:
59+
- |
60+
pvt: pvt@e0680000 {
61+
compatible = "moortec,mr75203";
62+
reg = <0xe0680000 0x80>,
63+
<0xe0680080 0x180>,
64+
<0xe0680200 0x200>,
65+
<0xe0680400 0xc00>;
66+
reg-names = "common", "ts", "pd", "vm";
67+
intel,vm-map = [03 01 04 ff ff];
68+
clocks = <&osc0>;
69+
resets = <&rcu0 0x40 7>;
70+
#thermal-sensor-cells = <1>;
71+
};

0 commit comments

Comments
 (0)