Skip to content

ov5693/int3472: Privacy LED handling changes + IPU6 compatibility

Hans de Goede linux-media platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 35 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6media: ov5693: Add support for a privacy-led GPIOdrivers/media/i2c/ov5693.c+10 -017 replies
2/6platform/x86: int3472/discrete: Refactor GPIO to sensor mappingdrivers/platform/x86/intel/int3472/discrete.c+35 -92 replies
3/6platform/x86: int3472/discrete: Treat privacy LED as regular GPIOdrivers/platform/x86/intel/int3472/clk_and_regulator.c drivers/platform/x86/intel/int3472/common.h drivers/platform/x86/intel/int3472/discrete.c+8 -423 replies
4/6platform/x86: int3472/discrete: Move GPIO request to skl_int3472_register_clock()drivers/platform/x86/intel/int3472/clk_and_regulator.c drivers/platform/x86/intel/int3472/common.h drivers/platform/x86/intel/int3472/discrete.c+25 -290 replies
5/6platform/x86: int3472/discrete: Ensure the clk/power enable pins are in output modedrivers/platform/x86/intel/int3472/clk_and_regulator.c+6 -02 replies
6/6platform/x86: int3472/discrete: Get the polarity from the _DSM entrydrivers/platform/x86/intel/int3472/clk_and_regulator.c drivers/platform/x86/intel/int3472/common.h drivers/platform/x86/intel/int3472/discrete.c+16 -45 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy ShevchenkoSakari Ailus
SeriesR-b R-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] ov5693/int3472: Privacy LED handling changes + IPU6 compatibility

Hi All,

The out of tree IPU6 driver has moved to using the in kernel INT3472 code for doing power-ctrl rather then doing their own thing (good!).

Some of the IPU6 devices with a discrete INT3472 ACPI device have a privacy-led GPIO. but no clk-enable GPIO. To make this work this series moves the privacy LED control from being integrated with the clk-provider to modelling the privacy LED as a separate GPIO. This also brings the discrete INT3472 ACPI device privacy LED handling inline with the privacy LED handling for INT3472 TPS68470 PMIC devices which I posted here:

https://lore.kernel.org/platform-driver-x86/[email protected]/

This obsoletes my previous "[PATCH 0/3] platform/x86: int3472/discrete:
Make it work with IPU6" series:

https://lore.kernel.org/platform-driver-x86/[email protected]/

Mauro since laptops with IPU6 cameras are becoming more and more popular I would like to get this merged for 6.2 so that with 6.2 users will be able to build the out of tree IPU6 driver without requiring patching their main kernel. I realize we are a bit late in the cycle, but can you please still take the ov5693 patch for 6.2 ? It is quite small / straight-forward and since it used gpiod_get_optional() it is a no-op without the rest of this series.

This series has been tested on:

- Lenovo ThinkPad X1 Yoga gen 7, IPU6, front: ov2740 with privacy LED
- Dell Latitude 9420, IPU 6 with privacy LED on front
- Mirosoft Surface Go, IPU3, front: ov5693 with privacy LED,
back: ov8865 with privacy LED

Regards,

Hans

Hans de Goede (6):
media: ov5693: Add support for a privacy-led GPIO platform/x86: int3472/discrete: Refactor GPIO to sensor mapping platform/x86: int3472/discrete: Treat privacy LED as regular GPIO platform/x86: int3472/discrete: Move GPIO request to

    skl_int3472_register_clock()

platform/x86: int3472/discrete: Ensure the clk/power enable pins are
in output mode
platform/x86: int3472/discrete: Get the polarity from the _DSM entry

 drivers/media/i2c/ov5693.c                    | 10 ++
 .../x86/intel/int3472/clk_and_regulator.c     | 35 +++++--
 drivers/platform/x86/intel/int3472/common.h   |  4 +-
 drivers/platform/x86/intel/int3472/discrete.c | 95 ++++++++-----------
 4 files changed, 80 insertions(+), 64 deletions(-)
Signature · 1 line
2.38.1