From ce5de6b293313fc874012d2f64cbe52680d671c7 Mon Sep 17 00:00:00 2001 From: Oleksii Moisieiev Date: Mon, 29 Nov 2021 18:41:23 +0200 Subject: [PATCH] scmi: Introduce pinctrl scmi protocol driver Implementation of the SCMI client driver, which implements PINCTRL_PROTOCOL. This protocol has id 18 and described in DEN0056C document. This protocol is the part of the feature that was designed to separate pinctrl subsystem to SCP firmware. The idea is to separate communication of the pin control subsystemd with the HW to SCP firmware (or similar system, such as ATF), which provides interface to give OS ability to control HW through SCMI protocol. This is generic driver, which implements SCMI protocol, independent from the platform type. DEN0056C document: https://developer.arm.com/documentation/den0056/latest Signed-off-by: Oleksii Moisieiev --- drivers/firmware/arm_scmi/Makefile | 2 +- drivers/firmware/arm_scmi/common.h | 1 + drivers/firmware/arm_scmi/driver.c | 3 + drivers/firmware/arm_scmi/pinctrl.c | 512 ++++++++++++++++++++++++++++ drivers/pinctrl/Kconfig | 9 + include/linux/scmi_protocol.h | 51 +++ 6 files changed, 577 insertions(+), 1 deletion(-) create mode 100644 drivers/firmware/arm_scmi/pinctrl.c diff --git a/drivers/firmware/arm_scmi/Makefile b/drivers/firmware/arm_scmi/Makefile index bc0d54f8e861e..5cec357fbfa8c 100644 --- a/drivers/firmware/arm_scmi/Makefile +++ b/drivers/firmware/arm_scmi/Makefile @@ -4,7 +4,7 @@ scmi-driver-y = driver.o notify.o scmi-transport-y = shmem.o scmi-transport-$(CONFIG_MAILBOX) += mailbox.o scmi-transport-$(CONFIG_HAVE_ARM_SMCCC_DISCOVERY) += smc.o -scmi-protocols-y = base.o clock.o perf.o power.o reset.o sensors.o system.o +scmi-protocols-y = base.o clock.o perf.o power.o reset.o sensors.o system.o pinctrl.o scmi-module-objs := $(scmi-bus-y) $(scmi-driver-y) $(scmi-protocols-y) \ $(scmi-transport-y) obj-$(CONFIG_ARM_SCMI_PROTOCOL) += scmi-module.o diff --git a/drivers/firmware/arm_scmi/common.h b/drivers/firmware/arm_scmi/common.h index 65063fa948d41..8bbb404abe8d1 100644 --- a/drivers/firmware/arm_scmi/common.h +++ b/drivers/firmware/arm_scmi/common.h @@ -170,6 +170,7 @@ DECLARE_SCMI_REGISTER_UNREGISTER(power); DECLARE_SCMI_REGISTER_UNREGISTER(reset); DECLARE_SCMI_REGISTER_UNREGISTER(sensors); DECLARE_SCMI_REGISTER_UNREGISTER(system); +DECLARE_SCMI_REGISTER_UNREGISTER(pinctrl); #define DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(id, name) \ int __init scmi_##name##_register(void) \ diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c index 3dfd8b6a0ebf7..fb9525fb3c247 100644 --- a/drivers/firmware/arm_scmi/driver.c +++ b/drivers/firmware/arm_scmi/driver.c @@ -743,6 +743,7 @@ static struct scmi_prot_devnames devnames[] = { { SCMI_PROTOCOL_CLOCK, { "clocks" },}, { SCMI_PROTOCOL_SENSOR, { "hwmon" },}, { SCMI_PROTOCOL_RESET, { "reset" },}, + { SCMI_PROTOCOL_PINCTRL, { "pinctrl" },}, }; static inline void @@ -947,6 +948,7 @@ static int __init scmi_driver_init(void) scmi_reset_register(); scmi_sensors_register(); scmi_system_register(); + scmi_pinctrl_register(); return platform_driver_register(&scmi_driver); } @@ -962,6 +964,7 @@ static void __exit scmi_driver_exit(void) scmi_reset_unregister(); scmi_sensors_unregister(); scmi_system_unregister(); + scmi_pinctrl_unregister(); platform_driver_unregister(&scmi_driver); } diff --git a/drivers/firmware/arm_scmi/pinctrl.c b/drivers/firmware/arm_scmi/pinctrl.c new file mode 100644 index 0000000000000..392e7e8a6ddc4 --- /dev/null +++ b/drivers/firmware/arm_scmi/pinctrl.c @@ -0,0 +1,512 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * System Control and Management Interface (SCMI) Pinctrl Protocol + * + * Copyright (C) 2021 EPAM. + */ + +#define pr_fmt(fmt) "SCMI Notifications PINCTRL - " fmt + +#include + +#include "common.h" +#include "notify.h" + +enum scmi_pinctrl_protocol_cmd { + GET_GROUP_PINS = 0x3, + GET_FUNCTION_GROUPS = 0x4, + SET_MUX = 0x5, + GET_PINS = 0x6, + GET_CONFIG = 0x7, + SET_CONFIG = 0x8, + GET_CONFIG_GROUP = 0x9, + SET_CONFIG_GROUP = 0xa, +}; + +struct scmi_group_info { + bool has_name; + char name[SCMI_MAX_STR_SIZE]; + unsigned group_pins[SCMI_PINCTRL_MAX_PINS_CNT]; + unsigned nr_pins; +}; + +struct scmi_function_info { + bool has_name; + char name[SCMI_MAX_STR_SIZE]; + u16 groups[SCMI_PINCTRL_MAX_GROUPS_CNT]; + u8 nr_groups; +}; + +struct scmi_pinctrl_info { + u32 version; + u16 nr_groups; + u16 nr_functions; + u16 nr_pins; + struct scmi_group_info *groups; + struct scmi_function_info *functions; + u16 pins[SCMI_PINCTRL_MAX_PINS_CNT]; +}; + +static int scmi_pinctrl_attributes_get(const struct scmi_handle *handle, + struct scmi_pinctrl_info *pi) +{ + int ret; + struct scmi_xfer *t; + struct scmi_msg_pinctrl_protocol_attributes { + __le16 nr_functions; + __le16 nr_groups; + } *attr; + + ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, + SCMI_PROTOCOL_PINCTRL, 0, sizeof(attr), &t); + if (ret) + return ret; + + attr = t->rx.buf; + + ret = scmi_do_xfer(handle, t); + if (!ret) { + pi->nr_functions = le16_to_cpu(attr->nr_functions); + pi->nr_groups = le16_to_cpu(attr->nr_groups); + } + + scmi_xfer_put(handle, t); + return ret; +} + +static int scmi_pinctrl_get_groups_count(const struct scmi_handle *handle) +{ + struct scmi_pinctrl_info *pi = handle->pinctrl_priv; + + return pi->nr_groups; +} + +static int scmi_pinctrl_get_group_name(const struct scmi_handle *handle, + u32 selector, const char **name) +{ + struct scmi_pinctrl_info *pi = handle->pinctrl_priv; + + if (selector > SCMI_PINCTRL_MAX_GROUPS_CNT) + return -EINVAL; + + if (!pi->groups[selector].has_name) { + snprintf(pi->groups[selector].name, SCMI_MAX_STR_SIZE, "%d", selector); + pi->groups[selector].has_name = true; + } + + *name = pi->groups[selector].name; + + return 0; +} + +static int scmi_pinctrl_get_group_pins(const struct scmi_handle *handle, + u32 selector, const unsigned **pins, + unsigned *nr_pins) +{ + struct scmi_pinctrl_info *pi = handle->pinctrl_priv; + u16 *list; + int loop, ret = 0; + struct scmi_xfer *t; + __le32 *num_ret; + u16 tot_num_ret = 0, loop_num_ret; + struct scmi_group_pins_tx { + __le16 selector; + __le16 skip; + } *tx; + + if (selector > SCMI_PINCTRL_MAX_GROUPS_CNT) + return -EINVAL; + + if (pi->groups[selector].nr_pins) { + *nr_pins = pi->groups[selector].nr_pins; + *pins = pi->groups[selector].group_pins; + return 0; + } + + ret = scmi_xfer_get_init(handle, GET_GROUP_PINS, + SCMI_PROTOCOL_PINCTRL, sizeof(*tx), 0, &t); + if (ret) + return ret; + + tx = t->tx.buf; + num_ret = t->rx.buf; + list = t->rx.buf + sizeof(*num_ret); + + do { + /* Set the number of pins to be skipped/already read */ + tx->skip = cpu_to_le16(tot_num_ret); + tx->selector = cpu_to_le16(selector); + + ret = scmi_do_xfer(handle, t); + if (ret) + break; + + loop_num_ret = le32_to_cpu(*num_ret); + if (tot_num_ret + loop_num_ret > SCMI_PINCTRL_MAX_PINS_CNT) { + dev_err(handle->dev, "No. of PINS > SCMI_PINCTRL_MAX_PINS_CNT"); + break; + } + + for (loop = 0; loop < loop_num_ret; loop++) { + pi->groups[selector].group_pins[tot_num_ret + loop] = + le16_to_cpu(list[loop]); + } + + tot_num_ret += loop_num_ret; + + scmi_reset_rx_to_maxsz(handle, t); + } while (loop_num_ret); + + scmi_xfer_put(handle, t); + pi->groups[selector].nr_pins = tot_num_ret; + *pins = pi->groups[selector].group_pins; + *nr_pins = pi->groups[selector].nr_pins; + + return ret; +} + +static int scmi_pinctrl_get_functions_count(const struct scmi_handle *handle) +{ + struct scmi_pinctrl_info *pi = handle->pinctrl_priv; + + return pi->nr_functions; +} + +static int scmi_pinctrl_get_function_name(const struct scmi_handle *handle, + u32 selector, const char **name) +{ + struct scmi_pinctrl_info *pi = handle->pinctrl_priv; + + if (selector >= pi->nr_functions) + return -EINVAL; + + if (!pi->functions[selector].has_name) { + snprintf(pi->functions[selector].name, SCMI_MAX_STR_SIZE, + "%d", selector); + pi->functions[selector].has_name = true; + } + + *name = pi->functions[selector].name; + return 0; +} + +static int scmi_pinctrl_get_function_groups(const struct scmi_handle *handle, + u32 selector, u32 *nr_groups, + const u16 **groups) +{ + struct scmi_pinctrl_info *pi = handle->pinctrl_priv; + u16 *list; + int loop, ret = 0; + struct scmi_xfer *t; + struct scmi_func_groups { + __le16 selector; + __le16 skip; + } *tx; + __le32 *num_ret; + u16 tot_num_ret = 0, loop_num_ret; + + if (selector >= pi->nr_functions) + return -EINVAL; + + if (pi->functions[selector].nr_groups) { + *nr_groups = pi->functions[selector].nr_groups; + *groups = pi->functions[selector].groups; + return 0; + } + + ret = scmi_xfer_get_init(handle, GET_FUNCTION_GROUPS, + SCMI_PROTOCOL_PINCTRL, sizeof(*tx), 0, &t); + if (ret) + return ret; + + tx = t->tx.buf; + num_ret = t->rx.buf; + list = t->rx.buf + sizeof(*num_ret); + + do { + /* Set the number of pins to be skipped/already read */ + tx->skip = cpu_to_le16(tot_num_ret); + tx->selector = cpu_to_le16(selector); + + ret = scmi_do_xfer(handle, t); + if (ret) + break; + + loop_num_ret = le32_to_cpu(*num_ret); + if (tot_num_ret + loop_num_ret > SCMI_PINCTRL_MAX_GROUPS_CNT) { + dev_err(handle->dev, "No. of PINS > SCMI_PINCTRL_MAX_GROUPS_CNT"); + break; + } + + for (loop = 0; loop < loop_num_ret; loop++) { + pi->functions[selector].groups[tot_num_ret + loop] = le16_to_cpu(list[loop]); + } + + tot_num_ret += loop_num_ret; + + scmi_reset_rx_to_maxsz(handle, t); + } while (loop_num_ret); + + scmi_xfer_put(handle, t); + pi->functions[selector].nr_groups = tot_num_ret; + *groups = pi->functions[selector].groups; + *nr_groups = pi->functions[selector].nr_groups; + + return ret; +} + +static int scmi_pinctrl_set_mux(const struct scmi_handle *handle, u32 selector, + u32 group) +{ + struct scmi_xfer *t; + struct scmi_mux_tx { + __le16 function; + __le16 group; + } *tx; + int ret; + + ret = scmi_xfer_get_init(handle, SET_MUX, SCMI_PROTOCOL_PINCTRL, + sizeof(*tx), 0, &t); + if (ret) + return ret; + + tx = t->tx.buf; + tx->function = cpu_to_le16(selector); + tx->group = cpu_to_le16(group); + + ret = scmi_do_xfer(handle, t); + scmi_xfer_put(handle, t); + + return ret; +} + +static int scmi_pinctrl_get_pins(const struct scmi_handle *handle, u32 *nr_pins, + const u16 **pins) +{ + struct scmi_pinctrl_info *pi = handle->pinctrl_priv; + u16 *list; + int loop, ret = 0; + struct scmi_xfer *t; + __le32 *num_skip, *num_ret; + u32 tot_num_ret = 0, loop_num_ret; + + if (pi->nr_pins) { + *nr_pins = pi->nr_pins; + *pins = pi->pins; + return 0; + } + + ret = scmi_xfer_get_init(handle, GET_PINS, + SCMI_PROTOCOL_PINCTRL, sizeof(*num_skip), 0, &t); + if (ret) + return ret; + + num_skip = t->tx.buf; + num_ret = t->rx.buf; + list = t->rx.buf + sizeof(*num_ret); + + do { + /* Set the number of pins to be skipped/already read */ + *num_skip = cpu_to_le32(tot_num_ret); + + ret = scmi_do_xfer(handle, t); + if (ret) + break; + + loop_num_ret = le32_to_cpu(*num_ret); + if (tot_num_ret + loop_num_ret > SCMI_PINCTRL_MAX_PINS_CNT) { + dev_err(handle->dev, "No. of PINS > SCMI_PINCTRL_MAX_PINS_CNT"); + break; + } + + for (loop = 0; loop < loop_num_ret; loop++) { + pi->pins[tot_num_ret + loop] = le16_to_cpu(list[loop]); + } + + tot_num_ret += loop_num_ret; + + scmi_reset_rx_to_maxsz(handle, t); + } while (loop_num_ret); + + scmi_xfer_put(handle, t); + pi->nr_pins = tot_num_ret; + *pins = pi->pins; + *nr_pins = pi->nr_pins; + + return ret; +} + +static int scmi_pinctrl_get_config(const struct scmi_handle *handle, u32 pin, + u32 *config) +{ + struct scmi_xfer *t; + struct scmi_conf_tx { + __le32 pin; + __le32 config; + } *tx; + __le32 *packed_config; + int ret; + + ret = scmi_xfer_get_init(handle, GET_CONFIG, SCMI_PROTOCOL_PINCTRL, + sizeof(*tx), sizeof(*packed_config), &t); + if (ret) + return ret; + + tx = t->tx.buf; + packed_config = t->rx.buf; + tx->pin = cpu_to_le32(pin); + tx->config = cpu_to_le32(*config); + ret = scmi_do_xfer(handle, t); + + if (!ret) + *config = le32_to_cpu(*packed_config); + + scmi_xfer_put(handle, t); + return ret; +} + +static int scmi_pinctrl_set_config(const struct scmi_handle *handle, u32 pin, + u32 config) +{ + struct scmi_xfer *t; + struct scmi_conf_tx { + __le32 pin; + __le32 config; + } *tx; + int ret; + + ret = scmi_xfer_get_init(handle, SET_CONFIG, SCMI_PROTOCOL_PINCTRL, + sizeof(*tx), 0, &t); + if (ret) + return ret; + + tx = t->tx.buf; + tx->pin = cpu_to_le32(pin); + tx->config = cpu_to_le32(config); + ret = scmi_do_xfer(handle, t); + + scmi_xfer_put(handle, t); + return ret; +} + +static int scmi_pinctrl_get_config_group(const struct scmi_handle *handle, + u32 group, u32 *config) +{ + struct scmi_xfer *t; + struct scmi_conf_tx { + __le32 group; + __le32 config; + } *tx; + __le32 *packed_config; + int ret; + + ret = scmi_xfer_get_init(handle, GET_CONFIG_GROUP, SCMI_PROTOCOL_PINCTRL, + sizeof(*tx), sizeof(*packed_config), &t); + if (ret) + return ret; + + tx = t->tx.buf; + packed_config = t->rx.buf; + tx->group = cpu_to_le32(group); + tx->config = cpu_to_le32(*config); + ret = scmi_do_xfer(handle, t); + + if (!ret) + *config = le32_to_cpu(*packed_config); + + scmi_xfer_put(handle, t); + return ret; +} + +static int scmi_pinctrl_set_config_group(const struct scmi_handle *handle, + u32 group, u32 config) +{ + struct scmi_xfer *t; + struct scmi_conf_tx { + __le32 group; + __le32 config; + } *tx; + int ret; + + ret = scmi_xfer_get_init(handle, SET_CONFIG_GROUP, SCMI_PROTOCOL_PINCTRL, + sizeof(*tx), 0, &t); + if (ret) + return ret; + + tx = t->tx.buf; + tx->group = cpu_to_le32(group); + tx->config = cpu_to_le32(config); + ret = scmi_do_xfer(handle, t); + + scmi_xfer_put(handle, t); + return ret; +} + +static const struct scmi_pinctrl_ops pinctrl_ops = { + .get_groups_count = scmi_pinctrl_get_groups_count, + .get_group_name = scmi_pinctrl_get_group_name, + .get_group_pins = scmi_pinctrl_get_group_pins, + .get_functions_count = scmi_pinctrl_get_functions_count, + .get_function_name = scmi_pinctrl_get_function_name, + .get_function_groups = scmi_pinctrl_get_function_groups, + .set_mux = scmi_pinctrl_set_mux, + .get_pins = scmi_pinctrl_get_pins, + .get_config = scmi_pinctrl_get_config, + .set_config = scmi_pinctrl_set_config, + .get_config_group = scmi_pinctrl_get_config_group, + .set_config_group = scmi_pinctrl_set_config_group, +}; + +static int scmi_pinctrl_protocol_init(struct scmi_handle *handle) +{ + u32 version; + struct scmi_pinctrl_info *pinfo; + int ret; + + scmi_version_get(handle, SCMI_PROTOCOL_PINCTRL, &version); + + dev_dbg(handle->dev, "Pinctrl Version %d.%d\n", + PROTOCOL_REV_MAJOR(version), PROTOCOL_REV_MINOR(version)); + + pinfo = devm_kzalloc(handle->dev, sizeof(*pinfo), GFP_KERNEL); + if (!pinfo) + return -ENOMEM; + + ret = scmi_pinctrl_attributes_get(handle, pinfo); + if (ret) + goto free; + + pinfo->groups = devm_kcalloc(handle->dev, pinfo->nr_groups, + sizeof(*pinfo->groups), GFP_KERNEL); + if (!pinfo->groups) { + ret = -ENOMEM; + goto free; + } + + pinfo->functions = devm_kcalloc(handle->dev, pinfo->nr_functions, + sizeof(*pinfo->functions), GFP_KERNEL); + if (!pinfo->functions) { + ret = -ENOMEM; + goto free; + } + + pinfo->version = version; + handle->pinctrl_ops = &pinctrl_ops; + handle->pinctrl_priv = pinfo; + + return 0; +free: + if (pinfo) { + if (pinfo->functions) + devm_kfree(handle->dev,pinfo->functions); + + if (pinfo->groups) + devm_kfree(handle->dev,pinfo->groups); + + devm_kfree(handle->dev,pinfo); + } + + return ret; +} + +DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(SCMI_PROTOCOL_PINCTRL, pinctrl) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 815095326e2d6..68add4d06e8c1 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -431,4 +431,13 @@ config PINCTRL_EQUILIBRIUM pin functions, configure GPIO attributes for LGM SoC pins. Pinmux and pinconf settings are retrieved from device tree. +config PINCTRL_SCMI + bool "Pinctrl driver controlled via SCMI interface" + depends on ARM_SCMI_PROTOCOL || COMPILE_TEST + help + This driver provides support for pinctrl which is controlled + by firmware that implements the SCMI interface. + It uses SCMI Message Protocol to interact with the + firmware providing all the pinctrl controls. + endif diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index 9cd312a1ff925..cf68e919ef963 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -15,6 +15,9 @@ #define SCMI_MAX_STR_SIZE 16 #define SCMI_MAX_NUM_RATES 16 +#define SCMI_PINCTRL_MAX_PINS_CNT 512 +#define SCMI_PINCTRL_MAX_GROUPS_CNT 512 + /** * struct scmi_revision_info - version information structure * @@ -252,6 +255,48 @@ struct scmi_notify_ops { struct notifier_block *nb); }; +/** +* struct scmi_pinctrl_ops - represents the various operations provided +* by SCMI Pinctrl Protocol +* +* @get_groups_count: returns count of the registered groups +* @get_group_name: returns group name by index +* @get_group_pins: returns the set of pins, assigned to the specified group +* @get_functions_count: returns count of the registered fucntions +* @get_function_name: returns function name by indes +* @get_function_groups: returns the set of groups, assigned to the specified +* function +* @set_mux: set muxing funtion for groups of pins +* @get_pins: returns the set of pins, registered in driver +* @get_config: returns configuration parameter for pin +* @set_config: sets the configuration parameter for pin +* @get_config_group: returns the configuration parameter for a group of pins +* @set_config_group: sets the configuration parameter for a groups of pins +*/ +struct scmi_pinctrl_ops { + int (*get_groups_count)(const struct scmi_handle *handle); + int (*get_group_name)(const struct scmi_handle *handles, u32 selector, + const char **name); + int (*get_group_pins)(const struct scmi_handle *handle, u32 selector, + const unsigned **pins, unsigned *nr_pins); + int (*get_functions_count)(const struct scmi_handle *handle); + int (*get_function_name)(const struct scmi_handle *handle, u32 selector, + const char **name); + int (*get_function_groups)(const struct scmi_handle *handle, u32 selector, + u32 *nr_groups, const u16 **groups); + int (*set_mux)(const struct scmi_handle *handle, u32 selector, u32 group); + int (*get_pins)(const struct scmi_handle *handle, u32 *nr_pins, + const u16 **pins); + int (*get_config)(const struct scmi_handle *handle, u32 pin, + u32 *config); + int (*set_config)(const struct scmi_handle *handle, u32 pin, + u32 config); + int (*get_config_group)(const struct scmi_handle *handle, u32 group, + u32 *config); + int (*set_config_group)(const struct scmi_handle *handle, u32 group, + u32 config); +}; + /** * struct scmi_handle - Handle returned to ARM SCMI clients for usage. * @@ -263,6 +308,7 @@ struct scmi_notify_ops { * @sensor_ops: pointer to set of sensor protocol operations * @reset_ops: pointer to set of reset protocol operations * @notify_ops: pointer to set of notifications related operations + * @pinctrl_ops: pointer to set of pinctrl protocol operations * @perf_priv: pointer to private data structure specific to performance * protocol(for internal use only) * @clk_priv: pointer to private data structure specific to clock @@ -275,6 +321,8 @@ struct scmi_notify_ops { * protocol(for internal use only) * @notify_priv: pointer to private data structure specific to notifications * (for internal use only) + * @pinctrl_priv: pointer to private data structure specific to pinctrl + * (for internal use only) */ struct scmi_handle { struct device *dev; @@ -285,6 +333,7 @@ struct scmi_handle { const struct scmi_sensor_ops *sensor_ops; const struct scmi_reset_ops *reset_ops; const struct scmi_notify_ops *notify_ops; + const struct scmi_pinctrl_ops *pinctrl_ops; /* for protocol internal use */ void *perf_priv; void *clk_priv; @@ -293,6 +342,7 @@ struct scmi_handle { void *reset_priv; void *notify_priv; void *system_priv; + void *pinctrl_priv; }; enum scmi_std_protocol { @@ -303,6 +353,7 @@ enum scmi_std_protocol { SCMI_PROTOCOL_CLOCK = 0x14, SCMI_PROTOCOL_SENSOR = 0x15, SCMI_PROTOCOL_RESET = 0x16, + SCMI_PROTOCOL_PINCTRL = 0x18, }; enum scmi_system_events {