linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding
@ 2024-02-21 17:43 Marco Felsch
  2024-02-26  9:01 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Felsch @ 2024-02-21 17:43 UTC (permalink / raw)
  To: jic23, lars, robh+dt, krzysztof.kozlowski+dt, conor+dt, hns
  Cc: linux-iio, devicetree, linux-kernel, kernel

Make use of the common spi-peripheral-props.yaml to pull in the common
spi device properties and limit the spi-max-frequency to 10 MHz as this
is the max. frequency if VDDIO >= 1.62V.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 .../devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
index 1414ba9977c1..3c6fe74af0b8 100644
--- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
+++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
@@ -22,6 +22,9 @@ properties:
   vdd-supply: true
   vddio-supply: true
 
+  spi-max-frequency:
+    maximum: 10000000
+
   interrupts:
     minItems: 1
     maxItems: 2
@@ -33,7 +36,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.39.2


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

* Re: [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding
  2024-02-21 17:43 [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding Marco Felsch
@ 2024-02-26  9:01 ` Krzysztof Kozlowski
  2024-02-26 12:40   ` Marco Felsch
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-26  9:01 UTC (permalink / raw)
  To: Marco Felsch, jic23, lars, robh+dt, krzysztof.kozlowski+dt,
	conor+dt, hns
  Cc: linux-iio, devicetree, linux-kernel, kernel

On 21/02/2024 18:43, Marco Felsch wrote:
> Make use of the common spi-peripheral-props.yaml to pull in the common
> spi device properties and limit the spi-max-frequency to 10 MHz as this
> is the max. frequency if VDDIO >= 1.62V.

The example uses i2c, so I would expect to see in commit msg explanation
which devices are SPI devices.

Also:
A nit, subject: drop second/last, redundant "binding". The "dt-bindings"
prefix is already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18



Best regards,
Krzysztof


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

* Re: [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding
  2024-02-26  9:01 ` Krzysztof Kozlowski
@ 2024-02-26 12:40   ` Marco Felsch
  2024-02-26 13:18     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Felsch @ 2024-02-26 12:40 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: jic23, lars, robh+dt, krzysztof.kozlowski+dt, conor+dt, hns,
	linux-iio, devicetree, linux-kernel, kernel

On 24-02-26, Krzysztof Kozlowski wrote:
> On 21/02/2024 18:43, Marco Felsch wrote:
> > Make use of the common spi-peripheral-props.yaml to pull in the common
> > spi device properties and limit the spi-max-frequency to 10 MHz as this
> > is the max. frequency if VDDIO >= 1.62V.
> 
> The example uses i2c, so I would expect to see in commit msg explanation
> which devices are SPI devices.

All listed devices can either operate in I2C or in SPI mode.

> Also:
> A nit, subject: drop second/last, redundant "binding". The "dt-bindings"
> prefix is already stating that these are bindings.
> See also:
> https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18

Will rephrase it if you want me to update the commit message.

Regards,
  Marco

> 
> 
> 
> Best regards,
> Krzysztof
> 
> 

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

* Re: [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding
  2024-02-26 12:40   ` Marco Felsch
@ 2024-02-26 13:18     ` Krzysztof Kozlowski
  2024-02-27 19:23       ` Jonathan Cameron
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-26 13:18 UTC (permalink / raw)
  To: Marco Felsch
  Cc: jic23, lars, robh+dt, krzysztof.kozlowski+dt, conor+dt, hns,
	linux-iio, devicetree, linux-kernel, kernel

On 26/02/2024 13:40, Marco Felsch wrote:
> On 24-02-26, Krzysztof Kozlowski wrote:
>> On 21/02/2024 18:43, Marco Felsch wrote:
>>> Make use of the common spi-peripheral-props.yaml to pull in the common
>>> spi device properties and limit the spi-max-frequency to 10 MHz as this
>>> is the max. frequency if VDDIO >= 1.62V.
>>
>> The example uses i2c, so I would expect to see in commit msg explanation
>> which devices are SPI devices.
> 
> All listed devices can either operate in I2C or in SPI mode.

Such information in commit msg would be enough.

with the changes:

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding
  2024-02-26 13:18     ` Krzysztof Kozlowski
@ 2024-02-27 19:23       ` Jonathan Cameron
  2024-02-27 21:51         ` Marco Felsch
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Cameron @ 2024-02-27 19:23 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Marco Felsch, lars, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	hns, linux-iio, devicetree, linux-kernel, kernel

On Mon, 26 Feb 2024 14:18:00 +0100
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote:

> On 26/02/2024 13:40, Marco Felsch wrote:
> > On 24-02-26, Krzysztof Kozlowski wrote:  
> >> On 21/02/2024 18:43, Marco Felsch wrote:  
> >>> Make use of the common spi-peripheral-props.yaml to pull in the common
> >>> spi device properties and limit the spi-max-frequency to 10 MHz as this
> >>> is the max. frequency if VDDIO >= 1.62V.  
> >>
> >> The example uses i2c, so I would expect to see in commit msg explanation
> >> which devices are SPI devices.  
> > 
> > All listed devices can either operate in I2C or in SPI mode.  
> 
> Such information in commit msg would be enough.
> 
> with the changes:
> 
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> Best regards,
> Krzysztof
> 

Added the note whilst applying.

Applied to the togreg branch of iio.git and pushed out (briefly given
timing) as testing for 0-day to take a first look.

Thanks,

Jonathan

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

* Re: [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding
  2024-02-27 19:23       ` Jonathan Cameron
@ 2024-02-27 21:51         ` Marco Felsch
  0 siblings, 0 replies; 6+ messages in thread
From: Marco Felsch @ 2024-02-27 21:51 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Krzysztof Kozlowski, lars, robh+dt, krzysztof.kozlowski+dt,
	conor+dt, hns, linux-iio, devicetree, linux-kernel, kernel

On 24-02-27, Jonathan Cameron wrote:
> On Mon, 26 Feb 2024 14:18:00 +0100
> Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote:
> 
> > On 26/02/2024 13:40, Marco Felsch wrote:
> > > On 24-02-26, Krzysztof Kozlowski wrote:  
> > >> On 21/02/2024 18:43, Marco Felsch wrote:  
> > >>> Make use of the common spi-peripheral-props.yaml to pull in the common
> > >>> spi device properties and limit the spi-max-frequency to 10 MHz as this
> > >>> is the max. frequency if VDDIO >= 1.62V.  
> > >>
> > >> The example uses i2c, so I would expect to see in commit msg explanation
> > >> which devices are SPI devices.  
> > > 
> > > All listed devices can either operate in I2C or in SPI mode.  
> > 
> > Such information in commit msg would be enough.
> > 
> > with the changes:
> > 
> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > 
> > Best regards,
> > Krzysztof
> > 
> 
> Added the note whilst applying.

Thanks a lot :)

Regards,
  Marco

> Applied to the togreg branch of iio.git and pushed out (briefly given
> timing) as testing for 0-day to take a first look.
> 
> Thanks,
> 
> Jonathan
> 

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

end of thread, other threads:[~2024-02-27 21:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21 17:43 [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding Marco Felsch
2024-02-26  9:01 ` Krzysztof Kozlowski
2024-02-26 12:40   ` Marco Felsch
2024-02-26 13:18     ` Krzysztof Kozlowski
2024-02-27 19:23       ` Jonathan Cameron
2024-02-27 21:51         ` Marco Felsch

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).