Skip to content

Commit 34194cb

Browse files
Stanimir VarbanovUlf Hansson
authored andcommitted
dt-bindings: soc: bcm: Add bcm2712 compatible
Add bcm2712-pm compatible and update the bindings to satisfy it's requirements. The PM hardware block inside bcm2712 lacks the "asb" and "rpivid_asb" register ranges and also does not have clocks, update the bindings accordingly. Signed-off-by: Stanimir Varbanov <svarbanov@suse.de> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 66901bc commit 34194cb

1 file changed

Lines changed: 32 additions & 6 deletions

File tree

Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.yaml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@ description: |
1313
maintainers:
1414
- Nicolas Saenz Julienne <nsaenz@kernel.org>
1515

16-
allOf:
17-
- $ref: /schemas/watchdog/watchdog.yaml#
18-
1916
properties:
2017
compatible:
2118
items:
2219
- enum:
2320
- brcm,bcm2835-pm
2421
- brcm,bcm2711-pm
22+
- brcm,bcm2712-pm
2523
- const: brcm,bcm2835-pm-wdt
2624

2725
reg:
28-
minItems: 2
26+
minItems: 1
2927
maxItems: 3
3028

3129
reg-names:
32-
minItems: 2
30+
minItems: 1
3331
items:
3432
- const: pm
3533
- const: asb
@@ -62,7 +60,35 @@ required:
6260
- reg
6361
- "#power-domain-cells"
6462
- "#reset-cells"
65-
- clocks
63+
64+
allOf:
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
6692

6793
additionalProperties: false
6894

0 commit comments

Comments
 (0)