From: Guenter Roeck <linux@roeck-us.net>
To: Chanh Nguyen <chanh@amperemail.onmicrosoft.com>,
Conor Dooley <conor@kernel.org>,
Chanh Nguyen <chanh@os.amperecomputing.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Peter Yin <peteryin.openbmc@gmail.com>,
Noah Wang <noahwang.wang@outlook.com>,
Marek Vasut <marex@denx.de>, Fabio Estevam <festevam@gmail.com>,
Lukas Wunner <lukas@wunner.de>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
OpenBMC Maillist <openbmc@lists.ozlabs.org>,
Phong Vo <phong@os.amperecomputing.com>,
Thang Nguyen <thang@os.amperecomputing.com>,
Quan Nguyen <quan@os.amperecomputing.com>,
Khanh Pham <khpham@amperecomputing.com>,
Open Source Submission <patches@amperecomputing.com>
Subject: Re: [PATCH v2] dt-bindings: trivial-devices: add onnn,adt7462
Date: Mon, 23 Sep 2024 22:39:20 -0700 [thread overview]
Message-ID: <56b7aec6-bf8c-4547-bec2-e0df25489f77@roeck-us.net> (raw)
In-Reply-To: <c536f43a-56f8-4cbf-99a0-fe3b54a42886@amperemail.onmicrosoft.com>
On 9/23/24 21:17, Chanh Nguyen wrote:
> On 24/09/2024 04:23, Conor Dooley wrote:
>> On Mon, Sep 23, 2024 at 09:38:00AM +0000, Chanh Nguyen wrote:
>>> The adt7462 supports monitoring and controlling up to
>>> four PWM Fan drive outputs and eight TACH inputs measures.
>>> The adt7462 supports reading a single on chip temperature
>>> sensor and three remote temperature sensors. There are up
>>> to 13 voltage monitoring inputs.
>>>
>>> Add device tree bindings for the adt7462 device.
>>>
>>> Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
>>> ---
>>> Change in v2:
>>> - Add onnn,adt7462 to the list of trivial devices [Guenter]
>>
>> Is this really a trivial device? If it monitors and controls fans, how
>> come those do not need to be represented in the devicetree? How is it
>> possible to tell the difference between monitoring 1 and 4 fans without
>> the extra detail?
>>
>
> Hi Conor, Thank you for your comments!
>
> The chip is old. The driver was added back in 2008.
>
> Really, this is such an old chip that it would make more sense to just leave its driver alone unless there is a problem with it; this is viewpoint from Guenter.
>
> I'm using the driver and the device tree with only the "compatible" and "reg" properties; now it's being good for me without any extra detail.
>
> Guenter, Rob, Krzysztof, and I discussed making the decision to add this device to the list of trivial devices. You can get more information at thread https://lore.kernel.org/lkml/20240918220553.GA2216504-robh@kernel.org/T/ (Because the commit title changed between v1 and v2, it's so hard for everyone to find it. Sorry! I missed mentioning the link to pacth v1).
>
> Guenter, who supported the driver development before, he suggested me add this device to the list of trivial devices.
>
Historically it was ok to add an entry into trivial devices and extending
it later if/when needed. That was still widely done at least until very
recently. Maybe that changed recently. If so, sorry for bringing up the idea.
I did not envision that this might be a problem.
Can you live with no devicetree entry at all for the chip ? That is of
course less than perfect, but it seems better than trying to design a
devicetree description for the chip only to never implement it.
Thanks,
Guenter
next prev parent reply other threads:[~2024-09-24 5:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 9:38 Chanh Nguyen
2024-09-23 21:23 ` Conor Dooley
2024-09-24 4:17 ` Chanh Nguyen
2024-09-24 5:39 ` Guenter Roeck [this message]
2024-09-24 8:20 ` Conor Dooley
2024-09-24 22:26 ` Rob Herring
2024-09-26 6:50 ` Krzysztof Kozlowski
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=56b7aec6-bf8c-4547-bec2-e0df25489f77@roeck-us.net \
--to=linux@roeck-us.net \
--cc=chanh@amperemail.onmicrosoft.com \
--cc=chanh@os.amperecomputing.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=khpham@amperecomputing.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=marex@denx.de \
--cc=noahwang.wang@outlook.com \
--cc=openbmc@lists.ozlabs.org \
--cc=patches@amperecomputing.com \
--cc=peteryin.openbmc@gmail.com \
--cc=phong@os.amperecomputing.com \
--cc=quan@os.amperecomputing.com \
--cc=robh@kernel.org \
--cc=thang@os.amperecomputing.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
all inboxes | Powered by JetHome®