mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 22:07:26 +07:00
7f464532b0
Setting 'additionalProperties: false' is frequently omitted, but is important in order to check that there aren't extra undocumented properties in a binding. Ideally, we'd just add this automatically and make this the default, but there's some cases where it doesn't work. For example, if a common schema is referenced, then properties in the common schema aren't part of what's considered for 'additionalProperties'. Also, sometimes there are bus specific properties such as 'spi-max-frequency' that go into bus child nodes, but aren't defined in the child node's schema. So let's stick with the json-schema defined default and add 'additionalProperties: false' where needed. This will be a continual review comment and game of wack-a-mole. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com> Acked-by: Stephen Boyd <sboyd@kernel.org> # clock Acked-by: Lee Jones <lee.jones@linaro.org>
99 lines
1.9 KiB
YAML
99 lines
1.9 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sram/qcom,ocmem.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: On Chip Memory (OCMEM) that is present on some Qualcomm Snapdragon SoCs.
|
|
|
|
maintainers:
|
|
- Brian Masney <masneyb@onstation.org>
|
|
|
|
description: |
|
|
The On Chip Memory (OCMEM) is typically used by the GPU, camera/video, and
|
|
audio components on some Snapdragon SoCs.
|
|
|
|
properties:
|
|
compatible:
|
|
const: qcom,msm8974-ocmem
|
|
|
|
reg:
|
|
items:
|
|
- description: Control registers
|
|
- description: OCMEM address range
|
|
|
|
reg-names:
|
|
items:
|
|
- const: ctrl
|
|
- const: mem
|
|
|
|
clocks:
|
|
items:
|
|
- description: Core clock
|
|
- description: Interface clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: core
|
|
- const: iface
|
|
|
|
'#address-cells':
|
|
const: 1
|
|
|
|
'#size-cells':
|
|
const: 1
|
|
|
|
ranges:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- reg-names
|
|
- clocks
|
|
- clock-names
|
|
- '#address-cells'
|
|
- '#size-cells'
|
|
- ranges
|
|
|
|
additionalProperties: false
|
|
|
|
patternProperties:
|
|
"-sram@[0-9a-f]+$":
|
|
type: object
|
|
description: A region of reserved memory.
|
|
|
|
properties:
|
|
reg:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- reg
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/qcom,rpmcc.h>
|
|
#include <dt-bindings/clock/qcom,mmcc-msm8974.h>
|
|
|
|
ocmem: ocmem@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>;
|
|
};
|
|
};
|