Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2035986ybb; Sat, 4 Apr 2020 20:02:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLoST7mhNIUf+7W9gGju5DQHRPNtNcw6+DVRdN/1HtqzhcZ1kWUWauL7qPx7Wnn6HgBC/eu X-Received: by 2002:aca:c7c5:: with SMTP id x188mr8574971oif.130.1586055753564; Sat, 04 Apr 2020 20:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586055753; cv=none; d=google.com; s=arc-20160816; b=ETk1JN27G4k+gbOiuwet/72MiDPOwSYT75t57hwNg/JgmLYE8hN0g4gkTWdR7voasN bkBGnc1VCprWO44pNMNpZqyQQEv21AWCAcwyYyHZ73WEox44vVX/NHXYs/y7u8RIboKP p0JSVgHKRFG+RQchq/5xCZheZLVG7d8RVpXqMhw7dsxGMf2f4nC40t2h+uqXwhCsol2+ yRm4myQUc0vheL/OfQ6AI2lrWpWxcGDEuXhPpH/+BdqZ6mFD6b6mn5XM8YiYogPREQkc EDmd87wWDRqgsFpt3WAYSsCfxGqk7eoAK8CELS9Q0j39OwH9MCY4gVLL/Iu9rJlk+fRf lmAw== 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=fKzqXXNg9xzVu4YyDWxMV1+X7kCrAroDFOfHUGlJ58E=; b=v3UckLNMHsAxvnIPULrvhYewwfY2Soni5O85gF6Dc6i0E3YUqErVX3s4NF7RwoPM7/ Yzy10ZjChJv3uXWSA+8aHrjQHXGvX/mBRUbBaivHeYpS93zzXtXrD2aHrH8CMe/SWSrw 2arEk/40LbWc4Ozfb1C7kzKg7glagt/MQGeSC8E+Rx3CbzxAE+aDxuAHExTuR5CgZpa4 OTs8Pt6WGUcDwvtk5lRhdCsywLqJCvO54MaFoy0uf2HGxVxiAxvbcdzAGu7jbjxOcpcF HTxiSRrzDonpFEHYJWo4V5WRto+f5MmrDzoUNEc4pHbmMWoi1DPV9ilvRLGU3Bzz9vA9 OuBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Sqzp3tVr; 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 m2si5839074oof.17.2020.04.04.20.02.21; Sat, 04 Apr 2020 20:02:33 -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=Sqzp3tVr; 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 S1726466AbgDEDBd (ORCPT + 99 others); Sat, 4 Apr 2020 23:01:33 -0400 Received: from mail-pj1-f74.google.com ([209.85.216.74]:34160 "EHLO mail-pj1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbgDEDBc (ORCPT ); Sat, 4 Apr 2020 23:01:32 -0400 Received: by mail-pj1-f74.google.com with SMTP id d2so3985183pje.1 for ; Sat, 04 Apr 2020 20:01:31 -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=fKzqXXNg9xzVu4YyDWxMV1+X7kCrAroDFOfHUGlJ58E=; b=Sqzp3tVry5VikJhBtbH8S7i4F6HSXFPxPg6DEQnSre+2NtOuwKjqzVf2IafEjNUj5a C+NeeLsqpbOdoq6OArVTZ59Shl26lYDf8U99URzAqd1/lAnJTqHhkFzvl9zaUrBc0+Um aZkwhBOzc8dttV849FyKs7dkxhWKMgu6NGpcJjCUnXTu2gMvQTTOIbG/pVeXwhBjYUES H2izvR9dW09AslLmDdTthnbsq5Uzjsdej71g4Fsiclb1VKaGef2DU8o78DbMxdNZlqVC 1aqWRKz5VKg/P2J7t2XPKkPYFJHZk2JlCRe6HSw2x3nALCJcPpoBWcPY/TJYw6hOiaOX 027Q== 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=fKzqXXNg9xzVu4YyDWxMV1+X7kCrAroDFOfHUGlJ58E=; b=e6OrANjAHheRtBQVw0N96n+Vm+iA1VkqObyjP/Cq+qyRMi+mTV8CeKncmyCHv/46tO mgXCnIM9tEY6ItRlDStf5MQhVOXZ4rNWYc5nf6D2UINZLzpP4DCLE/8YHv5zZRWkrlUW NTqYlxQZ2I3vDvE89CoBuOp7m/QmISiIMffymdoY4Y7g4Shg3wCd+EIJchNCADdeNA0X iL+7+ZdoggfrCQ82yc5EC99BvXJQ0njeSitp3oyVoDyJK5B0MvYj6x6mvyn3goOHiVs5 IanIrSdpfD1ZcipEGuBHx24EMuw5WfLFV3wbSl3UxouAmVNRTH8SDnGrQBTe3KgInbaw JVBA== X-Gm-Message-State: AGi0Pub9Q7DvOFCshmOxNoI7/Teq3GtfL/CmHGMJPm2rL6RRyDEYSW8U WvSgfvmraHWjZ2MxYbVcixB/zyJ30Q== X-Received: by 2002:a63:9a11:: with SMTP id o17mr3738011pge.234.1586055691194; Sat, 04 Apr 2020 20:01:31 -0700 (PDT) Date: Sat, 4 Apr 2020 20:01:17 -0700 In-Reply-To: <20200405030118.191950-1-kunyi@google.com> Message-Id: <20200405030118.191950-3-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 2/3] hwmon: (sbtsi) Add documentation 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 the SB-TSI sensor interface driver. Signed-off-by: Kun Yi --- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/sbtsi_temp.rst | 40 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 Documentation/hwmon/sbtsi_temp.rst diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index 8ef62fd39787..c17cf38f22c2 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -140,6 +140,7 @@ Hardware Monitoring Kernel Drivers pxe1610 pwm-fan raspberrypi-hwmon + sbtsi_temp sch5627 sch5636 scpi-hwmon diff --git a/Documentation/hwmon/sbtsi_temp.rst b/Documentation/hwmon/sbtsi_temp.rst new file mode 100644 index 000000000000..9f0f197c8aa2 --- /dev/null +++ b/Documentation/hwmon/sbtsi_temp.rst @@ -0,0 +1,40 @@ +Kernel driver sbtsi_temp +================== + +Supported hardware: + + * Sideband interface (SBI) Temperature Sensor Interface (SB-TSI) + compliant AMD SoC temperature device. + + Prefix: 'sbtsi_temp' + + Addresses scanned: This driver doesn't support address scanning. + + To instantiate this driver on an AMD CPU with SB-TSI + support, the i2c bus number would be the bus connected from the board + management controller (BMC) to the CPU. The i2c address is 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. + + Datasheet: The SB-TSI interface and protocol is available as part of + the open source SoC register reference at: + + https://www.amd.com/system/files/TechDocs/56255_OSRR.pdf + + The Advanced Platform Management Link (APML) Specification is + available at: + + http://developer.amd.com/wordpress/media/2012/10/41918.pdf + +Author: Kun Yi + +Description +----------- + +The SBI temperature sensor interface (SB-TSI) is an emulation of the software +and physical interface of a typical 8-pin remote temperature sensor (RTS) on +AMD SoCs. It implements one temperature sensor with readings and limit +registers encode the temperature in increments of 0.125 from 0 to 255.875. +Limits can be set through the writable thresholds, and if reached will trigger +corresponding alert signals. -- 2.26.0.292.g33ef6b2f38-goog