[v2,2/7] dt-bindings: media: sun4i-a10-video-engine: Fix SRAM count for H6
Commit Message
On the H6, the SRAM C region includes an alias of part of the VE SRAM
used by the video engine. This region should also be claimed so that no
access happens through the alias window.
Add a second SRAM region phandle to the video engine for the H6.
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../allwinner,sun4i-a10-video-engine.yaml | 21 ++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
@@ -48,11 +48,15 @@ properties:
allwinner,sram:
$ref: /schemas/types.yaml#/definitions/phandle-array
+ minItems: 1
items:
- items:
- description: phandle to SRAM
- description: register value for device
- description: Phandle to the device SRAM
+ - items:
+ - description: phandle to SRAM alias
+ - description: register value for device
+ description: Phandle to the device SRAM(s)
iommus:
minItems: 1
@@ -101,6 +105,21 @@ allOf:
iommus:
maxItems: 1
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - allwinner,sun50i-h6-video-engine
+ then:
+ properties:
+ allwinner,sram:
+ minItems: 2
+ else:
+ properties:
+ allwinner,sram:
+ maxItems: 1
+
additionalProperties: false
examples: