public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Philip Oberfichtner <pro@denx.de>
To: u-boot@lists.denx.de
Cc: Fabio Estevam <festevam@denx.de>,
	Christoph Niedermaier <cniedermaier@dh-electronics.com>,
	Stefano Babic <sbabic@denx.de>, Peng Fan <peng.fan@nxp.com>,
	Philip Oberfichtner <pro@denx.de>,
	Andreas Geisreiter <ageisreiter@dh-electronics.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
	Tom Rini <trini@konsulko.com>,
	u-boot@dh-electronics.com
Subject: [PATCH 1/8] ARM: imx6: Fix broken DT path in DH board file
Date: Thu, 19 May 2022 13:08:30 +0200	[thread overview]
Message-ID: <20220519110837.245488-2-pro@denx.de> (raw)
In-Reply-To: <20220519110837.245488-1-pro@denx.de>

In the dhelectronics 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.

Signed-off-by: Philip Oberfichtner <pro@denx.de>
---

 arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi | 11 +++++++++++
 board/dhelectronics/dh_imx6/dh_imx6.c  |  4 ++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi b/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
index 4c3b5e82d6..91545ab6e9 100644
--- a/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
+++ b/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
@@ -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;
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
index 2969e90a70..6059f96e80 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6.c
@@ -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;
 	}
 
-- 
2.34.1


  reply	other threads:[~2022-05-19 11:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-19 11:08 [PATCH 0/8] ARM: imx: Add support for iMX6QDL DHCOM DRC02 and DH picoITX Philip Oberfichtner
2022-05-19 11:08 ` Philip Oberfichtner [this message]
2022-05-19 12:39   ` [PATCH 1/8] ARM: imx6: Fix broken DT path in DH board file Marek Vasut
2022-05-19 11:08 ` [PATCH 2/8] ARM: dts: imx: Migrate iMX6QDL DRC02 DTs from Linux Philip Oberfichtner
2022-05-19 11:08 ` [PATCH 3/8] ARM: dts: imx: Migrate iMX6QDL picoITX " Philip Oberfichtner
2022-05-19 11:08 ` [PATCH 4/8] ARM: imx6: Remove CONFIG_FEC_MXC_PHYADDR from DH header Philip Oberfichtner
2022-05-19 11:08 ` [PATCH 5/8] ARM: dts: imx: Simplify fec node for iMX6QDL DHCOM boards Philip Oberfichtner
2022-05-19 12:40   ` Marek Vasut
2022-05-19 11:08 ` [PATCH 6/8] ARM: dts: imx: Configure FEC for iMX6QDL picoITX Philip Oberfichtner
2022-05-19 12:41   ` Marek Vasut
2022-05-19 11:08 ` [PATCH 7/8] ARM: dts: imx: Configure FEC for iMX6QDL DRC02 Philip Oberfichtner
2022-05-19 12:42   ` Marek Vasut
2022-05-19 11:08 ` [PATCH 8/8] ARM: imx6: Adapt device tree selection in DH board file Philip Oberfichtner
2022-05-19 12:48   ` Fabio Estevam
2022-05-19 12:57   ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220519110837.245488-2-pro@denx.de \
    --to=pro@denx.de \
    --cc=ageisreiter@dh-electronics.de \
    --cc=cniedermaier@dh-electronics.com \
    --cc=festevam@denx.de \
    --cc=festevam@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@dh-electronics.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox