Skip to content

Commit 81b8214

Browse files
Stanislav Jakubeklag-linaro
authored andcommitted
dt-bindings: mfd: sprd,sc2731: Reference sprd,sc2731-efuse bindings
Directly reference the sc2731-efuse bindings to simplify the schema. Remove the duplicate example from the efuse bindings. While at it, add the "pmic_adc" label that was missed during the initial YAML conversion. Signed-off-by: Stanislav Jakubek <[email protected]> Acked-by: Conor Dooley <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Link: https://lore.kernel.org/r/Z1_9ROiI2ZHKsbAD@standask-GA-A55M-S2HP Signed-off-by: Lee Jones <[email protected]>
1 parent 09a8974 commit 81b8214

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
lines changed

Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,7 @@ patternProperties:
6767

6868
"^efuse@[0-9a-f]+$":
6969
type: object
70-
additionalProperties: true
71-
properties:
72-
compatible:
73-
enum:
74-
- sprd,sc2720-efuse
75-
- sprd,sc2721-efuse
76-
- sprd,sc2723-efuse
77-
- sprd,sc2730-efuse
78-
- sprd,sc2731-efuse
70+
$ref: /schemas/nvmem/sprd,sc2731-efuse.yaml#
7971

8072
"^fuel-gauge@[0-9a-f]+$":
8173
type: object
@@ -199,7 +191,7 @@ examples:
199191
};
200192
};
201193
202-
adc@480 {
194+
pmic_adc: adc@480 {
203195
compatible = "sprd,sc2731-adc";
204196
reg = <0x480>;
205197
interrupt-parent = <&sc2731_pmic>;

Documentation/devicetree/bindings/nvmem/sprd,sc2731-efuse.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,4 @@ allOf:
3636
- $ref: nvmem-deprecated-cells.yaml#
3737

3838
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-
};
6839
...

0 commit comments

Comments
 (0)