xref: /freebsd/sys/contrib/device-tree/Bindings/power/allwinner,sun20i-d1-ppu.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/power/allwinner,sun20i-d1-ppu.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Allwinner SoCs PPU power domain controller
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Samuel Holland <samuel@sholland.org>
11*cb7aa33aSEmmanuel Vadot
12*cb7aa33aSEmmanuel Vadotdescription:
13*cb7aa33aSEmmanuel Vadot  D1 and related SoCs contain a power domain controller for the CPUs, GPU, and
14*cb7aa33aSEmmanuel Vadot  video-related hardware.
15*cb7aa33aSEmmanuel Vadot
16*cb7aa33aSEmmanuel Vadotproperties:
17*cb7aa33aSEmmanuel Vadot  compatible:
18*cb7aa33aSEmmanuel Vadot    enum:
19*cb7aa33aSEmmanuel Vadot      - allwinner,sun20i-d1-ppu
20*cb7aa33aSEmmanuel Vadot
21*cb7aa33aSEmmanuel Vadot  reg:
22*cb7aa33aSEmmanuel Vadot    maxItems: 1
23*cb7aa33aSEmmanuel Vadot
24*cb7aa33aSEmmanuel Vadot  clocks:
25*cb7aa33aSEmmanuel Vadot    description: Bus Clock
26*cb7aa33aSEmmanuel Vadot    maxItems: 1
27*cb7aa33aSEmmanuel Vadot
28*cb7aa33aSEmmanuel Vadot  resets:
29*cb7aa33aSEmmanuel Vadot    maxItems: 1
30*cb7aa33aSEmmanuel Vadot
31*cb7aa33aSEmmanuel Vadot  '#power-domain-cells':
32*cb7aa33aSEmmanuel Vadot    const: 1
33*cb7aa33aSEmmanuel Vadot
34*cb7aa33aSEmmanuel Vadotrequired:
35*cb7aa33aSEmmanuel Vadot  - compatible
36*cb7aa33aSEmmanuel Vadot  - reg
37*cb7aa33aSEmmanuel Vadot  - clocks
38*cb7aa33aSEmmanuel Vadot  - resets
39*cb7aa33aSEmmanuel Vadot  - '#power-domain-cells'
40*cb7aa33aSEmmanuel Vadot
41*cb7aa33aSEmmanuel VadotadditionalProperties: false
42*cb7aa33aSEmmanuel Vadot
43*cb7aa33aSEmmanuel Vadotexamples:
44*cb7aa33aSEmmanuel Vadot  - |
45*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/clock/sun20i-d1-r-ccu.h>
46*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/reset/sun20i-d1-r-ccu.h>
47*cb7aa33aSEmmanuel Vadot
48*cb7aa33aSEmmanuel Vadot    ppu: power-controller@7001000 {
49*cb7aa33aSEmmanuel Vadot        compatible = "allwinner,sun20i-d1-ppu";
50*cb7aa33aSEmmanuel Vadot        reg = <0x7001000 0x1000>;
51*cb7aa33aSEmmanuel Vadot        clocks = <&r_ccu CLK_BUS_R_PPU>;
52*cb7aa33aSEmmanuel Vadot        resets = <&r_ccu RST_BUS_R_PPU>;
53*cb7aa33aSEmmanuel Vadot        #power-domain-cells = <1>;
54*cb7aa33aSEmmanuel Vadot    };
55