xref: /freebsd/sys/contrib/device-tree/Bindings/soc/bcm/brcm,bcm2835-pm.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*b97ee269SEmmanuel Vadot%YAML 1.2
3*b97ee269SEmmanuel Vadot---
4*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/soc/bcm/brcm,bcm2835-pm.yaml#
5*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b97ee269SEmmanuel Vadot
7*b97ee269SEmmanuel Vadottitle: BCM2835 PM (Power domains, watchdog)
8*b97ee269SEmmanuel Vadot
9*b97ee269SEmmanuel Vadotdescription: |
10*b97ee269SEmmanuel Vadot  The PM block controls power domains and some reset lines, and includes a
11*b97ee269SEmmanuel Vadot  watchdog timer.
12*b97ee269SEmmanuel Vadot
13*b97ee269SEmmanuel Vadotmaintainers:
14*b97ee269SEmmanuel Vadot  - Nicolas Saenz Julienne <nsaenz@kernel.org>
15*b97ee269SEmmanuel Vadot
16*b97ee269SEmmanuel VadotallOf:
17*b97ee269SEmmanuel Vadot  - $ref: /schemas/watchdog/watchdog.yaml#
18*b97ee269SEmmanuel Vadot
19*b97ee269SEmmanuel Vadotproperties:
20*b97ee269SEmmanuel Vadot  compatible:
21*b97ee269SEmmanuel Vadot    items:
22*b97ee269SEmmanuel Vadot      - enum:
23*b97ee269SEmmanuel Vadot          - brcm,bcm2835-pm
24*b97ee269SEmmanuel Vadot          - brcm,bcm2711-pm
25*b97ee269SEmmanuel Vadot      - const: brcm,bcm2835-pm-wdt
26*b97ee269SEmmanuel Vadot
27*b97ee269SEmmanuel Vadot  reg:
28*b97ee269SEmmanuel Vadot    minItems: 2
29*b97ee269SEmmanuel Vadot    maxItems: 3
30*b97ee269SEmmanuel Vadot
31*b97ee269SEmmanuel Vadot  reg-names:
32*b97ee269SEmmanuel Vadot    minItems: 2
33*b97ee269SEmmanuel Vadot    items:
34*b97ee269SEmmanuel Vadot      - const: pm
35*b97ee269SEmmanuel Vadot      - const: asb
36*b97ee269SEmmanuel Vadot      - const: rpivid_asb
37*b97ee269SEmmanuel Vadot
38*b97ee269SEmmanuel Vadot  "#power-domain-cells":
39*b97ee269SEmmanuel Vadot    const: 1
40*b97ee269SEmmanuel Vadot
41*b97ee269SEmmanuel Vadot  "#reset-cells":
42*b97ee269SEmmanuel Vadot    const: 1
43*b97ee269SEmmanuel Vadot
44*b97ee269SEmmanuel Vadot  clocks:
45*b97ee269SEmmanuel Vadot    minItems: 4
46*b97ee269SEmmanuel Vadot    maxItems: 4
47*b97ee269SEmmanuel Vadot
48*b97ee269SEmmanuel Vadot  clock-names:
49*b97ee269SEmmanuel Vadot    items:
50*b97ee269SEmmanuel Vadot      - const: v3d
51*b97ee269SEmmanuel Vadot      - const: peri_image
52*b97ee269SEmmanuel Vadot      - const: h264
53*b97ee269SEmmanuel Vadot      - const: isp
54*b97ee269SEmmanuel Vadot
55*b97ee269SEmmanuel Vadot  system-power-controller:
56*b97ee269SEmmanuel Vadot    type: boolean
57*b97ee269SEmmanuel Vadot
58*b97ee269SEmmanuel Vadot  timeout-sec: true
59*b97ee269SEmmanuel Vadot
60*b97ee269SEmmanuel Vadotrequired:
61*b97ee269SEmmanuel Vadot  - compatible
62*b97ee269SEmmanuel Vadot  - reg
63*b97ee269SEmmanuel Vadot  - "#power-domain-cells"
64*b97ee269SEmmanuel Vadot  - "#reset-cells"
65*b97ee269SEmmanuel Vadot  - clocks
66*b97ee269SEmmanuel Vadot
67*b97ee269SEmmanuel VadotadditionalProperties: false
68*b97ee269SEmmanuel Vadot
69*b97ee269SEmmanuel Vadotexamples:
70*b97ee269SEmmanuel Vadot  - |
71*b97ee269SEmmanuel Vadot    #include <dt-bindings/clock/bcm2835.h>
72*b97ee269SEmmanuel Vadot
73*b97ee269SEmmanuel Vadot    watchdog@7e100000 {
74*b97ee269SEmmanuel Vadot        compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt";
75*b97ee269SEmmanuel Vadot        #power-domain-cells = <1>;
76*b97ee269SEmmanuel Vadot        #reset-cells = <1>;
77*b97ee269SEmmanuel Vadot        reg = <0x7e100000 0x114>,
78*b97ee269SEmmanuel Vadot              <0x7e00a000 0x24>;
79*b97ee269SEmmanuel Vadot        reg-names = "pm", "asb";
80*b97ee269SEmmanuel Vadot        clocks = <&clocks BCM2835_CLOCK_V3D>,
81*b97ee269SEmmanuel Vadot               <&clocks BCM2835_CLOCK_PERI_IMAGE>,
82*b97ee269SEmmanuel Vadot               <&clocks BCM2835_CLOCK_H264>,
83*b97ee269SEmmanuel Vadot               <&clocks BCM2835_CLOCK_ISP>;
84*b97ee269SEmmanuel Vadot        clock-names = "v3d", "peri_image", "h264", "isp";
85*b97ee269SEmmanuel Vadot        system-power-controller;
86*b97ee269SEmmanuel Vadot    };
87