Skip to content

Commit e323de4

Browse files
jwrdegoedeHans Verkuil
authored andcommitted
media: atomisp: csi2-bridge: Add DMI quirk for OV5693 on Xiaomi Mipad2
The OV5693 the Xiaomi Mipad2 is used as a front facing sensor and as such is connected to CsiPort 0, but the _DSM has CsiPort 1, add a DMI quirk to override the wrong _DSM setting. Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans Verkuil <[email protected]>
1 parent aa7a020 commit e323de4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ static struct gmin_cfg_var lenovo_ideapad_miix_310_vars[] = {
106106
{}
107107
};
108108

109+
static struct gmin_cfg_var xiaomi_mipad2_vars[] = {
110+
/* _DSM contains the wrong CsiPort for the front facing OV5693 sensor */
111+
{ "INT33BE:00", "CsiPort", "0" },
112+
{}
113+
};
114+
109115
static const struct dmi_system_id gmin_cfg_dmi_overrides[] = {
110116
{
111117
/* Lenovo Ideapad Miix 310 */
@@ -115,6 +121,14 @@ static const struct dmi_system_id gmin_cfg_dmi_overrides[] = {
115121
},
116122
.driver_data = lenovo_ideapad_miix_310_vars,
117123
},
124+
{
125+
/* Xiaomi Mipad2 */
126+
.matches = {
127+
DMI_MATCH(DMI_SYS_VENDOR, "Xiaomi Inc"),
128+
DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
129+
},
130+
.driver_data = xiaomi_mipad2_vars,
131+
},
118132
{}
119133
};
120134

0 commit comments

Comments
 (0)