]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: int3472: Add TPS68470 board data for intel nvl
authorArun T <arun.t@intel.com>
Fri, 15 May 2026 17:45:11 +0000 (23:15 +0530)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 19 May 2026 20:55:58 +0000 (23:55 +0300)
The Intel NVL platform uses IPU8 powered by a TPS68470 PMIC,
requiring board data to configure the GPIOs and regulators for
proper camera sensor operation.

Signed-off-by: Arun T <arun.t@intel.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/platform/x86/intel/int3472/tps68470_board_data.c

index 4358dc601923aa29d7bce2f41db1b6f63ee8e933..c53542465fb4680aca00b87e80a2d57709d60006 100644 (file)
@@ -289,6 +289,86 @@ static const struct tps68470_regulator_platform_data msi_prestige_ai_evo_tps6847
        },
 };
 
+/* Settings for Intel NVL platform */
+
+static struct regulator_consumer_supply ovti13b1_core_consumer_supplies[] = {
+       REGULATOR_SUPPLY("dvdd", "i2c-OVTI13B1:01"),
+};
+
+static struct regulator_consumer_supply ovti13b1_ana_consumer_supplies[] = {
+       REGULATOR_SUPPLY("avdd", "i2c-OVTI13B1:01"),
+};
+
+static struct regulator_consumer_supply ovti13b1_vcm_consumer_supplies[] = {
+       REGULATOR_SUPPLY("vcc", "i2c-OVTI13B1:01-VCM"),
+};
+
+static struct regulator_consumer_supply ovti13b1_vsio_consumer_supplies[] = {
+       REGULATOR_SUPPLY("dovdd", "i2c-OVTI13B1:01"),
+};
+
+static const struct regulator_init_data intel_nvl_tps68470_core_reg_init_data = {
+               .constraints = {
+               .min_uV = 1200000,
+               .max_uV = 1200000,
+               .apply_uV = true,
+               .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+       },
+       .num_consumer_supplies = ARRAY_SIZE(ovti13b1_core_consumer_supplies),
+       .consumer_supplies = ovti13b1_core_consumer_supplies,
+};
+
+static const struct regulator_init_data intel_nvl_tps68470_ana_reg_init_data = {
+       .constraints = {
+               .min_uV = 2815200,
+               .max_uV = 2815200,
+               .apply_uV = true,
+               .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+       },
+       .num_consumer_supplies = ARRAY_SIZE(ovti13b1_ana_consumer_supplies),
+       .consumer_supplies = ovti13b1_ana_consumer_supplies,
+};
+static const struct regulator_init_data intel_nvl_tps68470_vcm_reg_init_data = {
+       .constraints = {
+               .min_uV = 2815200,
+               .max_uV = 2815200,
+               .apply_uV = true,
+               .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+       },
+       .num_consumer_supplies = ARRAY_SIZE(ovti13b1_vcm_consumer_supplies),
+       .consumer_supplies = ovti13b1_vcm_consumer_supplies,
+};
+
+/* Ensure the always-on VIO regulator has the same voltage as VSIO */
+static const struct regulator_init_data intel_nvl_tps68470_vio_reg_init_data = {
+       .constraints = {
+               .min_uV = 1800600,
+               .max_uV = 1800600,
+               .apply_uV = true,
+               .always_on = true,
+       },
+};
+static const struct regulator_init_data intel_nvl_tps68470_vsio_reg_init_data = {
+       .constraints = {
+               .min_uV = 1800600,
+               .max_uV = 1800600,
+               .apply_uV = true,
+               .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+       },
+       .num_consumer_supplies = ARRAY_SIZE(ovti13b1_vsio_consumer_supplies),
+       .consumer_supplies = ovti13b1_vsio_consumer_supplies,
+};
+
+static const struct tps68470_regulator_platform_data intel_nvl_tps68470_pdata = {
+       .reg_init_data = {
+               [TPS68470_CORE] = &intel_nvl_tps68470_core_reg_init_data,
+               [TPS68470_ANA]  = &intel_nvl_tps68470_ana_reg_init_data,
+               [TPS68470_VCM]  = &intel_nvl_tps68470_vcm_reg_init_data,
+               [TPS68470_VIO] = &intel_nvl_tps68470_vio_reg_init_data,
+               [TPS68470_VSIO] = &intel_nvl_tps68470_vsio_reg_init_data,
+       },
+};
+
 static struct gpiod_lookup_table surface_go_int347a_gpios = {
        .dev_id = "i2c-INT347A:00",
        .table = {
@@ -323,6 +403,14 @@ static struct gpiod_lookup_table msi_prestige_ai_evo_ovti5675_gpios = {
        }
 };
 
+static struct gpiod_lookup_table intel_nvl_tps68470_gpios = {
+       .dev_id = "i2c-OVTI13B1:01",
+       .table = {
+               GPIO_LOOKUP("tps68470-gpio", 9, "reset", GPIO_ACTIVE_LOW),
+               { }
+       }
+};
+
 static const struct property_entry int3472_tps68470_daisy_chain_gpio_props[] = {
        PROPERTY_ENTRY_BOOL("daisy-chain-enable"),
        { }
@@ -371,6 +459,16 @@ static const struct int3472_tps68470_board_data msi_prestige_ai_evo_tps68470_boa
        },
 };
 
+static const struct int3472_tps68470_board_data intel_nvl_tps68470_board_data = {
+       .dev_name = "i2c-INT3472:04",
+       .tps68470_regulator_pdata = &intel_nvl_tps68470_pdata,
+       .tps68470_gpio_swnode = &int3472_tps68470_daisy_chain_gpio_swnode,
+       .n_gpiod_lookups = 1,
+       .tps68470_gpio_lookup_tables = {
+               &intel_nvl_tps68470_gpios,
+       },
+};
+
 static const struct dmi_system_id int3472_tps68470_board_data_table[] = {
        {
                .matches = {
@@ -424,6 +522,13 @@ static const struct dmi_system_id int3472_tps68470_board_data_table[] = {
                },
                .driver_data = (void *)&msi_prestige_ai_evo_tps68470_board_data,
        },
+       {
+               .matches = {
+                       DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Nova Lake Client Platform"),
+               },
+               .driver_data = (void *)&intel_nvl_tps68470_board_data,
+       },
        { }
 };