Skip to content

Commit fa34005

Browse files
Rafał Miłeckivinodkoul
authored andcommitted
dt-bindings: dma: convert MediaTek High-Speed controller to the json-schema
This helps validating DTS files. Introduced changes: 1. Adjusted "reg" in example 2. Added includes to example Signed-off-by: Rafał Miłecki <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent cf497f3 commit fa34005

File tree

2 files changed

+63
-33
lines changed

2 files changed

+63
-33
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/mediatek,mt7622-hsdma.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek High-Speed DMA Controller
8+
9+
maintainers:
10+
- Sean Wang <[email protected]>
11+
12+
allOf:
13+
- $ref: dma-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- mediatek,mt7622-hsdma
19+
- mediatek,mt7623-hsdma
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
clocks:
28+
maxItems: 1
29+
30+
clock-names:
31+
const: hsdma
32+
33+
power-domains:
34+
maxItems: 1
35+
36+
"#dma-cells":
37+
description: Channel number
38+
const: 1
39+
40+
required:
41+
- reg
42+
- interrupts
43+
- clocks
44+
- clock-names
45+
- power-domains
46+
47+
unevaluatedProperties: false
48+
49+
examples:
50+
- |
51+
#include <dt-bindings/clock/mt2701-clk.h>
52+
#include <dt-bindings/interrupt-controller/arm-gic.h>
53+
#include <dt-bindings/power/mt2701-power.h>
54+
55+
dma-controller@1b007000 {
56+
compatible = "mediatek,mt7623-hsdma";
57+
reg = <0x1b007000 0x1000>;
58+
interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>;
59+
clocks = <&ethsys CLK_ETHSYS_HSDMA>;
60+
clock-names = "hsdma";
61+
power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
62+
#dma-cells = <1>;
63+
};

Documentation/devicetree/bindings/dma/mtk-hsdma.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)