xref: /freebsd/sys/contrib/device-tree/Bindings/power/renesas,sysc-rmobile.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/power/renesas,sysc-rmobile.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: Renesas R-Mobile System Controller
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Geert Uytterhoeven <geert+renesas@glider.be>
115956d97fSEmmanuel Vadot  - Magnus Damm <magnus.damm@gmail.com>
125956d97fSEmmanuel Vadot
135956d97fSEmmanuel Vadotdescription: |
145956d97fSEmmanuel Vadot  The R-Mobile System Controller provides the following functions:
155956d97fSEmmanuel Vadot    - Boot mode management,
165956d97fSEmmanuel Vadot    - Reset generation,
175956d97fSEmmanuel Vadot    - Power management.
185956d97fSEmmanuel Vadot
195956d97fSEmmanuel Vadotproperties:
205956d97fSEmmanuel Vadot  compatible:
215956d97fSEmmanuel Vadot    items:
225956d97fSEmmanuel Vadot      - enum:
235956d97fSEmmanuel Vadot          - renesas,sysc-r8a73a4    # R-Mobile APE6
245956d97fSEmmanuel Vadot          - renesas,sysc-r8a7740    # R-Mobile A1
255956d97fSEmmanuel Vadot          - renesas,sysc-sh73a0     # SH-Mobile AG5
265956d97fSEmmanuel Vadot      - const: renesas,sysc-rmobile # Generic SH/R-Mobile
275956d97fSEmmanuel Vadot
285956d97fSEmmanuel Vadot  reg:
295956d97fSEmmanuel Vadot    items:
305956d97fSEmmanuel Vadot      - description: Normally accessible register block
315956d97fSEmmanuel Vadot      - description: Register block protected by the HPB semaphore
325956d97fSEmmanuel Vadot
335956d97fSEmmanuel Vadot  pm-domains:
345956d97fSEmmanuel Vadot    type: object
355956d97fSEmmanuel Vadot    description: |
365956d97fSEmmanuel Vadot      This node contains a hierarchy of PM domain nodes, which should match the
375956d97fSEmmanuel Vadot      Power Area Hierarchy in the Power Domain Specifications section of the
385956d97fSEmmanuel Vadot      device's datasheet.
395956d97fSEmmanuel Vadot
405956d97fSEmmanuel Vadot    properties:
415956d97fSEmmanuel Vadot      '#address-cells':
425956d97fSEmmanuel Vadot        const: 1
435956d97fSEmmanuel Vadot
445956d97fSEmmanuel Vadot      '#size-cells':
455956d97fSEmmanuel Vadot        const: 0
465956d97fSEmmanuel Vadot
475956d97fSEmmanuel Vadot    additionalProperties:
485956d97fSEmmanuel Vadot      $ref: "#/$defs/pd-node"
495956d97fSEmmanuel Vadot
505956d97fSEmmanuel Vadotrequired:
515956d97fSEmmanuel Vadot  - compatible
525956d97fSEmmanuel Vadot  - reg
535956d97fSEmmanuel Vadot  - pm-domains
545956d97fSEmmanuel Vadot
555956d97fSEmmanuel VadotadditionalProperties: false
565956d97fSEmmanuel Vadot
575956d97fSEmmanuel Vadot$defs:
585956d97fSEmmanuel Vadot  pd-node:
595956d97fSEmmanuel Vadot    type: object
605956d97fSEmmanuel Vadot    description:
61*aa1a8ff2SEmmanuel Vadot      PM domain node representing a PM domain.  This node should be named by
625956d97fSEmmanuel Vadot      the real power area name, and thus its name should be unique.
635956d97fSEmmanuel Vadot
645956d97fSEmmanuel Vadot    properties:
655956d97fSEmmanuel Vadot      reg:
665956d97fSEmmanuel Vadot        maxItems: 1
675956d97fSEmmanuel Vadot        description:
685956d97fSEmmanuel Vadot          If the PM domain is not always-on, this property must contain the
695956d97fSEmmanuel Vadot          bit index number for the corresponding power area in the various
705956d97fSEmmanuel Vadot          Power Control and Status Registers.
715956d97fSEmmanuel Vadot          If the PM domain is always-on, this property must be omitted.
725956d97fSEmmanuel Vadot
735956d97fSEmmanuel Vadot      '#address-cells':
745956d97fSEmmanuel Vadot        const: 1
755956d97fSEmmanuel Vadot
765956d97fSEmmanuel Vadot      '#size-cells':
775956d97fSEmmanuel Vadot        const: 0
785956d97fSEmmanuel Vadot
795956d97fSEmmanuel Vadot      '#power-domain-cells':
805956d97fSEmmanuel Vadot        const: 0
815956d97fSEmmanuel Vadot
825956d97fSEmmanuel Vadot    required:
835956d97fSEmmanuel Vadot      - '#power-domain-cells'
845956d97fSEmmanuel Vadot
855956d97fSEmmanuel Vadot    additionalProperties:
865956d97fSEmmanuel Vadot      $ref: "#/$defs/pd-node"
875956d97fSEmmanuel Vadot
885956d97fSEmmanuel Vadotexamples:
895956d97fSEmmanuel Vadot  - |
905956d97fSEmmanuel Vadot    // This shows a subset of the r8a7740 PM domain hierarchy, containing the
915956d97fSEmmanuel Vadot    // C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP
925956d97fSEmmanuel Vadot    // domain, which is a subdomain of A4S.
935956d97fSEmmanuel Vadot    sysc: system-controller@e6180000 {
945956d97fSEmmanuel Vadot            compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile";
955956d97fSEmmanuel Vadot            reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>;
965956d97fSEmmanuel Vadot
975956d97fSEmmanuel Vadot            pm-domains {
985956d97fSEmmanuel Vadot                    pd_c5: c5 {
995956d97fSEmmanuel Vadot                            #address-cells = <1>;
1005956d97fSEmmanuel Vadot                            #size-cells = <0>;
1015956d97fSEmmanuel Vadot                            #power-domain-cells = <0>;
1025956d97fSEmmanuel Vadot
1035956d97fSEmmanuel Vadot                            pd_a4s: a4s@10 {
1045956d97fSEmmanuel Vadot                                    reg = <10>;
1055956d97fSEmmanuel Vadot                                    #address-cells = <1>;
1065956d97fSEmmanuel Vadot                                    #size-cells = <0>;
1075956d97fSEmmanuel Vadot                                    #power-domain-cells = <0>;
1085956d97fSEmmanuel Vadot
1095956d97fSEmmanuel Vadot                                    pd_a3sp: a3sp@11 {
1105956d97fSEmmanuel Vadot                                            reg = <11>;
1115956d97fSEmmanuel Vadot                                            #power-domain-cells = <0>;
1125956d97fSEmmanuel Vadot                                    };
1135956d97fSEmmanuel Vadot                            };
1145956d97fSEmmanuel Vadot
1155956d97fSEmmanuel Vadot                            pd_a4su: a4su@20 {
1165956d97fSEmmanuel Vadot                                    reg = <20>;
1175956d97fSEmmanuel Vadot                                    #power-domain-cells = <0>;
1185956d97fSEmmanuel Vadot                            };
1195956d97fSEmmanuel Vadot                    };
1205956d97fSEmmanuel Vadot            };
1215956d97fSEmmanuel Vadot    };
122