Re: [PATCH 1/5] dt-bindings: hwmon: add Altera Stratix 10 hardware monitor binding
From: sashiko-bot@kernel.org
Date: 2026-06-19 09:46:09
Also in:
linux-hwmon
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider: - [Medium] The pattern property `^input(@[0-9a-f]+)?$` allows child nodes with a `reg` property to omit the unit-address, violating Devicetree specifications. - [Medium] The `reg` property in the child input nodes is missing `maxItems: 1`, allowing multiple register entries. - [Low] The MAINTAINERS file entries are not sorted alphabetically. - [Low] The Signed-off-by chain does not match the patch authorship. -- commit d11da1e6aa7b26667b6a632670fdfdcc9fd27dee Author: Tze Yee Ng [off-list ref] dt-bindings: hwmon: add Altera Stratix 10 hardware monitor binding This commit documents the device tree binding for the Altera Stratix 10 SoC FPGA hardware monitor. It adds bindings for temperature and voltage sensor nodes.
Author: Tze Yee Ng [off-list ref]
Date: Fri Jun 19 09:38:52 2026 +0000
dt-bindings: hwmon: add Altera Stratix 10 hardware monitor binding
Document the device tree binding for the Altera Stratix 10 SoC FPGA
hardware monitor, including temperature and voltage sensor nodes.
Signed-off-by: Nazim Amirul [off-list ref]
Signed-off-by: Tze Yee Ng [off-list ref][Severity: Low] The commit author is Tze Yee Ng, but the first Signed-off-by tag belongs to Nazim Amirul. According to the patch submission guidelines, the primary author must be the first person to sign off on the patch. Should the authorship be corrected with a From: line in the commit message body, or should the Signed-off-by order be fixed?
quoted hunk ↗ jump to hunk
diff --git a/Documentation/devicetree/bindings/hwmon/altr,stratix10-hwmon.yaml b/Documentation/devicetree/bindings/hwmon/altr,stratix10-hwmon.yaml new file mode 100644 index 0000000000000..5bd98660ee7b0 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/altr,stratix10-hwmon.yaml
[ ... ]
+ temperature: + description: + The temperature node specifies mappings of temperature sensor diodes on + the Stratix 10 SoC FPGA main die and tile die. + type: object + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + patternProperties: + "^input(@[0-9a-f]+)?$":
[Severity: Medium] The Devicetree specification requires that if a node has a reg property, its name must include a unit-address matching the first address in reg. The regex ^input(@[0-9a-f]+)?$ makes the unit-address optional, which allows dt-validate to pass syntactically invalid device trees. Could this be updated to require the unit-address when a reg property is present?
+ description: + The input node specifies each individual temperature sensor. + type: object + properties: + reg: + description:
[Severity: Medium] The reg property in the child input nodes is missing maxItems: 1. Because dt-schema treats reg as an array of arrays, omitting this allows a device tree to specify an arbitrary number of register pairs, which would erroneously pass schema validation. Should maxItems be added here to restrict it to a single entry? [ ... ]
+ voltage: + description: + The voltage node specifies mappings of voltage sensors on the Stratix 10 + SoC FPGA analog to digital converter of the Secure Device Manager (SDM). + type: object + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + patternProperties: + "^input(@[0-9a-f]+)?$":
[Severity: Medium] Similar to the temperature node, this regex makes the unit-address optional. Does this pattern allow child nodes with a reg property to omit the unit-address, violating Devicetree specifications?
+ description: + The input node specifies each individual voltage sensor. + type: object + properties: + reg: + description:
[Severity: Medium] The reg property here is also missing maxItems: 1. Can we add a maximum item constraint to ensure multiple register entries are not allowed for voltage sensors? [ ... ]
quoted hunk ↗ jump to hunk
diff --git a/MAINTAINERS b/MAINTAINERS index bcd09e02337b8..5a07cefe3aeee 100644 --- a/MAINTAINERS +++ b/MAINTAINERS@@ -938,6 +938,13 @@ ALPS PS/2 TOUCHPAD DRIVER R: Pali Rohár <pali@kernel.org> F: drivers/input/mouse/alps.* +ALTERA STRATIX 10 SoC FPGA HWMON DRIVER +M: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com> +M: Tze Yee Ng <tze.yee.ng@altera.com> +L: linux-hwmon@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/hwmon/altr,stratix10-hwmon.yaml + ALTERA MAILBOX DRIVER
[Severity: Low] The MAINTAINERS file entries are typically sorted alphabetically to maintain organization and avoid merge conflicts. Here, ALTERA STRATIX 10 SoC FPGA HWMON DRIVER is placed before ALTERA MAILBOX DRIVER. Should this block be moved further down to maintain alphabetical order? -- Sashiko AI review · https://sashiko.dev/#/patchset/cover.1781861409.git.tze.yee.ng@altera.com?part=1