summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/imx53-tx53.dtsi
diff options
context:
space:
mode:
authorMarco Franchi <marco.franchi@nxp.com>2017-10-26 18:25:14 +0300
committerShawn Guo <shawnguo@kernel.org>2017-12-26 11:15:44 +0300
commitfaee0fe2e2ec540977c7080a68da87c39e1fe182 (patch)
tree635467443c0ba3586602dc5ed469a6cc2153068e /arch/arm/boot/dts/imx53-tx53.dtsi
parent85f8ee78ab72451ab8ba655dca566bdbbca595c6 (diff)
downloadlinux-faee0fe2e2ec540977c7080a68da87c39e1fe182.tar.xz
ARM: dts: imx53-tx53: Fix 'ethernet-phy@0' node with unit name and no reg property
The following build warning is seen with W=1: Warning (unit_address_vs_reg): Node /soc/aips@60000000/ethernet@63fec000/ethernet-phy@0 has a unit name, but no reg property Fix this warning by adding reg property from such node and, consequently, includes a mdio node into the fec node, with the 'address-cells' and 'size-cells' to avoid these other following warnings: Warning (reg_format): "reg" property in /soc/aips@60000000/ethernet@63fec000/ethernet-phy@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/aips@60000000/ethernet@63fec000/ethernet-phy@0 Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/aips@60000000/ethernet@63fec000/ethernet-phy@0 Signed-off-by: Marco Franchi <marco.franchi@nxp.com> Tested-by: Lothar Waßmann <LW@karo-electronics.de> Acked-by: Lothar Waßmann <LW@karo-electronics.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx53-tx53.dtsi')
-rw-r--r--arch/arm/boot/dts/imx53-tx53.dtsi14
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/imx53-tx53.dtsi b/arch/arm/boot/dts/imx53-tx53.dtsi
index 71b58b6933e1..a22e461fc168 100644
--- a/arch/arm/boot/dts/imx53-tx53.dtsi
+++ b/arch/arm/boot/dts/imx53-tx53.dtsi
@@ -225,10 +225,16 @@
mac-address = [000000000000]; /* placeholder; will be overwritten by bootloader */
status = "okay";
- phy0: ethernet-phy@0 {
- interrupt-parent = <&gpio2>;
- interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
- device_type = "ethernet-phy";
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ interrupt-parent = <&gpio2>;
+ interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
+ device_type = "ethernet-phy";
+ };
};
};