ARM: dts: armada-388-clearfog: remove duplicate mdio entry
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
The clearfog DTS should not be defining the on-board phy, this device is located on the microsom. Remove the duplicated definition.
--- arch/arm/boot/dts/armada-388-clearfog.dts | 16 ---------------- 1 file changed, 16 deletions(-)
arch/arm/boot/dts/armada-388-clearfog.dts +0 -16
@@ -208,22 +208,6 @@ status = "okay"; }; - mdio at 72004 { - pinctrl-0 = <&mdio_pins>; - pinctrl-names = "default"; - - phy_dedicated: ethernet-phy at 0 { - /* - * Annoyingly, the marvell phy driver - * configures the LED register, rather - * than preserving reset-loaded setting. - * We undo that rubbish here. - */ - marvell,reg-init = <3 16 0 0x101e>; - reg = <0>; - }; - }; - pinctrl at 18000 { clearfog_dsa0_clk_pins: clearfog-dsa0-clk-pins { marvell,pins = "mpp46";
Signature · 1 line
2.1.0
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
Quoted 5 lines · Russell King
The clearfog DTS should not be defining the on-board phy, this device is located on the microsom. Remove the duplicated definition.
Reported-by Jon Nettleton <[email protected]>Signed-off-by Russell King <[email protected]>
Andrew
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
Hi Russell,
Quoted 8 lines · Andrew Lunn
Quoted 5 lines · Russell King
The clearfog DTS should not be defining the on-board phy, this device is located on the microsom. Remove the duplicated definition.
Reported-by Jon Nettleton <[email protected]>Signed-off-by Russell King <[email protected]>Reviewed-by Andrew Lunn <[email protected]>
Applied on mvebu/dt
Thanks,
Gregory
Quoted 2 lines
Andrew
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
In reply to Russell KingQuoted 2 lines · Russell King
The clearfog DTS should not be defining the on-board phy, this device is located on the microsom. Remove the duplicated definition.
Hi Russell
While reviewing this patch i noticed that the microsom .dtsi file has
pinctrl at 18000 {
microsom_phy_clk_pins: microsom-phy-clk-pins {
marvell,pins = "mpp45";
marvell,function = "ref";
};
};The armada-38x.dtsi has
ref_clk0_pins: ref-clk-pins-0 {
marvell,pins = "mpp45";
marvell,function = "ref";
};which you could reference rather then defining it yourself.
Andrew
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
Quoted 8 lines · Andrew Lunn
The
armada-38x.dtsihasref_clk0_pins: ref-clk-pins-0 { marvell,pins = "mpp45"; marvell,function = "ref"; };which you could reference rather then defining it yourself.
Weren't these going to be deleted from the main SoC dtsi files, eventually? I thought that was the idea, to prevent cluttering up the .dtb files with nodes which aren't ever used.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
Quoted 8 lines · Russell King - ARM Linux
Quoted 7 lines · Andrew Lunn
The
armada-38x.dtsihasref_clk0_pins: ref-clk-pins-0 { marvell,pins = "mpp45"; marvell,function = "ref"; };
Quoted 5 lines
Quoted 1 line
which you could reference rather then defining it yourself.
Weren't these going to be deleted from the main SoC dtsi files, eventually? I thought that was the idea, to prevent cluttering up the .dtb files with nodes which aren't ever used.
I've not heard they are going to be removed....
Having work on mvebu, and a Freescale Vybrid board, i see two different styles. mvebu defines all the common pinctrl values in the .dtsi file, so making the .dts file pretty minimalist. For the vybrid board there was nothing in the .dtsi file, the dts file is huge, and i made at least one error, missing at required pin which took me a while to debug.
I would also say cluttered .dtb because of unused nodes it a compiler issue. Why does it not optimise them out?
Andrew
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
Quoted 24 lines · Andrew Lunn
Quoted 8 lines · Russell King - ARM Linux
Quoted 7 lines · Andrew Lunn
The
armada-38x.dtsihasref_clk0_pins: ref-clk-pins-0 { marvell,pins = "mpp45"; marvell,function = "ref"; };Quoted 5 lines
Quoted 1 line
which you could reference rather then defining it yourself.
Weren't these going to be deleted from the main SoC dtsi files, eventually? I thought that was the idea, to prevent cluttering up the .dtb files with nodes which aren't ever used.
I've not heard they are going to be removed....
Having work on mvebu, and a Freescale Vybrid board, i see two different styles. mvebu defines all the common pinctrl values in the .dtsi file, so making the .dts file pretty minimalist. For the vybrid board there was nothing in the .dtsi file, the dts file is huge, and i made at least one error, missing at required pin which took me a while to debug.
Quoted 2 lines
I would also say cluttered .dtb because of unused nodes it a compiler issue. Why does it not optimise them out?
How does it know that the pinmux nodes (which are nodes in their own right, just like any node specifying a real device) are "unused" ?
It doesn't - there's no way that the compiler can possibly know that these aren't going to be iterated over as a child of the pinctrl at 18000 node.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.
PATCH 1/1 ARM: dts: armada-388-clearfog: remove duplicate mdio entry
Quoted 25 lines · Russell King - ARM Linux
Quoted 24 lines · Andrew Lunn
Quoted 8 lines · Russell King - ARM Linux
Quoted 7 lines · Andrew Lunn
The
armada-38x.dtsihasref_clk0_pins: ref-clk-pins-0 { marvell,pins = "mpp45"; marvell,function = "ref"; };Quoted 5 lines
Quoted 1 line
which you could reference rather then defining it yourself.
Weren't these going to be deleted from the main SoC dtsi files, eventually? I thought that was the idea, to prevent cluttering up the .dtb files with nodes which aren't ever used.
I've not heard they are going to be removed....
Having work on mvebu, and a Freescale Vybrid board, i see two different styles. mvebu defines all the common pinctrl values in the .dtsi file, so making the .dts file pretty minimalist. For the vybrid board there was nothing in the .dtsi file, the dts file is huge, and i made at least one error, missing at required pin which took me a while to debug.
Quoted 5 lines
Quoted 2 lines
I would also say cluttered .dtb because of unused nodes it a compiler issue. Why does it not optimise them out?
How does it know that the pinmux nodes (which are nodes in their own right, just like any node specifying a real device) are "unused" ?
Yes, you are right. A phandle pointing to it shows it is used, but not being references via a phandle does not mean it is unused.
Andrew