From: Mikko Perttunen <cyndis@kapsi.fi>
To: Rob Herring <robh@kernel.org>
Cc: Rajkumar Rampelli <rrajk@nvidia.com>,
Mark Rutland <mark.rutland@arm.com>,
Thierry Reding <thierry.reding@gmail.com>,
Jon Hunter <jonathanh@nvidia.com>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Jonathan Corbet <corbet@lwn.net>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
Kate Stewart <kstewart@linuxfoundation.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Philippe Ombredanne <pombredanne@nexb.com>,
Manikanta Maddireddy <mmaddireddy@nvidia.com>,
Mikko Perttunen <mperttunen@nvidia.com>,
Arnd Bergmann <arnd@arndb.de>, Timur Tabi <timur@codeaurora.org>,
Andy Gross <andy.gross@linaro.org>, Wei Xu <xuwei5@hisilicon.com>,
Alex Elder <elder@linaro.org>, "heiko@sntech.de" <heiko@sn>
Subject: Re: [PATCH V2 3/9] dt-bindings: Tegra186 tachometer device tree bindings
Date: Mon, 9 Apr 2018 17:37:09 +0300 [thread overview]
Message-ID: <615d6771-00c3-a4a7-a99f-ec4f6e667c8f@kapsi.fi> (raw)
In-Reply-To: <CAL_Jsq+AsUiWWBQ7K4OUM58KqQbvBHuFYmXxXLwr7viwoKW-Yw@mail.gmail.com>
On 04/09/2018 04:21 PM, Rob Herring wrote:
> On Mon, Apr 9, 2018 at 12:38 AM, Mikko Perttunen <cyndis@kapsi.fi> wrote:
>> Rob,
>
> Please don't top post to lists.
>
>> this binding is for a specific IP block (for measuring/aggregating input
>> pulses) on the Tegra186 SoC, so I don't think it fits into any generic
>> binding.
>
> What is it hooked up to to measure? You only mention "fan" five times
> in the doc.
In practice, fans.
>
> You have #pwm-cells too, so this block has PWM output as well? If not,
> then where's the PWM for the fan control because there is no point in
> having fan tach without some control mechanism.
It doesn't provide a PWM output. The (Linux) PWM framework provides
functionality in both directions - control and capture. But if the
device tree #pwm-cells/pwms properties are only for control, we may need
to introduce a new #capture-pwm-cells/capture-pwms or similar.
The idea is that the generic fan node can then specify two pwms, one for
control and one for capture, to enable e.g. closed-loop control (I'm not
personally familiar with the usecase for this but I could imagine
something like that). The control PWM can be something completely
different, maybe not a PWM in the first place (e.g. some fixed voltage).
>
> There's only so many ways to control fans and types of fans, so yes,
> the interface of control and feedback lines between a fan and its
> controller should absolutely be generic.
I'm not quite getting what you mean by this. Clearly we need a custom
compatibility string for the tachometer as it's a different hardware
block with different programming than others. Or are you complaining
about the nvidia,pulse-per-rev/capture-window-len properties?
Thanks,
Mikko
>
> Rob
>
>>
>> Thanks,
>> Mikko
>>
>>
>> On 03/27/2018 05:52 PM, Rob Herring wrote:
>>>
>>> On Wed, Mar 21, 2018 at 10:10:38AM +0530, Rajkumar Rampelli wrote:
>>>>
>>>> Supply Device tree binding documentation for the NVIDIA
>>>> Tegra186 SoC's Tachometer Controller
>>>>
>>>> Signed-off-by: Rajkumar Rampelli <rrajk@nvidia.com>
>>>> ---
>>>>
>>>> V2: Renamed compatible string to "nvidia,tegra186-pwm-tachometer"
>>>> Renamed dt property values of clock-names and reset-names to
>>>> "tachometer"
>>>> from "tach"
>>>
>>>
>>> Read my prior comments on v1.
>>>
>>> Rob
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe devicetree" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2018-04-09 14:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-21 4:40 [PATCH V2 0/9] Implementation of Tegra Tachometer driver Rajkumar Rampelli
2018-03-21 4:40 ` [PATCH V2 1/9] pwm: core: Add support for PWM HW driver with pwm capture only Rajkumar Rampelli
2018-04-30 9:51 ` Thierry Reding
2018-03-21 4:40 ` [PATCH V2 2/9] arm64: tegra: Add PWM controller on Tegra186 soc Rajkumar Rampelli
2018-03-21 4:40 ` [PATCH V2 3/9] dt-bindings: Tegra186 tachometer device tree bindings Rajkumar Rampelli
2018-03-27 14:52 ` Rob Herring
2018-03-27 15:00 ` Rob Herring
2018-04-09 5:38 ` Mikko Perttunen
2018-04-09 13:21 ` Rob Herring
2018-04-09 14:37 ` Mikko Perttunen [this message]
2018-04-10 13:30 ` Rob Herring
2018-04-10 13:43 ` Guenter Roeck
2018-03-21 4:40 ` [PATCH V2 4/9] arm64: tegra: Add Tachometer Controller on Tegra186 Rajkumar Rampelli
2018-03-21 4:40 ` [PATCH V2 5/9] pwm: tegra: Add PWM based Tachometer driver Rajkumar Rampelli
2018-03-21 4:40 ` [PATCH V2 6/9] arm64: tegra: Add pwm based fan support on Tegra186 Rajkumar Rampelli
2018-03-21 4:40 ` [PATCH V2 7/9] hwmon: pwm-fan: add sysfs node to read rpm of fan Rajkumar Rampelli
2018-03-21 6:09 ` Guenter Roeck
2018-03-21 4:40 ` [PATCH V2 8/9] arm64: defconfig: enable Nvidia Tegra Tachometer as a module Rajkumar Rampelli
2018-03-21 4:40 ` [PATCH V2 9/9] arm64: defconfig: enable pwm-fan as a loadable module Rajkumar Rampelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=615d6771-00c3-a4a7-a99f-ec4f6e667c8f@kapsi.fi \
--to=cyndis@kapsi.fi \
--cc=andy.gross@linaro.org \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=elder@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sn \
--cc=jdelvare@suse.com \
--cc=jonathanh@nvidia.com \
--cc=kstewart@linuxfoundation.org \
--cc=linux@roeck-us.net \
--cc=mark.rutland@arm.com \
--cc=mmaddireddy@nvidia.com \
--cc=mperttunen@nvidia.com \
--cc=pombredanne@nexb.com \
--cc=robh@kernel.org \
--cc=rrajk@nvidia.com \
--cc=thierry.reding@gmail.com \
--cc=timur@codeaurora.org \
--cc=will.deacon@arm.com \
--cc=xuwei5@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).