Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1134138rwb; Sun, 6 Nov 2022 20:06:28 -0800 (PST) X-Google-Smtp-Source: AMsMyM7Ou3E2tk/pO8ye4CtrbsG51QfVaLW8q9NkR+h4xKcUx9tOKlgSjIjrUqw0W0QcnFmonvjm X-Received: by 2002:a17:906:4fcf:b0:7ad:8f6f:8079 with SMTP id i15-20020a1709064fcf00b007ad8f6f8079mr46845837ejw.646.1667793987991; Sun, 06 Nov 2022 20:06:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667793987; cv=none; d=google.com; s=arc-20160816; b=aeigI367NWjcQ5RI1XNX45miL1l3MILzMPwVyGh4tZx+JskIQlCSb/I7/KWq925N4b ZndvKXJeIkbb3ZpwPBIz9yNbpzfnh5mk7P6PrtFKfZ1fVCggffD7QB6yXoknT7BAs99T u6YjII4z6f3mUT+LY3mJKmuUM/R0cKwHg6jMPxXmry4vsz9Sr0mbBLFEazuULm+Ensrq Vtr7LupNXvTi9K7Pt/boryiow6LNG6LbCtob1SkzkL7ycVVPfoW9f+HQ8QZwNHaw8UFr asXu4VxXshDEeSbM3TyZ4KbuX46NwEiPQfG8t7BKDj4uLj2/up2Cv7y4GQN9kmD2adLy O0MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jFMW3O4nMzzbsjps13fey55rZ3wr/PRwCQWHd1qcbcA=; b=PI577Nh/3qYrYOq38V9ITPlI3xKmXjdBjFkk5MRcjudk5UZxN7JUZQZ4sAlwF6eEB5 5SA6mB6FdpNJ0CY7KR49RJ0v0LR5q8rM83kJtxf42MUUfl/xo1VHOXoevL9JElmn8g1E oPbjQUL4IV/3+gMJ6WaDgCA8Hul9N9nJtSrjhR3/VYOX8gd9fgzrNBpoWqs1yu5g7rgi Y3tWml774AarjYp1MOw5A+Mthaour2/pNkGMsF49IL0j+OASTLfQbRcoYpKA0eYLTDMI J6PfwDILgDr2MISHDnz2rGYXuVAmfvrVwbZTph2Ftke1rzU9ruG2TTEvINf95lJskgwC ZMjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cBnySRhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb8-20020a1709076d8800b0078a4aad3141si8455317ejc.211.2022.11.06.20.06.05; Sun, 06 Nov 2022 20:06:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cBnySRhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231272AbiKGD5G (ORCPT + 95 others); Sun, 6 Nov 2022 22:57:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230304AbiKGD5E (ORCPT ); Sun, 6 Nov 2022 22:57:04 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61289B7F5; Sun, 6 Nov 2022 19:57:03 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id l6so9428369pjj.0; Sun, 06 Nov 2022 19:57:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jFMW3O4nMzzbsjps13fey55rZ3wr/PRwCQWHd1qcbcA=; b=cBnySRhwG9RoqlHnyyNDFqhPlpjxDLCS4e5dnFc2lZK2UFHxFIIFJwEkPyJ3PHw3c/ Q0fP3TgkwQoRItRNssOvfgKeobkt2uXGkcn7kZxO3BbWQ0jBRvGCKb3hCfUJafKjqq8k uR6Cd4x1u48Ox6DzxUTa19AeGAq6ZdpD+lBSwFXqmULfd/mXqsil114RRgw6TxpdTiLz /tm9VL/RTqfc5Q53iwcCAK8WtnF653mfAd6XQv9kGUlvTiYZTKGW11cG5qDm8l8AeNYt OobCKgopZrtYt6ugCFghPhU4FVwgvqbH5G50GBZuL6yk9XGYmNxH9lcDHRC4DXMu2TPI 1XZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jFMW3O4nMzzbsjps13fey55rZ3wr/PRwCQWHd1qcbcA=; b=UNgni8SrPuwTh+sAQERrK00jugrI/t7H0J+THUw4n4bEWgtlYjpGP93TuC6tbpkY0I B1CbTYliBSWshhzUqfr4g61ZgG63+1oip8cfWjypWzJJ0SUnp5JiBNeVw4ggMGKebgJG KrgShBMn7kEjmC39zJ5/Zjn5MJBxgodUDMNxnTPwLzFGyUfFDieTvUCkCPqG+2zXlPU7 Q82+RWaJzLKWIDH/kMOlsvkwkO7E+/lL8j7NXvwjV0R88d95HrqJXf795YJ3C1gIXNJ4 h5rzWup7aKU9YpggV04IefKF8huECDtscB+ePxglTL5A+JqrYjCVyTluT+za2Oz3yzOW kJuA== X-Gm-Message-State: ACrzQf10uspqETAk3axpsNxh0Pu/Ew/iECtV2100JvaNLkhiOKOJT1vK 31kVPU7Nu3PnA4aPQCSkquA= X-Received: by 2002:a17:902:ccc2:b0:178:29e1:899e with SMTP id z2-20020a170902ccc200b0017829e1899emr48045976ple.114.1667793422831; Sun, 06 Nov 2022 19:57:02 -0800 (PST) Received: from debian.me (subs02-180-214-232-14.three.co.id. [180.214.232.14]) by smtp.gmail.com with ESMTPSA id 68-20020a621647000000b0056bd1bf4243sm3282388pfw.53.2022.11.06.19.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Nov 2022 19:57:02 -0800 (PST) Received: by debian.me (Postfix, from userid 1000) id B260E103B90; Mon, 7 Nov 2022 10:56:58 +0700 (WIB) Date: Mon, 7 Nov 2022 10:56:58 +0700 From: Bagas Sanjaya To: nick.hawkins@hpe.com Cc: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, verdun@hpe.com, corbet@lwn.net, linux@armlinux.org.uk, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1 1/6] hwmon: (gxp-fan-ctrl) Add GXP fan controller Message-ID: References: <20221104193657.105130-1-nick.hawkins@hpe.com> <20221104193657.105130-2-nick.hawkins@hpe.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Xo6UyqZ2b1CGVEcP" Content-Disposition: inline In-Reply-To: <20221104193657.105130-2-nick.hawkins@hpe.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Xo6UyqZ2b1CGVEcP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 04, 2022 at 02:36:52PM -0500, nick.hawkins@hpe.com wrote: > diff --git a/Documentation/hwmon/gxp-fan-ctrl.rst b/Documentation/hwmon/g= xp-fan-ctrl.rst > new file mode 100644 > index 000000000000..fc1709fb113b > --- /dev/null > +++ b/Documentation/hwmon/gxp-fan-ctrl.rst > @@ -0,0 +1,36 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +Kernel driver gxp-fan-ctrl > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > + > +Supported chips: > + > + * HPE GXP SOC > + > +Author: Nick Hawkins > + > + > +Description > +----------- > + > +gxp-fan-ctrl is a driver which provides fan control for the hpe gxp soc. > +The driver allows the gathering of fan status and the use of fan > +pwm control. > + > + > +Usage Notes > +----------- > + > +Traditionally fanY_input returns an RPM value, on HPE GXP systems it is > +the pwm value [0-255] due to the fan speeds being reported as > +percentages. > + > + > +Sysfs attributes > +---------------- > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +pwm[0-15] Fan 0 to 15 respective pwm value > +fan[0-15]_input Fan 0 to 15 respective input value: pwm value > +fan[0-15]_fault Fan 0 to 15 respective fault status: 1 fail, 0 ok > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D You need to add the documentation to toctree of hwmon documentation: ---- >8 ---- diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index ddff3c5713d74e..29ecef3ba4870b 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -73,6 +73,7 @@ Hardware Monitoring Kernel Drivers g762 gsc-hwmon gl518sm + gxp-fan-ctrl hih6130 ibmaem ibm-cffps Thanks. --=20 An old man doll... just what I always wanted! - Clara --Xo6UyqZ2b1CGVEcP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCY2iCBQAKCRD2uYlJVVFO o9iXAQC5dCdUaEBhlftegSoX9NMmwqr5otKpX0J4Hyg6r6BWxQEAwN3T6R2st6FD eQsWtMfkIixxZzJaGvqzv40MwM9tfAg= =Jvc3 -----END PGP SIGNATURE----- --Xo6UyqZ2b1CGVEcP--