platform: int3472: Add MSI prestige 14 AI EVO data
Subsystems (6)
v2 cover platform: int3472: Add MSI prestige 14 AI EVO data
This adds camera support for the MSI Prestige 14 AI EVO laptop, which uses a TPS68470 PMIC to power an OV5675 sensor.
If ok, including a GPIO patch to this series. The GPIO patch enables the TPS68470's I2C daisy chain functionality.
v2:
- Add lookup only for ov5675 reset GPIO and use GPIO_LOOKUP macro.
- Use software node for i2c daisy chain info instead of platform data.
- ov5675: fix error path in ov5675_get_hwcfg().
Antti Laakso (5):
media: i2c: ov5675: Wait for endpoint
media: ipu-bridge: Add ov5675 sensor
platform: int3472: Add gpio software node
gpio: tps68470: Add i2c daisy chain support
platform: int3472: Add MSI prestige board data
drivers/gpio/gpio-tps68470.c | 21 +++- drivers/media/i2c/ov5675.c | 32 +++--- drivers/media/pci/intel/ipu-bridge.c | 2 + drivers/platform/x86/intel/int3472/tps68470.c | 1 + drivers/platform/x86/intel/int3472/tps68470.h | 1 + .../x86/intel/int3472/tps68470_board_data.c | 101 ++++++++++++++++++ 6 files changed, 141 insertions(+), 17 deletions(-)
Signature · 1 line
2.53.0
PATCH v2 1/5 media: i2c: ov5675: Wait for endpoint
Defer probe if endpoint is not yet available. And do it before acquiring clock, gpio and regulators.
--- drivers/media/i2c/ov5675.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)
drivers/media/i2c/ov5675.c +16 -16
@@ -1181,17 +1181,26 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675)if (!fwnode)return -ENXIO ; + ep =fwnode_graph_get_endpoint_by_id (fwnode,0 ,0 , +FWNODE_GRAPH_ENDPOINT_NEXT ); + ret =v4l2_fwnode_endpoint_alloc_parse (ep, &bus_cfg); +fwnode_handle_put (ep); +if (ret) +return ret; + ov5675->xvclk =devm_v4l2_sensor_clk_get (dev,NULL ); -if (IS_ERR (ov5675->xvclk)) -return dev_err_probe (dev,PTR_ERR (ov5675->xvclk), -"failed to get xvclk: %pe\n" , - ov5675->xvclk); +if (IS_ERR (ov5675->xvclk)) { + ret =dev_err_probe (dev,PTR_ERR (ov5675->xvclk), +"failed to get xvclk\n" ); + goto check_hwcfg_error; + } xvclk_rate =clk_get_rate (ov5675->xvclk);if (xvclk_rate !=OV5675_XVCLK_19_2 ) {dev_err (dev,"external clock rate %u is unsupported" , xvclk_rate); -return -EINVAL ; + ret = -EINVAL ; + goto check_hwcfg_error; } ov5675->reset_gpio = devm_gpiod_get_optional(dev, "reset",
@@ -1199,7 +1208,7 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675)if (IS_ERR (ov5675->reset_gpio)) { ret =PTR_ERR (ov5675->reset_gpio);dev_err (dev,"failed to get reset-gpios: %d\n" , ret); -return ret; + goto check_hwcfg_error; }for (i =0 ; i <OV5675_NUM_SUPPLIES ; i++)
@@ -1208,16 +1217,7 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675) ret =devm_regulator_bulk_get (dev,OV5675_NUM_SUPPLIES , ov5675->supplies);if (ret) -return ret; - - ep =fwnode_graph_get_next_endpoint (fwnode,NULL ); -if (!ep) -return -ENXIO ; - - ret =v4l2_fwnode_endpoint_alloc_parse (ep, &bus_cfg); -fwnode_handle_put (ep); -if (ret) -return ret; + goto check_hwcfg_error;if (bus_cfg.bus.mipi_csi2.num_data_lanes !=OV5675_DATA_LANES ) { dev_err(dev, "number of CSI2 data lanes %d is not supported",
Signature · 1 line
2.53.0
Re: [PATCH v2 1/5] media: i2c: ov5675: Wait for endpoint
Hi,
Quoted 4 lines · Antti Laakso
Defer probe if endpoint is not yet available. And do it before acquiring clock, gpio and regulators.
Signed-off-by Antti Laakso <[email protected]>
Thanks, patch looks good to me:
Regards,
Hans
Quoted 67 lines
--- drivers/media/i2c/ov5675.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)drivers/media/i2c/ov5675.c +16
-16@@ -1181,17 +1181,26 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675)if (!fwnode)return -ENXIO ; + ep =fwnode_graph_get_endpoint_by_id (fwnode,0 ,0 , +FWNODE_GRAPH_ENDPOINT_NEXT ); + ret =v4l2_fwnode_endpoint_alloc_parse (ep, &bus_cfg); +fwnode_handle_put (ep); +if (ret) +return ret; + ov5675->xvclk =devm_v4l2_sensor_clk_get (dev,NULL ); -if (IS_ERR (ov5675->xvclk)) -return dev_err_probe (dev,PTR_ERR (ov5675->xvclk), -"failed to get xvclk: %pe\n" , - ov5675->xvclk); +if (IS_ERR (ov5675->xvclk)) { + ret =dev_err_probe (dev,PTR_ERR (ov5675->xvclk), +"failed to get xvclk\n" ); + goto check_hwcfg_error; + } xvclk_rate =clk_get_rate (ov5675->xvclk);if (xvclk_rate !=OV5675_XVCLK_19_2 ) {dev_err (dev,"external clock rate %u is unsupported" , xvclk_rate); -return -EINVAL ; + ret = -EINVAL ; + goto check_hwcfg_error; } ov5675->reset_gpio = devm_gpiod_get_optional(dev, "reset",@@ -1199,7 +1208,7 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675)if (IS_ERR (ov5675->reset_gpio)) { ret =PTR_ERR (ov5675->reset_gpio);dev_err (dev,"failed to get reset-gpios: %d\n" , ret); -return ret; + goto check_hwcfg_error; }for (i =0 ; i <OV5675_NUM_SUPPLIES ; i++)@@ -1208,16 +1217,7 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675) ret =devm_regulator_bulk_get (dev,OV5675_NUM_SUPPLIES , ov5675->supplies);if (ret) -return ret; - - ep =fwnode_graph_get_next_endpoint (fwnode,NULL ); -if (!ep) -return -ENXIO ; - - ret =v4l2_fwnode_endpoint_alloc_parse (ep, &bus_cfg); -fwnode_handle_put (ep); -if (ret) -return ret; + goto check_hwcfg_error;if (bus_cfg.bus.mipi_csi2.num_data_lanes !=OV5675_DATA_LANES ) { dev_err(dev, "number of CSI2 data lanes %d is not supported",
Re: [PATCH v2 1/5] media: i2c: ov5675: Wait for endpoint
In reply to Antti LaaksoHi Antti, thanks for the v2
Quoted 5 lines · Antti Laakso
Defer probe if endpoint is not yet available. And do it before acquiring clock, gpio and regulators.
Signed-off-by Antti Laakso <[email protected]>---
Quoted 66 lines
drivers/media/i2c/ov5675.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)drivers/media/i2c/ov5675.c +16
-16@@ -1181,17 +1181,26 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675)if (!fwnode)return -ENXIO ; + ep =fwnode_graph_get_endpoint_by_id (fwnode,0 ,0 , +FWNODE_GRAPH_ENDPOINT_NEXT ); + ret =v4l2_fwnode_endpoint_alloc_parse (ep, &bus_cfg); +fwnode_handle_put (ep); +if (ret) +return ret; + ov5675->xvclk =devm_v4l2_sensor_clk_get (dev,NULL ); -if (IS_ERR (ov5675->xvclk)) -return dev_err_probe (dev,PTR_ERR (ov5675->xvclk), -"failed to get xvclk: %pe\n" , - ov5675->xvclk); +if (IS_ERR (ov5675->xvclk)) { + ret =dev_err_probe (dev,PTR_ERR (ov5675->xvclk), +"failed to get xvclk\n" ); + goto check_hwcfg_error; + } xvclk_rate =clk_get_rate (ov5675->xvclk);if (xvclk_rate !=OV5675_XVCLK_19_2 ) {dev_err (dev,"external clock rate %u is unsupported" , xvclk_rate); -return -EINVAL ; + ret = -EINVAL ; + goto check_hwcfg_error; } ov5675->reset_gpio = devm_gpiod_get_optional(dev, "reset",@@ -1199,7 +1208,7 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675)if (IS_ERR (ov5675->reset_gpio)) { ret =PTR_ERR (ov5675->reset_gpio);dev_err (dev,"failed to get reset-gpios: %d\n" , ret); -return ret; + goto check_hwcfg_error; }for (i =0 ; i <OV5675_NUM_SUPPLIES ; i++)@@ -1208,16 +1217,7 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675) ret =devm_regulator_bulk_get (dev,OV5675_NUM_SUPPLIES , ov5675->supplies);if (ret) -return ret; - - ep =fwnode_graph_get_next_endpoint (fwnode,NULL ); -if (!ep) -return -ENXIO ; - - ret =v4l2_fwnode_endpoint_alloc_parse (ep, &bus_cfg); -fwnode_handle_put (ep); -if (ret) -return ret; + goto check_hwcfg_error;if (bus_cfg.bus.mipi_csi2.num_data_lanes !=OV5675_DATA_LANES ) { dev_err(dev, "number of CSI2 data lanes %d is not supported",
PATCH v2 2/5 media: ipu-bridge: Add ov5675 sensor
In reply to Antti LaaksoThe Omnivision ov5675 is found from MSI prestige 14 AI EVO laptop, for example.
--- drivers/media/pci/intel/ipu-bridge.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/media/pci/intel/ipu-bridge.c +2 -0
@@ -91,6 +91,8 @@ static const struct ipu_sensor_config ipu_supported_sensors[] = {IPU_SENSOR_CONFIG ("OVTIDB10" ,1 ,560000000 ),/* Omnivision OV2680 */ IPU_SENSOR_CONFIG ("OVTI2680" ,1 ,331200000 ), +/* Omnivision OV5675 */ +IPU_SENSOR_CONFIG ("OVTI5675" ,1 ,450000000 ),/* Omnivision OV8856 */ IPU_SENSOR_CONFIG("OVTI8856", 3, 180000000, 360000000, 720000000),/* Sony IMX471 */
Signature · 1 line
2.53.0
Sakari Ailus
maintainerRe: [PATCH v2 2/5] media: ipu-bridge: Add ov5675 sensor
Hi,
Quoted 15 lines · Antti Laakso
The Omnivision ov5675 is found from MSI prestige 14 AI EVO laptop, for example.
Signed-off-by Antti Laakso <[email protected]>Reviewed-by Daniel Scally <[email protected]>Reviewed-by Hans de Goede <[email protected]>--- drivers/media/pci/intel/ipu-bridge.c | 2 ++ 1 file changed, 2 insertions(+)drivers/media/pci/intel/ipu-bridge.c +0
-0
drivers/media/pci/intel/ipu-bridge.c static const struct ipu_sensor_config ipu_supported_sensors[] = { · line 95
Quoted 5 lines
drivers/media/pci/intel/ipu-bridge.c +2
-0@@ -91,6 +91,8 @@ static const struct ipu_sensor_config ipu_supported_sensors[] = {IPU_SENSOR_CONFIG ("OVTIDB10" ,1 ,560000000 ),/* Omnivision OV2680 */ IPU_SENSOR_CONFIG ("OVTI2680" ,1 ,331200000 ), +/* Omnivision OV5675 */ + IPU_SENSOR_CONFIG("OVTI5675", 1, 450000000),
These exact lines have been already added by commit d6576b85d3fe75238e67d3e311222e7f69730b09 as Thinkpad X1 Fold 16 has the same sensor. I've taken the rest to my tree (int3472 branch).
Thanks!
Quoted 3 lines
drivers/media/pci/intel/ipu-bridge.c +0
-0/* Omnivision OV8856 */ IPU_SENSOR_CONFIG("OVTI8856", 3, 180000000, 360000000, 720000000),/* Sony IMX471 */
Signature · 3 lines
Kind regards, Sakari Ailus
PATCH v2 3/5 platform: int3472: Add gpio software node
In reply to Antti LaaksoThe tps68470 supports i2c daisy chain, which need to be configured by gpio-tps68470 driver. Add daisy chain information to software node.
--- drivers/platform/x86/intel/int3472/tps68470.c | 1 + drivers/platform/x86/intel/int3472/tps68470.h | 1 + 2 files changed, 2 insertions(+)
drivers/platform/x86/intel/int3472/tps68470.c +1 -0
@@ -197,6 +197,7 @@ static int skl_int3472_tps68470_probe(struct i2c_client *client) cells[1 ].platform_data = (void *)board_data->tps68470_regulator_pdata; cells[1 ].pdata_size =sizeof (struct tps68470_regulator_platform_data ); cells[2 ].name ="tps68470-gpio" ; + cells[2 ].swnode = board_data->tps68470_gpio_swnode;for (i =0 ; i < board_data->n_gpiod_lookups; i++)gpiod_add_lookup_table (board_data->tps68470_gpio_lookup_tables[i]);
drivers/platform/x86/intel/int3472/tps68470.h +1 -0
@@ -17,6 +17,7 @@ struct tps68470_regulator_platform_data;struct int3472_tps68470_board_data {const char *dev_name;const struct tps68470_regulator_platform_data *tps68470_regulator_pdata; +const struct software_node *tps68470_gpio_swnode;unsigned int n_gpiod_lookups;struct gpiod_lookup_table *tps68470_gpio_lookup_tables[]; };
Signature · 1 line
2.53.0
Re: [PATCH v2 3/5] platform: int3472: Add gpio software node
Hi,
Quoted 2 lines · Antti Laakso
The tps68470 supports i2c daisy chain, which need to be configured by gpio-tps68470 driver. Add daisy chain information to software node.
Thanks, patch looks good to me:
Regards,
Hans
Quoted 32 lines
Signed-off-by Antti Laakso <[email protected]>Reviewed-by Daniel Scally <[email protected]>--- drivers/platform/x86/intel/int3472/tps68470.c | 1 + drivers/platform/x86/intel/int3472/tps68470.h | 1 + 2 files changed, 2 insertions(+)drivers/platform/x86/intel/int3472/tps68470.c +1
-0@@ -197,6 +197,7 @@ static int skl_int3472_tps68470_probe(struct i2c_client *client) cells[1 ].platform_data = (void *)board_data->tps68470_regulator_pdata; cells[1 ].pdata_size =sizeof (struct tps68470_regulator_platform_data ); cells[2 ].name ="tps68470-gpio" ; + cells[2 ].swnode = board_data->tps68470_gpio_swnode;for (i =0 ; i < board_data->n_gpiod_lookups; i++)gpiod_add_lookup_table (board_data->tps68470_gpio_lookup_tables[i]);drivers/platform/x86/intel/int3472/tps68470.h +1
-0@@ -17,6 +17,7 @@ struct tps68470_regulator_platform_data;struct int3472_tps68470_board_data {const char *dev_name;const struct tps68470_regulator_platform_data *tps68470_regulator_pdata; +const struct software_node *tps68470_gpio_swnode;unsigned int n_gpiod_lookups;struct gpiod_lookup_table *tps68470_gpio_lookup_tables[]; };
Re: [PATCH v2 3/5] platform: int3472: Add gpio software node
In reply to Antti LaaksoQuoted 35 lines · Antti Laakso
The tps68470 supports i2c daisy chain, which need to be configured by gpio-tps68470 driver. Add daisy chain information to software node.
Signed-off-by Antti Laakso <[email protected]>Reviewed-by Daniel Scally <[email protected]>--- drivers/platform/x86/intel/int3472/tps68470.c | 1 + drivers/platform/x86/intel/int3472/tps68470.h | 1 + 2 files changed, 2 insertions(+)drivers/platform/x86/intel/int3472/tps68470.c +1
-0@@ -197,6 +197,7 @@ static int skl_int3472_tps68470_probe(struct i2c_client *client) cells[1 ].platform_data = (void *)board_data->tps68470_regulator_pdata; cells[1 ].pdata_size =sizeof (struct tps68470_regulator_platform_data ); cells[2 ].name ="tps68470-gpio" ; + cells[2 ].swnode = board_data->tps68470_gpio_swnode;for (i =0 ; i < board_data->n_gpiod_lookups; i++)gpiod_add_lookup_table (board_data->tps68470_gpio_lookup_tables[i]);drivers/platform/x86/intel/int3472/tps68470.h +1
-1@@ -17,6 +17,7 @@ struct tps68470_regulator_platform_data;struct int3472_tps68470_board_data {const char *dev_name;const struct tps68470_regulator_platform_data *tps68470_regulator_pdata; +const struct software_node *tps68470_gpio_swnode;unsigned int n_gpiod_lookups;struct gpiod_lookup_table *tps68470_gpio_lookup_tables[]; }; --
Quoted 3 lines
2.53.0
Re: [PATCH v2 3/5] platform: int3472: Add gpio software node
In reply to Antti LaaksoQuoted 28 lines · Antti Laakso
The tps68470 supports i2c daisy chain, which need to be configured by gpio-tps68470 driver. Add daisy chain information to software node.
Signed-off-by Antti Laakso <[email protected]>Reviewed-by Daniel Scally <[email protected]>--- drivers/platform/x86/intel/int3472/tps68470.c | 1 + drivers/platform/x86/intel/int3472/tps68470.h | 1 + 2 files changed, 2 insertions(+)drivers/platform/x86/intel/int3472/tps68470.c +1
-0@@ -197,6 +197,7 @@ static int skl_int3472_tps68470_probe(struct i2c_client *client) cells[1 ].platform_data = (void *)board_data->tps68470_regulator_pdata; cells[1 ].pdata_size =sizeof (struct tps68470_regulator_platform_data ); cells[2 ].name ="tps68470-gpio" ; + cells[2 ].swnode = board_data->tps68470_gpio_swnode;for (i =0 ; i < board_data->n_gpiod_lookups; i++)gpiod_add_lookup_table (board_data->tps68470_gpio_lookup_tables[i]);drivers/platform/x86/intel/int3472/tps68470.h +0
-0
drivers/platform/x86/intel/int3472/tps68470.h struct tps68470_regulator_platform_data; · line 23
Quoted 7 lines
drivers/platform/x86/intel/int3472/tps68470.h +1
-0@@ -17,6 +17,7 @@ struct tps68470_regulator_platform_data;struct int3472_tps68470_board_data {const char *dev_name;const struct tps68470_regulator_platform_data *tps68470_regulator_pdata; +const struct software_node *tps68470_gpio_swnode;unsigned int n_gpiod_lookups;struct gpiod_lookup_table *tps68470_gpio_lookup_tables[]; };
Signature · 1 line
i.
PATCH v2 4/5 gpio: tps68470: Add i2c daisy chain support
In reply to Antti LaaksoThe tps68470 daisy chain make use of gpio 1 and 2. When in use, these gpios must be configured as inputs without pull-up.
--- drivers/gpio/gpio-tps68470.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
drivers/gpio/gpio-tps68470.c +20 -1
@@ -120,6 +120,17 @@ static int tps68470_gpio_input(struct gpio_chip *gc, unsigned int offset) TPS68470_GPIO_MODE_MASK, 0x00); } +static int tps68470_enable_i2c_daisy_chain (struct gpio_chip *gc) +{ +int ret; + + ret =tps68470_gpio_input (gc,1 ); +if (ret) +return ret; + +return tps68470_gpio_input (gc,2 ); +} +static const char *tps68470_names[TPS68470_N_GPIO ] = {"gpio.0" ,"gpio.1" ,"gpio.2" ,"gpio.3" ,"gpio.4" ,"gpio.5" ,"gpio.6" ,
@@ -129,6 +140,7 @@ static const char *tps68470_names[TPS68470_N_GPIO] = {static int tps68470_gpio_probe (struct platform_device *pdev) {struct tps68470_gpio_data *tps68470_gpio; +int ret; tps68470_gpio =devm_kzalloc (&pdev->dev,sizeof (*tps68470_gpio),GFP_KERNEL );
@@ -149,7 +161,14 @@ static int tps68470_gpio_probe(struct platform_device *pdev) tps68470_gpio->gc.base =-1 ; tps68470_gpio->gc.parent = &pdev->dev; -return devm_gpiochip_add_data (&pdev->dev, &tps68470_gpio->gc, tps68470_gpio); + ret =devm_gpiochip_add_data (&pdev->dev, &tps68470_gpio->gc, tps68470_gpio); +if (ret) +return ret; + +if (device_property_present (&pdev->dev,"daisy-chain-enable" )) + ret =tps68470_enable_i2c_daisy_chain (&tps68470_gpio->gc); + +return ret; }static struct platform_driver tps68470_gpio_driver = {
Signature · 1 line
2.53.0
Re: [PATCH v2 4/5] gpio: tps68470: Add i2c daisy chain support
Hi,
Quoted 5 lines · Antti Laakso
The tps68470 daisy chain make use of gpio 1 and 2. When in use, these gpios must be configured as inputs without pull-up.
Signed-off-by Antti Laakso <[email protected]>Reviewed-by Daniel Scally <[email protected]>
Thanks, patch looks good to me:
Regards,
Hans
Quoted 50 lines
--- drivers/gpio/gpio-tps68470.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)drivers/gpio/gpio-tps68470.c +20
-1@@ -120,6 +120,17 @@ static int tps68470_gpio_input(struct gpio_chip *gc, unsigned int offset) TPS68470_GPIO_MODE_MASK, 0x00); } +static int tps68470_enable_i2c_daisy_chain (struct gpio_chip *gc) +{ +int ret; + + ret =tps68470_gpio_input (gc,1 ); +if (ret) +return ret; + +return tps68470_gpio_input (gc,2 ); +} +static const char *tps68470_names[TPS68470_N_GPIO ] = {"gpio.0" ,"gpio.1" ,"gpio.2" ,"gpio.3" ,"gpio.4" ,"gpio.5" ,"gpio.6" ,@@ -129,6 +140,7 @@ static const char *tps68470_names[TPS68470_N_GPIO] = {static int tps68470_gpio_probe (struct platform_device *pdev) {struct tps68470_gpio_data *tps68470_gpio; +int ret; tps68470_gpio =devm_kzalloc (&pdev->dev,sizeof (*tps68470_gpio),GFP_KERNEL );@@ -149,7 +161,14 @@ static int tps68470_gpio_probe(struct platform_device *pdev) tps68470_gpio->gc.base =-1 ; tps68470_gpio->gc.parent = &pdev->dev; -return devm_gpiochip_add_data (&pdev->dev, &tps68470_gpio->gc, tps68470_gpio); + ret =devm_gpiochip_add_data (&pdev->dev, &tps68470_gpio->gc, tps68470_gpio); +if (ret) +return ret; + +if (device_property_present (&pdev->dev,"daisy-chain-enable" )) + ret =tps68470_enable_i2c_daisy_chain (&tps68470_gpio->gc); + +return ret; }static struct platform_driver tps68470_gpio_driver = {
Re: [PATCH v2 4/5] gpio: tps68470: Add i2c daisy chain support
In reply to Antti LaaksoQuoted 6 lines · Antti Laakso
The tps68470 daisy chain make use of gpio 1 and 2. When in use, these gpios must be configured as inputs without pull-up.
Signed-off-by Antti Laakso <[email protected]>Reviewed-by Daniel Scally <[email protected]>---
PATCH v2 5/5 platform: int3472: Add MSI prestige board data
In reply to Antti LaaksoDefine regulators and gpio for ov5675 in MSI Prestige 14 AI EVO+ laptop.
--- .../x86/intel/int3472/tps68470_board_data.c | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+)
drivers/platform/x86/intel/int3472/tps68470_board_data.c +101 -0
@@ -12,6 +12,7 @@#include <linux/dmi.h> #include <linux/gpio/machine.h> #include <linux/platform_data/tps68470.h> +#include <linux/property.h> #include <linux/regulator/machine.h> #include "tps68470.h"
@@ -232,6 +233,72 @@ static const struct tps68470_regulator_platform_data dell_7212_tps68470_pdata = }, }; +/* Settings for MSI Prestige 14 AI+ Evo C2VMG laptop. */ +static struct regulator_consumer_supply ovti5675_avdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("avdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dovdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dovdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dvdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dvdd" ,"i2c-OVTI5675:00" ), +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_core_reg_init_data = { + .constraints = { + .min_uV =1200000 , + .max_uV =1200000 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dvdd_consumer_supplies), + .consumer_supplies = ovti5675_dvdd_consumer_supplies, +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_ana_reg_init_data = { + .constraints = { + .min_uV =2815200 , + .max_uV =2815200 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_avdd_consumer_supplies), + .consumer_supplies = ovti5675_avdd_consumer_supplies, +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_vio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =0 , + .consumer_supplies =NULL , +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_vsio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dovdd_consumer_supplies), + .consumer_supplies = ovti5675_dovdd_consumer_supplies, +}; + +static const struct tps68470_regulator_platform_data msi_p14_ai_evo_tps68470_pdata = { + .reg_init_data = { + [TPS68470_CORE ] = &msi_p14_ai_evo_tps68470_core_reg_init_data, + [TPS68470_ANA ] = &msi_p14_ai_evo_tps68470_ana_reg_init_data, + [TPS68470_VIO ] = &msi_p14_ai_evo_tps68470_vio_reg_init_data, + [TPS68470_VSIO ] = &msi_p14_ai_evo_tps68470_vsio_reg_init_data, + }, +}; +static struct gpiod_lookup_table surface_go_int347a_gpios = { .dev_id ="i2c-INT347A:00" , .table = {
@@ -258,6 +325,23 @@ static struct gpiod_lookup_table dell_7212_int3479_gpios = { } }; +static struct gpiod_lookup_table msi_p14_ai_evo_ovti5675_gpios = { + .dev_id ="i2c-OVTI5675:00" , + .table = { +GPIO_LOOKUP ("tps68470-gpio" ,9 ,"reset" ,GPIO_ACTIVE_LOW ), + { } + } +}; + +static const struct property_entry msi_p14_ai_evo_gpio_props[] = { +PROPERTY_ENTRY_BOOL ("daisy-chain-enable" ), + { } +}; + +static const struct software_node msi_p14_ai_evo_tps68470_gpio_swnode = { + .properties = msi_p14_ai_evo_gpio_props, +}; +static const struct int3472_tps68470_board_data surface_go_tps68470_board_data = { .dev_name ="i2c-INT3472:05" , .tps68470_regulator_pdata = &surface_go_tps68470_pdata,
@@ -287,6 +371,16 @@ static const struct int3472_tps68470_board_data dell_7212_tps68470_board_data = }, }; +static const struct int3472_tps68470_board_data msi_p14_ai_evo_tps68470_board_data = { + .dev_name ="i2c-INT3472:06" , + .tps68470_regulator_pdata = &msi_p14_ai_evo_tps68470_pdata, + .tps68470_gpio_swnode = &msi_p14_ai_evo_tps68470_gpio_swnode, + .n_gpiod_lookups =1 , + .tps68470_gpio_lookup_tables = { + &msi_p14_ai_evo_ovti5675_gpios, + }, +}; +static const struct dmi_system_id int3472_tps68470_board_data_table[] = { { .matches = {
@@ -316,6 +410,13 @@ static const struct dmi_system_id int3472_tps68470_board_data_table[] = { }, .driver_data = (void *)&dell_7212_tps68470_board_data, }, + { + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Micro-Star International Co., Ltd."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Prestige 14 AI+ Evo C2VMG"), + }, + .driver_data = (void *)&msi_p14_ai_evo_tps68470_board_data, + }, { } };
Signature · 1 line
2.53.0
Re: [PATCH v2 5/5] platform: int3472: Add MSI prestige board data
Hi,
Quoted 58 lines · Antti Laakso
Define regulators and gpio for ov5675 in MSI Prestige 14 AI EVO+ laptop.
Signed-off-by Antti Laakso <[email protected]>--- .../x86/intel/int3472/tps68470_board_data.c | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+)drivers/platform/x86/intel/int3472/tps68470_board_data.c +36
-0@@ -12,6 +12,7 @@#include <linux/dmi.h> #include <linux/gpio/machine.h> #include <linux/platform_data/tps68470.h> +#include <linux/property.h> #include <linux/regulator/machine.h> #include "tps68470.h" @@ -232,6 +233,72 @@ static const struct tps68470_regulator_platform_data dell_7212_tps68470_pdata = }, }; +/* Settings for MSI Prestige 14 AI+ Evo C2VMG laptop. */ +static struct regulator_consumer_supply ovti5675_avdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("avdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dovdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dovdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dvdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dvdd" ,"i2c-OVTI5675:00" ), +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_core_reg_init_data = { + .constraints = { + .min_uV =1200000 , + .max_uV =1200000 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dvdd_consumer_supplies), + .consumer_supplies = ovti5675_dvdd_consumer_supplies, +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_ana_reg_init_data = { + .constraints = { + .min_uV =2815200 , + .max_uV =2815200 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_avdd_consumer_supplies), + .consumer_supplies = ovti5675_avdd_consumer_supplies, +}; +
drivers/platform/x86/intel/int3472/tps68470_board_data.c static const struct tps68470_regulator_platform_data dell_7212_tps68470_pdata = · line 280
Quoted 10 lines
drivers/platform/x86/intel/int3472/tps68470_board_data.c +9
-0+static const struct regulator_init_data msi_p14_ai_evo_tps68470_vio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =0 , + .consumer_supplies =NULL ,
Nit (no need to fix unless you need to do a v3 for other reasons), these 2 explicit foo = 0 initializers are not necessary and can be dropped.
Otherwise this looks good to me:
Regards,
Hans
Quoted 80 lines
drivers/platform/x86/intel/int3472/tps68470_board_data.c +22
-0+}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_vsio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dovdd_consumer_supplies), + .consumer_supplies = ovti5675_dovdd_consumer_supplies, +}; + +static const struct tps68470_regulator_platform_data msi_p14_ai_evo_tps68470_pdata = { + .reg_init_data = { + [TPS68470_CORE ] = &msi_p14_ai_evo_tps68470_core_reg_init_data, + [TPS68470_ANA ] = &msi_p14_ai_evo_tps68470_ana_reg_init_data, + [TPS68470_VIO ] = &msi_p14_ai_evo_tps68470_vio_reg_init_data, + [TPS68470_VSIO ] = &msi_p14_ai_evo_tps68470_vsio_reg_init_data, + }, +}; +static struct gpiod_lookup_table surface_go_int347a_gpios = { .dev_id ="i2c-INT347A:00" ,drivers/platform/x86/intel/int3472/tps68470_board_data.c +34
-0.table = {@@ -258,6 +325,23 @@ static struct gpiod_lookup_table dell_7212_int3479_gpios = { } }; +static struct gpiod_lookup_table msi_p14_ai_evo_ovti5675_gpios = { + .dev_id ="i2c-OVTI5675:00" , + .table = { +GPIO_LOOKUP ("tps68470-gpio" ,9 ,"reset" ,GPIO_ACTIVE_LOW ), + { } + } +}; + +static const struct property_entry msi_p14_ai_evo_gpio_props[] = { +PROPERTY_ENTRY_BOOL ("daisy-chain-enable" ), + { } +}; + +static const struct software_node msi_p14_ai_evo_tps68470_gpio_swnode = { + .properties = msi_p14_ai_evo_gpio_props, +}; +static const struct int3472_tps68470_board_data surface_go_tps68470_board_data = { .dev_name ="i2c-INT3472:05" , .tps68470_regulator_pdata = &surface_go_tps68470_pdata,@@ -287,6 +371,16 @@ static const struct int3472_tps68470_board_data dell_7212_tps68470_board_data = }, }; +static const struct int3472_tps68470_board_data msi_p14_ai_evo_tps68470_board_data = { + .dev_name ="i2c-INT3472:06" , + .tps68470_regulator_pdata = &msi_p14_ai_evo_tps68470_pdata, + .tps68470_gpio_swnode = &msi_p14_ai_evo_tps68470_gpio_swnode, + .n_gpiod_lookups =1 , + .tps68470_gpio_lookup_tables = { + &msi_p14_ai_evo_ovti5675_gpios, + }, +}; +static const struct dmi_system_id int3472_tps68470_board_data_table[] = { { .matches = {@@ -316,6 +410,13 @@ static const struct dmi_system_id int3472_tps68470_board_data_table[] = { }, .driver_data = (void *)&dell_7212_tps68470_board_data, }, + { + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Micro-Star International Co., Ltd."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Prestige 14 AI+ Evo C2VMG"), + }, + .driver_data = (void *)&msi_p14_ai_evo_tps68470_board_data, + }, { } };
Sakari Ailus
maintainerRe: [PATCH v2 5/5] platform: int3472: Add MSI prestige board data
Hi Hans, others,
Quoted 8 lines · Hans de Goede
Quoted 7 lines
drivers/platform/x86/intel/int3472/tps68470_board_data.c +7
-0+static const struct regulator_init_data msi_p14_ai_evo_tps68470_vio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + },
Quoted 6 lines
drivers/platform/x86/intel/int3472/tps68470_board_data.c static const struct tps68470_regulator_platform_data dell_7212_tps68470_pdata = · line 279
Quoted 2 lines
drivers/platform/x86/intel/int3472/tps68470_board_data.c +2
-0+ .num_consumer_supplies = 0, + .consumer_supplies = NULL,Nit (no need to fix unless you need to do a v3 for other reasons), these 2 explicit foo = 0 initializers are not necessary and can be dropped.
I can fix this while applying...
Quoted 4 lines
Otherwise this looks good to me:
Reviewed-by Hans de Goede <[email protected]>
...assuming everyone is fine with merging these via the media tree. Let me know if there are concerns.
Thank you for the reviews.
Signature · 3 lines
Kind regards, Sakari Ailus
Re: [PATCH v2 5/5] platform: int3472: Add MSI prestige board data
In reply to Antti LaaksoQuoted 4 lines · Antti Laakso
Define regulators and gpio for ov5675 in MSI Prestige 14 AI EVO+ laptop.
Signed-off-by Antti Laakso <[email protected]>---
Re: [PATCH v2 5/5] platform: int3472: Add MSI prestige board data
In reply to Antti LaaksoQuoted 4 lines · Antti Laakso
Define regulators and gpio for ov5675 in MSI Prestige 14 AI EVO+ laptop.
Signed-off-by Antti Laakso <[email protected]>---
Looks good to me:
Quoted 143 lines
.../x86/intel/int3472/tps68470_board_data.c | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+)drivers/platform/x86/intel/int3472/tps68470_board_data.c +101
-0@@ -12,6 +12,7 @@#include <linux/dmi.h> #include <linux/gpio/machine.h> #include <linux/platform_data/tps68470.h> +#include <linux/property.h> #include <linux/regulator/machine.h> #include "tps68470.h" @@ -232,6 +233,72 @@ static const struct tps68470_regulator_platform_data dell_7212_tps68470_pdata = }, }; +/* Settings for MSI Prestige 14 AI+ Evo C2VMG laptop. */ +static struct regulator_consumer_supply ovti5675_avdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("avdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dovdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dovdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dvdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dvdd" ,"i2c-OVTI5675:00" ), +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_core_reg_init_data = { + .constraints = { + .min_uV =1200000 , + .max_uV =1200000 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dvdd_consumer_supplies), + .consumer_supplies = ovti5675_dvdd_consumer_supplies, +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_ana_reg_init_data = { + .constraints = { + .min_uV =2815200 , + .max_uV =2815200 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_avdd_consumer_supplies), + .consumer_supplies = ovti5675_avdd_consumer_supplies, +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_vio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =0 , + .consumer_supplies =NULL , +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_vsio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dovdd_consumer_supplies), + .consumer_supplies = ovti5675_dovdd_consumer_supplies, +}; + +static const struct tps68470_regulator_platform_data msi_p14_ai_evo_tps68470_pdata = { + .reg_init_data = { + [TPS68470_CORE ] = &msi_p14_ai_evo_tps68470_core_reg_init_data, + [TPS68470_ANA ] = &msi_p14_ai_evo_tps68470_ana_reg_init_data, + [TPS68470_VIO ] = &msi_p14_ai_evo_tps68470_vio_reg_init_data, + [TPS68470_VSIO ] = &msi_p14_ai_evo_tps68470_vsio_reg_init_data, + }, +}; +static struct gpiod_lookup_table surface_go_int347a_gpios = { .dev_id ="i2c-INT347A:00" , .table = {@@ -258,6 +325,23 @@ static struct gpiod_lookup_table dell_7212_int3479_gpios = { } }; +static struct gpiod_lookup_table msi_p14_ai_evo_ovti5675_gpios = { + .dev_id ="i2c-OVTI5675:00" , + .table = { +GPIO_LOOKUP ("tps68470-gpio" ,9 ,"reset" ,GPIO_ACTIVE_LOW ), + { } + } +}; + +static const struct property_entry msi_p14_ai_evo_gpio_props[] = { +PROPERTY_ENTRY_BOOL ("daisy-chain-enable" ), + { } +}; + +static const struct software_node msi_p14_ai_evo_tps68470_gpio_swnode = { + .properties = msi_p14_ai_evo_gpio_props, +}; +static const struct int3472_tps68470_board_data surface_go_tps68470_board_data = { .dev_name ="i2c-INT3472:05" , .tps68470_regulator_pdata = &surface_go_tps68470_pdata,@@ -287,6 +371,16 @@ static const struct int3472_tps68470_board_data dell_7212_tps68470_board_data = }, }; +static const struct int3472_tps68470_board_data msi_p14_ai_evo_tps68470_board_data = { + .dev_name ="i2c-INT3472:06" , + .tps68470_regulator_pdata = &msi_p14_ai_evo_tps68470_pdata, + .tps68470_gpio_swnode = &msi_p14_ai_evo_tps68470_gpio_swnode, + .n_gpiod_lookups =1 , + .tps68470_gpio_lookup_tables = { + &msi_p14_ai_evo_ovti5675_gpios, + }, +}; +static const struct dmi_system_id int3472_tps68470_board_data_table[] = { { .matches = {@@ -316,6 +410,13 @@ static const struct dmi_system_id int3472_tps68470_board_data_table[] = { }, .driver_data = (void *)&dell_7212_tps68470_board_data, }, + { + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Micro-Star International Co., Ltd."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Prestige 14 AI+ Evo C2VMG"), + }, + .driver_data = (void *)&msi_p14_ai_evo_tps68470_board_data, + }, { } };
Re: [PATCH v2 5/5] platform: int3472: Add MSI prestige board data
In reply to Antti LaaksoQuoted 138 lines · Antti Laakso
Define regulators and gpio for ov5675 in MSI Prestige 14 AI EVO+ laptop.
Signed-off-by Antti Laakso <[email protected]>--- .../x86/intel/int3472/tps68470_board_data.c | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+)drivers/platform/x86/intel/int3472/tps68470_board_data.c +94
-0@@ -12,6 +12,7 @@#include <linux/dmi.h> #include <linux/gpio/machine.h> #include <linux/platform_data/tps68470.h> +#include <linux/property.h> #include <linux/regulator/machine.h> #include "tps68470.h" @@ -232,6 +233,72 @@ static const struct tps68470_regulator_platform_data dell_7212_tps68470_pdata = }, }; +/* Settings for MSI Prestige 14 AI+ Evo C2VMG laptop. */ +static struct regulator_consumer_supply ovti5675_avdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("avdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dovdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dovdd" ,"i2c-OVTI5675:00" ), +}; + +static struct regulator_consumer_supply ovti5675_dvdd_consumer_supplies[] = { +REGULATOR_SUPPLY ("dvdd" ,"i2c-OVTI5675:00" ), +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_core_reg_init_data = { + .constraints = { + .min_uV =1200000 , + .max_uV =1200000 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dvdd_consumer_supplies), + .consumer_supplies = ovti5675_dvdd_consumer_supplies, +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_ana_reg_init_data = { + .constraints = { + .min_uV =2815200 , + .max_uV =2815200 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_avdd_consumer_supplies), + .consumer_supplies = ovti5675_avdd_consumer_supplies, +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_vio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =0 , + .consumer_supplies =NULL , +}; + +static const struct regulator_init_data msi_p14_ai_evo_tps68470_vsio_reg_init_data = { + .constraints = { + .min_uV =1800600 , + .max_uV =1800600 , + .apply_uV =1 , + .valid_ops_mask =REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (ovti5675_dovdd_consumer_supplies), + .consumer_supplies = ovti5675_dovdd_consumer_supplies, +}; + +static const struct tps68470_regulator_platform_data msi_p14_ai_evo_tps68470_pdata = { + .reg_init_data = { + [TPS68470_CORE ] = &msi_p14_ai_evo_tps68470_core_reg_init_data, + [TPS68470_ANA ] = &msi_p14_ai_evo_tps68470_ana_reg_init_data, + [TPS68470_VIO ] = &msi_p14_ai_evo_tps68470_vio_reg_init_data, + [TPS68470_VSIO ] = &msi_p14_ai_evo_tps68470_vsio_reg_init_data, + }, +}; +static struct gpiod_lookup_table surface_go_int347a_gpios = { .dev_id ="i2c-INT347A:00" , .table = {@@ -258,6 +325,23 @@ static struct gpiod_lookup_table dell_7212_int3479_gpios = { } }; +static struct gpiod_lookup_table msi_p14_ai_evo_ovti5675_gpios = { + .dev_id ="i2c-OVTI5675:00" , + .table = { +GPIO_LOOKUP ("tps68470-gpio" ,9 ,"reset" ,GPIO_ACTIVE_LOW ), + { } + } +}; + +static const struct property_entry msi_p14_ai_evo_gpio_props[] = { +PROPERTY_ENTRY_BOOL ("daisy-chain-enable" ), + { } +}; + +static const struct software_node msi_p14_ai_evo_tps68470_gpio_swnode = { + .properties = msi_p14_ai_evo_gpio_props, +}; +static const struct int3472_tps68470_board_data surface_go_tps68470_board_data = { .dev_name ="i2c-INT3472:05" , .tps68470_regulator_pdata = &surface_go_tps68470_pdata,@@ -287,6 +371,16 @@ static const struct int3472_tps68470_board_data dell_7212_tps68470_board_data = }, }; +static const struct int3472_tps68470_board_data msi_p14_ai_evo_tps68470_board_data = { + .dev_name ="i2c-INT3472:06" , + .tps68470_regulator_pdata = &msi_p14_ai_evo_tps68470_pdata, + .tps68470_gpio_swnode = &msi_p14_ai_evo_tps68470_gpio_swnode, + .n_gpiod_lookups =1 , + .tps68470_gpio_lookup_tables = { + &msi_p14_ai_evo_ovti5675_gpios, + }, +}; +static const struct dmi_system_id int3472_tps68470_board_data_table[] = { { .matches = {@@ -316,6 +410,13 @@ static const struct dmi_system_id int3472_tps68470_board_data_table[] = { }, .driver_data = (void *)&dell_7212_tps68470_board_data, },
drivers/platform/x86/intel/int3472/tps68470_board_data.c static const struct dmi_system_id int3472_tps68470_board_data_table[] = { · line 422
Quoted 10 lines
drivers/platform/x86/intel/int3472/tps68470_board_data.c +7
-0+ { + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Micro-Star International Co., Ltd."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Prestige 14 AI+ Evo C2VMG"), + }, + .driver_data = (void *)&msi_p14_ai_evo_tps68470_board_data, + }, { } };
Signature · 1 line
i.