Fixing cameras on the Dell Latitude 5290 2-in-1
My main daily-driver laptop is a Dell Latitude 5290 2-in-1, a cute 12" tablet-laptop-hybrid-thing. Like most x86-64 laptops, it pretty much just works out of the box on Linux.
That is, except for the cameras.
You see, on most laptops the webcam is internally connected over USB, and basically shows up like any USB webcam would. These all use the UVC standard, and do all the image processing on the camera itself.
However, this laptop, and a few similar tablet-laptop hybrids of its kind, are special - they use image sensors made for tablets and mobile devices, and the thing you need to know about those sensors is that they don't just drive themselves - you need to connect them to a camera interface over CSI, and probably configure them over I2C. Moreover, these cameras also need to have a separate power management IC, and that also communicates over I2C.
Unlike USB webcams, these can't be easily autodetected, and every sensor is going to be different. Better yet, we need to have some configuration values for the PMIC.
Looking beyond the Surface
Luckily for us, the relevant drivers for the CSI interface found on Intel devices are upstreamed. Doubly luckily for us, these are (in)famously used by the Microsoft Surface series of devices, which have a fairly active community. Thus, my first attempts to research this, back in June 2025, led me to the Surface laptops - and it turns out, their wiki has some reverse engineering tips.
For some of the work to build camera support, reverse engineering the settings made by the Windows drivers for either the camera devices or their supporting ICs is necessary. One way to do this is to talk to the i2c devices directly and read the registers to discover the settings. A mandatory first step is informing Windows that direct user access to those devices is allowed.
As it turns out, this section describes how to talk to the raw I2C devices. On Linux, this would be as easy as installing i2c-tools and running i2cget as root, making sure to select the right I2C bus.
On Windows, the process looks as follows:
- Download the Microsoft ASL Compiler, which is part of the Windows Driver Kit.
- It also requires the Windows 10 SDK, and the SDK version must match the WDK.
- Dump and decompile the ACPI tables.
- Inside the DSDT table, find the entry for the PMIC's I2C device.
- Add an I2cSerialBus entry describing the I2C Bus.
- Recompile the ACPI table.
- Enable test signing mode, disable secure boot and load the modified ACPI table.
- Get I2cTestTool to talk to the devices.
- I2cTestTool is only available in source code format…
- …as part of a now-archived repository of SDK examples for Windows 10 IoT…
- …and to compile it, you have to download the entirety of Visual Studio and the relevant Windows 10 SDKs…
- …making sure to select an SDK version old enough to work with the project.
I tried to more or less follow the process in that section, but couldn't figure out how to actually go through with the whole ACPI modification thing succesfully, and I think I had some trouble compiling the I2cTestTool; so I ended up leaving that idea as a last resort.
Looking into ACPI
However, these tips did give me a concrete place to look for data - the ACPI table. At that point I only really heard of ACPI as something that is queried for some stuff like memory regions or power button or shutdown info.
On Linux on ARM, the closest equivalent to this is the Devicetree - a nice, simple tree-like structure with nested nodes representing the hardware, properties with string names and easily decodable values. DTs are loaded into memory by the bootloader and parsed by the kernel, and we generally have control over them.
ACPI is not Devicetree.

The above is an example from the linked wiki page. Seems simple enough I guess… it's a bit more convoluted than DT, but sure, maybe they need the complexity.
So I grab my laptop's ACPI tables (this time under Linux, with sudo acpidump -o tables.dat and acpixtract -a tables.dat and iasl -d *.dat) and scroll through the decompiled output, in particular the dsdt.dsl file, to get more familiar with the syntax.

Oh no. This isn't a data format. This is a programming language masquerading as a data format.
See also: Data-shaped and code-shaped problems.
…anyways, putting aside the culture shock, I began searching for anything that sounded like it would be relevant. My first guess was INT3472, which is mentioned in the name of the kernel driver for the PMIC. You see, when you boot up the laptop, the following helpful error shows up in dmesg:
[ 1.486634] int3472-tps68470 i2c-INT3472:05: TPS68470 REVID: 0x21
[ 1.486950] int3472-tps68470 i2c-INT3472:05: error -ENODEV: No board-data found for this modelAnd sure enough, there are some “Device” nodes in the DSDT that mention the INT3472 HID (Hardware ID):
Device (DSC0)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "INT3472") // _HID: Hardware ID
Name (_CID, "INT3472") // _CID: Compatible ID
Name (_DDN, "PMIC-CRDG") // _DDN: DOS Device Name
Name (_UID, Zero) // _UID: Unique ID
/* ... */The closest to any kind of values was this block - at first I skipped it, since nothing seemed to match up with the TPS68470's registers.
Method (CLDB, 0, NotSerialized)
{
Name (PAR, Buffer (0x20)
{
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
/* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
/* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........
})
PAR [Zero] = C0VE /* \C0VE */
PAR [One] = C0TP /* \C0TP */
PAR [0x03] = C0CV /* \C0CV */
PAR [0x08] = C0W0 /* \C0W0 */
PAR [0x09] = C0W1 /* \C0W1 */
PAR [0x0A] = C0W2 /* \C0W2 */
PAR [0x0B] = C0W3 /* \C0W3 */
PAR [0x0C] = C0W4 /* \C0W4 */
PAR [0x0D] = C0W5 /* \C0W5 */
Return (PAR) /* \_SB_.PCI0.DSC0.CLDB.PAR_ */
}As it turns out, CLDB is actually the table used by the INT3472 driver to get information about what PMIC is available, and some other metadata. The full structure is defined in include/linux/platform_data/x86/int3472.h:
struct int3472_cldb {
u8 version;
/*
* control logic type
* 0: UNKNOWN
* 1: DISCRETE(CRD-D)
* 2: PMIC TPS68470
* 3: PMIC uP6641
*/
u8 control_logic_type;
u8 control_logic_id;
u8 sensor_card_sku;
u8 reserved[10];
u8 clock_source;
u8 reserved2[17];
};The particular example above is empty, but we did have a table with data later on:
Scope (_SB.PCI0.I2C2)
{
Device (PMIC)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "INT3472") // _HID: Hardware ID
Name (_CID, "INT3472") // _CID: Compatible ID
Name (_DDN, "PMIC-CRDG2") // _DDN: DOS Device Name
Name (_UID, "0") // _UID: Unique ID
Name (_PLD, Package (0x01) // _PLD: Physical Location of Device
{
/* ... */
Method (CLDB, 0, NotSerialized)
{
Name (PAR, Buffer (0x20)
{
/* 0000 */ 0x00, 0x02, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, // ...P....
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
/* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
/* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........
})
Return (PAR) /* \_SB_.PCI0.I2C2.PMIC.CLDB.PAR_ */
}Indeed, if we look at the CLDB of that node, and match up the 2nd 8-bit value (0x02), that would point towards the TPS68470 being used as the PMIC.
This node also tells us that we're dealing with I2C2 on PCI0(?).
It seems that the kernel is able to read the data from this table and figure out that the PMIC is there, but it errors out since it's missing some platform data. That platform data is stored in drivers/platform/x86/intel/int3472/tps68470_board_data.c. These tables are hardcoded in the kernel - see an example for the Surface Go:
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,
},
};With the relevant linked structs being:
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,
},
};
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),
{ }
}
};The regulator data linked in the first table:
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,
};
/* ... */That's quite a lot of things that the ACPI isn't going to help us with.
Out of curiosity, I tried to also see if I could find something out about the sensors. There's a table on the Surface wiki page with ACPI sensor IDs, so I looked around, and… sure enough, there are some nodes:
Scope (_SB.PCI0.I2C2)
{
Device (CAM0)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "INT3471") // _HID: Hardware ID
Name (_CID, "INT3471") // _CID: Compatible ID
Name (_DDN, "IMX135-CRDG2") // _DDN: DOS Device Name
Name (_UID, "0") // _UID: Unique ID
Name (_DEP, Package (0x01) // _DEP: Dependencies
{
PMIC
})
/* ... */
}
}
Scope (_SB.PCI0.I2C4)
{
Device (CAM1)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "INT3474") // _HID: Hardware ID
Name (_CID, "INT3474") // _CID: Compatible ID
Name (_DDN, "OV2740-CRDG2") // _DDN: DOS Device Name
Name (_UID, "0") // _UID: Unique ID
Name (_DEP, Package (0x01) // _DEP: Dependencies
{
^^I2C2.PMIC
})
/* ... */
}
}Hey, it has sensor names! We have to be getting closer, right?
…but when I compared out of curiosity with an ACPI dump for the Surface Go 1 , it has the exact same nodes, down to the I2C numbers and device names, even though another table above the one I linked claimed it had completely different sensors!
So it seems like this was all a red herring.
Conveniently enough, the schematics for this laptop seem to have fallen off a truck somewhere, and sure enough, they mention two different sensors: OV5670 for the front-facing camera, and OV8858 for the rear-facing camera. (They also confirm that the camera PMIC is, indeed, the TPS68470.)
At this point I kind of ran out of ideas, so I ended up asking on the linux-surface development channel for advice. This is the response I got:

OK, that's both kind of helpful and not really helpful at all.
It's helpful since we know cameras work on what seems to be a similar device. That's Daniel Scally of Ideas on Board, and his patchset indeed made it into the mainline kernel - you can also see it on lore.kernel.org. That patch and its commit messages make very little mention of how he managed to get these values though, and it seems to have gotten merged with minimal fanfare, so there isn't even any fun explanations in the replies.
Of course somebody vibed this already
You might notice this was kind of a long time ago, June 2025, when I asked that question.
It's kind of been over a year since I last attempted this, and it turns out, I found out by sheer coincidence while looking the above up on lore for the purposes of writing this, that somebody already made a patchset like this for the nearly-identical Dell Latitude 5285 2-in-1.
…and by “made a patchset” I mean “made Claude do it” because it's 2026 and reverse engineering things by hand is a dying art.

The last update of that patchset was submitted in August, and from the looks of it most of what was left was code quality nitpicks.
However, that patchset still doesn't explain how they managed to reverse engineer this whole mess. The LLM helpfully gave all the ready values, but somehow did not write a long comment explaining how these values were found.
Naturally, that's not a satisfying conclusion for me, and especially not for this note.
(to be continued)