configurations: system1: update ADC index's
The initial index values were set assuming they matched up with the
actual A/D ports on the AST2600. This was an incorrect assumption as the
index values really just match up with the order the channels are
defined within the iio-hwmon section of the dts:
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&p12v_vd 0>, <&p5v_aux_vd 0>,
<&p5v_bmc_aux_vd 0>, <&p3v3_aux_vd 0>,
<&p3v3_bmc_aux_vd 0>, <&p1v8_bmc_aux_vd 0>,
<&adc1 4>, <&adc0 2>, <&adc1 0>,
<&p2v5_aux_vd 0>, <&adc1 7>;
};
Tested:
- Confirmed all sensors are now on d-bus
```
root@system1:/sys/class/hwmon/hwmon16# busctl tree xyz.openbmc_project.ADCSensor
`- /xyz
`- /xyz/openbmc_project
`- /xyz/openbmc_project/sensors
`- /xyz/openbmc_project/sensors/voltage
|- /xyz/openbmc_project/sensors/voltage/P12V
|- /xyz/openbmc_project/sensors/voltage/P1V2_BMC_AUX
|- /xyz/openbmc_project/sensors/voltage/P1V2_PHY1_LDO
|- /xyz/openbmc_project/sensors/voltage/P1V2_PHY2_LDO
|- /xyz/openbmc_project/sensors/voltage/P1V8_BMC_AUX
|- /xyz/openbmc_project/sensors/voltage/P2V5_AUX
|- /xyz/openbmc_project/sensors/voltage/P3V3_AUX_ADC
|- /xyz/openbmc_project/sensors/voltage/P3V3_BMC_AUX
|- /xyz/openbmc_project/sensors/voltage/P5V_AUX_ADC
`- /xyz/openbmc_project/sensors/voltage/P5V_BMC_AUX_ADC
```
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I315b4672001e39caff0a9943d8391cc5873bb2ad
diff --git a/configurations/system1_baseboard.json b/configurations/system1_baseboard.json
index 4aa7ad1..496cb1a 100644
--- a/configurations/system1_baseboard.json
+++ b/configurations/system1_baseboard.json
@@ -1,7 +1,7 @@
{
"Exposes": [
{
- "Index": 11,
+ "Index": 0,
"Name": "P12V",
"PowerState": "Always",
"ScaleFactor": 1.0,
@@ -34,7 +34,7 @@
"Type": "ADC"
},
{
- "Index": 13,
+ "Index": 1,
"Name": "P5V_AUX_ADC",
"PowerState": "Always",
"ScaleFactor": 1.0,
@@ -67,7 +67,7 @@
"Type": "ADC"
},
{
- "Index": 3,
+ "Index": 2,
"Name": "P5V_BMC_AUX_ADC",
"PowerState": "Always",
"ScaleFactor": 1.0,
@@ -100,7 +100,7 @@
"Type": "ADC"
},
{
- "Index": 10,
+ "Index": 3,
"Name": "P3V3_AUX_ADC",
"PowerState": "Always",
"ScaleFactor": 1.0,
@@ -133,7 +133,7 @@
"Type": "ADC"
},
{
- "Index": 7,
+ "Index": 4,
"Name": "P3V3_BMC_AUX",
"PowerState": "Always",
"ScaleFactor": 1.0,
@@ -166,7 +166,7 @@
"Type": "ADC"
},
{
- "Index": 6,
+ "Index": 5,
"Name": "P1V8_BMC_AUX",
"PowerState": "Always",
"ScaleFactor": 1.0,
@@ -199,7 +199,7 @@
"Type": "ADC"
},
{
- "Index": 12,
+ "Index": 6,
"Name": "P1V2_BMC_AUX",
"PowerState": "Always",
"ScaleFactor": 1.0,
@@ -232,7 +232,7 @@
"Type": "ADC"
},
{
- "Index": 2,
+ "Index": 7,
"Name": "P1V2_PHY1_LDO",
"PowerState": "Always",
"ScaleFactor": 1.0,