public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] media: i2c: Add support for GT97xx VCM
@ 2024-04-20  1:18 Zhi Mao
  2024-04-20  1:18 ` [PATCH v1 1/2] media: dt-bindings: i2c: add Giantec " Zhi Mao
  2024-04-20  1:18 ` [PATCH v1 2/2] media: i2c: Add GT97xx VCM driver Zhi Mao
  0 siblings, 2 replies; 10+ messages in thread
From: Zhi Mao @ 2024-04-20  1:18 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Matthias Brugger, AngeloGioacchino Del Regno, Zhi Mao,
	Philipp Zabel, Laurent Pinchart, Heiko Stuebner, Sakari Ailus,
	Hans Verkuil, Hans de Goede, Tomi Valkeinen, Alain Volmat,
	Paul Elder, Mehdi Djait, Andy Shevchenko, Bingbu Cao, linux-media,
	devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	shengnan.wang, yaya.chang, yunkec, 10572168

This series add YAML DT binding and V4L2 sub-device driver for Giantec's GT9768&GT9769.
GT9768&GT9769 is a 10-bit DAC with 100mA output current sink capability, designed
for voice coil motor(VCM) with I2C control bus.

This driver supports:
 - support pm runtime function for suspend/resume
 - support camera lens focus position by V4L2_CID_FOCUS_ABSOLUTE CMD
 - used in camera features on ChromeOS application

Previous versions of this patch-set can be found here:
v0: https://lore.kernel.org/all/20240410104002.1197-1-zhi.mao@mediatek.com/

This series is based on linux-next, tag: next-20240419
Changes in v1:
- dts-binding files:
-- remove "aac-mode/aac-timing/clock-presc" control information
-- remove words:"drivers" in commit message, as bindings are for hardware
-- use compatible filename for YAML
-- remove some uselss comments, as they are clear from the compatibles
-- use "camera-lens" as node-name

- gt97xx vcm driver:
-- use BIT(x) method to define some MACROs
-- remove "aac-mode/aac-timing/clock-presc" control and use the default settings
-- fix duplicate "return" case in function:power_on()/power_off()
-- use API:device_get_match_data() and dev_err_probe() in function:probe()
-- fix some coding style of comments

Thanks

Zhi Mao (2):
  media: dt-bindings: i2c: add Giantec GT97xx VCM driver
  media: i2c: Add GT97xx VCM driver

 .../bindings/media/i2c/giantec,gt9769.yaml    |  56 +++
 drivers/media/i2c/Kconfig                     |  13 +
 drivers/media/i2c/Makefile                    |   1 +
 drivers/media/i2c/gt97xx.c                    | 436 ++++++++++++++++++
 4 files changed, 506 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/giantec,gt9769.yaml
 create mode 100644 drivers/media/i2c/gt97xx.c

-- 
2.25.1




_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-22  3:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20  1:18 [PATCH v1 0/2] media: i2c: Add support for GT97xx VCM Zhi Mao
2024-04-20  1:18 ` [PATCH v1 1/2] media: dt-bindings: i2c: add Giantec " Zhi Mao
2024-04-20 11:21   ` Krzysztof Kozlowski
2024-04-20 12:53     ` Kieran Bingham
2024-04-21 11:35       ` Kieran Bingham
2024-04-21 14:00         ` Krzysztof Kozlowski
2024-04-22  1:49     ` Zhi Mao (毛智)
2024-04-22  3:18       ` Krzysztof Kozlowski
2024-04-22  3:26   ` Krzysztof Kozlowski
2024-04-20  1:18 ` [PATCH v1 2/2] media: i2c: Add GT97xx VCM driver Zhi Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox