brintos

brintos / linux-shallow public Read only

0
0
Text · 6.4 KiB · b74380d Raw
286 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/arm/vexpress-config.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: ARM Versatile Express configuration bus8 9maintainers:10  - Andre Przywara <andre.przywara@arm.com>11 12description:13  This is a system control register block, acting as a bridge to the14  platform's configuration bus via "system control" interface, addressing15  devices with site number, position in the board stack, config controller,16  function and device numbers - see motherboard's TRM for more details.17 18properties:19  compatible:20    const: arm,vexpress,config-bus21 22  arm,vexpress,config-bridge:23    $ref: /schemas/types.yaml#/definitions/phandle24    description:25      Phandle to the sysreg node.26 27  muxfpga:28    type: object29    properties:30      compatible:31        const: arm,vexpress-muxfpga32 33      arm,vexpress-sysreg,func:34        description: FPGA specifier35        $ref: /schemas/types.yaml#/definitions/uint32-array36        items:37          - const: 738          - description: device number39 40    additionalProperties: false41    required:42      - compatible43      - arm,vexpress-sysreg,func44 45  shutdown:46    type: object47    properties:48      compatible:49        const: arm,vexpress-shutdown50 51      arm,vexpress-sysreg,func:52        description: shutdown identifier53        $ref: /schemas/types.yaml#/definitions/uint32-array54        items:55          - const: 856          - description: device number57 58    additionalProperties: false59    required:60      - compatible61      - arm,vexpress-sysreg,func62 63  reboot:64    type: object65    properties:66      compatible:67        const: arm,vexpress-reboot68 69      arm,vexpress-sysreg,func:70        description: reboot identifier71        $ref: /schemas/types.yaml#/definitions/uint32-array72        items:73          - const: 974          - description: device number75 76    additionalProperties: false77    required:78      - compatible79      - arm,vexpress-sysreg,func80 81  dvimode:82    type: object83    properties:84      compatible:85        const: arm,vexpress-dvimode86 87      arm,vexpress-sysreg,func:88        description: DVI mode identifier89        $ref: /schemas/types.yaml#/definitions/uint32-array90        items:91          - const: 1192          - description: device number93 94    additionalProperties: false95    required:96      - compatible97      - arm,vexpress-sysreg,func98 99additionalProperties: false100 101required:102  - compatible103  - arm,vexpress,config-bridge104 105patternProperties:106  'clk[0-9]*$':107    type: object108    description:109      clocks110 111    properties:112      compatible:113        const: arm,vexpress-osc114 115      arm,vexpress-sysreg,func:116        description: clock specifier117        $ref: /schemas/types.yaml#/definitions/uint32-array118        items:119          - const: 1120          - description: clock number121 122      freq-range:123        $ref: /schemas/types.yaml#/definitions/uint32-array124        items:125          - description: minimal clock frequency126          - description: maximum clock frequency127 128      "#clock-cells":129        const: 0130 131      clock-output-names:132        maxItems: 1133 134    additionalProperties: false135    required:136      - compatible137      - arm,vexpress-sysreg,func138      - "#clock-cells"139 140  "^volt-.+$":141    $ref: /schemas/regulator/regulator.yaml#142    properties:143      compatible:144        const: arm,vexpress-volt145 146      arm,vexpress-sysreg,func:147        description: regulator specifier148        $ref: /schemas/types.yaml#/definitions/uint32-array149        items:150          - const: 2151          - description: device number152 153      label:154        maxItems: 1155 156    unevaluatedProperties: false157    required:158      - compatible159      - arm,vexpress-sysreg,func160 161  "^amp-.+$":162    type: object163    properties:164      compatible:165        const: arm,vexpress-amp166 167      arm,vexpress-sysreg,func:168        description: current sensor identifier169        $ref: /schemas/types.yaml#/definitions/uint32-array170        items:171          - const: 3172          - description: device number173 174      label:175        maxItems: 1176 177    additionalProperties: false178    required:179      - compatible180      - arm,vexpress-sysreg,func181 182  "^temp-.+$":183    type: object184    properties:185      compatible:186        const: arm,vexpress-temp187 188      arm,vexpress-sysreg,func:189        description: temperature sensor identifier190        $ref: /schemas/types.yaml#/definitions/uint32-array191        items:192          - const: 4193          - description: device number194 195      label:196        maxItems: 1197 198    additionalProperties: false199    required:200      - compatible201      - arm,vexpress-sysreg,func202 203  "^reset[0-9]*$":204    type: object205    properties:206      compatible:207        const: arm,vexpress-reset208 209      arm,vexpress-sysreg,func:210        description: reset specifier211        $ref: /schemas/types.yaml#/definitions/uint32-array212        items:213          - const: 5214          - description: reset device number215 216    additionalProperties: false217    required:218      - compatible219      - arm,vexpress-sysreg,func220 221  "^power-.+$":222    type: object223    properties:224      compatible:225        const: arm,vexpress-power226 227      arm,vexpress-sysreg,func:228        description: power sensor identifier229        $ref: /schemas/types.yaml#/definitions/uint32-array230        items:231          - const: 12232          - description: device number233 234      label:235        maxItems: 1236 237    additionalProperties: false238    required:239      - compatible240      - arm,vexpress-sysreg,func241 242  "^energy(-.+)?$":243    type: object244    properties:245      compatible:246        const: arm,vexpress-energy247 248      arm,vexpress-sysreg,func:249        description: energy sensor identifier250        $ref: /schemas/types.yaml#/definitions/uint32-array251        oneOf:252          - items:253              - const: 13254              - description: device number255          - items:256              - const: 13257              - description: device number258              - const: 13259              - description: second device number260 261      label:262        maxItems: 1263 264    additionalProperties: false265    required:266      - compatible267      - arm,vexpress-sysreg,func268 269examples:270  - |271    mcc {272        compatible = "arm,vexpress,config-bus";273        arm,vexpress,config-bridge = <&v2m_sysreg>;274 275        clk0 {276            compatible = "arm,vexpress-osc";277            arm,vexpress-sysreg,func = <1 0>;278            #clock-cells = <0>;279        };280 281        energy {282            compatible = "arm,vexpress-energy";283            arm,vexpress-sysreg,func = <13 0>, <13 1>;284        };285    };286