Re: [PATCH v1 4/6] dt-bindings: memory: tegra20: mc: Convert to schema
From: Dmitry Osipenko
Date: Tue Mar 30 2021 - 11:26:52 EST
30.03.2021 11:37, Krzysztof Kozlowski пишет:
>> +properties:
>> + compatible:
>> + const: nvidia,tegra20-mc-gart
>> +
>> + reg:
>> + minItems: 1
>> + maxItems: 2
> I think you always need two regs, don't you? If so, then better to use
> "description" like in
> Documentation/devicetree/bindings/example-schema.yaml to describe which
> set is for which range/purpose.
I did this because the original example from the txt binding was failing
with:
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-mc.example.dt.yaml:
memory-controller@7000f000: reg: [[1879109632, 1024, 1476395008,
33554432]] is too short
But then I just corrected the example and forgot to change the reg
entry. I'll fix it in v2, thanks.