[PATCH 4/6] media: atomisp: Add Athesi RT80 sensors and 180-deg rotation quirk
From: Kennedy Cheskaki
Date: Mon Nov 30 2026 - 05:09:01 EST
Register HIMX2051 and INT3477 in atomisp_sensor_configs and set
180-degree sensor rotation for INT3477 on the Athesi RT80 tablet.
Signed-off-by: Kennedy Cheskaki <kkituyi@xxxxxxxxxxx>
---
drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c b/drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c
index cca91c6..07cbf06 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c
@@ -360,6 +360,8 @@ static const struct acpi_device_id atomisp_sensor_configs[] = {
* an i2c-client for the VCM, so it is disabled for now.
*/
ATOMISP_SENSOR_CONFIG("INT33BE", 2, false), /* OV5693 */
+ ATOMISP_SENSOR_CONFIG("HIMX2051", 1, false), /* HM2051 */
+ ATOMISP_SENSOR_CONFIG("INT3477", 4, false), /* OV8858 */
{}
};
@@ -411,7 +413,9 @@ static int atomisp_csi2_parse_sensor_fwnode(struct acpi_device *adev,
return ret;
sensor->mclkspeed = PMC_CLK_RATE_19_2MHZ;
- sensor->rotation = 0;
+ sensor->rotation = (dmi_match(DMI_SYS_VENDOR, "ATHESI") &&
+ dmi_match(DMI_PRODUCT_NAME, "ATHESI RT80") &&
+ acpi_dev_hid_uid_match(adev, "INT3477", NULL)) ? 180 : 0;
sensor->orientation = (sensor->link == 1) ?
V4L2_FWNODE_ORIENTATION_BACK : V4L2_FWNODE_ORIENTATION_FRONT;
--
2.56.1