configurations: yosemite4: Revise MEDUSA voltage sensor
Revise MEDUSA voltage sensors: INA238, ISL28022, RTQ6056.
1. Change RTQ6056 to read shunt voltage.
2. Revise voltage scale and threshold.
3. Add "in1_Min" and "in_voltage0_Min" in schemas/legacy.json.
Tested:
Check sensor reading of INA238, ISL28022, RTQ6056.
They all work fine.
Change-Id: I61ec1d6f98a1e5051486e2871b24e70f899e59ab
Signed-off-by: Yikai Tsai <yikai.tsai.wiwynn@gmail.com>
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 8b61fc2..d62cd77 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -275,6 +275,9 @@
"in1_Max": {
"$ref": "#/$defs/Types/in1_Max"
},
+ "in1_Min": {
+ "$ref": "#/$defs/Types/in1_Min"
+ },
"in1_Name": {
"$ref": "#/$defs/Types/in1_Name"
},
@@ -311,6 +314,9 @@
"in_voltage0_Max": {
"$ref": "#/$defs/Types/in_voltage0_Max"
},
+ "in_voltage0_Min": {
+ "$ref": "#/$defs/Types/in_voltage0_Min"
+ },
"in_voltage0_Name": {
"$ref": "#/$defs/Types/in_voltage0_Name"
},
@@ -1301,6 +1307,9 @@
"in1_Max": {
"type": "number"
},
+ "in1_Min": {
+ "type": "number"
+ },
"in1_Name": {
"type": "string"
},
@@ -1337,6 +1346,9 @@
"in_voltage0_Max": {
"type": "number"
},
+ "in_voltage0_Min": {
+ "type": "number"
+ },
"in_voltage0_Name": {
"type": "string"
},