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