Skip to content

Commit b8357f6

Browse files
Stanislav Jakubekgregkh
authored andcommitted
dt-bindings: nvmem: sprd,sc2731-efuse: convert to YAML
Convert the Spreadtrum SC27XX eFuse bindings to DT schema. Rename the file after the only in-tree user, SC2731. 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 1c4ea80 commit b8357f6

File tree

2 files changed

+68
-52
lines changed

2 files changed

+68
-52
lines changed

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

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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,sc2731-efuse.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Spreadtrum SC27XX PMIC 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+
enum:
17+
- sprd,sc2720-efuse
18+
- sprd,sc2721-efuse
19+
- sprd,sc2723-efuse
20+
- sprd,sc2730-efuse
21+
- sprd,sc2731-efuse
22+
23+
reg:
24+
maxItems: 1
25+
26+
hwlocks:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
- hwlocks
33+
34+
allOf:
35+
- $ref: nvmem.yaml#
36+
- $ref: nvmem-deprecated-cells.yaml#
37+
38+
unevaluatedProperties: false
39+
40+
examples:
41+
- |
42+
pmic {
43+
#address-cells = <1>;
44+
#size-cells = <0>;
45+
46+
efuse@380 {
47+
compatible = "sprd,sc2731-efuse";
48+
reg = <0x380>;
49+
hwlocks = <&hwlock 12>;
50+
#address-cells = <1>;
51+
#size-cells = <1>;
52+
53+
/* Data cells */
54+
fgu_calib: calib@6 {
55+
reg = <0x6 0x2>;
56+
bits = <0 9>;
57+
};
58+
59+
adc_big_scale: calib@24 {
60+
reg = <0x24 0x2>;
61+
};
62+
63+
adc_small_scale: calib@26 {
64+
reg = <0x26 0x2>;
65+
};
66+
};
67+
};
68+
...

0 commit comments

Comments
 (0)