[PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm

Kumar, Udit u-kumar1 at ti.com
Fri Sep 1 19:24:09 CEST 2023


Hi Nishanth

On 9/1/2023 8:36 PM, Nishanth Menon wrote:
> On 11:44-20230901, Udit Kumar wrote:
>> Add support for VTM (Voltage and Thermal Manager), which
>> is part of TI's K3 series SOC.
>>
>> Signed-off-by: Udit Kumar <u-kumar1 at ti.com>
>> ---
>>   drivers/thermal/Kconfig            |   6 +
>>   drivers/thermal/Makefile           |   1 +
>>   drivers/thermal/k3_j72xx_bandgap.c | 539 +++++++++++++++++++++++++++++
>>   3 files changed, 546 insertions(+)
>>   create mode 100644 drivers/thermal/k3_j72xx_bandgap.c
>>
>> [..]
>> +
>> +static const struct  udevice_id of_k3_j72xx_bandgap_match[] = {
>> +	{
>> +		.compatible = "ti,j721e-vtm",
>> +		.data = (ulong)&k3_j72xx_bandgap_j721e_data,
> So what happens to drivers/misc/k3_avs.c ?

Could you help me to understand this comment.

Do you mean, why we can not add this support in AVS driver or

need of this porting ?

How I see, AVS driver to run at SPL/R5 time and this driver

to be probed in Main/A72 u-boot when needed.

>> +	},
>> +	{
>> +		.compatible = "ti,j7200-vtm",
>> +		.data = (ulong)&k3_j72xx_bandgap_j7200_data,
>> +	},
>> +	{ /* sentinel */ },
>> +};
>> +
>> +U_BOOT_DRIVER(ti_bandgap_thermal) = {
>> +	.name	= "ti_bandgap_thermal",
>> +	.id	= UCLASS_THERMAL,
>> +	.ops	= &k3_of_thermal_ops,
>> +	.probe	= k3_j72xx_bandgap_probe,
>> +	.of_match = of_k3_j72xx_bandgap_match,
>> +	.priv_auto	= sizeof(struct k3_j72xx_bandgap),
>> +};
>> -- 
>> 2.34.1
>>


More information about the U-Boot mailing list