Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2497772ybx; Sat, 2 Nov 2019 21:48:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6mcawROTCuDbsX7tdfaQnYXRCEXdVVfoCjQFdRMtei3quS1402358a7mGOXa+xmcth74U X-Received: by 2002:a17:906:70e:: with SMTP id y14mr1157426ejb.70.1572756498615; Sat, 02 Nov 2019 21:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572756498; cv=none; d=google.com; s=arc-20160816; b=x5VSTq8oV+iUo02UeyH7MsWRNVcOj/yzc/HqaylAQAJhpUXyVJBZkYRI+bfJ5MC8Kp Rds9ZG4GdaOBXnQo0XeLFKzw/+jrvYUHDYicSfjorNdm1EgYi/ODZUgeXrg+u3mqxyYb 7VyZKSqWVu5Ti6QYVviLqpzdRoAWZ5k2YKasC86so7CnpIvvtj9hpEK8/CZ3n6jryx/3 2h/w3ZHcZwT8LghEHgFTSE0RxhnT6TZv99R2gTRf9Wjl7rVE1zHzAd+Bxvou81/vAP9W ZVVL9dR6z131CGKdZPl6SkOeBcaAB4AIn3+lNRZreVdJvg2dKd5WwnM3l4S+us2t2O/V KFTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GL01rhxmBnK4Gz7D2X/Hg/HT/Hp846VpWEX1h6YqSe0=; b=02u+kL9lLF5R2Nppi/x4CTYmGN+sbF7JZWUP8+2ijdCfKeSgQ3MZ17yFt8OT1BTLSG 7sL53cAR/p9pv6QQCX/PFzOos7FMNbDgQZ4e7K0icQtpGH4gohfo6y0vW07zqm+2eXoc vyyd/T1g6m21z4d7CSy1j28Y9gkubjth9EG1i04ejrmvf+vS17qGF4d8Moj1Clm3cFNO h0dDAm8J8FG7qohj4PhzceMSX41tDihzj6nRTXJVIJPEo/wkBXnsObIKDBWcZCfz5nQ+ 0SNEThNaoRqn49qhI6aTmr5H01JsONZaDROTQS1kuXGBhWUPI9DbzAkxzEf0MuKbiD5l /WhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=olC2ceUK; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck15si7772639ejb.358.2019.11.02.21.47.53; Sat, 02 Nov 2019 21:48:18 -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=@gmail.com header.s=20161025 header.b=olC2ceUK; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbfKCEpF (ORCPT + 99 others); Sun, 3 Nov 2019 00:45:05 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41733 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbfKCEpE (ORCPT ); Sun, 3 Nov 2019 00:45:04 -0400 Received: by mail-pf1-f194.google.com with SMTP id p26so9869880pfq.8; Sat, 02 Nov 2019 21:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GL01rhxmBnK4Gz7D2X/Hg/HT/Hp846VpWEX1h6YqSe0=; b=olC2ceUKmmTNr69dJvXYONyXDaPJk2XHpK10lPOt7WyieEVP+1Q7tQ+3Uak1x2Ymte vUnHNvhX2dREl9b2tqyeXj3xAtbiwG9w3je6l6XZ586dsnFrHpLcbu/fRCJV6kw+7o3r H0GhlBmJs7k/3efKcfyMsCmJ6m4yYnHcszhAh6MOmGqDNcyomvD88mdO6TVXpDHV0v0s n3HhY+VvT5Xlc7kQFBUItyKASFx3AN5om9J71HtV3dXqynXRiG7uTl3ORpFGyWVhbd5S uu0ENOQdfA4hLi9XEdlNdIA6vDbUmyyhdAnnuatr/riLKc9HZdGSb8Bq838B3zbThY+d aA6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GL01rhxmBnK4Gz7D2X/Hg/HT/Hp846VpWEX1h6YqSe0=; b=EHq//A3dAQ7auum8ZzGW720omYRnZGTnjhy3dCqIsC5c41UFLTNWEY39t2B/x3N6y3 xt9i84qgko7YfkFyvDoydL07r4jaGxW3hm/A0OBV7X52cxW1f4H/hBmYHwo8PM+Unjj0 NtD+GSHT4H9kLvS28DIs6NP/dqa3VN3NjADOtOFx7nWn8Ar4bxAWPIC4On6giAvZ3Pet LLUwyAUbWZ8Bfay/jvsGLJdL1VRe5wdNLZ+2w4VgJHsNsZlJRR77+1Ab8N/hCV7iNF08 rYoMeWOyU/cT49LbZDSBMO9f1aCu8YEkalQuXyKskLtQl6Fzuq3jnLIUvKw8twfw1NeG U17g== X-Gm-Message-State: APjAAAVIsXfUVoWEF9UBPwenVpi0bxp0675r2hwMcl8pSQb7V/rEynG4 XlXo+kEcCeXLJvvGuB7NXg5wwuMDtzA= X-Received: by 2002:a63:e84d:: with SMTP id a13mr21142178pgk.226.1572756303000; Sat, 02 Nov 2019 21:45:03 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91 (c-24-4-25-55.hsd1.ca.comcast.net. [24.4.25.55]) by smtp.gmail.com with ESMTPSA id d9sm11209422pgc.80.2019.11.02.21.45.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Nov 2019 21:45:02 -0700 (PDT) Date: Sat, 2 Nov 2019 21:44:52 -0700 From: Tao Ren To: Guenter Roeck Cc: Jean Delvare , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: Re: [PATCH v2 2/2] docs: hwmon: Document bel-pfe pmbus driver Message-ID: <20191103044432.GA3364@taoren-ubuntu-R90MNF91> References: <20191029182054.32279-1-rentao.bupt@gmail.com> <20191029182054.32279-3-rentao.bupt@gmail.com> <20191102153115.GA5205@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191102153115.GA5205@roeck-us.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 02, 2019 at 08:31:15AM -0700, Guenter Roeck wrote: > On Tue, Oct 29, 2019 at 11:20:54AM -0700, rentao.bupt@gmail.com wrote: > > From: Tao Ren > > > > Add documentation for bel-pfe pmbus driver which supports BEL PFE1100 and > > PFE3000 power supplies. > > > > Signed-off-by: Tao Ren > > Applied after adding bel-pfe to index.rst. > > Thanks, > Guenter Thank you Guenter. I didn't know index.rst needs to be updated; will do it for my future doc patches. Cheers, Tao > > --- > > No change in v2. > > > > Documentation/hwmon/bel-pfe.rst | 112 ++++++++++++++++++++++++++++++++ > > 1 file changed, 112 insertions(+) > > create mode 100644 Documentation/hwmon/bel-pfe.rst > > > > diff --git a/Documentation/hwmon/bel-pfe.rst b/Documentation/hwmon/bel-pfe.rst > > new file mode 100644 > > index 000000000000..4b4a7d67854c > > --- /dev/null > > +++ b/Documentation/hwmon/bel-pfe.rst > > @@ -0,0 +1,112 @@ > > +Kernel driver bel-pfe > > +====================== > > + > > +Supported chips: > > + > > + * BEL PFE1100 > > + > > + Prefixes: 'pfe1100' > > + > > + Addresses scanned: - > > + > > + Datasheet: https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-pfe1100-12-054xa.pdf > > + > > + * BEL PFE3000 > > + > > + Prefixes: 'pfe3000' > > + > > + Addresses scanned: - > > + > > + Datasheet: https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-pfe3000-series.pdf > > + > > +Author: Tao Ren > > + > > + > > +Description > > +----------- > > + > > +This driver supports hardware monitoring for below power supply devices > > +which support PMBus Protocol: > > + > > + * BEL PFE1100 > > + > > + 1100 Watt AC to DC power-factor-corrected (PFC) power supply. > > + PMBus Communication Manual is not publicly available. > > + > > + * BEL PFE3000 > > + > > + 3000 Watt AC/DC power-factor-corrected (PFC) and DC-DC power supply. > > + PMBus Communication Manual is not publicly available. > > + > > +The driver is a client driver to the core PMBus driver. Please see > > +Documentation/hwmon/pmbus.rst for details on PMBus client drivers. > > + > > + > > +Usage Notes > > +----------- > > + > > +This driver does not auto-detect devices. You will have to instantiate the > > +devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for > > +details. > > + > > +Example: the following will load the driver for an PFE3000 at address 0x20 > > +on I2C bus #1:: > > + > > + $ modprobe bel-pfe > > + $ echo pfe3000 0x20 > /sys/bus/i2c/devices/i2c-1/new_device > > + > > + > > +Platform data support > > +--------------------- > > + > > +The driver supports standard PMBus driver platform data. > > + > > + > > +Sysfs entries > > +------------- > > + > > +======================= ======================================================= > > +curr1_label "iin" > > +curr1_input Measured input current > > +curr1_max Input current max value > > +curr1_max_alarm Input current max alarm > > + > > +curr[2-3]_label "iout[1-2]" > > +curr[2-3]_input Measured output current > > +curr[2-3]_max Output current max value > > +curr[2-3]_max_alarm Output current max alarm > > + > > +fan[1-2]_input Fan 1 and 2 speed in RPM > > +fan1_target Set fan speed reference for both fans > > + > > +in1_label "vin" > > +in1_input Measured input voltage > > +in1_crit Input voltage critical max value > > +in1_crit_alarm Input voltage critical max alarm > > +in1_lcrit Input voltage critical min value > > +in1_lcrit_alarm Input voltage critical min alarm > > +in1_max Input voltage max value > > +in1_max_alarm Input voltage max alarm > > + > > +in2_label "vcap" > > +in2_input Hold up capacitor voltage > > + > > +in[3-8]_label "vout[1-3,5-7]" > > +in[3-8]_input Measured output voltage > > +in[3-4]_alarm vout[1-2] output voltage alarm > > + > > +power[1-2]_label "pin[1-2]" > > +power[1-2]_input Measured input power > > +power[1-2]_alarm Input power high alarm > > + > > +power[3-4]_label "pout[1-2]" > > +power[3-4]_input Measured output power > > + > > +temp[1-3]_input Measured temperature > > +temp[1-3]_alarm Temperature alarm > > +======================= ======================================================= > > + > > +.. note:: > > + > > + - curr3, fan2, vout[2-7], vcap, pin2, pout2 and temp3 attributes only > > + exist for PFE3000.