From patchwork Thu Jul 29 23:05:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 488742 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp2596014jas; Thu, 29 Jul 2021 16:07:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRu6E40dT35NcAMGb/03Qk/O5dyIb1kzfQLGhJGgNgT1+pf4KKmLPsrHpV3I9ACxNbGPHo X-Received: by 2002:a05:6402:1719:: with SMTP id y25mr8762966edu.331.1627600074929; Thu, 29 Jul 2021 16:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627600074; cv=none; d=google.com; s=arc-20160816; b=kS+5RkzY+3DNQJ5f+/ggmEC4bJe+DRMHt8r47EUvKdXKS4tVweEJUeTtjCb3YARVK6 c5+y/+eUWGTA6dtkRx+RRbGAcyuqOY3avH8cQsoWAQ+fjldUJYoYlOUzXDw//Cd4CtjP oVsru8CC0u5PwF//DlmmIzJ5uSHGeCW58xLk5D+wFDfGEhWpKY8A/CR2yLPAYAnGYEhD 2Fa+noMx0dH9ZFDkJTKpG1O4zANlHpcMB36A7y1KcPq7jReGjkIKzBNXNhXPQ+RimJtD pLVC6I7ZerWGAfnAfvu0D2yX8MyNND5RWRcci/Fzb+Rj4WDYOI6gVOyf5fM9euQTHAVB c7Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RQDtu9kQfe9kDnqIYwpik/tMr0BFysHyyoJucVn6soA=; b=vxDt3sWPpOj4Wf4OMb1izvHvX5kssc+f/hGggFyLqj873VoEKBFuNgmzCMc3bwuc/R x7GLpXplsLW4Ss1Suye6ETvJbSuiph5byfhuib0RuMu7l7SuH/UkKlrsE3LYJTKOAnxS ZLaGV0QTe8z7UVsVwA140gW8klq/BcWCEbLYiEcQmraWoYuWoFhwdEMhI3wT1EZuCWDl cuBOchW23aJvCMwywl38DqQyq+WBsNPuRGz9QfY1Xn+CsXk2CEYxBFtgq5IeUJnmuigU l6vylFnkXZkm5hXYcLflzRYkiMbCYyo+vKcv+tgS/55IzIlBSjstEvTuXVIbcX1iMXMf A9vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F2W6dM1W; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr6si4980730ejb.199.2021.07.29.16.07.54; Thu, 29 Jul 2021 16:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F2W6dM1W; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232810AbhG2XHx (ORCPT + 7 others); Thu, 29 Jul 2021 19:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbhG2XHw (ORCPT ); Thu, 29 Jul 2021 19:07:52 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B63BCC0613C1 for ; Thu, 29 Jul 2021 16:07:48 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id r17so13989962lfe.2 for ; Thu, 29 Jul 2021 16:07:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RQDtu9kQfe9kDnqIYwpik/tMr0BFysHyyoJucVn6soA=; b=F2W6dM1Wy2BhI+j5+zrvn6gYFq7PnDxD5ehbRZi4Wn6RfgCr15Qk33IUMOCyUnRZbx Q4rkHe+PSPIx81aCsq9d1gBGasjek/bdN+g3Vp0yvBtmqXs2MxbX4ujwu33KFdfh6nIE VMxvjzAlda8aCnn6CtTMQdP59xO+Pn4em+jEb5Iamcp6yyO1PLsJKIulD9IMXLBEcSm/ ATFP5EqkIfwGn5e0brOZ+rXBOID4dObibG+ok2ZasfYQVkrG77nhwQ815Z+kkCcK4ndU oLv3EDIp2WMYG42SpDglF1raWpzlLudYdOg0K1s2o4FtVXLmiDdXkwpGaFRpcfhBpxou CgtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RQDtu9kQfe9kDnqIYwpik/tMr0BFysHyyoJucVn6soA=; b=t6HJSOiZXG/B2vIOZErLgMX9Gbb/M9lXWXbs9q6aYhOg3Et6qIE8WPzy20vLKTlgNj WzHnOp9T8QnIM9QjzH1bKEUJcTVA7rCLT/BQ3MQk5b3jnKh6ZsB83nLry1dDzN3iTwp4 FPxV9mpsCI9/2t9AwoQs5+EGoY6evWxBrW6y1Cruj/I915XJj2NcyoqpGDRZVhsOnrtH v9afcnlogx6OcPDYKqehMvi35LDe+0poYo64pwNvKGVrxik/J2A7kDxpC3GN3d3H2fHP 4AG4EZZa0JmEPlpnW/FW4aoWskVYhH9eGwztooOlOEGZLHjtovx880PBqpZekTXqSV1D 38yA== X-Gm-Message-State: AOAM5336Wdak8JfUFJG3Zcye2478eJBzQT08qguZbPaJSE7R+/k7Si51 QfyW4acIAKBzFT1XVW7vhQnsUZGpxfv0kA== X-Received: by 2002:a05:6512:3d0f:: with SMTP id d15mr5550574lfv.246.1627600066954; Thu, 29 Jul 2021 16:07:46 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id l21sm248815ljc.94.2021.07.29.16.07.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 16:07:46 -0700 (PDT) From: Linus Walleij To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: hwmon: Add bindings for Winbond W83781D Date: Fri, 30 Jul 2021 01:05:42 +0200 Message-Id: <20210729230543.2853485-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a device tree binding for the Winbond W83781D and its sibling HW monitoring ICs. This is used in for example the Freecom FSG-3 router/NAS. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../bindings/hwmon/winbond,w83781d.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/winbond,w83781d.yaml -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/hwmon/winbond,w83781d.yaml b/Documentation/devicetree/bindings/hwmon/winbond,w83781d.yaml new file mode 100644 index 000000000000..31ce77a4b087 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/winbond,w83781d.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/hwmon/winbond,w83781d.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Winbond W83781 and compatible hardware monitor IC + +maintainers: + - Linus Walleij + +properties: + compatible: + enum: + - winbond,w83781d + - winbond,w83781g + - winbond,w83782d + - winbond,w83783s + - asus,as99127f + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temperature-sensor@28 { + compatible = "winbond,w83781d"; + reg = <0x28>; + }; + };