* [PATCH v2] dt-bindings: iio: adc: Add ROHM BD79100G
@ 2025-05-14 6:25 Matti Vaittinen
2025-05-14 16:23 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Matti Vaittinen @ 2025-05-14 6:25 UTC (permalink / raw)
To: Matti Vaittinen, Matti Vaittinen
Cc: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-iio,
devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2880 bytes --]
The ROHM BD79100G is a 12-bit ADC which can be read over SPI. Device has
no MOSI pin. ADC results can be read from MISO by clocking in 16 bits.
The 4 leading bits will be zero, last 12 containig the data.
Device has only VCC supply pin, which acts also as a VFS, determining the
voltage for full 12-bits. Specifying it is mandatory.
This seems identical to the ti,ads7866.
Support ROHM BU79100G using ti,ads7866 as a fallback.
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
---
Revision history:
v1 => v2:
- Support BU79100G using ti,ads7866 as a fallback to avoid duplicated
driver code.
v1 link:
https://lore.kernel.org/all/cover.1747123883.git.mazziesaccount@gmail.com/
.../bindings/iio/adc/adi,ad7476.yaml | 63 ++++++++++---------
1 file changed, 34 insertions(+), 29 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml
index 44c671eeda73..d0cb32f136e5 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml
@@ -17,35 +17,40 @@ description: |
properties:
compatible:
- enum:
- - adi,ad7091
- - adi,ad7091r
- - adi,ad7273
- - adi,ad7274
- - adi,ad7276
- - adi,ad7277
- - adi,ad7278
- - adi,ad7466
- - adi,ad7467
- - adi,ad7468
- - adi,ad7475
- - adi,ad7476
- - adi,ad7476a
- - adi,ad7477
- - adi,ad7477a
- - adi,ad7478
- - adi,ad7478a
- - adi,ad7495
- - adi,ad7910
- - adi,ad7920
- - adi,ad7940
- - ti,adc081s
- - ti,adc101s
- - ti,adc121s
- - ti,ads7866
- - ti,ads7867
- - ti,ads7868
- - lltc,ltc2314-14
+ oneOf:
+ - items:
+ - enum:
+ - adi,ad7091
+ - adi,ad7091r
+ - adi,ad7273
+ - adi,ad7274
+ - adi,ad7276
+ - adi,ad7277
+ - adi,ad7278
+ - adi,ad7466
+ - adi,ad7467
+ - adi,ad7468
+ - adi,ad7475
+ - adi,ad7476
+ - adi,ad7476a
+ - adi,ad7477
+ - adi,ad7477a
+ - adi,ad7478
+ - adi,ad7478a
+ - adi,ad7495
+ - adi,ad7910
+ - adi,ad7920
+ - adi,ad7940
+ - ti,adc081s
+ - ti,adc101s
+ - ti,adc121s
+ - ti,ads7866
+ - ti,ads7867
+ - ti,ads7868
+ - lltc,ltc2314-14
+ - items:
+ - const: rohm,bu79100g
+ - const: ti,ads7866
reg:
maxItems: 1
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
--
2.49.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: iio: adc: Add ROHM BD79100G
2025-05-14 6:25 [PATCH v2] dt-bindings: iio: adc: Add ROHM BD79100G Matti Vaittinen
@ 2025-05-14 16:23 ` Conor Dooley
2025-05-15 17:08 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2025-05-14 16:23 UTC (permalink / raw)
To: Matti Vaittinen
Cc: Matti Vaittinen, Lars-Peter Clausen, Michael Hennerich,
Jonathan Cameron, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-iio, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 646 bytes --]
On Wed, May 14, 2025 at 09:25:13AM +0300, Matti Vaittinen wrote:
> The ROHM BD79100G is a 12-bit ADC which can be read over SPI. Device has
> no MOSI pin. ADC results can be read from MISO by clocking in 16 bits.
> The 4 leading bits will be zero, last 12 containig the data.
>
> Device has only VCC supply pin, which acts also as a VFS, determining the
> voltage for full 12-bits. Specifying it is mandatory.
>
> This seems identical to the ti,ads7866.
>
> Support ROHM BU79100G using ti,ads7866 as a fallback.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: iio: adc: Add ROHM BD79100G
2025-05-14 16:23 ` Conor Dooley
@ 2025-05-15 17:08 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2025-05-15 17:08 UTC (permalink / raw)
To: Conor Dooley
Cc: Matti Vaittinen, Matti Vaittinen, Lars-Peter Clausen,
Michael Hennerich, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-iio, devicetree, linux-kernel
On Wed, 14 May 2025 17:23:54 +0100
Conor Dooley <conor@kernel.org> wrote:
> On Wed, May 14, 2025 at 09:25:13AM +0300, Matti Vaittinen wrote:
> > The ROHM BD79100G is a 12-bit ADC which can be read over SPI. Device has
> > no MOSI pin. ADC results can be read from MISO by clocking in 16 bits.
> > The 4 leading bits will be zero, last 12 containig the data.
> >
> > Device has only VCC supply pin, which acts also as a VFS, determining the
> > voltage for full 12-bits. Specifying it is mandatory.
> >
> > This seems identical to the ti,ads7866.
> >
> > Support ROHM BU79100G using ti,ads7866 as a fallback.
> >
> > Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
This is obviously fine, even if the ongoing conversation around
SPI driver autoloading needs to continue. So Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-15 17:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14 6:25 [PATCH v2] dt-bindings: iio: adc: Add ROHM BD79100G Matti Vaittinen
2025-05-14 16:23 ` Conor Dooley
2025-05-15 17:08 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).