xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/brcm,bcm59056.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/brcm,bcm59056.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM590xx Power Management Units
8
9maintainers:
10  - Artur Weber <aweber.kernel@gmail.com>
11
12properties:
13  compatible:
14    enum:
15      - brcm,bcm59054
16      - brcm,bcm59056
17
18  reg:
19    maxItems: 1
20
21  interrupts:
22    maxItems: 1
23
24  regulators:
25    type: object
26
27required:
28  - compatible
29  - reg
30  - interrupts
31
32additionalProperties: false
33
34allOf:
35  - if:
36      properties:
37        compatible:
38          contains:
39            const: brcm,bcm59054
40    then:
41      properties:
42        regulators:
43          $ref: /schemas/regulator/brcm,bcm59054.yaml#
44
45  - if:
46      properties:
47        compatible:
48          contains:
49            const: brcm,bcm59056
50    then:
51      properties:
52        regulators:
53          $ref: /schemas/regulator/brcm,bcm59056.yaml#
54
55examples:
56  - |
57    #include <dt-bindings/interrupt-controller/arm-gic.h>
58    #include <dt-bindings/interrupt-controller/irq.h>
59
60    i2c {
61        #address-cells = <1>;
62        #size-cells = <0>;
63
64        pmic@8 {
65            compatible = "brcm,bcm59056";
66            reg = <0x08>;
67            interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>;
68
69            regulators {
70                rfldo {
71                    regulator-min-microvolt = <1200000>;
72                    regulator-max-microvolt = <3300000>;
73                };
74            };
75        };
76    };
77