public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Support ROHM BU27010 RGBC sensor
@ 2023-06-13 10:04 Matti Vaittinen
  2023-06-13 10:19 ` [PATCH 1/3] dt-bindings: ROHM BU27010 RGBC + flickering sensor Matti Vaittinen
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Matti Vaittinen @ 2023-06-13 10:04 UTC (permalink / raw)
  To: Matti Vaittinen, Matti Vaittinen
  Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matti Vaittinen, linux-iio,
	devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2422 bytes --]

Support ROHM BU27010 RGBC + flickering sensor.

Following description copied from commit log:

> The ROHM BU27010 is an RGBC sensor with a flickering detection FIFO. The
> RGBC+IR sensor functionality is largely similar to what the BU27008 has.
> There are some notable things though:
>  - gain setting is once again new and exotic. Now, there is 6bit gain
>    setting where 4 of the bits are common to all channels and 2 bits
>    can be configured separately for each channel. The BU27010 has
>    similar "1X on other channels vs 2X on IR when selector is 0x0"
>    gain design as BU27008 had. So, we use same gain setting policy for
>    BU27010 as we did for BU27008 - driver sets same gain selector for
>    all channels but shows the gains separately for all channels so users
>    can (at least in theory) detect this 1X vs 2X madness...
>  - BU27010 has suffled all the control register bitfields to new
>    addresses and bit positions while still keeping the register naming
>    same.
>  - Some more power/reset control is added.
>  - FIFO for "flickering detection" is added.
>
> The control register suffling made this slightly nasty. Still, it is
> easier for maintenance perspective to add the BU27010 support in BU27008
> driver because - even though the bit positions/addresses were changed -
> most of the driver structure can be re-used. Writing own driver for
> BU27010 would mean plenty of duplicate code albeit a tad more clarity.

This series is done on top of the iio-for-6.5a + this fix-up series:
https://lore.kernel.org/all/cover.1686648422.git.mazziesaccount@gmail.com/

---

Matti Vaittinen (3):
  dt-bindings: ROHM BU27010 RGBC + flickering sensor
  iio: light: bu27008: add chip info
  iio: light: bd27008: Support BD27010 RGB

 .../bindings/iio/light/rohm,bu27010.yaml      |  50 ++
 drivers/iio/light/rohm-bu27008.c              | 504 ++++++++++++++++--
 2 files changed, 500 insertions(+), 54 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/light/rohm,bu27010.yaml

-- 
2.40.1


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =] 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2023-06-20  8:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-13 10:04 [PATCH 0/3] Support ROHM BU27010 RGBC sensor Matti Vaittinen
2023-06-13 10:19 ` [PATCH 1/3] dt-bindings: ROHM BU27010 RGBC + flickering sensor Matti Vaittinen
2023-06-13 18:42   ` Krzysztof Kozlowski
2023-06-14  5:32     ` Matti Vaittinen
2023-06-14  6:36       ` Krzysztof Kozlowski
2023-06-13 10:20 ` [PATCH 2/3] iio: light: bu27008: add chip info Matti Vaittinen
2023-06-17 19:48   ` Jonathan Cameron
2023-06-20  8:03     ` Matti Vaittinen
2023-06-13 10:20 ` [PATCH 3/3] iio: light: bd27008: Support BD27010 RGB Matti Vaittinen
2023-06-17 19:57   ` Jonathan Cameron
2023-06-20  8:06     ` Matti Vaittinen

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