mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
ARM: dts: meson8b: odroidc1: use the MAC address stored in the eFuse
Odroid-C1 uses the MAC address stored in eFuse at offset 0x1b4 (which is defined as a "standard" offset for all Meson8 and Meson8b boards, but testing shows that MXQ doesn't have the eFuse values programmed and EC-100 stores it's MAC address in eMMC). Add the nvmem cell which points to the MAC address and asssign it to the Ethernet controller as "mac-address". As result of this the MAC address which is stored in the eFuse is now assigned to the Ethernet controller and consistent across reboots. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
This commit is contained in:
parent
dee51cd0d2
commit
6b14dd7267
@ -190,6 +190,12 @@ &cpu0 {
|
|||||||
cpu-supply = <&vcck>;
|
cpu-supply = <&vcck>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&efuse {
|
||||||
|
ethernet_mac_address: mac@1b4 {
|
||||||
|
reg = <0x1b4 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
ðmac {
|
ðmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
@ -200,6 +206,9 @@ ðmac {
|
|||||||
phy-handle = <ð_phy>;
|
phy-handle = <ð_phy>;
|
||||||
amlogic,tx-delay-ns = <4>;
|
amlogic,tx-delay-ns = <4>;
|
||||||
|
|
||||||
|
nvmem-cells = <ðernet_mac_address>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
|
||||||
mdio {
|
mdio {
|
||||||
compatible = "snps,dwmac-mdio";
|
compatible = "snps,dwmac-mdio";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
|
Loading…
Reference in New Issue
Block a user