From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D81EC433F5 for ; Sat, 9 Oct 2021 18:53:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3C84B60F90 for ; Sat, 9 Oct 2021 18:53:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229918AbhJISzf (ORCPT ); Sat, 9 Oct 2021 14:55:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbhJISzf (ORCPT ); Sat, 9 Oct 2021 14:55:35 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 799C8C061762 for ; Sat, 9 Oct 2021 11:53:37 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id j21so35915219lfe.0 for ; Sat, 09 Oct 2021 11:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=LnzLFAk3139Iv7hHI1W57hPa7Zv+3a8hcq1wSnPhYrk=; b=CL7I53VNh1nhDl/zUWjM+50sQLL7XCqK2njpQSIAXKUypLtXf97HmeL5Fe1IpjjItw Hy8xuYsieNHfb2ScocmQxAeD8ZIU+lfY21DYlVqhwt5eyOb9hOBPcJzTSGRjFQG7v8YG rLMrMcJVET1gbE0+rEz+q3rN3cti9k6bTvEGih/attOM5im4nTJhgy5o1JD1DMW4Ial7 8Oz2wWl5qPV8FL5NyX5okr4aKTfXLHQjBJkqZUenIFJgUSaFluMoVNdCJ837zpFHKFfI D1lNNZZFt1gASWvXWLLEtDwMezXMU/v48nE5+B91l/OE4WWJWTkiJsDeROFYpYb+sOfE 2LYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=LnzLFAk3139Iv7hHI1W57hPa7Zv+3a8hcq1wSnPhYrk=; b=nYKOjcIgaGhzhkorwcpmI36vp+NaVVpglv/1dQgdw6egJij+7WGTQToo3DTet6l7La PHCnpZJVrLBVSEgh+vA2NZny3tpCdNkEByZe3Xf+wFWa0EdhIFyqPfJNn1hndKQYpa3R aiNEiR+3ThW0qeLDIrH62Ut+0/aX5ULeMq+DCJJk4ddruKQ4AVjSvOOl0JFaGBVwrKzV EI4i9c/2v6otpKvhkK9wedH54C7qJmU8LbqKEO9yWU6ArC9Zjvw6KJUMsH+stde40xz3 RmMOyW/fz102c4NeoiyTMWMzqTceNluQACWcoC+jkP2easgGsYtU+aILKwyNX2cD7j9R vYMQ== X-Gm-Message-State: AOAM532UiJ1sXIAHv3bvp0gMAtwfa293xKw1ivmaXtVgb8snu7MzLwV2 w6zAGy31tpk66/W7fHRI/3P7IhSKY+XV2nFnz8l2wg== X-Google-Smtp-Source: ABdhPJwXTBVkZV32W0aAjwn7T0xQsjwTWXDvAAwMAuwgDOqbqrwklVmo5pC6t/5D4NNkinmPBBApEcTl4Fcc1JS9EZ0= X-Received: by 2002:a2e:9b87:: with SMTP id z7mr11388371lji.253.1633805615304; Sat, 09 Oct 2021 11:53:35 -0700 (PDT) MIME-Version: 1.0 References: <20211009185257.2230013-1-osk@google.com> In-Reply-To: <20211009185257.2230013-1-osk@google.com> From: Oskar Senft Date: Sat, 9 Oct 2021 14:53:18 -0400 Message-ID: Subject: Re: [PATCH v5 1/2] dt-bindings: hwmon: Add nct7802 bindings To: Jean Delvare , Guenter Roeck , Rob Herring , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Changes since "PATCH v4 1/2" as requested in the review: - Renamed "signal" to "channel" On Sat, Oct 9, 2021 at 2:53 PM Oskar Senft wrote: > > This change documents the device tree bindings for the Nuvoton > NCT7802Y driver. > > Signed-off-by: Oskar Senft > --- > .../bindings/hwmon/nuvoton,nct7802.yaml | 142 ++++++++++++++++++ > 1 file changed, 142 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml > new file mode 100644 > index 000000000000..ff99f40034f2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml > @@ -0,0 +1,142 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > + > +$id: http://devicetree.org/schemas/hwmon/nuvoton,nct7802.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nuvoton NCT7802Y Hardware Monitoring IC > + > +maintainers: > + - Guenter Roeck > + > +description: | > + The NCT7802Y is a hardware monitor IC which supports one on-die and up to > + 5 remote temperature sensors with SMBus interface. > + > + Datasheets: > + https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf > + > +properties: > + compatible: > + enum: > + - nuvoton,nct7802 > + > + reg: > + maxItems: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + channel@0: > + type: object > + description: Local Temperature Sensor ("LTD") > + properties: > + reg: > + const: 0 > + required: > + - reg > + > + channel@1: > + type: object > + description: Remote Temperature Sensor or Voltage Sensor ("RTD1") > + properties: > + reg: > + const: 1 > + sensor-type: > + items: > + - enum: > + - temperature > + - voltage > + temperature-mode: > + items: > + - enum: > + - thermistor > + - thermal-diode > + required: > + - reg > + - sensor-type > + > + channel@2: > + type: object > + description: Remote Temperature Sensor or Voltage Sensor ("RTD2") > + properties: > + reg: > + const: 2 > + sensor-type: > + items: > + - enum: > + - temperature > + - voltage > + temperature-mode: > + items: > + - enum: > + - thermistor > + - thermal-diode > + required: > + - reg > + - sensor-type > + > + channel@3: > + type: object > + description: Remote Temperature Sensor or Voltage Sensor ("RTD3") > + properties: > + reg: > + const: 3 > + sensor-type: > + items: > + - enum: > + - temperature > + - voltage > + required: > + - reg > + - sensor-type > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + nct7802@28 { > + compatible = "nuvoton,nct7802"; > + reg = <0x28>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + channel@0 { /* LTD */ > + reg = <0>; > + status = "okay"; > + }; > + > + channel@1 { /* RTD1 */ > + reg = <1>; > + status = "okay"; > + sensor-type = "temperature"; > + temperature-mode = "thermistor"; > + }; > + > + channel@2 { /* RTD2 */ > + reg = <2>; > + status = "okay"; > + sensor-type = "temperature"; > + temperature-mode = "thermal-diode"; > + }; > + > + channel@3 { /* RTD3 */ > + reg = <3>; > + status = "okay"; > + sensor-type = "voltage"; > + }; > + }; > + }; > -- > 2.33.0.882.g93a45727a2-goog >