aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorCamelia Groza2021-06-11 15:28:08 +0300
committerPriyanka Jain2021-06-17 11:46:11 +0530
commit13ea307f799ba76164354325a0c76c11b7b9c494 (patch)
tree83a43c11ad70de1a5b33ca46161392013a92f0bd /arch/powerpc
parent4e21a555c1dc2eacee9e3ad07f3b112c20b0f7a2 (diff)
board: freescale: t208xrdb: add a config option for rev D dts fixups
Under DM, we rely on u-boot's device tree to provide the correct PHY addresses. The board_fix_fdt callback is intended to be used for device tree fixups before relocation. Unfortunately, this isn't an option when booting from flash since the device tree isn't writable before relocation. This patch introduces the CONFIG_T2080RDB_REV_D option to signal that a board revision D or up is the target. The config option is used to set the correct Aquantia PHY address in the board's u-boot device tree. Defconfig files with the option enable explicitly are added for convenience. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/dts/t2080rdb.dts7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/dts/t2080rdb.dts b/arch/powerpc/dts/t2080rdb.dts
index 25f8c978c6d..4de814ea8d9 100644
--- a/arch/powerpc/dts/t2080rdb.dts
+++ b/arch/powerpc/dts/t2080rdb.dts
@@ -77,10 +77,17 @@
reg = <0x0>;
};
+#ifdef CONFIG_T2080RDB_REV_D
+ xg_aq1202_phy4: ethernet-phy@8 {
+ compatible = "ethernet-phy-ieee802.3-c45";
+ reg = <0x8>;
+ };
+#else
xg_aq1202_phy4: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x1>;
};
+#endif
};
};
};