Re: [PATCH 1/2] dt-bindings: thermal: amlogic: Add A9 thermal bindings
Xianwei Zhao <[email protected]> Thu, 30 Jul 2026 16:44:15 +0800
| Newsgroups | dev.linux.lists.sashiko-reviews,org.infradead.lists.linux-amlogic,org.kernel.vger.linux-devicetree |
|---|---|
| Message-ID | <[email protected]> |
On 2026/7/30 16:39, [email protected] wrote: > Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: > - [Low] Typo in the YAML schema `else` block: `clocks-names: false` instead of `clock-names: false` fails to forbid the property for non-A9 devices. > -- > > --- Patch [1]: [PATCH 1/2] dt-bindings: thermal: amlogic: Add A9 thermal bindings --- > commit 3a3c5b1f7b65f4d86068deda76be1b7141170b8c > Author: Xianwei Zhao<[email protected]> > > dt-bindings: thermal: amlogic: Add A9 thermal bindings > > This commit documents the thermal controller compatibles for the Amlogic > A9 SoC. It describes the core and pclk clocks, adds a hardware reset > temperature property, and updates schema constraints. > >> diff --git a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml >> index 8cfa44dcda58c..5f5dc6f12851d 100644 >> --- a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml >> +++ b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml > [ ... ] > >> @@ -73,6 +84,22 @@ allOf: >> required: >> - amlogic,secure-monitor >> >> + - if: >> + properties: >> + compatible: >> + contains: >> + enum: >> + - amlogic,a9-thermal >> + then: >> + required: >> + - clock-names >> + else: >> + properties: >> + clocks: >> + maxItems: 1 >> + clocks-names: false > [Severity: Low] > Does this code intend to restrict the clock-names property here? It appears > there is a typo in the property name (clocks-names instead of clock-names). > Could this typo allow non-A9 variants to define the clock-names property > without failing schema validation? > Will fix it. >> + amlogic,hw-reset-temp: false >> + >> unevaluatedProperties: false >> >> examples: > -- > Sashiko AI review ·https://sashiko.dev/#/patchset/[email protected]?part=1