Skip to content

Commit

Permalink
arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID
Browse files Browse the repository at this point in the history
In order to be able to use NVMEM APIs to read soc unique ID, add the
nvmem data cell and name for nvmem-cells to the "soc" node, and add a
nvmem node which provides soc unique ID to efuse@30350000.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  • Loading branch information
Alice Guo authored and Shawn Guo committed Jan 11, 2021
1 parent ce58459 commit cbff237
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mm.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0x3e000000>;
nvmem-cells = <&imx8mm_uid>;
nvmem-cell-names = "soc_unique_id";

aips1: bus@30000000 {
compatible = "fsl,aips-bus", "simple-bus";
Expand Down Expand Up @@ -518,6 +520,10 @@
#address-cells = <1>;
#size-cells = <1>;

imx8mm_uid: unique-id@410 {
reg = <0x4 0x8>;
};

cpu_speed_grade: speed-grade@10 {
reg = <0x10 4>;
};
Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mn.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0x3e000000>;
nvmem-cells = <&imx8mn_uid>;
nvmem-cell-names = "soc_unique_id";

aips1: bus@30000000 {
compatible = "fsl,aips-bus", "simple-bus";
Expand Down Expand Up @@ -531,6 +533,10 @@
#address-cells = <1>;
#size-cells = <1>;

imx8mn_uid: unique-id@410 {
reg = <0x4 0x8>;
};

cpu_speed_grade: speed-grade@10 {
reg = <0x10 4>;
};
Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0x3e000000>;
nvmem-cells = <&imx8mp_uid>;
nvmem-cell-names = "soc_unique_id";

aips1: bus@30000000 {
compatible = "fsl,aips-bus", "simple-bus";
Expand Down Expand Up @@ -328,6 +330,10 @@
#address-cells = <1>;
#size-cells = <1>;

imx8mp_uid: unique-id@420 {
reg = <0x8 0x8>;
};

cpu_speed_grade: speed-grade@10 {
reg = <0x10 4>;
};
Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mq.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0x3e000000>;
dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>;
nvmem-cells = <&imx8mq_uid>;
nvmem-cell-names = "soc_unique_id";

bus@30000000 { /* AIPS1 */
compatible = "fsl,aips-bus", "simple-bus";
Expand Down Expand Up @@ -555,6 +557,10 @@
#address-cells = <1>;
#size-cells = <1>;

imx8mq_uid: soc-uid@410 {
reg = <0x4 0x8>;
};

cpu_speed_grade: speed-grade@10 {
reg = <0x10 4>;
};
Expand Down

0 comments on commit cbff237

Please sign in to comment.