Commit Graph

2 Commits

Author SHA1 Message Date
Jon Hunter
56068ded4d media: i2c: max967xx: Fix build for pre Linux v6.3
In Linux v6.3, commit 03c835f498b5 ("i2c: Switch .probe() to not take an
id parameter") removed the ID parameter from the I2C probe function. The
max96712 does not build for Linux kernels prior to Linux v6.3 because it
assumes that the ID parameter has been removed. There is an existing
conftest that checks to see if the probe function requires and ID
parameter and so update the max967xx drivers accordingly to fix the build
for kernels prior to Linux v6.3.

Note we should avoid using explicit kernel version checks in out-of-tree
drivers because this does not work for 3rd party kernels. Therefore,
remove the kernel version.h because this is not used or needed.

Bug 5277201

Change-Id: Idbc569d782a952ee9ea0a91aace54df20f50701d
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3506342
Tested-by: Shawn Bai <xueyuanb@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Shawn Bai <xueyuanb@nvidia.com>
2025-12-08 06:12:28 -08:00
Shawn Bai
ef3128dda2 [MAX96712][MAX96726]add max96712/726 TPG driver
max96712, run in fixed configuration
    1. resolution: 3840x2160
    2. FPS: 30
    3. data rate 1900Mbps
    4. pixel format: RAW10
    5. PHY mode: DPHY 4Lane

max96726, run in fixed configuration
    1. resolution: 3840x2160
    2. FPS: 30
    3. data rate: DPHY 2500Mbps, CPHY 4500Msps
    4. pixel format: RAW16

Bug 5060621

Change-Id: I0ab8139f3b8e4756b7558653ea516e5fbc2f719d
Signed-off-by: Shawn Bai <xueyuanb@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3447885
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Jukka Kaartinen <jkaartinen@nvidia.com>
Reviewed-by: Narendra Kondapalli <nkondapalli@nvidia.com>
2025-12-05 05:09:36 -08:00