Skip to content

Commit cdd2218

Browse files
tinghan-shenmathieupoirier
authored andcommitted
dt-bindings: remoteproc: mediatek: Improve the rpmsg subnode definition
Improve the definition of the rpmsg subnode by assigning a distinct node name and adding the definition source of node properties. Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com> Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230901080935.14571-2-tinghan.shen@mediatek.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent 99f9987 commit cdd2218

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ properties:
5858
memory-region:
5959
maxItems: 1
6060

61+
cros-ec-rpmsg:
62+
$ref: /schemas/mfd/google,cros-ec.yaml
63+
description:
64+
This subnode represents the rpmsg device. The properties
65+
of this node are defined by the individual bindings for
66+
the rpmsg devices.
67+
68+
required:
69+
- mediatek,rpmsg-name
70+
71+
unevaluatedProperties: false
72+
6173
required:
6274
- compatible
6375
- reg
@@ -89,21 +101,7 @@ allOf:
89101
reg-names:
90102
maxItems: 2
91103

92-
additionalProperties:
93-
type: object
94-
description:
95-
Subnodes of the SCP represent rpmsg devices. The names of the devices
96-
are not important. The properties of these nodes are defined by the
97-
individual bindings for the rpmsg devices.
98-
properties:
99-
mediatek,rpmsg-name:
100-
$ref: /schemas/types.yaml#/definitions/string-array
101-
description:
102-
Contains the name for the rpmsg device. Used to match
103-
the subnode to rpmsg device announced by SCP.
104-
105-
required:
106-
- mediatek,rpmsg-name
104+
additionalProperties: false
107105

108106
examples:
109107
- |
@@ -118,7 +116,8 @@ examples:
118116
clocks = <&infracfg CLK_INFRA_SCPSYS>;
119117
clock-names = "main";
120118
121-
cros_ec {
119+
cros-ec-rpmsg {
120+
compatible = "google,cros-ec-rpmsg";
122121
mediatek,rpmsg-name = "cros-ec-rpmsg";
123122
};
124123
};

0 commit comments

Comments
 (0)