xref: /linux/Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1f50ffbc5SNeil Armstrong# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2f50ffbc5SNeil Armstrong# Copyright 2019 BayLibre, SAS
3f50ffbc5SNeil Armstrong%YAML 1.2
4f50ffbc5SNeil Armstrong---
51b61fdfdSRob Herring$id: http://devicetree.org/schemas/arm/amlogic/amlogic,meson-gx-ao-secure.yaml#
61b61fdfdSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
7f50ffbc5SNeil Armstrong
8f50ffbc5SNeil Armstrongtitle: Amlogic Meson Firmware registers Interface
9f50ffbc5SNeil Armstrong
10f50ffbc5SNeil Armstrongmaintainers:
11c6a43fb3SNeil Armstrong  - Neil Armstrong <neil.armstrong@linaro.org>
12f50ffbc5SNeil Armstrong
13f50ffbc5SNeil Armstrongdescription: |
14f50ffbc5SNeil Armstrong  The Meson SoCs have a register bank with status and data shared with the
15f50ffbc5SNeil Armstrong  secure firmware.
16f50ffbc5SNeil Armstrong
17f50ffbc5SNeil Armstrong# We need a select here so we don't match all nodes with 'syscon'
18f50ffbc5SNeil Armstrongselect:
19f50ffbc5SNeil Armstrong  properties:
20f50ffbc5SNeil Armstrong    compatible:
21f50ffbc5SNeil Armstrong      contains:
22f50ffbc5SNeil Armstrong        const: amlogic,meson-gx-ao-secure
23f50ffbc5SNeil Armstrong  required:
24f50ffbc5SNeil Armstrong    - compatible
25f50ffbc5SNeil Armstrong
26f50ffbc5SNeil Armstrongproperties:
27f50ffbc5SNeil Armstrong  compatible:
28*dde3c640SXianwei Zhao    oneOf:
29*dde3c640SXianwei Zhao      - items:
30f50ffbc5SNeil Armstrong          - const: amlogic,meson-gx-ao-secure
31f50ffbc5SNeil Armstrong          - const: syscon
32*dde3c640SXianwei Zhao      - items:
33*dde3c640SXianwei Zhao          - enum:
34*dde3c640SXianwei Zhao              - amlogic,a4-ao-secure
35*dde3c640SXianwei Zhao              - amlogic,c3-ao-secure
36*dde3c640SXianwei Zhao              - amlogic,s4-ao-secure
37*dde3c640SXianwei Zhao              - amlogic,t7-ao-secure
38*dde3c640SXianwei Zhao          - const: amlogic,meson-gx-ao-secure
39*dde3c640SXianwei Zhao          - const: syscon
40f50ffbc5SNeil Armstrong  reg:
41f50ffbc5SNeil Armstrong    maxItems: 1
42f50ffbc5SNeil Armstrong
43f50ffbc5SNeil Armstrong  amlogic,has-chip-id:
44f50ffbc5SNeil Armstrong    description: |
45f50ffbc5SNeil Armstrong      A firmware register encodes the SoC type, package and revision
46f50ffbc5SNeil Armstrong      information on the Meson GX SoCs. If present, the interface gives
47f50ffbc5SNeil Armstrong      the current SoC version.
48f50ffbc5SNeil Armstrong    type: boolean
49f50ffbc5SNeil Armstrong
50f50ffbc5SNeil Armstrongrequired:
51f50ffbc5SNeil Armstrong  - compatible
52f50ffbc5SNeil Armstrong  - reg
53f50ffbc5SNeil Armstrong
547f464532SRob HerringadditionalProperties: false
557f464532SRob Herring
56f50ffbc5SNeil Armstrongexamples:
57f50ffbc5SNeil Armstrong  - |
58f50ffbc5SNeil Armstrong    ao-secure@140 {
59f50ffbc5SNeil Armstrong          compatible = "amlogic,meson-gx-ao-secure", "syscon";
60f50ffbc5SNeil Armstrong          reg = <0x140 0x140>;
61f50ffbc5SNeil Armstrong          amlogic,has-chip-id;
62f50ffbc5SNeil Armstrong    };
63