schemas: legacy: add PSUSensor patternProperties
Description
Add the Name and Scale properties for in_power and in_current in the
PSUSensor's patternProperties.
Moitvation
The driver file for rtq6056 is as follows; therefore, additional
properties need to be added.
buffer
buffer0
current_timestamp_clock
dev
in_current3_label
in_current3_raw
in_current3_sampling_frequency
in_power2_label
in_power2_raw
in_power2_sampling_frequency
in_power2_scale
in_voltage0_label
in_voltage0_raw
in_voltage0_sampling_frequency
in_voltage0_sampling_frequency_available
in_voltage0_scale
in_voltage1_label
in_voltage1_raw
in_voltage1_sampling_frequency
in_voltage1_sampling_frequency_available
in_voltage1_scale
name
oversampling_ratio
oversampling_ratio_available
power
scan_elements
shunt_resistor
subsystem
trigger
uevent
Change-Id: If975caa4852db470a513868fa8734d9c27108368
Signed-off-by: Andy Hsu <andy.hsu.wiwynn@gmail.com>
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 01ee9fe..4aa9521 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -792,13 +792,13 @@
"(vin|vmon|iin|pin|maxpin)_Name$": {
"$ref": "#/$defs/Types/Name"
},
- "(in|in_voltage|vout)(1[0-7]|[0-9])_Name$": {
+ "(in|in_voltage|vout|in_current|in_power)(1[0-7]|[0-9])_Name$": {
"$ref": "#/$defs/Types/Name"
},
"(curr|iin|iout|pin|pout|power|temp)(1[0-7]|[1-9])_Name$": {
"$ref": "#/$defs/Types/Name"
},
- "(in|in_voltage)(1[0-7]|[0-9])_Scale$": {
+ "(in|in_voltage|in_current|in_power)(1[0-7]|[0-9])_Scale$": {
"$ref": "#/$defs/Types/ScaleValue"
},
"(curr|power|iout)(1[0-7]|[1-9])_Scale$": {