1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/socionext,uniphier-efuse.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Socionext UniPhier eFuse
8
9maintainers:
10  - Keiji Hayashibara <hayashibara.keiji@socionext.com>
11  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
12
13allOf:
14  - $ref: nvmem.yaml#
15
16properties:
17  "#address-cells": true
18  "#size-cells": true
19
20  compatible:
21    const: socionext,uniphier-efuse
22
23  reg:
24    maxItems: 1
25
26required:
27  - compatible
28  - reg
29
30unevaluatedProperties: false
31
32examples:
33  - |
34    efuse@100 {
35        compatible = "socionext,uniphier-efuse";
36        reg = <0x100 0x28>;
37    };
38
39    efuse@200 {
40        compatible = "socionext,uniphier-efuse";
41        reg = <0x200 0x68>;
42        #address-cells = <1>;
43        #size-cells = <1>;
44
45        /* Data cells */
46        usb_rterm0: trim@54,4 {
47            reg = <0x54 1>;
48            bits = <4 2>;
49        };
50        usb_rterm1: trim@55,4 {
51            reg = <0x55 1>;
52            bits = <4 2>;
53        };
54        usb_rterm2: trim@58,4 {
55            reg = <0x58 1>;
56            bits = <4 2>;
57        };
58        usb_rterm3: trim@59,4 {
59            reg = <0x59 1>;
60            bits = <4 2>;
61        };
62        usb_sel_t0: trim@54,0 {
63            reg = <0x54 1>;
64            bits = <0 4>;
65        };
66        usb_sel_t1: trim@55,0 {
67            reg = <0x55 1>;
68            bits = <0 4>;
69        };
70        usb_sel_t2: trim@58,0 {
71            reg = <0x58 1>;
72            bits = <0 4>;
73        };
74        usb_sel_t3: trim@59,0 {
75            reg = <0x59 1>;
76            bits = <0 4>;
77        };
78        usb_hs_i0: trim@56,0 {
79            reg = <0x56 1>;
80            bits = <0 4>;
81        };
82        usb_hs_i2: trim@5a,0 {
83            reg = <0x5a 1>;
84            bits = <0 4>;
85        };
86    };
87