From patchwork Fri Sep 10 13:03:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oskar Senft X-Patchwork-Id: 1526504 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=sKgWvVag; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4H5bfj3FWMz9sVw for ; Fri, 10 Sep 2021 23:03:57 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233270AbhIJNFG (ORCPT ); Fri, 10 Sep 2021 09:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233185AbhIJNFF (ORCPT ); Fri, 10 Sep 2021 09:05:05 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA3CBC061574 for ; Fri, 10 Sep 2021 06:03:54 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id k15-20020a25240f000000b0059efafc5a58so2267931ybk.11 for ; Fri, 10 Sep 2021 06:03:54 -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=IeHMnwyPlntJ+9Kovc0kz68pxDiDtqq0mND+q+dKmuM=; b=sKgWvVagldMOdNDEECLqCwWve1jCCoinf+jkuI0uSKKaw87CwABTpCgJMa08G1sBog GSoQo7X+ohCUaprKgAFsuGvCHDI96KQu7rxQcNvWNqFrGSXJKZe7lJyWFxmL6vmF4+64 Hj4ktl/1e/DfaF2imiRHWX5M7iZuzOKLTyJDZAG5AwI0AVsBTu1PTYGlNE7kwevibGMq uBhjxsfdfI7EIkYa/iBLYNO5qtn9/7maIqwssW3QGjfs5uuTt4C564oVC8elXz+IgtxR UUfxt/ZTl8ta6/TeBn6DX3X2C4yUoM/O4mtrgL7T6gO74ZZ9qrlX8E56fENOEZwAFPcs baKQ== 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=IeHMnwyPlntJ+9Kovc0kz68pxDiDtqq0mND+q+dKmuM=; b=NjOsmmdOVsT9TAwpuuVukRY3/BELcPyy4/E8fXwnlesXjTVmEj6kFPnYSSAia6Lo87 fQv2uMQQmtqxpDYTrDUkwYjp8gcxmRYGGDDjzdn3kx+hV3TKgVJOonlti2Of8WwucENY RAJEo5LLmMYFLFRwxny2I/8MqiQJG6FNvS3kwBXcQOBY1YGvzXR/JSWUET0quNFQujbO Y7s0eKrPsxT7KWu0Hn8OKPkfMqkyLFfWoUPXhfjtkv3h6VM7LQbB449IKKLLywlRs82T ZxP48Gyr4AwG6D+vnPxxlbvAtyL+nJ+zV4BoLZmb6KFQn8TI7NBXAPv9z6YLBgKvcqIB Nxrw== X-Gm-Message-State: AOAM530RaA09hVxfuqBMcciXH0g0R5neZOD2W4nP8WY3OEDXW1pH+CvR KZMD91AlJruQdB37kvvHej/WEwM= X-Google-Smtp-Source: ABdhPJxECZOcpBv/gTuYUDejgHhSKgS8eXKrifNj6j6UICA9ZTxdVUE4iSeud8Rg6KKovjhPkNFB1hA= X-Received: from osk.cam.corp.google.com ([2620:0:1004:1a:42c6:8506:76cb:83dc]) (user=osk job=sendgmr) by 2002:a5b:9c9:: with SMTP id y9mr11340666ybq.460.1631279033973; Fri, 10 Sep 2021 06:03:53 -0700 (PDT) Date: Fri, 10 Sep 2021 09:03:37 -0400 Message-Id: <20210910130337.2025426-1-osk@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.309.g3052b89438-goog Subject: [PATCH] dt-bindings: hwmon: Add nct7802 bindings From: Oskar Senft To: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jean Delvare , Guenter Roeck , Rob Herring , Oskar Senft Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document bindings for the Nuvoton NCT7802Y driver. Signed-off-by: Oskar Senft --- .../bindings/hwmon/nuvoton,nct7802.yaml | 66 +++++++++++++++++++ 1 file changed, 66 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..bc4b69aeb116 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml @@ -0,0 +1,66 @@ +# 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 + + nuvoton,rtd-modes: + description: | + Select modes for the three RTDs. + + The order is RTD1, RTD2, RTD3. + + Valid values for RTD1 and RTD2 are: + "closed", + "current", + "thermistor", + "voltage" + + Valid values for RTD3 are: + "closed", + "thermistor", + "voltage" + type: stringlist + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + nct7802@28 { + compatible = "nuvoton,nct7802"; + reg = <0x28>; + nuvoton,sensor-modes = + /* RTD1 */ "thermistor", + /* RTD2 */ "voltage", + /* RTD3 */ "closed"; + }; + };