[PATCH v4 08/12] soc: tegra: common: add Tegra114 support to devm_tegra_core_dev_init_opp_table

Svyatoslav Ryhel posted 12 patches 2 months, 2 weeks ago
[PATCH v4 08/12] soc: tegra: common: add Tegra114 support to devm_tegra_core_dev_init_opp_table
Posted by Svyatoslav Ryhel 2 months, 2 weeks ago
Determine the Tegra114 hardware version using the SoC Speedo ID bit macro,
mirroring the approach already used for Tegra30 and Tegra124.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 drivers/soc/tegra/common.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c
index 6292a1c72071..2264dd38893a 100644
--- a/drivers/soc/tegra/common.c
+++ b/drivers/soc/tegra/common.c
@@ -143,7 +143,8 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
 		hw_version = BIT(tegra_sku_info.soc_process_id);
 		config.supported_hw = &hw_version;
 		config.supported_hw_count = 1;
-	} else if (of_machine_is_compatible("nvidia,tegra30")) {
+	} else if (of_machine_is_compatible("nvidia,tegra30") ||
+		   of_machine_is_compatible("nvidia,tegra114")) {
 		hw_version = BIT(tegra_sku_info.soc_speedo_id);
 		config.supported_hw = &hw_version;
 		config.supported_hw_count = 1;
@@ -156,7 +157,7 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
 	}
 
 	/*
-	 * Tegra114+ doesn't support OPP yet, return early for non tegra20/30
+	 * Tegra124+ doesn't support OPP yet, return early for pre-Tegra124
 	 * case.
 	 */
 	if (!config.supported_hw)
-- 
2.51.0
Re: [PATCH v4 08/12] soc: tegra: common: add Tegra114 support to devm_tegra_core_dev_init_opp_table
Posted by Mikko Perttunen 2 weeks, 6 days ago
On Tuesday, November 25, 2025 9:05 PM Svyatoslav Ryhel wrote:
> Determine the Tegra114 hardware version using the SoC Speedo ID bit macro,
> mirroring the approach already used for Tegra30 and Tegra124.
> 
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
> ---
>  drivers/soc/tegra/common.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c
> index 6292a1c72071..2264dd38893a 100644
> --- a/drivers/soc/tegra/common.c
> +++ b/drivers/soc/tegra/common.c
> @@ -143,7 +143,8 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
>  		hw_version = BIT(tegra_sku_info.soc_process_id);
>  		config.supported_hw = &hw_version;
>  		config.supported_hw_count = 1;
> -	} else if (of_machine_is_compatible("nvidia,tegra30")) {
> +	} else if (of_machine_is_compatible("nvidia,tegra30") ||
> +		   of_machine_is_compatible("nvidia,tegra114")) {
>  		hw_version = BIT(tegra_sku_info.soc_speedo_id);
>  		config.supported_hw = &hw_version;
>  		config.supported_hw_count = 1;
> @@ -156,7 +157,7 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
>  	}
>  
>  	/*
> -	 * Tegra114+ doesn't support OPP yet, return early for non tegra20/30
> +	 * Tegra124+ doesn't support OPP yet, return early for pre-Tegra124
>  	 * case.
>  	 */
>  	if (!config.supported_hw)
> 

Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>