soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs
authorHuisong Li <lihuisong@huawei.com>
Wed, 28 Aug 2024 10:49:55 +0000 (18:49 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Mon, 14 Oct 2024 08:54:50 +0000 (08:54 +0000)
commit23fe8112a23106e7dfc2b73fc52a60ea3eb64c20
tree23f6515c35059f5c90baf7260bb7d70355ec486a
parentb51878373a81bda3a790fd936507fd0643ef98b3
soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs

Kunpeng_hccs driver supports multiple HCCS types used on one platform at
the same time. In this case, to find which HCCS types are used on the
platform the user needs to scan the type attribute of all ports, which is
unfriendly to the user. In addition, the aggregated information is also
useful for global control like the low power feature.
So add the sysfs to show all HCCS types used on the platform.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs
drivers/soc/hisilicon/kunpeng_hccs.c
drivers/soc/hisilicon/kunpeng_hccs.h