IMX7D: can't read the SNVS register

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX7D: can't read the SNVS register

187 Views
mathad22
Contributor III

Hi,

I am trying to read the SVNS register on my kernel 5.4.200. My build environment is Yocto Dunfell with U-boot 2017.08.

I edited and tested the default Sabre dev kit configuration and it works. (Uboot 2020 and Yocto Dunfell)

I added the same changes to my device tree and copied/pasted the kernel config to my Yocto environment and unfortunately, it doesn't work.

Every time I try to dump the hexdump value from the NVMEM driver the kernel crashes with no logs and after a few seconds, the WDT reboots the platform.

defconfig :

 

# CONFIG_DAX is not set
CONFIG_NVMEM=y
CONFIG_NVMEM_SYSFS=y
# CONFIG_NVMEM_IMX_IIM is not set
CONFIG_NVMEM_IMX_OCOTP=y
# CONFIG_NVMEM_VF610_OCOTP is not set
CONFIG_NVMEM_SNVS_LPGPR=y

 

 

device-tree: 

 

&snvs {
	snvs_lpgpr: snvs-lpgpr {
		compatible = "fsl,imx7d-snvs-lpgpr";
	};
};

 

 

Hexdump command :

 

/sys/bus/nvmem/devices/30370000.snvs:snvs-lpgpr0# hexdump nvmem

 

 

Any idea to debug this issue?

Thanks,

Labels (3)
0 Kudos
1 Reply

125 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

You may refer to the documentation for this:
https://github.com/nxp-imx/linux-imx/blob/rel_imx_5.4.70_2.3.0/Documentation/devicetree/bindings/nvm...

Best regards,
Aldo.

0 Kudos