Patrick Delaunay
55b0affd26
firmware: scmi: use protocol node name to bind the scmi regulator driver
In scmi firmware driver, it is better to bind the scmi protocol driver
"scmi_voltage_domain" with the node name of the protocol 17 and not
the sub-node named "regulator", because is a fixed string which doesn't
provide information and because it is not aligned with the other scmi
protocol nodes.
For example on stm32mp135f-dk board with device tree in stm32mp131.dtsi
scmi: scmi {
compatible = "linaro,scmi-optee";
#address-cells = <1>;
#size-cells = <0>;
linaro,optee-channel-id = <0>;
shmem = <&scmi_shm>;
scmi_clk: protocol@14 {
reg = <0x14>;
#clock-cells = <1>;
};
scmi_reset: protocol@16 {
reg = <0x16>;
#reset-cells = <1>;
};
scmi_voltd: protocol@17 {
reg = <0x17>;
scmi_regu: regulators {
#address-cells = <1>;
#size-cells = <0>;
scmi_reg11: voltd-reg11 {
reg = <VOLTD_SCMI_REG11>;
regulator-name = "reg11";
};
scmi_reg18: voltd-reg18 {
reg = <VOLTD_SCMI_REG18>;
regulator-name = "reg18";
};
scmi_usb33: voltd-usb33 {
reg = <VOLTD_SCMI_USB33>;
regulator-name = "usb33";
};
};
};
};
Before the patch:
> dm tree
scmi_agent 0 [ + ] scmi-over-optee |-- scmi
clk 1 [ + ] scmi_clk | |-- protocol@14
...
reset 1 [ ] scmi_reset_domain | |-- protocol@16
nop 2 [ + ] scmi_voltage_domain | `-- regulators
regulator 0 [ + ] scmi_regulator | |-- voltd-reg11
regulator 1 [ + ] scmi_regulator | |-- voltd-reg18
regulator 2 [ + ] scmi_regulator | |-- voltd-usb33
...
after the patch:
> dm tree
scmi_agent 0 [ + ] scmi-over-optee |-- scmi
clk 1 [ + ] scmi_clk | |-- protocol@14
...
reset 1 [ ] scmi_reset_domain | |-- protocol@16
nop 2 [ + ] scmi_voltage_domain | `-- protocol@17
regulator 0 [ + ] scmi_regulator | |-- voltd-reg11
regulator 1 [ + ] scmi_regulator | |-- voltd-reg18
regulator 2 [ + ] scmi_regulator | |-- voltd-usb33
...
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2022-12-08 09:29:02 -05:00
..
2022-04-25 09:25:00 +02:00
2022-09-25 08:30:05 -06:00
2022-08-12 08:14:23 -04:00
2022-11-07 16:24:30 -07:00
2022-12-05 16:06:08 -05:00
2022-12-02 08:39:00 -05:00
2022-08-23 12:39:06 +02:00
2022-06-17 16:27:05 +08:00
2022-12-05 16:06:08 -05:00
2022-12-05 16:06:08 -05:00
2022-10-17 21:17:12 -06:00
2022-11-10 10:08:55 -05:00
2022-12-05 16:08:37 -05:00
2022-09-16 11:05:16 -04:00
2022-11-10 10:08:55 -05:00
2022-08-04 16:18:47 -04:00
2022-12-08 09:29:02 -05:00
2022-12-05 16:06:08 -05:00
2022-06-23 12:58:19 -04:00
2022-10-31 14:47:32 -04:00
2022-12-05 16:08:37 -05:00
2022-01-13 07:57:49 -05:00
2022-12-05 16:06:08 -05:00
2022-10-21 13:47:56 -04:00
2022-07-25 09:38:47 -04:00
2022-11-02 13:58:17 -04:00
2022-09-26 14:23:29 +02:00
2022-10-26 15:21:12 -04:00
2022-12-05 16:08:37 -05:00
2022-12-05 16:06:08 -05:00
2022-12-05 16:07:13 -05:00
2022-01-13 07:57:49 -05:00
2022-12-07 16:04:17 -05:00
2022-09-19 16:07:12 -04:00
2022-12-05 16:06:07 -05:00
2022-10-18 09:48:22 -04:00
2022-11-22 15:02:07 +01:00
2022-12-05 16:08:37 -05:00
2022-09-23 15:09:15 -04:00
2022-12-07 16:04:17 -05:00
2022-12-05 16:06:07 -05:00
2022-02-08 11:00:03 -05:00
2022-09-26 14:23:29 +02:00
2022-09-14 15:23:03 -04:00
2022-12-05 16:08:37 -05:00
2022-10-31 11:02:44 -04:00
2022-12-05 16:11:50 -05:00
2022-10-12 08:56:24 -04:00
2022-11-22 15:02:07 +01:00
2022-07-08 09:05:47 -04:00
2022-12-05 16:07:13 -05:00
2022-10-29 07:36:33 -06:00
2022-12-05 16:06:08 -05:00
2022-09-16 11:05:16 -04:00
2022-10-11 16:03:03 -04:00
2022-12-05 16:06:08 -05:00
2022-09-03 16:59:05 +03:00
2022-05-03 21:39:22 +02:00
2022-12-07 16:04:17 -05:00
2022-12-05 16:11:50 -05:00
2022-10-17 21:17:12 -06:00
2022-10-29 07:36:33 -06:00
2022-11-22 08:56:26 +01:00
2022-11-02 13:58:17 -04:00
2022-10-31 14:47:32 -04:00
2022-12-02 08:39:00 -05:00