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 X-Spam-Level: X-Spam-Status: No, score=-26.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15A74C433EF for ; Tue, 21 Sep 2021 02:25:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E16B6611ED for ; Tue, 21 Sep 2021 02:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238374AbhIUC1L (ORCPT ); Mon, 20 Sep 2021 22:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238443AbhIUB51 (ORCPT ); Mon, 20 Sep 2021 21:57:27 -0400 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F09F2C09395A for ; Mon, 20 Sep 2021 17:46:52 -0700 (PDT) Received: by mail-qv1-xf49.google.com with SMTP id a15-20020a0ce34f000000b0037a944f655dso207351006qvm.5 for ; Mon, 20 Sep 2021 17:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=X0g37Ri5sxxIVy0NRE3UYDG3npfIU5zLh9WBLDKQV3s=; b=PBUUSrGiOy3GrxFoJKwe5V6d8XZpVtpYTK/90NV2fwHOfVXqV+lyrTVCpBXxymdjnP q2pYCOHf0/gm35/TVyUpIzq4K0hDqNwZOiQDPbb89UOTj7kdrP/PJNGIYPlAr7jrDa42 4S9WEayhnVpg7vUt/hk1nyERZHJHJ6CdsCrqgpI6OEyF8+VWBssv6gMUFSlkNscfwc7D t79W9/uTJ7zANZ/2RiOXJZR/J0vT3apfMYpze8c0JjelvRj9ufIH92ELkHYDm2ZZQVAE 2v50W45fA6G7YFfvTWkGVCbnUWi6QbuyUIVzTmjchUYVniKKf7ypoUG23BPJ4SZayWpk dSIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=X0g37Ri5sxxIVy0NRE3UYDG3npfIU5zLh9WBLDKQV3s=; b=MhFbqyE2FR0MOcZTavYZFOhHYeFzFs9m6lvQFFCjBC2zKZMdBwyx8sr7cfKSOOPHt9 PsadvUWXFrZCXDR3Or3p8NilvNgCp01gfzG0NTrpg1+W4msJ2iczWcPcdTi3/IN0UEfu BJH8VHd1xGclWwzstKm5WSDt/mQXwujtIiu6mRg1ZpmcdTYRxEPLdvs5nFK7a6vFcS6O MpKZ4xYhZByIXoaWVy6LKsrzxx9Jk+lXmJTqqbr2iKvy9p+d3vIDcc4l/p+75pp9/bnP vX8T78ZKoSXW9yvA84B9tHCFPlNEtf7KCJOAB/MVnls9Jdv8szrjSr1YGKSkZYnOP61W vzKw== X-Gm-Message-State: AOAM531/hhAjokLdtE8M673gWM/ZFdBF1jP271Z8VpodTyYBY8Ua7Mdm cQcNNo6UuUzzCGgNKAd/OFU28M4= X-Google-Smtp-Source: ABdhPJzSaxyd34Xwh925O9wn2RVv6+oVvg145u9Qm7XirosQNqRDYbQX+JZU2Q6gBT8fJRq/vQbQXIA= X-Received: from osk.cam.corp.google.com ([2620:0:1004:1a:fbed:324c:ca6c:1142]) (user=osk job=sendgmr) by 2002:a05:6214:122e:: with SMTP id p14mr28192853qvv.57.1632185212089; Mon, 20 Sep 2021 17:46:52 -0700 (PDT) Date: Mon, 20 Sep 2021 20:46:26 -0400 Message-Id: <20210921004627.2786132-1-osk@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog Subject: [PATCH v2 1/2] dt-bindings: hwmon: Add nct7802 bindings From: Oskar Senft To: Jean Delvare , Guenter Roeck , Rob Herring , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Oskar Senft Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Document bindings for the Nuvoton NCT7802Y driver. Signed-off-by: Oskar Senft --- .../bindings/hwmon/nuvoton,nct7802.yaml | 92 +++++++++++++++++++ 1 file changed, 92 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..7512acbc9d1a --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml @@ -0,0 +1,92 @@ +# 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 + + temperature-sensors: + type: object + description: + | + Configuration for temperature sensors. If temperature-sensors + is not provided at all, the internal temperature sensor will be + enabled. If temperature-sensors is provided, only the listed + sensors will be configured as specified. The runtime configuration + for un-listed sensors will not be touched in the chip. This allows + sensors to be configured at power-up time from an EEPROM connected + to the chip and at the sime time allows to override these settings + using device tree configuration. + + properties: + ltd: + type: object + description: Internal Temperature Sensor ("LTD") + + rtd3: + type: object + description: + | + Remote Temperature Sensor ("RTD3"). This sensor only supports + thermistor mode. + + patternProperties: + "^rtd[1-2]$": + type: object + description: Remote Temperature Sensor ("RTDx") + properties: + "type": + description: Sensor type (3=thermal diode, 4=thermistor). + allOf: + - $ref: "http://devicetree.org/schemas/types.yaml#/definitions/uint32" + - items: + - enum: [ 3, 4 ] + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + nct7802@28 { + compatible = "nuvoton,nct7802"; + reg = <0x28>; + + temperature-sensors { + ltd { + status = "disabled"; + }; + + rtd1 { + status = "okay"; + type = <4> /* thermistor */; + }; + }; + }; + }; -- 2.33.0.464.g1972c5931b-goog