* [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203
@ 2025-03-03 23:59 Saalim Quadri
2025-03-04 1:24 ` Rob Herring (Arm)
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Saalim Quadri @ 2025-03-03 23:59 UTC (permalink / raw)
To: jic23
Cc: lars, Michael.Hennerich, gregkh, linux-iio, linux-kernel,
linux-staging, 21cnbao, robh, krzk+dt, conor+dt, devicetree,
Saalim Quadri
This patch add device tree binding documentation for ADIS16203.
Signed-off-by: Saalim Quadri <danascape@gmail.com>
---
Changes:
V1 - V2: change compatible property from enum to const
.../bindings/iio/accel/adi,adis16203.yaml | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
new file mode 100644
index 000000000000..64370f13e1dc
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/accel/adi,adis16203.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADIS16203 Programmable 360 Degrees Inclinometer
+
+maintainers:
+ - Barry Song <21cnbao@gmail.com>
+
+description: |
+ https://www.analog.com/media/en/technical-documentation/data-sheets/adis16203.pdf
+
+properties:
+ compatible:
+ const:
+ - adi,adis16203
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ vdd-supply: true
+
+required:
+ - compatible
+ - reg
+
+allOf:
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ accelerometer@0 {
+ compatible = "adi,adis16203";
+ reg = <0>;
+ spi-max-frequency = <2500000>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+ };
+ };
+...
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203
2025-03-03 23:59 [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203 Saalim Quadri
@ 2025-03-04 1:24 ` Rob Herring (Arm)
2025-03-04 7:46 ` Krzysztof Kozlowski
2025-03-04 14:39 ` Jonathan Cameron
2 siblings, 0 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2025-03-04 1:24 UTC (permalink / raw)
To: Saalim Quadri
Cc: linux-kernel, Michael.Hennerich, jic23, linux-iio, linux-staging,
devicetree, gregkh, conor+dt, krzk+dt, 21cnbao, lars
On Tue, 04 Mar 2025 05:29:30 +0530, Saalim Quadri wrote:
> This patch add device tree binding documentation for ADIS16203.
>
> Signed-off-by: Saalim Quadri <danascape@gmail.com>
> ---
> Changes:
> V1 - V2: change compatible property from enum to const
>
> .../bindings/iio/accel/adi,adis16203.yaml | 52 +++++++++++++++++++
> 1 file changed, 52 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml: properties:compatible:const: ['adi,adis16203'] is not of type 'integer', 'string'
from schema $id: http://devicetree.org/meta-schemas/keywords.yaml#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml: properties:compatible:const: ['adi,adis16203'] is not of type 'string'
from schema $id: http://devicetree.org/meta-schemas/string-array.yaml#
Documentation/devicetree/bindings/iio/accel/adi,adis16203.example.dtb: /example-0/spi/accelerometer@0: failed to match any schema with compatible: ['adi,adis16203']
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250303235930.68731-1-danascape@gmail.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203
2025-03-03 23:59 [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203 Saalim Quadri
2025-03-04 1:24 ` Rob Herring (Arm)
@ 2025-03-04 7:46 ` Krzysztof Kozlowski
2025-03-04 14:39 ` Jonathan Cameron
2 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-04 7:46 UTC (permalink / raw)
To: Saalim Quadri
Cc: jic23, lars, Michael.Hennerich, gregkh, linux-iio, linux-kernel,
linux-staging, 21cnbao, robh, krzk+dt, conor+dt, devicetree
On Tue, Mar 04, 2025 at 05:29:30AM +0530, Saalim Quadri wrote:
> This patch add device tree binding documentation for ADIS16203.
>
> Signed-off-by: Saalim Quadri <danascape@gmail.com>
> ---
> Changes:
> V1 - V2: change compatible property from enum to const
>
Please kindly test your patch before posting, instead of using community
as a testing service.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203
2025-03-03 23:59 [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203 Saalim Quadri
2025-03-04 1:24 ` Rob Herring (Arm)
2025-03-04 7:46 ` Krzysztof Kozlowski
@ 2025-03-04 14:39 ` Jonathan Cameron
2025-03-06 0:15 ` Saalim Quadri
2025-03-06 0:32 ` Barry Song
2 siblings, 2 replies; 6+ messages in thread
From: Jonathan Cameron @ 2025-03-04 14:39 UTC (permalink / raw)
To: Saalim Quadri
Cc: lars, Michael.Hennerich, gregkh, linux-iio, linux-kernel,
linux-staging, 21cnbao, robh, krzk+dt, conor+dt, devicetree
On Tue, 4 Mar 2025 05:29:30 +0530
Saalim Quadri <danascape@gmail.com> wrote:
> This patch add device tree binding documentation for ADIS16203.
>
> Signed-off-by: Saalim Quadri <danascape@gmail.com>
> ---
> Changes:
> V1 - V2: change compatible property from enum to const
>
> .../bindings/iio/accel/adi,adis16203.yaml | 52 +++++++++++++++++++
> 1 file changed, 52 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
> new file mode 100644
> index 000000000000..64370f13e1dc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
> @@ -0,0 +1,52 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/accel/adi,adis16203.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices ADIS16203 Programmable 360 Degrees Inclinometer
> +
> +maintainers:
> + - Barry Song <21cnbao@gmail.com>
I think you'll be dropping this patch anyway, but just a quick not that
it isn't good to volunteer people. Barry hasn't worked on these
devices for quite a long time now so seems unlikely he agreed to this.
Jonathan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203
2025-03-04 14:39 ` Jonathan Cameron
@ 2025-03-06 0:15 ` Saalim Quadri
2025-03-06 0:32 ` Barry Song
1 sibling, 0 replies; 6+ messages in thread
From: Saalim Quadri @ 2025-03-06 0:15 UTC (permalink / raw)
To: jic23
Cc: 21cnbao, Michael.Hennerich, conor+dt, danascape, devicetree,
gregkh, krzk+dt, lars, linux-iio, linux-kernel, linux-staging,
robh
Apologies, it was a mistake on my end, I had wrong dependencies
installed which passed the dt-bindings check on my end when I tried to verify.
Sincerely,
Saalim Quadri
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203
2025-03-04 14:39 ` Jonathan Cameron
2025-03-06 0:15 ` Saalim Quadri
@ 2025-03-06 0:32 ` Barry Song
1 sibling, 0 replies; 6+ messages in thread
From: Barry Song @ 2025-03-06 0:32 UTC (permalink / raw)
To: Jonathan Cameron, Saalim Quadri
Cc: lars, Michael.Hennerich, gregkh, linux-iio, linux-kernel,
linux-staging, robh, krzk+dt, conor+dt, devicetree
On Wed, Mar 5, 2025 at 3:39 AM Jonathan Cameron <jic23@kernel.org> wrote:
>
> On Tue, 4 Mar 2025 05:29:30 +0530
> Saalim Quadri <danascape@gmail.com> wrote:
>
> > This patch add device tree binding documentation for ADIS16203.
> >
> > Signed-off-by: Saalim Quadri <danascape@gmail.com>
> > ---
> > Changes:
> > V1 - V2: change compatible property from enum to const
> >
> > .../bindings/iio/accel/adi,adis16203.yaml | 52 +++++++++++++++++++
> > 1 file changed, 52 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
> > new file mode 100644
> > index 000000000000..64370f13e1dc
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
> > @@ -0,0 +1,52 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/iio/accel/adi,adis16203.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Analog Devices ADIS16203 Programmable 360 Degrees Inclinometer
> > +
> > +maintainers:
> > + - Barry Song <21cnbao@gmail.com>
> I think you'll be dropping this patch anyway, but just a quick not that
> it isn't good to volunteer people. Barry hasn't worked on these
> devices for quite a long time now so seems unlikely he agreed to this.
Hi Saalim, if you're sending a v2, feel free to nominate yourself or anyone
interested as the maintainer. Apologies, but I probably won’t have time to
handle this :-)
>
> Jonathan
Thanks
Barry
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-03-06 0:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 23:59 [PATCH v2] dt-bindings: iio: accel: add binding documentation for ADIS16203 Saalim Quadri
2025-03-04 1:24 ` Rob Herring (Arm)
2025-03-04 7:46 ` Krzysztof Kozlowski
2025-03-04 14:39 ` Jonathan Cameron
2025-03-06 0:15 ` Saalim Quadri
2025-03-06 0:32 ` Barry Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox