mirror of
https://github.com/torvalds/linux.git
synced 2026-04-23 09:05:50 -04:00
A recent review highlighted that the json-schema meta-schema allows any combination of if/then/else schema keywords even though if, then or else by themselves makes little sense. With an added meta-schema to only allow valid combinations, there's a handful of schemas found which need fixing in a variety of ways. Incorrect indentation is the most common issue. Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Michael Hennerich <Michael.Hennerich@analog.com> Cc: Jonathan Cameron <jic23@kernel.org> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org> Cc: Olivier Moysan <olivier.moysan@foss.st.com> Cc: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: Georgi Djakov <djakov@kernel.org> Cc: Ulf Hansson <ulf.hansson@linaro.org> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Vinod Koul <vkoul@kernel.org> Cc: Mark Brown <broonie@kernel.org> Cc: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: Dmitry Osipenko <digetx@gmail.com> Cc: linux-iio@vger.kernel.org Cc: alsa-devel@alsa-project.org Cc: linux-mmc@vger.kernel.org Cc: linux-tegra@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-phy@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220330145741.3044896-1-robh@kernel.org
244 lines
5.8 KiB
YAML
244 lines
5.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/interconnect/qcom,rpm.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Qualcomm RPM Network-On-Chip Interconnect
|
|
|
|
maintainers:
|
|
- Georgi Djakov <georgi.djakov@linaro.org>
|
|
|
|
description: |
|
|
RPM interconnect providers support system bandwidth requirements through
|
|
RPM processor. The provider is able to communicate with the RPM through
|
|
the RPM shared memory device.
|
|
|
|
properties:
|
|
reg:
|
|
maxItems: 1
|
|
|
|
compatible:
|
|
enum:
|
|
- qcom,msm8916-bimc
|
|
- qcom,msm8916-pcnoc
|
|
- qcom,msm8916-snoc
|
|
- qcom,msm8939-bimc
|
|
- qcom,msm8939-pcnoc
|
|
- qcom,msm8939-snoc
|
|
- qcom,msm8996-a0noc
|
|
- qcom,msm8996-a1noc
|
|
- qcom,msm8996-a2noc
|
|
- qcom,msm8996-bimc
|
|
- qcom,msm8996-cnoc
|
|
- qcom,msm8996-mnoc
|
|
- qcom,msm8996-pnoc
|
|
- qcom,msm8996-snoc
|
|
- qcom,qcs404-bimc
|
|
- qcom,qcs404-pcnoc
|
|
- qcom,qcs404-snoc
|
|
- qcom,sdm660-a2noc
|
|
- qcom,sdm660-bimc
|
|
- qcom,sdm660-cnoc
|
|
- qcom,sdm660-gnoc
|
|
- qcom,sdm660-mnoc
|
|
- qcom,sdm660-snoc
|
|
|
|
'#interconnect-cells':
|
|
const: 1
|
|
|
|
clocks:
|
|
minItems: 2
|
|
maxItems: 7
|
|
|
|
clock-names:
|
|
minItems: 2
|
|
maxItems: 7
|
|
|
|
power-domains:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- '#interconnect-cells'
|
|
- clock-names
|
|
- clocks
|
|
|
|
additionalProperties: false
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- qcom,msm8916-bimc
|
|
- qcom,msm8916-pcnoc
|
|
- qcom,msm8916-snoc
|
|
- qcom,msm8939-bimc
|
|
- qcom,msm8939-pcnoc
|
|
- qcom,msm8939-snoc
|
|
- qcom,msm8996-a1noc
|
|
- qcom,msm8996-a2noc
|
|
- qcom,msm8996-bimc
|
|
- qcom,msm8996-cnoc
|
|
- qcom,msm8996-pnoc
|
|
- qcom,msm8996-snoc
|
|
- qcom,qcs404-bimc
|
|
- qcom,qcs404-pcnoc
|
|
- qcom,qcs404-snoc
|
|
- qcom,sdm660-bimc
|
|
- qcom,sdm660-cnoc
|
|
- qcom,sdm660-gnoc
|
|
- qcom,sdm660-snoc
|
|
|
|
then:
|
|
properties:
|
|
clock-names:
|
|
items:
|
|
- const: bus
|
|
- const: bus_a
|
|
|
|
clocks:
|
|
items:
|
|
- description: Bus Clock
|
|
- description: Bus A Clock
|
|
|
|
# Child node's properties
|
|
patternProperties:
|
|
'^interconnect-[a-z0-9]+$':
|
|
type: object
|
|
description:
|
|
snoc-mm is a child of snoc, sharing snoc's register address space.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- qcom,msm8939-snoc-mm
|
|
|
|
'#interconnect-cells':
|
|
const: 1
|
|
|
|
clock-names:
|
|
items:
|
|
- const: bus
|
|
- const: bus_a
|
|
|
|
clocks:
|
|
items:
|
|
- description: Bus Clock
|
|
- description: Bus A Clock
|
|
|
|
required:
|
|
- compatible
|
|
- '#interconnect-cells'
|
|
- clock-names
|
|
- clocks
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- qcom,msm8996-mnoc
|
|
- qcom,sdm660-mnoc
|
|
|
|
then:
|
|
properties:
|
|
clock-names:
|
|
items:
|
|
- const: bus
|
|
- const: bus_a
|
|
- const: iface
|
|
|
|
clocks:
|
|
items:
|
|
- description: Bus Clock.
|
|
- description: Bus A Clock.
|
|
- description: CPU-NoC High-performance Bus Clock.
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- qcom,msm8996-a0noc
|
|
|
|
then:
|
|
properties:
|
|
clock-names:
|
|
items:
|
|
- const: aggre0_snoc_axi
|
|
- const: aggre0_cnoc_ahb
|
|
- const: aggre0_noc_mpu_cfg
|
|
|
|
clocks:
|
|
items:
|
|
- description: Aggregate0 System NoC AXI Clock.
|
|
- description: Aggregate0 Config NoC AHB Clock.
|
|
- description: Aggregate0 NoC MPU Clock.
|
|
|
|
required:
|
|
- power-domains
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- qcom,sdm660-a2noc
|
|
|
|
then:
|
|
properties:
|
|
clock-names:
|
|
items:
|
|
- const: bus
|
|
- const: bus_a
|
|
- const: ipa
|
|
- const: ufs_axi
|
|
- const: aggre2_ufs_axi
|
|
- const: aggre2_usb3_axi
|
|
- const: cfg_noc_usb2_axi
|
|
|
|
clocks:
|
|
items:
|
|
- description: Bus Clock.
|
|
- description: Bus A Clock.
|
|
- description: IPA Clock.
|
|
- description: UFS AXI Clock.
|
|
- description: Aggregate2 UFS AXI Clock.
|
|
- description: Aggregate2 USB3 AXI Clock.
|
|
- description: Config NoC USB2 AXI Clock.
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/qcom,rpmcc.h>
|
|
|
|
bimc: interconnect@400000 {
|
|
compatible = "qcom,msm8916-bimc";
|
|
reg = <0x00400000 0x62000>;
|
|
#interconnect-cells = <1>;
|
|
clock-names = "bus", "bus_a";
|
|
clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
|
|
<&rpmcc RPM_SMD_BIMC_A_CLK>;
|
|
};
|
|
|
|
pcnoc: interconnect@500000 {
|
|
compatible = "qcom,msm8916-pcnoc";
|
|
reg = <0x00500000 0x11000>;
|
|
#interconnect-cells = <1>;
|
|
clock-names = "bus", "bus_a";
|
|
clocks = <&rpmcc RPM_SMD_PCNOC_CLK>,
|
|
<&rpmcc RPM_SMD_PCNOC_A_CLK>;
|
|
};
|
|
|
|
snoc: interconnect@580000 {
|
|
compatible = "qcom,msm8916-snoc";
|
|
reg = <0x00580000 0x14000>;
|
|
#interconnect-cells = <1>;
|
|
clock-names = "bus", "bus_a";
|
|
clocks = <&rpmcc RPM_SMD_SNOC_CLK>,
|
|
<&rpmcc RPM_SMD_SNOC_A_CLK>;
|
|
};
|