Commit 34194cb3 authored by Stanimir Varbanov's avatar Stanimir Varbanov Committed by Ulf Hansson
Browse files

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: default avatarStanimir Varbanov <svarbanov@suse.de>
Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 66901bc7
Loading
Loading
Loading
Loading
+32 −6
Original line number Diff line number Diff line
@@ -13,23 +13,21 @@ description: |
maintainers:
  - Nicolas Saenz Julienne <nsaenz@kernel.org>

allOf:
  - $ref: /schemas/watchdog/watchdog.yaml#

properties:
  compatible:
    items:
      - enum:
          - brcm,bcm2835-pm
          - brcm,bcm2711-pm
          - brcm,bcm2712-pm
      - const: brcm,bcm2835-pm-wdt

  reg:
    minItems: 2
    minItems: 1
    maxItems: 3

  reg-names:
    minItems: 2
    minItems: 1
    items:
      - const: pm
      - const: asb
@@ -62,8 +60,36 @@ required:
  - reg
  - "#power-domain-cells"
  - "#reset-cells"

allOf:
  - $ref: /schemas/watchdog/watchdog.yaml#

  - if:
      properties:
        compatible:
          contains:
            enum:
              - brcm,bcm2835-pm
              - brcm,bcm2711-pm
    then:
      required:
        - clocks

      properties:
        reg:
          minItems: 2

        reg-names:
          minItems: 2

    else:
      properties:
        reg:
          maxItems: 1

        reg-names:
          maxItems: 1

additionalProperties: false

examples: