Skip to content

Commit 1c4ea80

Browse files
Stanislav Jakubekgregkh
authored andcommitted
dt-bindings: nvmem: sprd,ums312-efuse: convert to YAML
Convert the Spreadtrum UMS312 eFuse bindings to DT schema. Adjust filename to match compatible. Note: the UMS312 clock bindings include doesn't seem to exist (yet?), so the UMS512 one was used for the "CLK_EFUSE_EB" define. Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Stanislav Jakubek <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5e61687 commit 1c4ea80

File tree

2 files changed

+61
-39
lines changed

2 files changed

+61
-39
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/nvmem/sprd,ums312-efuse.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Spreadtrum UMS312 eFuse
8+
9+
maintainers:
10+
- Orson Zhai <[email protected]>
11+
- Baolin Wang <[email protected]>
12+
- Chunyan Zhang <[email protected]>
13+
14+
properties:
15+
compatible:
16+
const: sprd,ums312-efuse
17+
18+
reg:
19+
maxItems: 1
20+
21+
clocks:
22+
maxItems: 1
23+
24+
clock-names:
25+
const: enable
26+
27+
hwlocks:
28+
maxItems: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- clocks
34+
- clock-names
35+
- hwlocks
36+
37+
allOf:
38+
- $ref: nvmem.yaml#
39+
- $ref: nvmem-deprecated-cells.yaml#
40+
41+
unevaluatedProperties: false
42+
43+
examples:
44+
- |
45+
#include <dt-bindings/clock/sprd,ums512-clk.h>
46+
47+
efuse@32240000 {
48+
compatible = "sprd,ums312-efuse";
49+
reg = <0x32240000 0x10000>;
50+
clocks = <&aonapb_gate CLK_EFUSE_EB>;
51+
clock-names = "enable";
52+
hwlocks = <&hwlock 8>;
53+
#address-cells = <1>;
54+
#size-cells = <1>;
55+
56+
/* Data cells */
57+
thermal_calib: calib@10 {
58+
reg = <0x10 0x2>;
59+
};
60+
};
61+
...

Documentation/devicetree/bindings/nvmem/sprd-efuse.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)