Re: [PATCH v2 1/6] dt-bindings: opp: h6: Add A133 operating points

From: Krzysztof Kozlowski

Date: Wed Nov 25 2026 - 04:43:50 EST


On 2026-11-18 04:52 -0600, Rajan Yadav wrote:
> The vendor BSP for the A100/A133 family (sun50iw10) selects the CPU
> speed grade from four efuse fields and the die revision: the speed bin
> (SID offset 0x1c, which also holds the ICPU current), the chip marking
> ID (0x00), a value programmed at production that the BSP calls PCPU
> (0x20) and a bin extension bit (0x28). It knows 11 grades, a0-a6 and
> b0-b3. The A100 operating points describe only three speed bins, taken
> from 0x1c.
>
> Add allwinner,sun50i-a133-operating-points for this. In its tables the
> N of opp-microvolt-speedN is the vendor grade: 0-5 are a0-a5 (a6 has
> the same OPPs and voltages as a5) and 6-9 are b0-b3. The four cells are
> named, with the speed bin first. The meaning of the PCPU field is not
> documented; the name follows the vendor BSP.
>
> Indices 0-2 are the vendor grades a0-a2, which have the voltages of the
> three A100 speed bins. So allwinner,sun50i-a100-operating-points is a
> valid fallback: software that knows only the A100 compatible reads the
> first cell, selects one of speed0-2 with the A100 rule and gets the
> OPPs and voltages of the A100 table today, with 1008 instead of
> 1080 MHz. That is the A100 selection, not the vendor's; the new
> compatible adds the vendor's. The binding requires indices 0-2 to stay
> usable this way.
>
> The new compatible is SoC specific, like the root compatible
> allwinner,sun50i-a133; the A100 compatible stays as it is for existing
> DTBs. The schema now also limits the other compatibles to the single
> unnamed cell that all in-tree users have.

Why are you pasting here LLM explanations what the patch is doing?
Don't.

>
> Claude Code (Anthropic) drafted this change and its message from the

Message? AI CANNOT write messages. It means you understood here nothing,
so we should not waste time on reviewing it.

> vendor BSP sources (field layout and numbers only, no code copied); I
> reviewed it and checked it with dt_binding_check and dtbs_check.

Drop, not suitable for commit msg

>
> Tested-by: Alexander Sverdlin <alex@xxxxxxxxxxxx>

Drop, did not happen here.

> Signed-off-by: Rajan Yadav <rajanyadav0307@xxxxxxxxx>
> ---
> .../opp/allwinner,sun50i-h6-operating-points.yaml | 94 ++++++++++++++++++++--
> 1 file changed, 86 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml
> index 75ab552f6ec..5fa6a1074da 100644
> --- a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml
> +++ b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml
> @@ -16,24 +16,70 @@ description: |
> Voltage Scaling Tables define the voltage and frequency values based
> on the speedbin blown in the efuse combination.
>
> + With allwinner,sun50i-a133-operating-points, the speed bin index N of
> + opp-microvolt-speedN and opp-supported-hw is the speed grade of the
> + Allwinner BSP: 0-5 are a0-a5 (a6 uses the a5 values) and 6-9 are b0-b3.
> + Indices 0-2 must be usable as the A100 speed bins 0-2, because software
> + using the A100 fallback compatible selects only these.
> +
> allOf:
> - $ref: opp-v2-base.yaml#
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: allwinner,sun50i-a133-operating-points
> + then:
> + properties:
> + nvmem-cells:
> + minItems: 4
> + required:
> + - nvmem-cell-names
> + else:
> + properties:
> + nvmem-cells:
> + maxItems: 1
> + nvmem-cell-names: false

Entire allof goes to the bottom, before additionalprops. Claude should
tell you that. Use proper model for Claude.

I finished here, since you just paste Claude stuff.

Best regards,
Krzysztof

--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>