Skip to content

Commit 8cb0cd6

Browse files
sean-anderson-secogregkh
authored andcommitted
dt-bindings: nvmem: sfp: Add clock properties
To program fuses, it is necessary to set the fuse programming time. This is determined based on the value of the platform clock. Add a clock property. Because this property is necessary for programming, it is made mandatory. Since these bindings have not yet been present in a stable release (though they are on track for 5.18), it is not an ABI break to change them in this manner. Signed-off-by: Sean Anderson <sean.anderson@seco.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20220429162701.2222-13-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c75945a commit 8cb0cd6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,29 @@ properties:
2424
reg:
2525
maxItems: 1
2626

27+
clocks:
28+
maxItems: 1
29+
description:
30+
The SFP clock. Typically, this is the platform clock divided by 4.
31+
32+
clock-names:
33+
const: sfp
34+
2735
required:
2836
- compatible
2937
- reg
38+
- clock-names
39+
- clocks
3040

3141
unevaluatedProperties: false
3242

3343
examples:
3444
- |
45+
#include <dt-bindings/clock/fsl,qoriq-clockgen.h>
3546
efuse@1e80000 {
3647
compatible = "fsl,ls1028a-sfp";
3748
reg = <0x1e80000 0x8000>;
49+
clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
50+
QORIQ_CLK_PLL_DIV(4)>;
51+
clock-names = "sfp";
3852
};

0 commit comments

Comments
 (0)