Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1015452pxu; Wed, 2 Dec 2020 08:59:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJznjRfYC2xgFAlafpVpepkKZc6+mWAmPME8hxGh8USln9IBdlIl454wKnuQUBjomRm1Jxro X-Received: by 2002:a50:e00f:: with SMTP id e15mr902858edl.210.1606928368809; Wed, 02 Dec 2020 08:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606928368; cv=none; d=google.com; s=arc-20160816; b=n6lfUhYn54im2z27nwIquAGo77vNi1xJP9UT739SKAeoBGzLTjcXrTM5r5AaZwzYdP 32IGSALkRAm8xirm53+ZhMZlfgw5uKeaQy9UO06a+G8AQ5xWEPcpUcr+10GtKZkQQ+1a pci3FTP5FeCeSAh5U6m+clgXaPZrYS4JjcN5TJJ483moX6/GiM3T5CaQedYj+F0KWXNG /PFxeO7jo4n6/Ii0QaEszVJ4jMvLUZehi93dYdy2+PDf3XROakw+nbs5qUXxDcB7M31X CrkbfQCg6pDiv5W7cUxSiNQT23djZzOkMgley1UJIbKY3FpQlz1KncIJH2ksmbsa7DhG gNOw== 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=yv6jkOMVVu0NxKOBrd1YDUszNsTB64/IwLRfmacssjI=; b=byb3vV3RcPl0tf1zYQm4WzFPrYppgQpLWi04XqvqVkUYIwOjS5xLA2aWfTVmFnQO+x +bUjkRyNvDcKdnLRWXJdlmv33Tmv8c3QSMUx8L4HsILHfzOKSeBDbL38LEwe7gFiX8YR 9sd0QV3ME8PxJRgWjgbs6+/h7Fx5OzaRrVtJ/oK3FprnAOdWUyCWWoi3rgyNt48FFrCX R34QFq7JrOyWkLqdYQT6W/l3xuiS5uwpYF9yyUMhdHPRdNB78IhFGAFTA0F+GWe7pje1 7ZydeE4H6AQdq3+xZnSVKZQIcO/NNDJzSqCfGhtygWbEjLr9RYMG4A+8dQMZpLa3jhj+ C6XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PYM0+hMc; 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 r17si290598edv.234.2020.12.02.08.59.05; Wed, 02 Dec 2020 08:59:28 -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=PYM0+hMc; 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 S1730455AbgLBQ5j (ORCPT + 99 others); Wed, 2 Dec 2020 11:57:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728226AbgLBQ5j (ORCPT ); Wed, 2 Dec 2020 11:57:39 -0500 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9182BC061A4C for ; Wed, 2 Dec 2020 08:56:26 -0800 (PST) Received: by mail-pf1-x449.google.com with SMTP id l11so1641164pfc.16 for ; Wed, 02 Dec 2020 08:56:26 -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=yv6jkOMVVu0NxKOBrd1YDUszNsTB64/IwLRfmacssjI=; b=PYM0+hMcoAZzkNbTQczmz7arAkA+YVllnBBKhKWWKcmGpJ1QOp4hhVjf43FBFF9n6S ydt8GpmEiSx3PU3+n3Eyjhwwf+3dMLLhl1PkXWbtsAfrW5xaCyJ6WW3WaAWLN6mbLW6+ RbSPcHO8RyA92KQcn6J8wBjeuR/aMgUvBM9Qy7VHdvXL7R0a50xEFYy3Gntb6PUwBqMp NzzfOxvE+LMZNEdaUVBle9ELmAWhwVunHUDUYPYnRxoDGIVwcbSZ5Uea8zfJXuNduU9O cNBb62fOlNKhk+WmmrjwgVj5iHO2LPT7TIUWg8MZbxoejwZ70AMTh19mArWU9SWEX0Ia VPZQ== 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=yv6jkOMVVu0NxKOBrd1YDUszNsTB64/IwLRfmacssjI=; b=Gxuyz5Z0RTs0s7v4CoN4FWPuGNwCd67ECrEjfsz+3nqAZnG2/uupKOVDJGYRSyQ7Ry jYdkkhiS4M5Ie5BHUEVvZhc286uE7QlL1Ra0oTY8qHW8PSpxhglbPLP+TvZRsW7VCLB0 DlchDrGdue6ZIoNTkOctcpGpwtdqOdeNLWFSuk3a1aSx71lp2izvvfrslN3CSfFlZ1+q s577Yk3hUskaUcCyJxfpjbjt4oLjUr34pKBY6JYg2TfjH7039ttgv3MD2P6ZMREjEQ7U WomqInWsdGkL7P3NILYy3w9D0ca+biPdmwC3pK7x0u7tCDpZdMVu4JRZBZG08qICN0OH sz2Q== X-Gm-Message-State: AOAM5334HfkhodeWXX1bSqHmW5avygYqV+RNdMGEYgvWN/00WZvn5/Hl p4S+lXo+9ycrtuEQrdzIqUs5oQ900w== 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:67cf:: with SMTP id g15mr723285pjm.24.1606928186050; Wed, 02 Dec 2020 08:56:26 -0800 (PST) Date: Wed, 2 Dec 2020 08:56:01 -0800 In-Reply-To: <20201202165601.1532213-1-kunyi@google.com> Message-Id: <20201202165601.1532213-4-kunyi@google.com> Mime-Version: 1.0 References: <20201202165601.1532213-1-kunyi@google.com> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH linux hwmon-next v4 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.454.gaff20da3a2-goog