Debian Codegraph @

Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spmi/mtk,spmi-mtk-pmif.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Mediatek SPMI Controller
8
9 maintainers:
10 - Hsin-Hsiung Wang <[email protected]>
11
12 description: |+
13 On MediaTek SoCs the PMIC is connected via SPMI and the controller allows
14 for multiple SoCs to control a single SPMI master.
15
16 allOf:
17 - $ref: spmi.yaml
18
19 properties:
20 compatible:
21 oneOf:
22 - enum:
23 - mediatek,mt6873-spmi
24 - mediatek,mt8195-spmi
25 - items:
26 - enum:
27 - mediatek,mt8186-spmi
28 - mediatek,mt8188-spmi
29 - mediatek,mt8189-spmi
30 - const: mediatek,mt8195-spmi
31
32 reg:
33 maxItems: 2
34
35 reg-names:
36 items:
37 - const: pmif
38 - const: spmimst
39
40 clocks:
41 minItems: 3
42 maxItems: 3
43
44 clock-names:
45 items:
46 - const: pmif_sys_ck
47 - const: pmif_tmr_ck
48 - const: spmimst_clk_mux
49
50 assigned-clocks:
51 maxItems: 1
52
53 assigned-clock-parents:
54 maxItems: 1
55
56 required:
57 - compatible
58 - reg
59 - reg-names
60 - clocks
61 - clock-names
62
63 unevaluatedProperties: false
64
65 examples:
66 - |
67 #include <dt-bindings/clock/mt8192-clk.h>
68
69 spmi: spmi@10027000 {
70 compatible = "mediatek,mt6873-spmi";
71 reg = <0x10027000 0xe00>,
72 <0x10029000 0x100>;
73 reg-names = "pmif", "spmimst";
74 clocks = <&infracfg CLK_INFRA_PMIC_AP>,
75 <&infracfg CLK_INFRA_PMIC_TMR>,
76 <&topckgen CLK_TOP_SPMI_MST_SEL>;
77 clock-names = "pmif_sys_ck",
78 "pmif_tmr_ck",
79 "spmimst_clk_mux";
80 assigned-clocks = <&topckgen CLK_TOP_PWRAP_ULPOSC_SEL>;
81 assigned-clock-parents = <&topckgen CLK_TOP_OSC_D10>;
82 };
83 ...