1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4882a593Smuzhiyun# Copyright 2019 BayLibre, SAS
3*4882a593Smuzhiyun%YAML 1.2
4*4882a593Smuzhiyun---
5*4882a593Smuzhiyun$id: "http://devicetree.org/schemas/arm/amlogic/amlogic,meson-gx-ao-secure.yaml#"
6*4882a593Smuzhiyun$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuntitle: Amlogic Meson Firmware registers Interface
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunmaintainers:
11*4882a593Smuzhiyun  - Neil Armstrong <narmstrong@baylibre.com>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundescription: |
14*4882a593Smuzhiyun  The Meson SoCs have a register bank with status and data shared with the
15*4882a593Smuzhiyun  secure firmware.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun# We need a select here so we don't match all nodes with 'syscon'
18*4882a593Smuzhiyunselect:
19*4882a593Smuzhiyun  properties:
20*4882a593Smuzhiyun    compatible:
21*4882a593Smuzhiyun      contains:
22*4882a593Smuzhiyun        const: amlogic,meson-gx-ao-secure
23*4882a593Smuzhiyun  required:
24*4882a593Smuzhiyun    - compatible
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunproperties:
27*4882a593Smuzhiyun  compatible:
28*4882a593Smuzhiyun    items:
29*4882a593Smuzhiyun      - const: amlogic,meson-gx-ao-secure
30*4882a593Smuzhiyun      - const: syscon
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun  reg:
33*4882a593Smuzhiyun    maxItems: 1
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun  amlogic,has-chip-id:
36*4882a593Smuzhiyun    description: |
37*4882a593Smuzhiyun      A firmware register encodes the SoC type, package and revision
38*4882a593Smuzhiyun      information on the Meson GX SoCs. If present, the interface gives
39*4882a593Smuzhiyun      the current SoC version.
40*4882a593Smuzhiyun    type: boolean
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunrequired:
43*4882a593Smuzhiyun  - compatible
44*4882a593Smuzhiyun  - reg
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunadditionalProperties: false
47*4882a593Smuzhiyun
48*4882a593Smuzhiyunexamples:
49*4882a593Smuzhiyun  - |
50*4882a593Smuzhiyun    ao-secure@140 {
51*4882a593Smuzhiyun          compatible = "amlogic,meson-gx-ao-secure", "syscon";
52*4882a593Smuzhiyun          reg = <0x140 0x140>;
53*4882a593Smuzhiyun          amlogic,has-chip-id;
54*4882a593Smuzhiyun    };
55