]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: imx6: Fix broken DT path in DH board file
authorPhilip Oberfichtner <pro@denx.de>
Fri, 20 May 2022 08:46:19 +0000 (10:46 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 20 May 2022 10:36:48 +0000 (12:36 +0200)
In the DH electronics iMX6 board file fix the outdated eeprom path by
using a DT label instead.

The label has been newly created for all iMX6QDL DHCOM boards.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Philip Oberfichtner <pro@denx.de>
arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
board/dhelectronics/dh_imx6/dh_imx6.c

index 4c3b5e82d61b358f544f3d884ccb32b6160fb467..91545ab6e91bd6f227cb73b86b88f9617fb80ffa 100644 (file)
@@ -3,6 +3,17 @@
  * Copyright (C) 2020 Harald Seiler <hws@denx.de>
  */
 
+/ {
+       aliases {
+               eeprom0 = &eeprom0;
+       };
+};
+
+&i2c3 {
+       eeprom0: eeprom@50 {
+       };
+};
+
 &reg_usb_otg_vbus {
        gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>;
        enable-active-high;
index 2969e90a707dc2c7e03b0eef93dcacf68b7d35c8..6059f96e806a15d0bc1f3a44154370b8d9345bc3 100644 (file)
@@ -100,9 +100,9 @@ static int setup_dhcom_mac_from_fuse(void)
                return 0;
        }
 
-       eeprom = ofnode_path("/soc/aips-bus@2100000/i2c@21a8000/eeprom@50");
+       eeprom = ofnode_get_aliases_node("eeprom0");
        if (!ofnode_valid(eeprom)) {
-               printf("Invalid hardware path to EEPROM!\n");
+               printf("Can't find eeprom0 alias!\n");
                return -ENODEV;
        }