* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 15:27 ` Russell King 0 siblings, 0 replies; 16+ messages in thread From: Russell King @ 2016-07-10 15:27 UTC (permalink / raw) To: Andrew Lunn, Jason Cooper Cc: Jon Nettleton, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA 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 <jon-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> Signed-off-by: Russell King <rmk+kernel-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org> --- arch/arm/boot/dts/armada-388-clearfog.dts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/arch/arm/boot/dts/armada-388-clearfog.dts b/arch/arm/boot/dts/armada-388-clearfog.dts index 2e9246f749a2..a6dfa8dc3423 100644 --- a/arch/arm/boot/dts/armada-388-clearfog.dts +++ b/arch/arm/boot/dts/armada-388-clearfog.dts @@ -208,22 +208,6 @@ status = "okay"; }; - mdio@72004 { - pinctrl-0 = <&mdio_pins>; - pinctrl-names = "default"; - - phy_dedicated: ethernet-phy@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@18000 { clearfog_dsa0_clk_pins: clearfog-dsa0-clk-pins { marvell,pins = "mpp46"; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 15:27 ` Russell King 0 siblings, 0 replies; 16+ messages in thread From: Russell King @ 2016-07-10 15:27 UTC (permalink / raw) To: linux-arm-kernel 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 <jon@solid-run.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> --- arch/arm/boot/dts/armada-388-clearfog.dts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/arch/arm/boot/dts/armada-388-clearfog.dts b/arch/arm/boot/dts/armada-388-clearfog.dts index 2e9246f749a2..a6dfa8dc3423 100644 --- a/arch/arm/boot/dts/armada-388-clearfog.dts +++ b/arch/arm/boot/dts/armada-388-clearfog.dts @@ -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"; -- 2.1.0 ^ permalink raw reply related [flat|nested] 16+ messages in thread
[parent not found: <E1bMGdu-00005c-Dy-eh5Bv4kxaXIk46pC+1QYvQNdhmdF6hFW@public.gmane.org>]
* Re: [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry 2016-07-10 15:27 ` Russell King @ 2016-07-10 20:32 ` Andrew Lunn -1 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 20:32 UTC (permalink / raw) To: Russell King Cc: Jason Cooper, Jon Nettleton, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA On Sun, Jul 10, 2016 at 04:27:38PM +0100, Russell King wrote: > 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 <jon-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> > Signed-off-by: Russell King <rmk+kernel-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org> Reviewed-by: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org> Andrew -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 20:32 ` Andrew Lunn 0 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 20:32 UTC (permalink / raw) To: linux-arm-kernel On Sun, Jul 10, 2016 at 04:27:38PM +0100, Russell King wrote: > 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 <jon@solid-run.com> > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <20160710203220.GA26397-g2DYL2Zd6BY@public.gmane.org>]
* Re: [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry 2016-07-10 20:32 ` Andrew Lunn @ 2016-07-11 16:05 ` Gregory CLEMENT -1 siblings, 0 replies; 16+ messages in thread From: Gregory CLEMENT @ 2016-07-11 16:05 UTC (permalink / raw) To: Russell King Cc: Andrew Lunn, Jason Cooper, Jon Nettleton, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA Hi Russell, On dim., juil. 10 2016, Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org> wrote: > On Sun, Jul 10, 2016 at 04:27:38PM +0100, Russell King wrote: >> 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 <jon-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> >> Signed-off-by: Russell King <rmk+kernel-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org> > > Reviewed-by: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org> Applied on mvebu/dt Thanks, Gregory > > Andrew -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-11 16:05 ` Gregory CLEMENT 0 siblings, 0 replies; 16+ messages in thread From: Gregory CLEMENT @ 2016-07-11 16:05 UTC (permalink / raw) To: linux-arm-kernel Hi Russell, On dim., juil. 10 2016, Andrew Lunn <andrew@lunn.ch> wrote: > On Sun, Jul 10, 2016 at 04:27:38PM +0100, Russell King wrote: >> 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 <jon@solid-run.com> >> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> > > Reviewed-by: Andrew Lunn <andrew@lunn.ch> Applied on mvebu/dt Thanks, Gregory > > Andrew -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry 2016-07-10 15:27 ` Russell King @ 2016-07-10 20:37 ` Andrew Lunn -1 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 20:37 UTC (permalink / raw) To: Russell King Cc: Jason Cooper, Jon Nettleton, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA On Sun, Jul 10, 2016 at 04:27:38PM +0100, Russell King wrote: > 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@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 20:37 ` Andrew Lunn 0 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 20:37 UTC (permalink / raw) To: linux-arm-kernel On Sun, Jul 10, 2016 at 04:27:38PM +0100, Russell King wrote: > 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 ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <20160710203751.GB26397-g2DYL2Zd6BY@public.gmane.org>]
* Re: [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry 2016-07-10 20:37 ` Andrew Lunn @ 2016-07-10 20:45 ` Russell King - ARM Linux -1 siblings, 0 replies; 16+ messages in thread From: Russell King - ARM Linux @ 2016-07-10 20:45 UTC (permalink / raw) To: Andrew Lunn Cc: Jason Cooper, Jon Nettleton, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > 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. 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. -- 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. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 20:45 ` Russell King - ARM Linux 0 siblings, 0 replies; 16+ messages in thread From: Russell King - ARM Linux @ 2016-07-10 20:45 UTC (permalink / raw) To: linux-arm-kernel On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > 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. 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. -- 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. ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <20160710204546.GS1041-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org>]
* Re: [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry 2016-07-10 20:45 ` Russell King - ARM Linux @ 2016-07-10 22:27 ` Andrew Lunn -1 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 22:27 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Jason Cooper, Jon Nettleton, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA On Sun, Jul 10, 2016 at 09:45:46PM +0100, Russell King - ARM Linux wrote: > On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > > 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. > > 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 22:27 ` Andrew Lunn 0 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 22:27 UTC (permalink / raw) To: linux-arm-kernel On Sun, Jul 10, 2016 at 09:45:46PM +0100, Russell King - ARM Linux wrote: > On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > > 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. > > 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 ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <20160710222743.GN8426-g2DYL2Zd6BY@public.gmane.org>]
* Re: [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry 2016-07-10 22:27 ` Andrew Lunn @ 2016-07-10 22:38 ` Russell King - ARM Linux -1 siblings, 0 replies; 16+ messages in thread From: Russell King - ARM Linux @ 2016-07-10 22:38 UTC (permalink / raw) To: Andrew Lunn Cc: Jason Cooper, Jon Nettleton, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA On Mon, Jul 11, 2016 at 12:27:43AM +0200, Andrew Lunn wrote: > On Sun, Jul 10, 2016 at 09:45:46PM +0100, Russell King - ARM Linux wrote: > > On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > > > 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. > > > > 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? 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@18000 node. -- 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. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 22:38 ` Russell King - ARM Linux 0 siblings, 0 replies; 16+ messages in thread From: Russell King - ARM Linux @ 2016-07-10 22:38 UTC (permalink / raw) To: linux-arm-kernel On Mon, Jul 11, 2016 at 12:27:43AM +0200, Andrew Lunn wrote: > On Sun, Jul 10, 2016 at 09:45:46PM +0100, Russell King - ARM Linux wrote: > > On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > > > 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. > > > > 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? 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. -- 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. ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <20160710223804.GT1041-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org>]
* Re: [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry 2016-07-10 22:38 ` Russell King - ARM Linux @ 2016-07-10 22:53 ` Andrew Lunn -1 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 22:53 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Jason Cooper, Jon Nettleton, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Mark Rutland, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA On Sun, Jul 10, 2016 at 11:38:04PM +0100, Russell King - ARM Linux wrote: > On Mon, Jul 11, 2016 at 12:27:43AM +0200, Andrew Lunn wrote: > > On Sun, Jul 10, 2016 at 09:45:46PM +0100, Russell King - ARM Linux wrote: > > > On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > > > > 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. > > > > > > 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? > > 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry @ 2016-07-10 22:53 ` Andrew Lunn 0 siblings, 0 replies; 16+ messages in thread From: Andrew Lunn @ 2016-07-10 22:53 UTC (permalink / raw) To: linux-arm-kernel On Sun, Jul 10, 2016 at 11:38:04PM +0100, Russell King - ARM Linux wrote: > On Mon, Jul 11, 2016 at 12:27:43AM +0200, Andrew Lunn wrote: > > On Sun, Jul 10, 2016 at 09:45:46PM +0100, Russell King - ARM Linux wrote: > > > On Sun, Jul 10, 2016 at 10:37:51PM +0200, Andrew Lunn wrote: > > > > 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. > > > > > > 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? > > 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 ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2016-07-11 16:05 UTC | newest] Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-07-10 15:27 [PATCH] ARM: dts: armada-388-clearfog: remove duplicate mdio entry Russell King 2016-07-10 15:27 ` Russell King [not found] ` <E1bMGdu-00005c-Dy-eh5Bv4kxaXIk46pC+1QYvQNdhmdF6hFW@public.gmane.org> 2016-07-10 20:32 ` Andrew Lunn 2016-07-10 20:32 ` Andrew Lunn [not found] ` <20160710203220.GA26397-g2DYL2Zd6BY@public.gmane.org> 2016-07-11 16:05 ` Gregory CLEMENT 2016-07-11 16:05 ` Gregory CLEMENT 2016-07-10 20:37 ` Andrew Lunn 2016-07-10 20:37 ` Andrew Lunn [not found] ` <20160710203751.GB26397-g2DYL2Zd6BY@public.gmane.org> 2016-07-10 20:45 ` Russell King - ARM Linux 2016-07-10 20:45 ` Russell King - ARM Linux [not found] ` <20160710204546.GS1041-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org> 2016-07-10 22:27 ` Andrew Lunn 2016-07-10 22:27 ` Andrew Lunn [not found] ` <20160710222743.GN8426-g2DYL2Zd6BY@public.gmane.org> 2016-07-10 22:38 ` Russell King - ARM Linux 2016-07-10 22:38 ` Russell King - ARM Linux [not found] ` <20160710223804.GT1041-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org> 2016-07-10 22:53 ` Andrew Lunn 2016-07-10 22:53 ` Andrew Lunn
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.