mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-23 19:43:33 +00:00
2ae1267342
Read ethernet MAC address from EEPROM located on the SOM. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
87 lines
981 B
Text
87 lines
981 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2021 Collabora Ltd.
|
|
*/
|
|
|
|
#include "imx8mn-u-boot.dtsi"
|
|
|
|
&{/soc@0/bus@30800000/i2c@30a20000/pmic@4b} {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&{/soc@0/bus@30800000/i2c@30a20000/pmic@4b/regulators} {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&eeprom_som {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
eth_mac_address: eth-mac-address@19 {
|
|
reg = <0x19 0x06>;
|
|
};
|
|
};
|
|
|
|
&fec1 {
|
|
nvmem-cells = <ð_mac_address>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
&gpio1 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&gpio2 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&gpio4 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&i2c1 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&pinctrl_i2c1 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&pinctrl_pmic {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&pinctrl_reg_usdhc2_vmmc {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&pinctrl_uart4 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&pinctrl_usdhc2 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&pinctrl_usdhc3 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&pinctrl_wdog {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&uart4 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&usdhc2 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&usdhc3 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&eeprom_som {
|
|
bootph-pre-ram;
|
|
};
|