From: "NG, TZE YEE" <tze.yee.ng@altera.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"linux-hwmon@vger.kernel.org" <linux-hwmon@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Dinh Nguyen <dinguyen@kernel.org>,
"Rao, Mahesh" <mahesh.rao@altera.com>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH 2/5] dt-bindings: firmware: svc: add hwmon property
Date: Mon, 29 Jun 2026 06:36:35 +0000 [thread overview]
Message-ID: <44846bfd-3a04-4069-95cf-6ce047f668ed@altera.com> (raw)
In-Reply-To: <20260622-straight-honest-cuttlefish-1a88fb@quoll>
On 22/6/2026 10:05 pm, Krzysztof Kozlowski wrote:
> On Fri, Jun 19, 2026 at 02:38:53AM -0700, tze.yee.ng@altera.com wrote:
>> From: Tze Yee Ng <tze.yee.ng@altera.com>
>>
>> Altera Stratix 10 SoCFPGA supports hardware monitor access through the
>> service layer mailbox. Add an optional hwmon child node to the service
>> layer binding so device trees can describe the hardware monitor.
>>
>> Signed-off-by: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>
>> Signed-off-by: Tze Yee Ng <tze.yee.ng@altera.com>
>> ---
>> .../devicetree/bindings/firmware/intel,stratix10-svc.yaml | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.yaml b/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.yaml
>> index b42cfa78b28b..86ffdb10132f 100644
>> --- a/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.yaml
>> +++ b/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.yaml
>> @@ -62,6 +62,10 @@ properties:
>> $ref: /schemas/fpga/intel,stratix10-soc-fpga-mgr.yaml
>> description: Optional child node for fpga manager to perform fabric configuration.
>>
>> + hwmon:
>> + $ref: /schemas/hwmon/altr,stratix10-hwmon.yaml
>
> So hwmon is completely fake wrapper over two other wrappers... If in
> doubts, please read slides from DTS101 presentations from OSS, including
> the chapter about Linux driver design.
>
> Best regards,
> Krzysztof
>
Hi Krzystof,
Thanks for review.
You pointed out that the hwmon DT binding was not appropriate because
this is not a discrete hardware block with its own MMIO/IRQ resources. I
agree with that assessment.
In v2, we will remove the hwmon device tree binding entirely:
- There is no compatible string for the hwmon driver.
- There is no hwmon child node under the service layer in DTS.
- stratix10-svc registers a socfpga-hwmon platform device when
CONFIG_SENSORS_ALTERA_SOCFPGA_HWMON is enabled, similar to how it
already registers stratix10-rsu.
- The hwmon driver binds by platform device name only.
- Sensor channels are selected from hardcoded tables based on the parent
service layer of_node compatible (intel,stratix10-svc or intel,agilex-svc).
Thanks,
Tze Yee
next prev parent reply other threads:[~2026-06-29 6:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-19 9:38 [PATCH 0/5] hwmon: add Altera Stratix 10 SoC FPGA hardware monitor support tze.yee.ng
2026-06-19 9:38 ` [PATCH 1/5] dt-bindings: hwmon: add Altera Stratix 10 hardware monitor binding tze.yee.ng
2026-06-19 9:46 ` sashiko-bot
2026-06-22 14:04 ` Krzysztof Kozlowski
2026-06-22 14:04 ` Krzysztof Kozlowski
2026-06-19 9:38 ` [PATCH 2/5] dt-bindings: firmware: svc: add hwmon property tze.yee.ng
2026-06-19 9:44 ` sashiko-bot
2026-06-22 14:05 ` Krzysztof Kozlowski
2026-06-29 6:36 ` NG, TZE YEE [this message]
2026-06-19 9:38 ` [PATCH 3/5] firmware: stratix10-svc: add async HWMON read commands tze.yee.ng
2026-06-19 9:51 ` sashiko-bot
2026-06-19 9:38 ` [PATCH 4/5] hwmon: add Stratix 10 SoC FPGA hardware monitor driver tze.yee.ng
2026-06-19 11:55 ` sashiko-bot
2026-06-22 14:08 ` Krzysztof Kozlowski
2026-06-19 9:38 ` [PATCH 5/5] arm64: dts: socfpga: stratix10: add hwmon node tze.yee.ng
2026-06-19 9:49 ` sashiko-bot
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=44846bfd-3a04-4069-95cf-6ce047f668ed@altera.com \
--to=tze.yee.ng@altera.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mahesh.rao@altera.com \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.org \
/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