sonic-buildimage/platform/s3ip-sysfs/scripts/s3ip_sysfs_conf.json
tianshangfei f7d80e63db
The user framework module complies with s3ip sysfs specification (#12894)
Why I did it
The user framework module complies with s3ip sysfs specification

How I did it
1、 create a s3ip_sysfs service
2、 the s3ip_sysfs service call the “s3ip_sysfs_tool.sh” to install kernel module and run s3ip_load.py
3、 s3ip_load.py will parse the s3ip_sysfs_conf.json configuration file and create /sys_switch/ directory

How to verify it
A demo driver base on this framework will display the sysfs node wich conform to the s3ip sysfs specification
2022-12-14 22:34:55 +08:00

77 lines
1.8 KiB
JSON

{
"s3ip_syfs_paths": [
{
"path": "/sys_switch/temp_sensor",
"type" : "path",
"value" : "/sys/s3ip/temp_sensor",
"description": "temperature information"
},
{
"path": "/sys_switch/vol_sensor",
"type" : "path",
"value" : "/sys/s3ip/vol_sensor",
"description": "voltage sensor information"
},
{
"path": "/sys_switch/syseeprom",
"type" : "path",
"value" : "/sys/s3ip/syseeprom",
"description": "ONIE EEPROM"
},
{
"path": "/sys_switch/fan",
"type" : "path",
"value" : "/sys/s3ip/fan",
"description": "fan information"
},
{
"path": "/sys_switch/psu",
"type" : "path",
"value" : "/sys/s3ip/psu",
"description": "PSU information"
},
{
"path": "/sys_switch/transceiver",
"type" : "path",
"value" : "/sys/s3ip/transceiver",
"description": "transceiver information"
},
{
"path": "/sys_switch/sysled",
"type" : "path",
"value" : "/sys/s3ip/sysled",
"description": "SYS LED information"
},
{
"path": "/sys_switch/fpga",
"type" : "path",
"value" : "/sys/s3ip/fpga",
"description": "FPGA information"
},
{
"path": "/sys_switch/cpld",
"type" : "path",
"value" : "/sys/s3ip/cpld",
"description": "CPLD information"
},
{
"path": "/sys_switch/watchdog",
"type" : "path",
"value" : "/sys/s3ip/watchdog",
"description": "watchdog information"
},
{
"path": "/sys_switch/curr_sensor",
"type" : "path",
"value" : "/sys/s3ip/curr_sensor",
"description": "current sensor information"
},
{
"path": "/sys_switch/slot",
"type" : "path",
"value" : "/sys/s3ip/slot",
"description": "slot information"
}
]
}