Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3378229rwb; Tue, 8 Nov 2022 04:01:39 -0800 (PST) X-Google-Smtp-Source: AMsMyM7SvBXNDTva0JUYp280KW7R1SebD+fDsCOtgWAvfi/nDPDKspwe+Mumau+yydS4T8jAPnm5 X-Received: by 2002:a05:600c:a4c:b0:3b4:fc1b:81 with SMTP id c12-20020a05600c0a4c00b003b4fc1b0081mr36020815wmq.125.1667908899297; Tue, 08 Nov 2022 04:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667908899; cv=none; d=google.com; s=arc-20160816; b=EZyFjzLIhKh0PVpMrfuF/h336PvIc5RypzbkZzqIt+DaINHqBeRxQ6myGd7Xe1ti1g BrzE9tXYcxPMhiM0vgUJWkmt/ZokQzDP8cmdxV98sNFsbHFrMH9M1IU+FFttTN4kkjGn 54R8OeebCz+LCwymTzmyfVUfcWkj1yfLVWmBuWYxCwFqPAVh0NFTxOb+2COILjIGN8AB H60ptz2ao+PHMl+bHf8a+diWCpXGA0oUu1K2nKAnpCPY9OnkkZboQ8R+gEgIubkOJ1jj cMgMmX9CabC/huGa2w9tdH9eZXM7E87XDnlOoh2PiBXTJNBBkTPL7VVo4beVjgRrRU8Q ud7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=6S31b1GgAuSZeRVi3aE6k9Lv1kYy2JgOJdueU/WrfPk=; b=p9TxGC8KbcJZwonTo76rntEj5byENsTXMSZGlX2tMP34a/rC5oksW7BbqMIO6ks2Be y6NAoD8Gr2k1j0A9XIr9waPLglsA0irsOb78figFwQi9VpM37EMic6OZc0ZKF/OgjoNq WjkYVrlylrsWP6ER8DzU2FIHJfJ5LE7G7L+oZ6UHLpz5oeoUyXUq49p3+aIQAYwh9gI3 WxDkT92/AIC14w/Ym1X83/RA9Ai9L4pxkZTKtMBs6rgl7pm749vA+9D1LGStPOB1ae0d y/GKKIbBbjxemkJoifmUh9MK9ceVthjNFkVGb1IVzI2Rgh3oajvLiSYc3Tpp5GwtNyWm NEkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FQVTX03+; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xc13-20020a170907074d00b007aa1aa8ca57si13743154ejb.859.2022.11.08.04.01.15; Tue, 08 Nov 2022 04:01:39 -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=@linaro.org header.s=google header.b=FQVTX03+; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233788AbiKHLWv (ORCPT + 90 others); Tue, 8 Nov 2022 06:22:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233098AbiKHLWR (ORCPT ); Tue, 8 Nov 2022 06:22:17 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A79D44C26E for ; Tue, 8 Nov 2022 03:22:11 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id c1so19130661lfi.7 for ; Tue, 08 Nov 2022 03:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6S31b1GgAuSZeRVi3aE6k9Lv1kYy2JgOJdueU/WrfPk=; b=FQVTX03+/jYDhFiJtnC4PlzY3j6O7eqRrURGbxCj9uxURjFPxqXVMZP/7fLhWbImBm JdC6fC+nWdrCet4LQal83kXfuzLLawXKFxu/oLYv8Kh2r6x559FfrsvfHjCmy2lBT2pa QV3OVJL19Mn4gyrzkg6t6afH5exahrLMKp49Zciw9Ta4DwOEluePqPBp/VNPXU+77weK lmit955EmN4VKHGupVAVSjMQxm/PKGzojOJMymAfU8+zG2QjMYaXztogXBUZ6oJAEr9X BXxZOLcPkDq8/wEIfmqbcQ9xMX56E55y+wwH5Tx8zJ331BBicVaEbuCsdYGaIZWrHAOU 7t/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6S31b1GgAuSZeRVi3aE6k9Lv1kYy2JgOJdueU/WrfPk=; b=xYWZfdAoTV7tLtNDj2Yt720uubQzy5+c7/VxXGVUs9mVXKsIpH137nyg9stf+7WqrP 09z7gDT+wt1McvWAiRT+txKtH6W8uyCQGjqLn2/gXOxUBKlif96tYhTOO5UtNofhAWpJ DbfRKrfNA3XTQvenfVYA3mDU7GVcLGkC79QdhA3s/OEwtrKLvCZjZMQSgXwngwshmd4p 4Lh+PSC56XyvX9Y54gbv2gHtka+WE4CdtRWBvYDZtkuIGxtedqqHlxI11X6T8n89m2pG KLVHA8FtQuMTU4lYaA/y30dqX5ZpL3RCyI4561RXofBWVRTGOD82w1ECQGXgVxBTAFzA qJ8g== X-Gm-Message-State: ANoB5pl20GJRXLicWooknz16KY5Wi8+Iuyc5XR3bTS6yxjgNG8xcvNKv loN7w92ETD7yitokd6CMJwpbFA== X-Received: by 2002:ac2:43b0:0:b0:4b2:805:f5cb with SMTP id t16-20020ac243b0000000b004b20805f5cbmr5885841lfl.204.1667906530035; Tue, 08 Nov 2022 03:22:10 -0800 (PST) Received: from [192.168.0.20] (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id q7-20020ac25107000000b004b40c2fccfdsm221399lfb.59.2022.11.08.03.22.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 03:22:09 -0800 (PST) Message-ID: <95f588d2-04f3-0be6-ebce-cb6957f5aa1a@linaro.org> Date: Tue, 8 Nov 2022 12:22:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v1 3/6] dt-bindings: hwmon: Add hpe,gxp-fan-ctrl Content-Language: en-US To: "Hawkins, Nick" , "jdelvare@suse.com" , "linux@roeck-us.net" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "Verdun, Jean-Marie" , "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" References: <20221104193657.105130-1-nick.hawkins@hpe.com> <20221104193657.105130-4-nick.hawkins@hpe.com> <1b90f86c-9c0f-225b-38b5-6f37a4eded69@linaro.org> <236F9C0A-797D-41C6-B342-4C32DF28C426@hpe.com> From: Krzysztof Kozlowski In-Reply-To: <236F9C0A-797D-41C6-B342-4C32DF28C426@hpe.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 07/11/2022 23:36, Hawkins, Nick wrote: > > > > This provides the base registers address, programmable logic registers > > > address, and the function 2 registers to allow control access of the HPE > > > fans on the GXP SoC. > > > What is "This"? If "This patch", then drop it. > > https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > > If "This hardware" then please instead describe the hardware, not it > components. What are its features? If it controls the fan, then why > there are no PWM-related cells? How do you set the speed? > > Greetings Krzysztof, > > Thank you for the feedback. The intention was this binding.. however, that was an error on my part, and I will correct it to reflect the hardware situation of the GXP with the fan controller and how each of the mapped registers provide control to the system. To answer your questions: The fans speeds are controlled through an external CPLD device which we provide a PWM value (0-255) using the "base" register to the CIF interface. Wrap your emails, it's impossible to simply reply to it. Then your CIF interface is a PWM device? > This interface provides access to the CPLD. The CPLD then drives the fan. The CPLD can generate up to 8 unique different PWMs to multiple fans. So you have other CPLD (not external) which generates PWM based on first CPLD base register? Hm, I think it's one CPLD. > The CPLD monitors the fans and reports the status back to the SoC through the CIF interface to the "plreg base". The plreg includes the installation, failed, and identification statuses. The function 2 register base is used to check the power state of the system as that influences the PWM values read back. > As the PWM generation happens outside the SoC do we still need pwm-cells? If so, should we have a custom compatible for that? > Depends, if these are actually tightly coupled and you cannot use PWM for anything else, then you do not need. > Thanks, > > -Nick > > Best regards, Krzysztof