Hi,
This complements support for reading the unique ID / serial
number on i.MX by adding the feature for i.MX51 and i.MX53.
This has been tested on i.MX53. I also added support for
i.MX51 since it uses exactly the same registers according
to its datasheet.
I did not add support for older i.MX processor. They also have
an IIM IP-core, but their datasheet does not contain information
about the unique ID registers and I do not have the hardware for
testing.
-- Sebastian
Sebastian Reichel (2):
ARM: dts: imx: Mark IIM as syscon on i.MX51/i.MX53
soc: imx: add i.MX51/i.MX53 unique id support
arch/arm/boot/dts/imx51.dtsi | 2 +-
arch/arm/boot/dts/imx53.dtsi | 2 +-
drivers/soc/imx/soc-imx.c | 12 ++++++++++++
3 files changed, 14 insertions(+), 2 deletions(-)
--
2.29.2
IIM contains system fuses with information like SoC unique ID
(serial) on i.MX51 and i.MX53. Add "syscon" compatible allowing
simple access.
Signed-off-by: Sebastian Reichel <[email protected]>
---
arch/arm/boot/dts/imx51.dtsi | 2 +-
arch/arm/boot/dts/imx53.dtsi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi
index 7ebb46ce9e36..01cfcbe5928e 100644
--- a/arch/arm/boot/dts/imx51.dtsi
+++ b/arch/arm/boot/dts/imx51.dtsi
@@ -467,7 +467,7 @@ aipstz2: bridge@83f00000 {
};
iim: efuse@83f98000 {
- compatible = "fsl,imx51-iim", "fsl,imx27-iim";
+ compatible = "fsl,imx51-iim", "fsl,imx27-iim", "syscon";
reg = <0x83f98000 0x4000>;
interrupts = <69>;
clocks = <&clks IMX5_CLK_IIM_GATE>;
diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
index 000050aeeabe..2cf3909cca2f 100644
--- a/arch/arm/boot/dts/imx53.dtsi
+++ b/arch/arm/boot/dts/imx53.dtsi
@@ -668,7 +668,7 @@ aipstz2: bridge@63f00000 {
};
iim: efuse@63f98000 {
- compatible = "fsl,imx53-iim", "fsl,imx27-iim";
+ compatible = "fsl,imx53-iim", "fsl,imx27-iim", "syscon";
reg = <0x63f98000 0x4000>;
interrupts = <69>;
clocks = <&clks IMX5_CLK_IIM_GATE>;
--
2.29.2
On Wed, Jan 27, 2021 at 06:40:22PM +0100, Sebastian Reichel wrote:
> Sebastian Reichel (2):
> ARM: dts: imx: Mark IIM as syscon on i.MX51/i.MX53
> soc: imx: add i.MX51/i.MX53 unique id support
Applied both, thanks.