Skip to contentSkip to conversation

configs: am68_sk_r5: Enable AVS config

PATCH Superseded Udit Kumar 2 participants 3 messages Mar 14, 2025 – Mar 17, 2025 Char and misc drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Udit Kumar

author
#0 lore raw

PATCH 1/1 configs: am68_sk_r5: Enable AVS config

Enable AVS config

---
Test logs
https://gist.github.com/uditkumarti/9b30461e66aa27e4a813a65f1c552e51#file-gistfile1-txt-L298

Following print was added to see AVS voltage setting at

drivers/misc/k3_avs.c +1 -1
index 0774e0a4c9e..ed1a5768147 100644
@@ -142,7 +142,7 @@ static int k3_avs_program_voltage(struct k3_avs_privdata *priv,
 
                vd2->flags |= VD_FLAG_INIT_DONE;
        }
-
+       printf("Finally setting voltage \n");
        return regulator_set_value(vd->supply, volt);
 }
 
 configs/am68_sk_r5_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/am68_sk_r5_defconfig +0 -1
index 097bed62061..d6ef89c7b84 100644
@@ -6,7 +6,6 @@ CONFIG_SOC_K3_J721S2=y
 CONFIG_TARGET_J721S2_R5_EVM=y
 
 CONFIG_ESM_K3=n
-CONFIG_K3_AVS0=n
 CONFIG_ESM_PMIC=n
 CONFIG_DM_REGULATOR_TPS65941=n
 CONFIG_PMIC_TPS65941=n
Signature · 1 line
2.34.1
#1 lore raw

Hi Udit

Quoted 13 lines · Udit Kumar

Enable AVS config

---
Test logs
https://gist.github.com/uditkumarti/9b30461e66aa27e4a813a65f1c552e51#file-gistfile1-txt-L298

Following print was added to see AVS voltage setting at

drivers/misc/k3_avs.c +0 -0
index 0774e0a4c9e..ed1a5768147 100644

drivers/misc/k3_avs.c static int k3_avs_program_voltage(struct k3_avs_privdata *priv, · line 145

Quoted 5 lines
drivers/misc/k3_avs.c +1 -1
@@ -142,7 +142,7 @@ static int k3_avs_program_voltage(struct k3_avs_privdata *priv,
 
                vd2->flags |= VD_FLAG_INIT_DONE;
        }
-
+       printf("Finally setting voltage \n");

Was this printf intended to be in the patch?

Quoted 19 lines
drivers/misc/k3_avs.c +0 -0
        return regulator_set_value(vd->supply, volt);
 }
 
 configs/am68_sk_r5_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/am68_sk_r5_defconfig +0 -1
index 097bed62061..d6ef89c7b84 100644
@@ -6,7 +6,6 @@ CONFIG_SOC_K3_J721S2=y
 CONFIG_TARGET_J721S2_R5_EVM=y
 
 CONFIG_ESM_K3=n
-CONFIG_K3_AVS0=n
 CONFIG_ESM_PMIC=n
 CONFIG_DM_REGULATOR_TPS65941=n
 CONFIG_PMIC_TPS65941=n
Signature · 2 lines
Thanking You
Neha Malcom Francis
#2 lore raw
Quoted 17 lines · Neha Malcom Francis

Hi Udit

Quoted 14 lines · Udit Kumar

Enable AVS config

---
Test logs
https://gist.github.com/uditkumarti/9b30461e66aa27e4a813a65f1c552e51#file-gistfile1-txt-L298

Following print was added to see AVS voltage setting at

drivers/misc/k3_avs.c +0 -0
index 0774e0a4c9e..ed1a5768147 100644
@@ -142,7 +142,7 @@ static int k3_avs_program_voltage(struct k3_avs_privdata *priv,
 
Quoted 5 lines

drivers/misc/k3_avs.c static int k3_avs_program_voltage(struct k3_avs_privdata *priv, · line 145

Quoted 4 lines
drivers/misc/k3_avs.c +1 -1
                 vd2->flags |= VD_FLAG_INIT_DONE;
         }
-
+       printf("Finally setting voltage \n");

Was this printf intended to be in the patch?

My bad,

I thought of adding test code below tear line .. But eventually test code becoming part of patch.

will fix and send v2

Quoted 20 lines
Quoted 20 lines
drivers/misc/k3_avs.c +0 -0
         return regulator_set_value(vd->supply, volt);
  }
 
  configs/am68_sk_r5_defconfig | 1 -
  1 file changed, 1 deletion(-)
configs/am68_sk_r5_defconfig +0 -1
index 097bed62061..d6ef89c7b84 100644
@@ -6,7 +6,6 @@ CONFIG_SOC_K3_J721S2=y
  CONFIG_TARGET_J721S2_R5_EVM=y
 
  CONFIG_ESM_K3=n
-CONFIG_K3_AVS0=n
  CONFIG_ESM_PMIC=n
  CONFIG_DM_REGULATOR_TPS65941=n
  CONFIG_PMIC_TPS65941=n