Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: perf: Convert i.MX DDR to json-schema

Convert the i.MX DDR perf binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1596609387-23542-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
fd0ae78d f83febb4

+41 -22
-22
Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt
··· 1 - * Freescale(NXP) IMX8 DDR performance monitor 2 - 3 - Required properties: 4 - 5 - - compatible: should be one of: 6 - "fsl,imx8-ddr-pmu" 7 - "fsl,imx8m-ddr-pmu" 8 - "fsl,imx8mp-ddr-pmu" 9 - 10 - - reg: physical address and size 11 - 12 - - interrupts: single interrupt 13 - generated by the control block 14 - 15 - Example: 16 - 17 - ddr-pmu@5c020000 { 18 - compatible = "fsl,imx8-ddr-pmu"; 19 - reg = <0x5c020000 0x10000>; 20 - interrupt-parent = <&gic>; 21 - interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; 22 - };
+41
Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/perf/fsl-imx-ddr.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale(NXP) IMX8 DDR performance monitor 8 + 9 + maintainers: 10 + - Frank Li <frank.li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - fsl,imx8-ddr-pmu 16 + - fsl,imx8m-ddr-pmu 17 + - fsl,imx8mp-ddr-pmu 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + required: 26 + - compatible 27 + - reg 28 + - interrupts 29 + 30 + additionalProperties: false 31 + 32 + examples: 33 + - | 34 + #include <dt-bindings/interrupt-controller/arm-gic.h> 35 + 36 + ddr-pmu@5c020000 { 37 + compatible = "fsl,imx8-ddr-pmu"; 38 + reg = <0x5c020000 0x10000>; 39 + interrupt-parent = <&gic>; 40 + interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; 41 + };