Skip to content

Commit 1da90b8

Browse files
jason-jh.linmbgg
authored andcommitted
dt-bindings: arm: mediatek: mmsys: add power and gce properties
Power: 1. Add description for power-domains property. GCE: 1. Add description for mboxes property. 2. Add description for mediatek,gce-client-reg property. Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: CK Hu <ck.hu@mediatek.com> Link: https://lore.kernel.org/r/20220419033237.23405-2-rex-bc.chen@mediatek.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent 9d7370a commit 1da90b8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,30 @@ properties:
4141
reg:
4242
maxItems: 1
4343

44+
power-domains:
45+
description:
46+
A phandle and PM domain specifier as defined by bindings
47+
of the power controller specified by phandle. See
48+
Documentation/devicetree/bindings/power/power-domain.yaml for details.
49+
50+
mboxes:
51+
description:
52+
Using mailbox to communicate with GCE, it should have this
53+
property and list of phandle, mailbox specifiers. See
54+
Documentation/devicetree/bindings/mailbox/mtk-gce.txt for details.
55+
$ref: /schemas/types.yaml#/definitions/phandle-array
56+
57+
mediatek,gce-client-reg:
58+
description:
59+
The register of client driver can be configured by gce with 4 arguments
60+
defined in this property, such as phandle of gce, subsys id,
61+
register offset and size.
62+
Each subsys id is mapping to a base address of display function blocks
63+
register which is defined in the gce header
64+
include/dt-bindings/gce/<chip>-gce.h.
65+
$ref: /schemas/types.yaml#/definitions/phandle-array
66+
maxItems: 1
67+
4468
"#clock-cells":
4569
const: 1
4670

@@ -56,9 +80,16 @@ additionalProperties: false
5680

5781
examples:
5882
- |
83+
#include <dt-bindings/power/mt8173-power.h>
84+
#include <dt-bindings/gce/mt8173-gce.h>
85+
5986
mmsys: syscon@14000000 {
6087
compatible = "mediatek,mt8173-mmsys", "syscon";
6188
reg = <0x14000000 0x1000>;
89+
power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
6290
#clock-cells = <1>;
6391
#reset-cells = <1>;
92+
mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>,
93+
<&gce 1 CMDQ_THR_PRIO_HIGHEST>;
94+
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>;
6495
};

0 commit comments

Comments
 (0)