Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2036594ybb; Sat, 4 Apr 2020 20:03:30 -0700 (PDT) X-Google-Smtp-Source: APiQypI7AePtUXwZVSu2frn/RCTNaYYFhZSKRxqCphf2AGlMrehFCRO8MJaPTTTVh7p+tnzGW76W X-Received: by 2002:aca:edcf:: with SMTP id l198mr8255830oih.97.1586055810609; Sat, 04 Apr 2020 20:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586055810; cv=none; d=google.com; s=arc-20160816; b=kX0U8v8RM7YASYnwKNW5KnDfL7szSyU1NvZgGrjwnpCJ9XXQ8V0+Y5Io2sqA2tWWTB cZBcnE1s3Ke8yjeXvdI+tL6cQivP5OyJtd/vfXJ0+RYpLejEn0x/Ir2aTPCM229u2q2d bDa5ntOOoeX/Qx9Ic1rHntrIR/sgxKXyboD/T8tSGVRbztyi7PsejI6gZOWCyOL/R3J9 trDccQWUsa1Xx6+VsCEr61S+/KqPFlR9O22pPKRZHPGABzM55T3LUQheFjARltLd1tc2 PqIVeGw2w1r2xUPkRxK6nSPJKgp+rXbDQyGq7RYkaBoUilJulhDwzEtdBNCmqrCKQuTD tiTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=/mhEVKDrcLowpzfx6YTsJHtWxucbZ6JF/7+trFXxaIo=; b=VNeQ7v1J1ph3wt7/Ind1D3xjqrTBxV13T6ks8hHHgGZBq0tmvWMficxvcxnovvGZDv knEWQNeZ1a9SlhzxmkYTCXhivyzL40gkENc0c53aijv+b/dSrxwD9g24spiV4ZlxJiNC kw1kiQhMjuzD89ZdAxdIzaV6SGe5rJ5xG/p03KIpWu+PjqfMT836I98q+7zaQdQ+nRdD 54ptzTqGEctmJ/aub9mKhcRasKWd0BCfl/tac9SdeVlItl0psYIqYqxyONEThwdmRcbW I8+B1fIacvZ7d1oQqHDtt1MJW/9tQ9Pq1R5zrmMQknhh0mzcW8B8gwqM4Gcgath5odU1 YHrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="PO44/Tdb"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y123si5762228oia.141.2020.04.04.20.03.18; Sat, 04 Apr 2020 20:03:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="PO44/Tdb"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726492AbgDEDBi (ORCPT + 99 others); Sat, 4 Apr 2020 23:01:38 -0400 Received: from mail-pj1-f74.google.com ([209.85.216.74]:43800 "EHLO mail-pj1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726479AbgDEDBh (ORCPT ); Sat, 4 Apr 2020 23:01:37 -0400 Received: by mail-pj1-f74.google.com with SMTP id l9so10605397pjq.8 for ; Sat, 04 Apr 2020 20:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=/mhEVKDrcLowpzfx6YTsJHtWxucbZ6JF/7+trFXxaIo=; b=PO44/TdbXsdOKUnGcbwCiq/biYVFIazEY47zEiL9aID60XNQpcSbVLtTbF1LgtQNwu pq8ors1X0WVg3T14QfHi7jePFG7uQd9ygbYZ6CpcFfjP/18Wf+elgVnt5F1k5n4JTJ88 wPmAHTdtEMBZ9c4iEm7ET5yZaVXbSdnJxh4D/AcqBo+UW8TDHuzclsZA7utXw9OpDhga +2K7HKhe7i3QIUgjhE6O9ZNROr7e5cy2HNGHVJrpRSZmhPjQGhABt/equMSc59wTWcwT pJfczuxrC9ZErwPiAZCZ5Yd0aL2OYbkslHcPXbWXWA0pWQUgI8ar1xlvTEqM5Uvs3TiU N6rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=/mhEVKDrcLowpzfx6YTsJHtWxucbZ6JF/7+trFXxaIo=; b=YjbZIkVDAxhzqCDuDXoGt5SMYpIs1QgakXzAyPucRyARoUji0vkgxsglZb1KIl+DxJ Pb5W+SIa+r5+x+EKYKnCn/tLQONzZ6UcSadxcCHA+mKz/H/0gEJUpDxu9mv0UacYyorv W5tvcZTYLzSpvigxJjlG0BJg38PQ9UNs4im5aoYSb2F1J/Waj9IcTeEv6mPTCQk1aMox bICET8A0LZvXZEdMkdSAw61ps+6KogL3N/60eYvLKimbLV82BiEOU/z0BvNk8R6ercB6 CNhe8P11krxV1KKJuu2559ulQavJLYjhy+bzYsT83jGMRPfc5/iKS7yXC1U20asa5vJW 9j0Q== X-Gm-Message-State: AGi0Pua1PeVak+bD3xL1rlb4pngPgRJDVm0WkPVUvEomy79CPaCZ83W/ suJJmYLanXhr5Hv3+pHcuaFxUAVOsg== X-Received: by 2002:a63:2e44:: with SMTP id u65mr3435016pgu.142.1586055694463; Sat, 04 Apr 2020 20:01:34 -0700 (PDT) Date: Sat, 4 Apr 2020 20:01:18 -0700 In-Reply-To: <20200405030118.191950-1-kunyi@google.com> Message-Id: <20200405030118.191950-4-kunyi@google.com> Mime-Version: 1.0 References: <20200405030118.191950-1-kunyi@google.com> X-Mailer: git-send-email 2.26.0.292.g33ef6b2f38-goog Subject: [PATCH linux hwmon-next v3 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 Cc: Kun Yi , openbmc@lists.ozlabs.org, joel@jms.id.au, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org 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.txt | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/amd,sbtsi.txt diff --git a/Documentation/devicetree/bindings/hwmon/amd,sbtsi.txt b/Documentation/devicetree/bindings/hwmon/amd,sbtsi.txt new file mode 100644 index 000000000000..be7293c43c0e --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/amd,sbtsi.txt @@ -0,0 +1,26 @@ +* Sideband interface Temperature Sensor Interface (SB-TSI) compliant +AMD SoC temperature device. + +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. + +Required properties: +- compatible: manufacturer and chip name, should be + "amd,sbtsi", + +- reg: 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 + +Example: + +sbtsi@4c { + compatible = "amd,sbtsi"; + reg = <0x4c>; +}; -- 2.26.0.292.g33ef6b2f38-goog