From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org
Cc: Rob Herring <robh@kernel.org>,
devicetree@vger.kernel.org,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Phani Movva <Phani.Movva@imgtec.com>
Subject: [PATCH v2 13/20] dt-bindings:iio:adc:cosmic,10001-adc yaml conversion
Date: Wed, 9 Sep 2020 18:59:39 +0100 [thread overview]
Message-ID: <20200909175946.395313-14-jic23@kernel.org> (raw)
In-Reply-To: <20200909175946.395313-1-jic23@kernel.org>
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
I don't really know much about this one, hence the binding is
a simple conversion of what was in the txt file.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Phani Movva <Phani.Movva@imgtec.com>
---
.../bindings/iio/adc/cc10001_adc.txt | 22 -------
.../bindings/iio/adc/cosmic,10001-adc.yaml | 59 +++++++++++++++++++
2 files changed, 59 insertions(+), 22 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt b/Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt
deleted file mode 100644
index 904f76de9055..000000000000
--- a/Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-* Cosmic Circuits - Analog to Digital Converter (CC-10001-ADC)
-
-Required properties:
- - compatible: Should be "cosmic,10001-adc"
- - reg: Should contain adc registers location and length.
- - clock-names: Should contain "adc".
- - clocks: Should contain a clock specifier for each entry in clock-names
- - vref-supply: The regulator supply ADC reference voltage.
-
-Optional properties:
- - adc-reserved-channels: Bitmask of reserved channels,
- i.e. channels that cannot be used by the OS.
-
-Example:
-adc: adc@18101600 {
- compatible = "cosmic,10001-adc";
- reg = <0x18101600 0x24>;
- adc-reserved-channels = <0x2>;
- clocks = <&adc_clk>;
- clock-names = "adc";
- vref-supply = <®_1v8>;
-};
diff --git a/Documentation/devicetree/bindings/iio/adc/cosmic,10001-adc.yaml b/Documentation/devicetree/bindings/iio/adc/cosmic,10001-adc.yaml
new file mode 100644
index 000000000000..1c4838d4a547
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/cosmic,10001-adc.yaml
@@ -0,0 +1,59 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/adc/cosmic,10001-adc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cosmic Circuits CC-10001 ADC
+
+maintainers:
+ - Phani Movva <Phani.Movva@imgtec.com>
+
+description:
+ Cosmic Circuits 10001 10-bit ADC device.
+
+properties:
+ compatible:
+ const: cosmic,10001-adc
+
+ reg:
+ maxItems: 1
+
+ adc-reserved-channels:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Bitmask of reserved channels, i.e. channels that cannot be
+ used by the OS.
+
+ clocks:
+ maxItems: 1
+
+ clock-names:
+ const: adc
+
+ vref-supply: true
+
+ "#io-channel-cells":
+ const: 1
+
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - vref-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ adc@18101600 {
+ compatible = "cosmic,10001-adc";
+ reg = <0x18101600 0x24>;
+ adc-reserved-channels = <0x2>;
+ clocks = <&adc_clk>;
+ clock-names = "adc";
+ vref-supply = <®_1v8>;
+ };
+...
--
2.28.0
next prev parent reply other threads:[~2020-09-09 18:05 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-09 17:59 [PATCH v2 00/20] dt-bindings:iio:adc: Another set of yaml conversions Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 01/20] dt-bindings:iio:adc:fsl,vf610-adc conversion to yaml Jonathan Cameron
2020-09-15 19:00 ` Rob Herring
2020-09-15 20:45 ` Rob Herring
2020-09-16 10:34 ` Jonathan Cameron
2020-09-17 2:24 ` Andy Duan
2020-09-19 13:33 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 02/20] dt-bindings:iio:adc:ti,twl4030-madc yaml conversion Jonathan Cameron
2020-09-15 19:01 ` Rob Herring
2020-09-19 13:42 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 03/20] dt-bindings:iio:adc:st,stmpe-adc " Jonathan Cameron
2020-09-15 19:02 ` Rob Herring
2020-09-19 13:44 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 04/20] dt-bindings:iio:adc: aspeed,ast2400 " Jonathan Cameron
2020-09-10 2:32 ` Joel Stanley
2020-09-16 10:36 ` Jonathan Cameron
2020-09-16 12:39 ` Joel Stanley
2020-09-16 14:17 ` Jonathan Cameron
2020-09-19 13:47 ` Jonathan Cameron
2020-09-19 13:52 ` Jonathan Cameron
2020-09-15 19:03 ` Rob Herring
2020-09-09 17:59 ` [PATCH v2 05/20] dt-bindings:iio:adc:marvell,berlin2-adc " Jonathan Cameron
2020-09-15 19:04 ` Rob Herring
2020-09-19 13:55 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 06/20] dt-bindings:iio:adc:sprd,sc2720-adc " Jonathan Cameron
2020-09-15 19:05 ` Rob Herring
2020-09-19 13:57 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 07/20] dt-bindings:iio:adc:nuvoton,nau7802 " Jonathan Cameron
2020-09-09 19:19 ` Alexandre Belloni
2020-09-10 7:57 ` Jonathan Cameron
2020-09-15 19:06 ` Rob Herring
2020-09-19 14:01 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 08/20] dt-bindings:iio:adc:nuvoton,npcm750-adc " Jonathan Cameron
2020-09-15 19:07 ` Rob Herring
2020-09-19 14:03 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 09/20] dt-bindings:iio:adc:nxp,lpc1850-adc " Jonathan Cameron
2020-09-15 19:07 ` Rob Herring
2020-09-19 14:20 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 10/20] dt-bindings:iio:adc:lpc3220-adc " Jonathan Cameron
2020-09-15 19:09 ` Rob Herring
2020-09-19 14:22 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 11/20] dt-bindings:iio:adc:motorola,cpcap-adc " Jonathan Cameron
2020-09-15 19:11 ` Rob Herring
2020-09-19 14:25 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 12/20] dt-bindings:iio:adc:dlg,da9150-gpadc " Jonathan Cameron
2020-09-15 19:12 ` Rob Herring
2020-09-19 14:57 ` Jonathan Cameron
2020-09-09 17:59 ` Jonathan Cameron [this message]
2020-09-15 19:13 ` [PATCH v2 13/20] dt-bindings:iio:adc:cosmic,10001-adc " Rob Herring
2020-09-19 14:07 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 14/20] dt-bindings:iio:adc:adi,ad7949 " Jonathan Cameron
2020-09-15 19:13 ` Rob Herring
2020-09-19 14:59 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 15/20] dt-bindings:iio:adc:ad7768-1 " Jonathan Cameron
2020-09-15 19:15 ` Rob Herring
2020-09-19 15:01 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 16/20] dt-bindings:iio:adc:ti,ads1015 " Jonathan Cameron
2020-09-15 19:16 ` Rob Herring
2020-09-19 14:12 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 17/20] dt-bindings:iio:adc:holt,hi8435 " Jonathan Cameron
2020-09-15 19:17 ` Rob Herring
2020-09-19 15:03 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 18/20] dt-bindings:iio:adc:amlogic,meson-saradc " Jonathan Cameron
2020-09-15 19:23 ` Rob Herring
2020-09-15 19:31 ` Martin Blumenstingl
2020-09-09 17:59 ` [PATCH v2 19/20] dt-bindings:iio:adc:fsl,imx7d-adc " Jonathan Cameron
2020-09-15 19:24 ` Rob Herring
2020-09-16 10:27 ` Jonathan Cameron
2020-09-19 14:14 ` Jonathan Cameron
2020-09-09 17:59 ` [PATCH v2 20/20] dt-bindings:iio:adc:fsl,imx25-gcq " Jonathan Cameron
2020-09-15 19:26 ` Rob Herring
2020-09-16 10:33 ` Jonathan Cameron
2020-09-16 10:38 ` Jonathan Cameron
2020-09-19 14:19 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200909175946.395313-14-jic23@kernel.org \
--to=jic23@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=Phani.Movva@imgtec.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.