From: David Lechner <dlechner@baylibre.com>
To: Eason Yang <j2anfernee@gmail.com>,
avifishman70@gmail.com, tmaimon77@gmail.com,
tali.perry1@gmail.com, venture@google.com, yuenn@google.com,
benjaminfair@google.com, jic23@kernel.org, lars@metafoo.de,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
nuno.sa@analog.com, javier.carrasco.cruz@gmail.com,
andriy.shevchenko@linux.intel.com, gstols@baylibre.com,
olivier.moysan@foss.st.com, mitrutzceclan@gmail.com,
tgamblin@baylibre.com, matteomartelli3@gmail.com,
marcelo.schmitt@analog.com, alisadariana@gmail.com,
joao.goncalves@toradex.com, thomas.bonnefille@bootlin.com,
ramona.nechita@analog.com, herve.codina@bootlin.com,
chanh@os.amperecomputing.com, KWLIU@nuvoton.com,
yhyang2@nuvoton.com
Cc: openbmc@lists.ozlabs.org, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 1/2] dt-bindings: iio: adc: add NCT7201 ADCs
Date: Fri, 21 Feb 2025 09:56:51 -0600 [thread overview]
Message-ID: <8975b119-fe24-463a-b163-dce702df3cdd@baylibre.com> (raw)
In-Reply-To: <20250221090918.1487689-2-j2anfernee@gmail.com>
On 2/21/25 3:09 AM, Eason Yang wrote:
> Add a binding specification for the Nuvoton NCT7201/NCT7202 up to 12-bit
> ADCs with I2C interface.
>
> Signed-off-by: Eason Yang <j2anfernee@gmail.com>
> ---
> .../bindings/iio/adc/nuvoton,nct7201.yaml | 57 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 58 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml b/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
> new file mode 100644
> index 000000000000..830c37fd9f22
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/nuvoton,nct7201.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Nuvoton nct7201 and similar ADCs
> +
> +maintainers:
> + - Eason Yang <j2anfernee@gmail.com>
> +
> +description: |
> + The NCT7201/NCT7202 is a Nuvoton Hardware Monitor IC, contains up to 12 voltage
> + monitoring channels, with SMBus interface, and up to 4 sets SMBus address
> + selection by ADDR connection. It also provides ALERT# signal for event
> + notification and reset input RSTIN# to recover it from a fault condition.
> +
> +properties:
> + compatible:
> + enum:
> + - nuvoton,nct7201
> + - nuvoton,nct7202
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + reset-gpios:
> + maxItems: 1
> +
Maybe this was brought up before, but no power supply?
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> +
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + adc@1d {
> + compatible = "nuvoton,nct7202";
> + reg = <0x1d>;
> + interrupt-parent = <&gpio3>;
> + interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
> + reset-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>;
> + };
> + };
> +...
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 3864d473f52f..fdc4aa5c7eff 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -2831,6 +2831,7 @@ L: openbmc@lists.ozlabs.org (moderated for non-subscribers)
> S: Supported
> F: Documentation/devicetree/bindings/*/*/*npcm*
> F: Documentation/devicetree/bindings/*/*npcm*
> +F: Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
This (ARM/NUVOTON NPCM ARCHITECTURE) doesn't look like the right place for
adding a stand-alone chip. You will need to start a new section like:
NUVOTON NCT7201 IIO DRIVER
> F: Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml
> F: arch/arm/boot/dts/nuvoton/nuvoton-npcm*
> F: arch/arm/mach-npcm/
WARNING: multiple messages have this Message-ID (diff)
From: David Lechner <dlechner@baylibre.com>
To: Eason Yang <j2anfernee@gmail.com>,
avifishman70@gmail.com, tmaimon77@gmail.com,
tali.perry1@gmail.com, venture@google.com, yuenn@google.com,
benjaminfair@google.com, jic23@kernel.org, lars@metafoo.de,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
nuno.sa@analog.com, javier.carrasco.cruz@gmail.com,
andriy.shevchenko@linux.intel.com, gstols@baylibre.com,
olivier.moysan@foss.st.com, mitrutzceclan@gmail.com,
tgamblin@baylibre.com, matteomartelli3@gmail.com,
marcelo.schmitt@analog.com, alisadariana@gmail.com,
joao.goncalves@toradex.com, thomas.bonnefille@bootlin.com,
ramona.nechita@analog.com, herve.codina@bootlin.com,
chanh@os.amperecomputing.com, KWLIU@nuvoton.com,
yhyang2@nuvoton.com
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 1/2] dt-bindings: iio: adc: add NCT7201 ADCs
Date: Fri, 21 Feb 2025 09:56:51 -0600 [thread overview]
Message-ID: <8975b119-fe24-463a-b163-dce702df3cdd@baylibre.com> (raw)
In-Reply-To: <20250221090918.1487689-2-j2anfernee@gmail.com>
On 2/21/25 3:09 AM, Eason Yang wrote:
> Add a binding specification for the Nuvoton NCT7201/NCT7202 up to 12-bit
> ADCs with I2C interface.
>
> Signed-off-by: Eason Yang <j2anfernee@gmail.com>
> ---
> .../bindings/iio/adc/nuvoton,nct7201.yaml | 57 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 58 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml b/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
> new file mode 100644
> index 000000000000..830c37fd9f22
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/nuvoton,nct7201.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Nuvoton nct7201 and similar ADCs
> +
> +maintainers:
> + - Eason Yang <j2anfernee@gmail.com>
> +
> +description: |
> + The NCT7201/NCT7202 is a Nuvoton Hardware Monitor IC, contains up to 12 voltage
> + monitoring channels, with SMBus interface, and up to 4 sets SMBus address
> + selection by ADDR connection. It also provides ALERT# signal for event
> + notification and reset input RSTIN# to recover it from a fault condition.
> +
> +properties:
> + compatible:
> + enum:
> + - nuvoton,nct7201
> + - nuvoton,nct7202
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + reset-gpios:
> + maxItems: 1
> +
Maybe this was brought up before, but no power supply?
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> +
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + adc@1d {
> + compatible = "nuvoton,nct7202";
> + reg = <0x1d>;
> + interrupt-parent = <&gpio3>;
> + interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
> + reset-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>;
> + };
> + };
> +...
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 3864d473f52f..fdc4aa5c7eff 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -2831,6 +2831,7 @@ L: openbmc@lists.ozlabs.org (moderated for non-subscribers)
> S: Supported
> F: Documentation/devicetree/bindings/*/*/*npcm*
> F: Documentation/devicetree/bindings/*/*npcm*
> +F: Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
This (ARM/NUVOTON NPCM ARCHITECTURE) doesn't look like the right place for
adding a stand-alone chip. You will need to start a new section like:
NUVOTON NCT7201 IIO DRIVER
> F: Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml
> F: arch/arm/boot/dts/nuvoton/nuvoton-npcm*
> F: arch/arm/mach-npcm/
next prev parent reply other threads:[~2025-02-21 15:56 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 9:09 [PATCH v4 0/2] iio: adc: add Nuvoton NCT7201 ADC driver Eason Yang
2025-02-21 9:09 ` Eason Yang
2025-02-21 9:09 ` [PATCH v4 1/2] dt-bindings: iio: adc: add NCT7201 ADCs Eason Yang
2025-02-21 9:09 ` Eason Yang
2025-02-21 15:56 ` David Lechner [this message]
2025-02-21 15:56 ` David Lechner
2025-04-07 13:41 ` Yu-Hsian Yang
2025-04-07 13:41 ` Yu-Hsian Yang
2025-02-21 16:56 ` Conor Dooley
2025-02-21 16:56 ` Conor Dooley
2025-02-21 9:09 ` [PATCH v4 2/2] iio: adc: add support for Nuvoton NCT7201 Eason Yang
2025-02-21 9:09 ` Eason Yang
2025-02-21 16:30 ` David Lechner
2025-02-21 16:30 ` David Lechner
2025-02-22 12:48 ` kernel test robot
2025-02-22 12:48 ` kernel test robot
2025-02-22 15:56 ` Jonathan Cameron
2025-02-22 15:56 ` Jonathan Cameron
2025-02-25 21:11 ` Paul Menzel
2025-02-25 21:11 ` Paul Menzel
2025-03-03 17:41 ` kernel test robot
2025-03-03 17:41 ` kernel test robot
2025-02-22 15:25 ` [PATCH v4 0/2] iio: adc: add Nuvoton NCT7201 ADC driver Jonathan Cameron
2025-02-22 15:25 ` Jonathan Cameron
2025-04-07 13:51 ` Yu-Hsian Yang
2025-04-07 13:51 ` Yu-Hsian Yang
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=8975b119-fe24-463a-b163-dce702df3cdd@baylibre.com \
--to=dlechner@baylibre.com \
--cc=KWLIU@nuvoton.com \
--cc=alisadariana@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=avifishman70@gmail.com \
--cc=benjaminfair@google.com \
--cc=chanh@os.amperecomputing.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gstols@baylibre.com \
--cc=herve.codina@bootlin.com \
--cc=j2anfernee@gmail.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=jic23@kernel.org \
--cc=joao.goncalves@toradex.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt@analog.com \
--cc=matteomartelli3@gmail.com \
--cc=mitrutzceclan@gmail.com \
--cc=nuno.sa@analog.com \
--cc=olivier.moysan@foss.st.com \
--cc=openbmc@lists.ozlabs.org \
--cc=ramona.nechita@analog.com \
--cc=robh@kernel.org \
--cc=tali.perry1@gmail.com \
--cc=tgamblin@baylibre.com \
--cc=thomas.bonnefille@bootlin.com \
--cc=tmaimon77@gmail.com \
--cc=venture@google.com \
--cc=yhyang2@nuvoton.com \
--cc=yuenn@google.com \
/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.