Skip to content

Commit a1078b4

Browse files
Dong Aishenggregkh
authored andcommitted
dt-bindings: nvmem: imx-ocotp: update the binding to reflect data cells
imx-ocotp is implemented based on nvmem which can have data cells as child node. Update the binding doc to reflect it to be more easily understood by users. Cc: Srinivas Kandagatla <[email protected]> Cc: Rob Herring <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Shawn Guo <[email protected]> Signed-off-by: Dong Aisheng <[email protected]> Acked-by: Shawn Guo <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0ab09d6 commit a1078b4

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

Documentation/devicetree/bindings/nvmem/imx-ocotp.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,32 @@ Required properties:
1111
"fsl,imx6ul-ocotp" (i.MX6UL),
1212
"fsl,imx7d-ocotp" (i.MX7D/S),
1313
followed by "syscon".
14+
- #address-cells : Should be 1
15+
- #size-cells : Should be 1
1416
- reg: Should contain the register base and length.
1517
- clocks: Should contain a phandle pointing to the gated peripheral clock.
1618

1719
Optional properties:
1820
- read-only: disable write access
1921

20-
Example:
22+
Optional Child nodes:
23+
24+
- Data cells of ocotp:
25+
Detailed bindings are described in bindings/nvmem/nvmem.txt
2126

27+
Example:
2228
ocotp: ocotp@21bc000 {
23-
compatible = "fsl,imx6q-ocotp", "syscon";
29+
#address-cells = <1>;
30+
#size-cells = <1>;
31+
compatible = "fsl,imx6sx-ocotp", "syscon";
2432
reg = <0x021bc000 0x4000>;
25-
clocks = <&clks IMX6QDL_CLK_IIM>;
26-
read-only;
33+
clocks = <&clks IMX6SX_CLK_OCOTP>;
34+
35+
tempmon_calib: calib@38 {
36+
reg = <0x38 4>;
37+
};
38+
39+
tempmon_temp_grade: temp-grade@20 {
40+
reg = <0x20 4>;
41+
};
2742
};

0 commit comments

Comments
 (0)