1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/amlogic,meson-gxbb-efuse.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson GX eFuse
8
9maintainers:
10  - Neil Armstrong <neil.armstrong@linaro.org>
11
12allOf:
13  - $ref: nvmem.yaml#
14  - $ref: nvmem-deprecated-cells.yaml#
15
16properties:
17  compatible:
18    oneOf:
19      - const: amlogic,meson-gxbb-efuse
20      - items:
21          - const: amlogic,meson-gx-efuse
22          - const: amlogic,meson-gxbb-efuse
23
24  clocks:
25    maxItems: 1
26
27  secure-monitor:
28    description: phandle to the secure-monitor node
29    $ref: /schemas/types.yaml#/definitions/phandle
30
31  power-domains:
32    maxItems: 1
33
34required:
35  - compatible
36  - clocks
37  - secure-monitor
38
39unevaluatedProperties: false
40
41examples:
42  - |
43    efuse: efuse {
44        compatible = "amlogic,meson-gxbb-efuse";
45        clocks = <&clk_efuse>;
46        #address-cells = <1>;
47        #size-cells = <1>;
48        secure-monitor = <&sm>;
49
50        sn: sn@14 {
51            reg = <0x14 0x10>;
52        };
53
54        eth_mac: mac@34 {
55            reg = <0x34 0x10>;
56        };
57
58        bid: bid@46 {
59            reg = <0x46 0x30>;
60        };
61    };
62