1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
// SPDX-License-Identifier: GPL-2.0
/*
 * TI TPS68470 PMIC platform data definition.
 *
 * Copyright (c) 2021 Dan Scally <djrscally@gmail.com>
 * Copyright (c) 2021 Red Hat Inc.
 *
 * Red Hat authors:
 * Hans de Goede <hdegoede@redhat.com>
 */

#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"

static struct regulator_consumer_supply int347a_core_consumer_supplies[] = {
	REGULATOR_SUPPLY("dvdd", "i2c-INT347A:00"),
};

static struct regulator_consumer_supply int347a_ana_consumer_supplies[] = {
	REGULATOR_SUPPLY("avdd", "i2c-INT347A:00"),
};

static struct regulator_consumer_supply int347a_vcm_consumer_supplies[] = {
	REGULATOR_SUPPLY("vdd", "i2c-INT347A:00-VCM"),
};

static struct regulator_consumer_supply int347a_vsio_consumer_supplies[] = {
	REGULATOR_SUPPLY("dovdd", "i2c-INT347A:00"),
	REGULATOR_SUPPLY("vsio", "i2c-INT347A:00-VCM"),
	REGULATOR_SUPPLY("vddd", "i2c-INT347E:00"),
};

static struct regulator_consumer_supply int347a_aux1_consumer_supplies[] = {
	REGULATOR_SUPPLY("vdda", "i2c-INT347E:00"),
};

static struct regulator_consumer_supply int347a_aux2_consumer_supplies[] = {
	REGULATOR_SUPPLY("vdddo", "i2c-INT347E:00"),
};

static const struct regulator_init_data surface_go_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(int347a_core_consumer_supplies),
	.consumer_supplies = int347a_core_consumer_supplies,
};

static const struct regulator_init_data surface_go_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(int347a_ana_consumer_supplies),
	.consumer_supplies = int347a_ana_consumer_supplies,
};

static const struct regulator_init_data surface_go_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(int347a_vcm_consumer_supplies),
	.consumer_supplies = int347a_vcm_consumer_supplies,
};

/* Ensure the always-on VIO regulator has the same voltage as VSIO */
static const struct regulator_init_data surface_go_tps68470_vio_reg_init_data = {
	.constraints = {
		.min_uV = 1800600,
		.max_uV = 1800600,
		.apply_uV = true,
		.always_on = true,
	},
};

static const struct regulator_init_data surface_go_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(int347a_vsio_consumer_supplies),
	.consumer_supplies = int347a_vsio_consumer_supplies,
};

static const struct regulator_init_data surface_go_tps68470_aux1_reg_init_data = {
	.constraints = {
		.min_uV = 2815200,
		.max_uV = 2815200,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
	.num_consumer_supplies = ARRAY_SIZE(int347a_aux1_consumer_supplies),
	.consumer_supplies = int347a_aux1_consumer_supplies,
};

static const struct regulator_init_data surface_go_tps68470_aux2_reg_init_data = {
	.constraints = {
		.min_uV = 1800600,
		.max_uV = 1800600,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
	.num_consumer_supplies = ARRAY_SIZE(int347a_aux2_consumer_supplies),
	.consumer_supplies = int347a_aux2_consumer_supplies,
};

static const struct tps68470_regulator_platform_data surface_go_tps68470_pdata = {
	.reg_init_data = {
		[TPS68470_CORE] = &surface_go_tps68470_core_reg_init_data,
		[TPS68470_ANA]  = &surface_go_tps68470_ana_reg_init_data,
		[TPS68470_VCM]  = &surface_go_tps68470_vcm_reg_init_data,
		[TPS68470_VIO] = &surface_go_tps68470_vio_reg_init_data,
		[TPS68470_VSIO] = &surface_go_tps68470_vsio_reg_init_data,
		[TPS68470_AUX1] = &surface_go_tps68470_aux1_reg_init_data,
		[TPS68470_AUX2] = &surface_go_tps68470_aux2_reg_init_data,
	},
};

/* Settings for Dell 7212 Tablet */

static struct regulator_consumer_supply int3479_vsio_consumer_supplies[] = {
	REGULATOR_SUPPLY("avdd", "i2c-INT3479:00"),
};

static struct regulator_consumer_supply int3479_aux1_consumer_supplies[] = {
	REGULATOR_SUPPLY("dvdd", "i2c-INT3479:00"),
};

static struct regulator_consumer_supply int3479_aux2_consumer_supplies[] = {
	REGULATOR_SUPPLY("dovdd", "i2c-INT3479:00"),
};

static const struct regulator_init_data dell_7212_tps68470_core_reg_init_data = {
	.constraints = {
		.min_uV = 1200000,
		.max_uV = 1200000,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
};

static const struct regulator_init_data dell_7212_tps68470_ana_reg_init_data = {
	.constraints = {
		.min_uV = 2815200,
		.max_uV = 2815200,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
};

static const struct regulator_init_data dell_7212_tps68470_vcm_reg_init_data = {
	.constraints = {
		.min_uV = 2815200,
		.max_uV = 2815200,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
};

static const struct regulator_init_data dell_7212_tps68470_vio_reg_init_data = {
	.constraints = {
		.min_uV = 1800600,
		.max_uV = 1800600,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
};

static const struct regulator_init_data dell_7212_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(int3479_vsio_consumer_supplies),
	.consumer_supplies = int3479_vsio_consumer_supplies,
};

static const struct regulator_init_data dell_7212_tps68470_aux1_reg_init_data = {
	.constraints = {
		.min_uV = 1213200,
		.max_uV = 1213200,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
	.num_consumer_supplies = ARRAY_SIZE(int3479_aux1_consumer_supplies),
	.consumer_supplies = int3479_aux1_consumer_supplies,
};

static const struct regulator_init_data dell_7212_tps68470_aux2_reg_init_data = {
	.constraints = {
		.min_uV = 1800600,
		.max_uV = 1800600,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
	.num_consumer_supplies = ARRAY_SIZE(int3479_aux2_consumer_supplies),
	.consumer_supplies = int3479_aux2_consumer_supplies,
};

static const struct tps68470_regulator_platform_data dell_7212_tps68470_pdata = {
	.reg_init_data = {
		[TPS68470_CORE] = &dell_7212_tps68470_core_reg_init_data,
		[TPS68470_ANA]  = &dell_7212_tps68470_ana_reg_init_data,
		[TPS68470_VCM]  = &dell_7212_tps68470_vcm_reg_init_data,
		[TPS68470_VIO]  = &dell_7212_tps68470_vio_reg_init_data,
		[TPS68470_VSIO] = &dell_7212_tps68470_vsio_reg_init_data,
		[TPS68470_AUX1] = &dell_7212_tps68470_aux1_reg_init_data,
		[TPS68470_AUX2] = &dell_7212_tps68470_aux2_reg_init_data,
	},
};

/* 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_prestige_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_prestige_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_prestige_ai_evo_tps68470_vio_reg_init_data = {
	.constraints = {
		.min_uV = 1800600,
		.max_uV = 1800600,
		.apply_uV = 1,
		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
	},
};

static const struct regulator_init_data msi_prestige_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_prestige_ai_evo_tps68470_pdata = {
	.reg_init_data = {
		[TPS68470_CORE] = &msi_prestige_ai_evo_tps68470_core_reg_init_data,
		[TPS68470_ANA]  = &msi_prestige_ai_evo_tps68470_ana_reg_init_data,
		[TPS68470_VIO]  = &msi_prestige_ai_evo_tps68470_vio_reg_init_data,
		[TPS68470_VSIO] = &msi_prestige_ai_evo_tps68470_vsio_reg_init_data,
	},
};

/* 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 = {
		GPIO_LOOKUP("tps68470-gpio", 9, "reset", GPIO_ACTIVE_LOW),
		GPIO_LOOKUP("tps68470-gpio", 7, "powerdown", GPIO_ACTIVE_LOW),
		{ }
	}
};

static struct gpiod_lookup_table surface_go_int347e_gpios = {
	.dev_id = "i2c-INT347E:00",
	.table = {
		GPIO_LOOKUP("tps68470-gpio", 5, "enable", GPIO_ACTIVE_HIGH),
		{ }
	}
};

static struct gpiod_lookup_table dell_7212_int3479_gpios = {
	.dev_id = "i2c-INT3479:00",
	.table = {
		GPIO_LOOKUP("tps68470-gpio", 3, "reset", GPIO_ACTIVE_LOW),
		GPIO_LOOKUP("tps68470-gpio", 4, "powerdown", GPIO_ACTIVE_LOW),
		{ }
	}
};

static struct gpiod_lookup_table msi_prestige_ai_evo_ovti5675_gpios = {
	.dev_id = "i2c-OVTI5675:00",
	.table = {
		GPIO_LOOKUP("tps68470-gpio", 9, "reset", GPIO_ACTIVE_LOW),
		{ }
	}
};

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"),
	{ }
};

static const struct software_node int3472_tps68470_daisy_chain_gpio_swnode = {
	.properties = int3472_tps68470_daisy_chain_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,
	.n_gpiod_lookups = 2,
	.tps68470_gpio_lookup_tables = {
		&surface_go_int347a_gpios,
		&surface_go_int347e_gpios,
	},
};

static const struct int3472_tps68470_board_data surface_go3_tps68470_board_data = {
	.dev_name = "i2c-INT3472:01",
	.tps68470_regulator_pdata = &surface_go_tps68470_pdata,
	.n_gpiod_lookups = 2,
	.tps68470_gpio_lookup_tables = {
		&surface_go_int347a_gpios,
		&surface_go_int347e_gpios,
	},
};

static const struct int3472_tps68470_board_data dell_7212_tps68470_board_data = {
	.dev_name = "i2c-INT3472:05",
	.tps68470_regulator_pdata = &dell_7212_tps68470_pdata,
	.n_gpiod_lookups = 1,
	.tps68470_gpio_lookup_tables = {
		&dell_7212_int3479_gpios,
	},
};

static const struct int3472_tps68470_board_data msi_prestige_ai_evo_tps68470_board_data = {
	.dev_name = "i2c-INT3472:06",
	.tps68470_regulator_pdata = &msi_prestige_ai_evo_tps68470_pdata,
	.tps68470_gpio_swnode = &int3472_tps68470_daisy_chain_gpio_swnode,
	.n_gpiod_lookups = 1,
	.tps68470_gpio_lookup_tables = {
		&msi_prestige_ai_evo_ovti5675_gpios,
	},
};

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 = {
			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Go"),
		},
		.driver_data = (void *)&surface_go_tps68470_board_data,
	},
	{
		.matches = {
			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Go 2"),
		},
		.driver_data = (void *)&surface_go_tps68470_board_data,
	},
	{
		.matches = {
			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Go 3"),
		},
		.driver_data = (void *)&surface_go3_tps68470_board_data,
	},
	{
		.matches = {
			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Latitude 7212 Rugged Extreme Tablet"),
		},
		.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 13 AI+ Evo A2VMG"),
			DMI_EXACT_MATCH(DMI_BOARD_NAME, "MS-13Q3"),
		},
		.driver_data = (void *)&msi_prestige_ai_evo_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"),
			DMI_EXACT_MATCH(DMI_BOARD_NAME, "MS-14N3"),
		},
		.driver_data = (void *)&msi_prestige_ai_evo_tps68470_board_data,
	},
	{
		.matches = {
			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Micro-Star International Co., Ltd."),
			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Prestige 16 AI+ Evo B2VMG"),
			DMI_EXACT_MATCH(DMI_BOARD_NAME, "MS-15A3"),
		},
		.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,
	},
	{ }
};

const struct int3472_tps68470_board_data *int3472_tps68470_get_board_data(const char *dev_name)
{
	const struct int3472_tps68470_board_data *board_data;
	const struct dmi_system_id *match;

	for (match = dmi_first_match(int3472_tps68470_board_data_table);
	     match;
	     match = dmi_first_match(match + 1)) {
		board_data = match->driver_data;
		if (strcmp(board_data->dev_name, dev_name) == 0)
			return board_data;
	}

	return NULL;
}