ROHM BU27034NUC to ROHM BU27034ANUC
| From: | Matti Vaittinen <mazziesaccount-AT-gmail.com> | |
| To: | Matti Vaittinen <matti.vaittinen-AT-fi.rohmeurope.com>, Matti Vaittinen <mazziesaccount-AT-gmail.com> | |
| Subject: | [PATCH v2 0/7] ROHM BU27034NUC to ROHM BU27034ANUC | |
| Date: | Fri, 05 Jul 2024 13:53:35 +0300 | |
| Message-ID: | <cover.1720176341.git.mazziesaccount@gmail.com> | |
| Cc: | Jonathan Cameron <jic23-AT-kernel.org>, Lars-Peter Clausen <lars-AT-metafoo.de>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Matti Vaittinen <mazziesaccount-AT-gmail.com>, linux-iio-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org | |
| Archive-link: | Article |
As discussed here: https://lore.kernel.org/all/ff8d6d14-6b48-4347-8525-e05ee... The ROHM BU27034NUC was cancelled before it entered mass-production. A replacement was developed and named to BU27034ANUC. (Note the added 'A' in the model name). The BU27034ANUC has several changes that make the old BU27034NUC driver unusable with it. I was told the old BU27034NUC should not be encountered anywhere. Hence, this series converts the rohm-bu27034.c to support the new BU27034ANUC instead of the obsoleted BU27034NUC. Additionally, the series adds a read-only entry for the HARDWAREGAIN to help understanding what part of the scale is contributed by the gain, and what by the integration time. This is useful when figuring out why some transitions from one 'scale' to other are failing. Revision history: v1 => v2: - Split the one large patch to patches 3 - 6 for easier review. (Please let me know if you wish me to squash them to one). - Introduce new compatible for the BU27034ANUC and drop the old one. - Add styling fixes as suggested by Jonathan - Fix the lux calculation coefficient selection logic link to v1: https://lore.kernel.org/all/cover.1718013518.git.mazziesa... --- Matti Vaittinen (7): dt-bindings: iio: BU27034 => BU27034ANUC dt-bindings: iio: rename bu27034 file bu27034: ROHM BU27034NUC to BU27034ANUC bu27034: ROHM BU27034NUC to BU27034ANUC drop data2 bu27034: ROHM BU27034ANUC correct gains and times bu27034: ROHM BU27034ANUC correct lux calculation iio: bu27034: Add a read only HWARDWAREGAIN ...ohm,bu27034.yaml => rohm,bu27034anuc.yaml} | 11 +- drivers/iio/light/rohm-bu27034.c | 343 +++++------------- 2 files changed, 89 insertions(+), 265 deletions(-) rename Documentation/devicetree/bindings/iio/light/{rohm,bu27034.yaml => rohm,bu27034anuc.yaml} (66%) base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 -- 2.45.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: signature.asc (type=application/pgp-signature)-----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmaH0KoACgkQeFA3/03a ocUnVQf/bvXCL868Vs3MaXAPXghCzM5LKfB8ZqJjbwtLrzJhnTDvB8b48dqDPdB9 g8XvVwpTnPPEjER1KLgpSTuwARGsdhylm21VYBDY8+7qv4X0ftzyIJw8CUnrjTqM WwaUsK4LX/aLTvT9Dy7FNwpY2p9srtiVwFtUE0iG7VIAjLhQ1RW71ezrixHjCWlv 8DSowKVepUQ7/M5zC1yDDuVeTsFkymnCtmGcxxL++TZ2vQzKkIO/35u2njCEI5aj pwydo546WvVkhK4tTIG9TcW9oxdCeEXFhZbkl7IvPH77CYkeYY/hFWt2dxclBe33 QvZ8SIcv94hp6vKNxz5D0wcbwg+y3w== =2JSA -----END PGP SIGNATURE-----
