Skip to contentSkip to conversation

dt-bindings: media: Add sram-size Property for Wave5

PATCH Superseded Brandon Brnich 2 participants 2 messages Jan 31, 2024 – Feb 1, 2024

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: media: Add sram-size Property for Wave5

Wave521c has capability to use SRAM carveout to store reference data with purpose of reducing memory bandwidth. To properly use this pool, the driver expects to have an sram and sram-size node. Without sram-size node, driver will default value to zero, making sram node irrelevant.

---
 Documentation/devicetree/bindings/media/cnm,wave521c.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/media/cnm,wave521c.yaml +6 -0
index 6a11c1d11fb5..b1916e68443b 100644
@@ -43,6 +43,11 @@ properties:
       storing it on DMA memory. It is mainly used for the purpose of reducing
       bandwidth.
 
+  sram-size:
+    description:
+      SRAM size reserved for VPU operations. If not specified, size will default
+      to zero.
+
 required:
   - compatible
   - reg
@@ -58,4 +63,5 @@ examples:
         clocks = <&clks 42>;
         interrupts = <42>;
         sram = <&sram>;
+        sram-size = <0x1234>;
     };
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 10 lines · Brandon Brnich

Wave521c has capability to use SRAM carveout to store reference data with purpose of reducing memory bandwidth. To properly use this pool, the driver expects to have an sram and sram-size node. Without sram-size node, driver will default value to zero, making sram node irrelevant.

---
 Documentation/devicetree/bindings/media/cnm,wave521c.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/cnm,wave521c.yaml: sram-size: missing type definition

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.