cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jrceokura
Adventurer
Adventurer
127 Views
Registered: ‎07-17-2018

[u-boot] read macaddress from eeprom is failed

Hi all!

I want to read macaddress from eeprom.But I was failed.

My petalinux version is 2020.2.

function zynq_board_read_rom_ethaddr in board/xilinx/common/board.c.
 

uclass_get_device_by_ofnode's ret = -19.

My device tree is below. Could you teach me what' wrong?

 


/ {
    amba {
        i2c@e0004000 {
            i2c-switch@70 {
                compatible = "nxp,pca9548";
                reg = <0x70>;

                i2c@1 {
                    reg = <1>;
                    eepromeeprom@54 {
                        compatible = "atmel,24C08";
                        reg = <0x54>;
                        /* NVMEM entries */
                        gem0_mac: mac@0x00 {
                            reg = <0x00 6>;
                        };
                    };
                };
            };
        };
 
&gem0 {
    phy-handle = <&phy0>;
    /* MAC address stored in NVMEM */
    nvmem-cells = <&gem0_mac>;
    nvmem-cell-names = "mac-address";
    mdio {
        #address-cells = <1>;
        #size-cells = <0>;
        phy0ethernet-phy@7 {
            device_type = "ethernet-phy";
            reg = <7>;
        } ;
    } ;
};
0 Kudos
0 Replies