Skip to content

Commit cd42580

Browse files
AngeloGioacchino Del Regnorobherring
authored andcommitted
dt-bindings: mailbox: Convert mtk-gce to DT schema
Convert the mtk-gce mailbox binding to DT schema format. During the conversion, the examples for client device/mutex nodes were removed, as these are found in their respective bindings: arm/mediatek/mediatek,mmsys.yaml for "mediatek,mt8173-mmsys" soc/mediatek/mediatek,mutex.yaml for "mediatek,mt8173-disp-mutex" Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220921090006.37642-1-angelogioacchino.delregno@collabora.com Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 8826915 commit cd42580

File tree

3 files changed

+87
-83
lines changed

3 files changed

+87
-83
lines changed

Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ properties:
5252
description:
5353
Using mailbox to communicate with GCE, it should have this
5454
property and list of phandle, mailbox specifiers. See
55-
Documentation/devicetree/bindings/mailbox/mtk-gce.txt for details.
55+
Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml
56+
for details.
5657
$ref: /schemas/types.yaml#/definitions/phandle-array
5758

5859
mediatek,gce-client-reg:
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Mediatek Global Command Engine Mailbox
8+
9+
maintainers:
10+
- Houlong Wei <houlong.wei@mediatek.com>
11+
12+
description:
13+
The Global Command Engine (GCE) is used to help read/write registers with
14+
critical time limitation, such as updating display configuration during the
15+
vblank. The GCE can be used to implement the Command Queue (CMDQ) driver.
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- mediatek,mt6779-gce
21+
- mediatek,mt8173-gce
22+
- mediatek,mt8183-gce
23+
- mediatek,mt8186-gce
24+
- mediatek,mt8192-gce
25+
- mediatek,mt8195-gce
26+
27+
"#mbox-cells":
28+
const: 2
29+
description:
30+
The first cell describes the Thread ID of the GCE,
31+
the second cell describes the priority of the GCE thread
32+
33+
reg:
34+
maxItems: 1
35+
36+
interrupts:
37+
maxItems: 1
38+
39+
clocks:
40+
items:
41+
- description: Global Command Engine clock
42+
43+
clock-names:
44+
items:
45+
- const: gce
46+
47+
required:
48+
- compatible
49+
- "#mbox-cells"
50+
- reg
51+
- interrupts
52+
- clocks
53+
54+
allOf:
55+
- if:
56+
not:
57+
properties:
58+
compatible:
59+
contains:
60+
const: mediatek,mt8195-gce
61+
then:
62+
required:
63+
- clock-names
64+
65+
additionalProperties: false
66+
67+
examples:
68+
- |
69+
#include <dt-bindings/clock/mt8173-clk.h>
70+
#include <dt-bindings/interrupt-controller/arm-gic.h>
71+
#include <dt-bindings/interrupt-controller/irq.h>
72+
73+
soc {
74+
#address-cells = <2>;
75+
#size-cells = <2>;
76+
77+
gce: mailbox@10212000 {
78+
compatible = "mediatek,mt8173-gce";
79+
reg = <0 0x10212000 0 0x1000>;
80+
interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>;
81+
#mbox-cells = <2>;
82+
clocks = <&infracfg CLK_INFRA_GCE>;
83+
clock-names = "gce";
84+
};
85+
};

Documentation/devicetree/bindings/mailbox/mtk-gce.txt

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

0 commit comments

Comments
 (0)