]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
scmi: pinctrl: add pinctrl message IDs
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 11 Mar 2026 19:39:35 +0000 (22:39 +0300)
committerPeng Fan <peng.fan@nxp.com>
Mon, 23 Mar 2026 02:58:20 +0000 (10:58 +0800)
Add all the pinctrl message IDs.  I renamed SCMI_MSG_PINCTRL_CONFIG_SET
to SCMI_PINCTRL_SETTINGS_CONFIGURE so the naming matches the spec better.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/pinctrl/nxp/pinctrl-imx-scmi.c
include/scmi_protocols.h

index 3cc2b85e151e56f10750ab10bb65f21d44eda5ae..dcd76fdc5713c0bc26fd44a66648814e86d09a1e 100644 (file)
@@ -70,7 +70,7 @@ static int imx_pinconf_scmi_set(struct udevice *dev, u32 mux_ofs, u32 mux, u32 c
        in.attributes = num_cfgs << PINCTRL_NUM_CFGS_SHIFT;
 
        msg = SCMI_MSG_IN(SCMI_PROTOCOL_ID_PINCTRL,
-                         SCMI_MSG_PINCTRL_CONFIG_SET, in, out);
+                         SCMI_PINCTRL_SETTINGS_CONFIGURE, in, out);
 
        ret = devm_scmi_process_msg(dev, &msg);
        if (ret || out.status) {
index 555ffa0a61ba8f2244b5c1f34b42aa503e857f84..e1d788058fb13e6f83dce96a0388790e522d22b0 100644 (file)
@@ -1089,7 +1089,14 @@ struct scmi_voltd_level_get_out {
 
 /* SCMI Pinctrl Protocol */
 enum scmi_pinctrl_message_id {
-       SCMI_MSG_PINCTRL_CONFIG_SET = 0x6
+       SCMI_PINCTRL_ATTRIBUTES = 0x3,
+       SCMI_PINCTRL_LIST_ASSOCIATIONS = 0x4,
+       SCMI_PINCTRL_SETTINGS_GET = 0x5,
+       SCMI_PINCTRL_SETTINGS_CONFIGURE = 0x6,
+       SCMI_PINCTRL_REQUEST = 0x7,
+       SCMI_PINCTRL_RELEASE = 0x8,
+       SCMI_PINCTRL_NAME_GET = 0x9,
+       SCMI_PINCTRL_SET_PERMISSIONS = 0xA,
 };
 
 struct scmi_pin_config {