Skip to content

Commit a37a15f

Browse files
Ravi Kumar Bokkagregkh
authored andcommitted
dt-bindings: nvmem: Add properties needed for blowing fuses
On some systems it's possible to actually blow the fuses in the qfprom from the kernel. Add properties to support that. NOTE: Whether this is possible depends on the BIOS settings and whether the kernel has permissions here, so not all boards will be able to blow fuses in the kernel. Signed-off-by: Ravi Kumar Bokka <[email protected]> Signed-off-by: Douglas Anderson <[email protected]> Reviewed-by: Rob Herring <[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 83281b7 commit a37a15f

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,27 @@ properties:
1717
const: qcom,qfprom
1818

1919
reg:
20-
items:
21-
- description: The corrected region.
20+
# If the QFPROM is read-only OS image then only the corrected region
21+
# needs to be provided. If the QFPROM is writable then all 4 regions
22+
# must be provided.
23+
oneOf:
24+
- items:
25+
- description: The corrected region.
26+
- items:
27+
- description: The corrected region.
28+
- description: The raw region.
29+
- description: The config region.
30+
- description: The security control region.
31+
32+
# Clock must be provided if QFPROM is writable from the OS image.
33+
clocks:
34+
maxItems: 1
35+
clock-names:
36+
const: core
37+
38+
# Supply reference must be provided if QFPROM is writable from the OS image.
39+
vcc-supply:
40+
description: Our power supply.
2241

2342
# Needed if any child nodes are present.
2443
"#address-cells":
@@ -31,6 +50,33 @@ required:
3150
- reg
3251

3352
examples:
53+
- |
54+
#include <dt-bindings/clock/qcom,gcc-sc7180.h>
55+
56+
soc {
57+
#address-cells = <2>;
58+
#size-cells = <2>;
59+
60+
efuse@784000 {
61+
compatible = "qcom,qfprom";
62+
reg = <0 0x00784000 0 0x8ff>,
63+
<0 0x00780000 0 0x7a0>,
64+
<0 0x00782000 0 0x100>,
65+
<0 0x00786000 0 0x1fff>;
66+
clocks = <&gcc GCC_SEC_CTRL_CLK_SRC>;
67+
clock-names = "core";
68+
#address-cells = <1>;
69+
#size-cells = <1>;
70+
71+
vcc-supply = <&vreg_l11a_1p8>;
72+
73+
hstx-trim-primary@25b {
74+
reg = <0x25b 0x1>;
75+
bits = <1 3>;
76+
};
77+
};
78+
};
79+
3480
- |
3581
soc {
3682
#address-cells = <2>;

0 commit comments

Comments
 (0)