you can search you can search OCOTP in the dts file, you can find the detailed information, the simple way is that you can use fuse prog command in uboot to fuse the mac address, for example, fuse prog -y 9 0 xxxxx, for read mac address you can use "fuse read" command , but let me remind, this is one time program,
"https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp.dtsi?...
ocotp: efuse@30350000 {
compatible = "fsl,imx8mp-ocotp", "fsl,imx8mm-ocotp", "syscon", "simple-mfd";
reg = <0x30350000 0x10000>;
clocks = <&clk IMX8MP_CLK_OCOTP_ROOT>;
/* For nvmem subnodes */
#address-cells = <1>;
#size-cells = <1>;
imx8mp_uid: unique-id@420 {
reg = <0x8 0x8>;
};
cpu_speed_grade: speed-grade@10 {
reg = <0x10 4>;
};
eth_mac1: mac-address@90 {
reg = <0x90 6>;
};
eth_mac2: mac-address@650 {
reg = <0x96 6>;
};
imx8mp_soc: imx8mp-soc {
compatible = "fsl,imx8mp-soc";
nvmem-cells = <&imx8mp_uid>;
nvmem-cell-names = "soc_unique_id";
};
};