File Index
Files and directories
Sign in
FILE

brcm,bcm2835-pm.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.yaml YAML
  1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/soc/bcm/brcm,bcm2835-pm.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: BCM2835 PM (Power domains, watchdog)
  8
  9description: |
 10  The PM block controls power domains and some reset lines, and includes a
 11  watchdog timer.
 12
 13maintainers:
 14  - Nicolas Saenz Julienne <nsaenz@kernel.org>
 15
 16properties:
 17  compatible:
 18    items:
 19      - enum:
 20          - brcm,bcm2835-pm
 21          - brcm,bcm2711-pm
 22          - brcm,bcm2712-pm
 23      - const: brcm,bcm2835-pm-wdt
 24
 25  reg:
 26    minItems: 1
 27    maxItems: 3
 28
 29  reg-names:
 30    minItems: 1
 31    items:
 32      - const: pm
 33      - const: asb
 34      - const: rpivid_asb
 35
 36  "#power-domain-cells":
 37    const: 1
 38
 39  "#reset-cells":
 40    const: 1
 41
 42  clocks:
 43    minItems: 4
 44    maxItems: 4
 45
 46  clock-names:
 47    items:
 48      - const: v3d
 49      - const: peri_image
 50      - const: h264
 51      - const: isp
 52
 53  system-power-controller:
 54    type: boolean
 55
 56  timeout-sec: true
 57
 58required:
 59  - compatible
 60  - reg
 61  - "#power-domain-cells"
 62  - "#reset-cells"
 63
 64allOf:
 65  - $ref: /schemas/watchdog/watchdog.yaml#
 66
 67  - if:
 68      properties:
 69        compatible:
 70          contains:
 71            enum:
 72              - brcm,bcm2835-pm
 73              - brcm,bcm2711-pm
 74    then:
 75      required:
 76        - clocks
 77
 78      properties:
 79        reg:
 80          minItems: 2
 81
 82        reg-names:
 83          minItems: 2
 84
 85    else:
 86      properties:
 87        reg:
 88          maxItems: 1
 89
 90        reg-names:
 91          maxItems: 1
 92
 93additionalProperties: false
 94
 95examples:
 96  - |
 97    #include <dt-bindings/clock/bcm2835.h>
 98
 99    watchdog@7e100000 {
100        compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt";
101        #power-domain-cells = <1>;
102        #reset-cells = <1>;
103        reg = <0x7e100000 0x114>,
104              <0x7e00a000 0x24>;
105        reg-names = "pm", "asb";
106        clocks = <&clocks BCM2835_CLOCK_V3D>,
107               <&clocks BCM2835_CLOCK_PERI_IMAGE>,
108               <&clocks BCM2835_CLOCK_H264>,
109               <&clocks BCM2835_CLOCK_ISP>;
110        clock-names = "v3d", "peri_image", "h264", "isp";
111        system-power-controller;
112    };
~/ Read-only file preview.