Skip to contentSkip to conversation

drivers: misc: k3_avs: Add Linux compatibles to maintain sync

PATCH In review Reid Tonking 3 participants 3 messages Sep 7, 2023 – Sep 19, 2023 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: misc: k3_avs: Add Linux compatibles to maintain sync

The ti,j7200-vtm and ti,j721e-vtm compatibles are used for voltage and thermal monitoring (VTM) by (drivers/thermal/k3_j72xx_bandgap.c) in Linux, but the same hardware is used for adaptive voltage scaling (AVS) in u-boot, This brings both drivers in line with the same compatibles.

Since the j7200 uses the config as the j721e, the data is inherited from j721e vs creating a duplicate

---
In preparation for syncing k3 socs j721e & j7200, a single patch is being submitted to avoid having dependency complications [0]. This patch will be a dependency for the following series [1] [2], each with another version to follow.

[0] https://lore.kernel.org/u-boot/20230907150858.3l6q2yxyfgdx3jvn@mulled/T/#mf52d9105756329549871144fe93c1149d1c26ef3
[1] https://lore.kernel.org/u-boot/20230907150858.3l6q2yxyfgdx3jvn@mulled/T/#m878091acccecbf29e27e400b3acbfd35c025e396
[2] https://lore.kernel.org/u-boot/[email protected]/T/#m8d254c1d912aae3b636fadb23a0c8aacdd9ea484

 drivers/misc/k3_avs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/misc/k3_avs.c +2 -0
index 840148d090..acfc731845 100644
@@ -382,6 +382,8 @@ static struct vd_config am654_vd_config = {
 static const struct udevice_id k3_avs_ids[] = {
 	{ .compatible = "ti,am654-avs", .data = (ulong)&am654_vd_config },
 	{ .compatible = "ti,j721e-avs", .data = (ulong)&j721e_vd_config },
+	{ .compatible = "ti,j721e-vtm", .data = (ulong)&j721e_vd_config },
+	{ .compatible = "ti,j7200-vtm", .data = (ulong)&j721e_vd_config },
 	{}
 };
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Reid Tonking

The ti,j7200-vtm and ti,j721e-vtm compatibles are used for voltage and thermal monitoring (VTM) by (drivers/thermal/k3_j72xx_bandgap.c) in Linux, but the same hardware is used for adaptive voltage scaling (AVS) in u-boot, This brings both drivers in line with the same compatibles.

Quoted 6 lines

Since the j7200 uses the config as the j721e, the data is inherited from j721e vs creating a duplicate

---

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#2 lore raw
In reply to Reid Tonking
Quoted 6 lines · Reid Tonking

The ti,j7200-vtm and ti,j721e-vtm compatibles are used for voltage and thermal monitoring (VTM) by (drivers/thermal/k3_j72xx_bandgap.c) in Linux, but the same hardware is used for adaptive voltage scaling (AVS) in u-boot, This brings both drivers in line with the same compatibles.

Quoted 6 lines

Since the j7200 uses the config as the j721e, the data is inherited from j721e vs creating a duplicate

Applied to u-boot/next, thanks!

Signature · 1 line
Tom