On Chip Memory (OCMEM) that is present on some Qualcomm Snapdragon SoCs.
Schema identifier ($id): "http://devicetree.org/schemas/sram/qcom,ocmem.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Brian Masney <masneyb@onstation.org>"
The On Chip Memory (OCMEM) is typically used by the GPU, camera/video, and audio components on some Snapdragon SoCs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,msm8226-ocmem", "qcom,msm8974-ocmem"
reg — required here #
Array item rules (items) #
Item 1
Control registers
Item 2
OCMEM address range
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ctrl"
Item 2
Exact value (
const):"mem"
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Core clock
Item 2
Interface clock
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"iface"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
ranges — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "#address-cells", "#size-cells", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1
clock-names— not listed as required hereMinimum number of items (
minItems):1
Properties matching a name pattern (patternProperties) #
-sram@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
A region of reserved memory.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Examples (examples) #
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/clock/qcom,mmcc-msm8974.h>
sram@fdd00000 {
compatible = "qcom,msm8974-ocmem";
reg = <0xfdd00000 0x2000>,
<0xfec00000 0x180000>;
reg-names = "ctrl",
"mem";
clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>,
<&mmcc OCMEMCX_OCMEMNOC_CLK>;
clock-names = "core",
"iface";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0xfec00000 0x100000>;
gmu-sram@0 {
reg = <0x0 0x100000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 19: v1.1.0
Line 20: v1.4.0