convert sysfs gpio usage to libgpiod
Convert Chassis Intrusion Sensor to use gpio pin name.
Updated ChassisIntrusionSensor definition in
WFT baseboard.json and STP Baseboard.json
Remove "ID Button" from WFT baseboard.json
This requires gpio pin name added in ast2500.dts (227661)
IntrusionSensor code change in dbus-sensors (28351)
Tested:
Build and run, verified Chassis Intrusion Sensor still works.
WolfPass R2000 FanPresent pin was used to simulate intrusion sensor event.
Change-Id: Ib2f3c46dccd9cadb895c5d6d7b85502e44f6d956
Signed-off-by: ZhikuiRen <zhikui.ren@intel.com>
diff --git a/configurations/STP Baseboard.json b/configurations/STP Baseboard.json
index 7a74a70..d0bd3b9 100644
--- a/configurations/STP Baseboard.json
+++ b/configurations/STP Baseboard.json
@@ -513,19 +513,12 @@
"Type": "ADC"
},
{
- "BindGpioIntrusion": "Chassis Intrusion GPIO",
"Class": "Gpio",
+ "GpioPolarity": "Low",
"Name": "Chassis Intrusion Sensor",
"Type": "ChassisIntrusionSensor"
},
{
- "Direction": "Input",
- "Index": 143,
- "Name": "Chassis Intrusion GPIO",
- "Polarity": "Low",
- "Type": "Gpio"
- },
- {
"Name": "4U System Fan connector 1",
"Pwm": 1,
"Status": "disabled",