Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / power / amlogic,meson-ee-pwrc.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019 BayLibre, SAS
3 %YAML 1.2
4 ---
5 $id: "http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8 title: Amlogic Meson Everything-Else Power Domains
9
10 maintainers:
11   - Neil Armstrong <narmstrong@baylibre.com>
12
13 description: |+
14   The Everything-Else Power Domains node should be the child of a syscon
15   node with the required property:
16
17   - compatible: Should be the following:
18                 "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon"
19
20   Refer to the the bindings described in
21   Documentation/devicetree/bindings/mfd/syscon.txt
22
23 properties:
24   compatible:
25     enum:
26       - amlogic,meson-g12a-pwrc
27       - amlogic,meson-sm1-pwrc
28
29   clocks:
30     minItems: 2
31
32   clock-names:
33     items:
34       - const: vpu
35       - const: vapb
36
37   resets:
38     minItems: 11
39
40   reset-names:
41     items:
42       - const: viu
43       - const: venc
44       - const: vcbus
45       - const: bt656
46       - const: rdma
47       - const: venci
48       - const: vencp
49       - const: vdac
50       - const: vdi6
51       - const: vencl
52       - const: vid_lock
53
54   "#power-domain-cells":
55     const: 1
56
57   amlogic,ao-sysctrl:
58     description: phandle to the AO sysctrl node
59     allOf:
60       - $ref: /schemas/types.yaml#/definitions/phandle
61
62 required:
63   - compatible
64   - clocks
65   - clock-names
66   - resets
67   - reset-names
68   - "#power-domain-cells"
69   - amlogic,ao-sysctrl
70
71 examples:
72   - |
73     pwrc: power-controller {
74           compatible = "amlogic,meson-sm1-pwrc";
75           #power-domain-cells = <1>;
76           amlogic,ao-sysctrl = <&rti>;
77           resets = <&reset_viu>,
78                    <&reset_venc>,
79                    <&reset_vcbus>,
80                    <&reset_bt656>,
81                    <&reset_rdma>,
82                    <&reset_venci>,
83                    <&reset_vencp>,
84                    <&reset_vdac>,
85                    <&reset_vdi6>,
86                    <&reset_vencl>,
87                    <&reset_vid_lock>;
88           reset-names = "viu", "venc", "vcbus", "bt656",
89                         "rdma", "venci", "vencp", "vdac",
90                         "vdi6", "vencl", "vid_lock";
91           clocks = <&clk_vpu>, <&clk_vapb>;
92           clock-names = "vpu", "vapb";
93     };