Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1604589pxu; Sat, 12 Dec 2020 19:55:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXq0/Hu/vvh1JDaGZzthWj+mPtN4vfTJ9MljuEsqamyykDMqdhhBO3gTkKpyixjZT2EmFA X-Received: by 2002:aa7:cd71:: with SMTP id ca17mr6806913edb.25.1607831750803; Sat, 12 Dec 2020 19:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607831750; cv=none; d=google.com; s=arc-20160816; b=LLtt1ezQeCermLArkkXK+0V/54CaIqg8XiGs+1tjotguMqO8gjTjSfNNP8mwD/QWXZ m9kUEpD4yO2fkxowMG2pBB/Jgmq06CFsUeOp6mbW+//UMf/kKKpJV05Seir5IJMrWz+a qCp4AZA8zVkMdK9LcjjWWcPv0wb1w6oS5+gUL+bsxBzIktDtsd5v3ibWA4QMvOGZZxuK TuA5zZhFbO/CinsG6KfAfhORqItTn+iEagqu+21ZPy9t3/Wwcku73t56lDKa1cg4qXpl HOUO2Z7eJiAlhFMzg2pAhuTf8bMdfo3+BnwpDcKcc0SKn7IUq+ZD8iGUX9+9lest6L2V 5Dcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=Rd2S5ERIdpxDDi+uhK9cbjd0vF+3SVBwWriC0JcpU0w=; b=D1OfMP97OtJWX3mEpadlrDZf2cjrJSkcUZEqD0cMkC0mDxlnAPuYihgaQ42g0AxP+g 9OkzdNPBLwvR6NFmWlvPveDCv2MGio9yWVGfxcb6mxF27dwdgYxq4ZJRCCYDHIem6Hws cJAZdI5x5by4QlYnPQe+0ebGiCCShWlVOthF6rj2DT8lZQVUYppiPJ53e5Uln5DN2EkJ EqExa+thm9HsHv3RWmCWJRaaZZDJapLzJHLn+sjALIf/0FViLfebzG7tdRVCRKqssWkA LYkTb1M9/JieUxdVyMHtOCB7ePIgnrbFR+WqbDOOtAZ84cKiTdzx9Yp9svSDSUU+rWHi HNxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gcJ3yqiJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z27si8093492edl.135.2020.12.12.19.55.28; Sat, 12 Dec 2020 19:55:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@google.com header.s=20161025 header.b=gcJ3yqiJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392472AbgLKV4c (ORCPT + 99 others); Fri, 11 Dec 2020 16:56:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406666AbgLKVz4 (ORCPT ); Fri, 11 Dec 2020 16:55:56 -0500 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA24CC061282 for ; Fri, 11 Dec 2020 13:54:41 -0800 (PST) Received: by mail-pg1-x549.google.com with SMTP id r1so5377325pgm.13 for ; Fri, 11 Dec 2020 13:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=Rd2S5ERIdpxDDi+uhK9cbjd0vF+3SVBwWriC0JcpU0w=; b=gcJ3yqiJW+gv6J7pXNellIYo6U1XVjhUnAoDf0KYKfq8Z48dh+sC5vdboDhaA2v7dc TKPgf+FFKcXPFTbfqrq3TZp01YbZ147AAU0vwFHu8SfF2JhCRMLpGdxGICdULZXprzIq IMZL836rPQhkRoipkuUo31PvlOYVa8pUzX+n9sl6YngFpIAVx79gvPRp4Lx5FSu5AJmG sCq5Ip77METDR0YTxE6GT9fvcLTLai4M7/mZdFkFyMW1SD+19yBv+BYHks232/kn5p9D SMKLWXUc3ZgueHEpv2jAFW16BYFIAtV2wa0G1NykSQM9veoT26ODprUixchAnkEjKgEj j/ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Rd2S5ERIdpxDDi+uhK9cbjd0vF+3SVBwWriC0JcpU0w=; b=AbsBxBIGdtfvgw9BWSU7BdUNH1E8iCInq+vfeiC1BS1vXDucehvZI9G1koid4EGtB+ RuDItUoA8NZ1dF4xQ53nigffG5aup1VPX+nREM3y9PIOfzIGYfErmm+2QQ4L/JxxFX8U szvnMeTCb7YMRSGT2sxekwoxFhYtEePjDL0oxoa6AZCLqejZpN3yugGkgFlLg53ehF2L RR+v3YgCPud7vZYjTmCGrwS2a7fDDnhVjCdg0Hnb2+s7tBgAT7kr05ZXhWkyLMrDpapp fEvw05xNvSV2HzksXUC8NN+BmWc+ua++L+Bwjtu+fzupp+GNNty4Z8qOdeOJhkKm+zbz 8Feg== X-Gm-Message-State: AOAM531102Pp6czmRelBohF6Y+0kZ8DIDGzHdVLK4UqTtmRBZCSuu3XI W0y/5bsC1tURUJ4iMfj0Ok+mgw9OZQ== Sender: "kunyi via sendgmr" X-Received: from kunyi0.svl.corp.google.com ([2620:15c:2c5:3:9657:a5ff:fef2:53bd]) (user=kunyi job=sendgmr) by 2002:a17:90a:4dcd:: with SMTP id r13mr14803802pjl.74.1607723681302; Fri, 11 Dec 2020 13:54:41 -0800 (PST) Date: Fri, 11 Dec 2020 13:54:27 -0800 In-Reply-To: <20201211215427.3281681-1-kunyi@google.com> Message-Id: <20201211215427.3281681-4-kunyi@google.com> Mime-Version: 1.0 References: <20201211215427.3281681-1-kunyi@google.com> X-Mailer: git-send-email 2.29.2.684.gfbc64c5ab5-goog Subject: [PATCH linux hwmon-next v5 3/3] dt-bindings: (hwmon/sbtsi_tmep) Add SB-TSI hwmon driver bindings From: Kun Yi To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, supreeth.venkatesh@amd.com Cc: Kun Yi , openbmc@lists.ozlabs.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document device tree bindings for AMD SB-TSI emulated temperature sensor. Signed-off-by: Kun Yi --- .../devicetree/bindings/hwmon/amd,sbtsi.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/amd,sbtsi.yaml diff --git a/Documentation/devicetree/bindings/hwmon/amd,sbtsi.yaml b/Documentation/devicetree/bindings/hwmon/amd,sbtsi.yaml new file mode 100644 index 000000000000..446b09f1ce94 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/amd,sbtsi.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/amd,sbtsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: > + Sideband interface Temperature Sensor Interface (SB-TSI) compliant + AMD SoC temperature device + +maintainers: + - Kun Yi + - Supreeth Venkatesh + +description: | + SB Temperature Sensor Interface (SB-TSI) is an SMBus compatible + interface that reports AMD SoC's Ttcl (normalized temperature), + and resembles a typical 8-pin remote temperature sensor's I2C interface + to BMC. The emulated thermal sensor can report temperatures in increments + of 0.125 degrees, ranging from 0 to 255.875. + +properties: + compatible: + enum: + - amd,sbtsi + + reg: + maxItems: 1 + description: | + I2C bus address of the device as specified in Section 6.3.1 of the + SoC register reference. The SB-TSI address is normally 98h for socket + 0 and 90h for socket 1, but it could vary based on hardware address + select pins. + \[open source SoC register reference\] + https://www.amd.com/system/files/TechDocs/56255_OSRR.pdf + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + sbtsi@4c { + compatible = "amd,sbtsi"; + reg = <0x4c>; + }; + }; +... -- 2.29.2.684.gfbc64c5ab5-goog