mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface
@ 2015-11-03  7:51 Teresa Remmet
  2015-11-03  7:51 ` [PATCH 2/2] ARM: am335x_defconfig: Enable SMSC phy driver Teresa Remmet
  2015-11-05  8:00 ` [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Teresa Remmet @ 2015-11-03  7:51 UTC (permalink / raw)
  To: barebox

There are phyFLEX modules with only the first eth phy mounted.
As barebox only supports the first interface anyway, disable
the second interface for now.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
 arch/arm/dts/am335x-phytec-phyflex-som.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/am335x-phytec-phyflex-som.dtsi b/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
index 6d488fa..c60943c 100644
--- a/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
+++ b/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
@@ -224,12 +224,13 @@
 	phy_id = <&davinci_mdio>, <2>;
 	phy-mode = "rmii";
 	dual_emac_res_vlan = <2>;
+	status = "disabled";
 };
 
 &mac {
 	pinctrl-names = "default";
-	pinctrl-0 = <&emac_rgmii1_pins &emac_rmii2_pins>;
-	dual_emac;
+	slaves = <1>;
+	pinctrl-0 = <&emac_rgmii1_pins>;
 	status = "okay";
 };
 
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ARM: am335x_defconfig: Enable SMSC phy driver
  2015-11-03  7:51 [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface Teresa Remmet
@ 2015-11-03  7:51 ` Teresa Remmet
  2015-11-05  8:00 ` [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Teresa Remmet @ 2015-11-03  7:51 UTC (permalink / raw)
  To: barebox

The phyCORE-AM335x has a SMSC phy mounted. Enabled the driver for it.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
 arch/arm/configs/am335x_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig
index 234042f..9563865 100644
--- a/arch/arm/configs/am335x_defconfig
+++ b/arch/arm/configs/am335x_defconfig
@@ -88,12 +88,12 @@ CONFIG_NET=y
 CONFIG_NET_NFS=y
 CONFIG_NET_NETCONSOLE=y
 CONFIG_NET_RESOLV=y
-CONFIG_OFDEVICE=y
 CONFIG_OF_BAREBOX_DRIVERS=y
 CONFIG_DRIVER_SERIAL_NS16550=y
 CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
 CONFIG_DRIVER_NET_CPSW=y
 CONFIG_MICREL_PHY=y
+CONFIG_SMSC_PHY=y
 CONFIG_NET_USB=y
 CONFIG_NET_USB_ASIX=y
 CONFIG_NET_USB_SMSC95XX=y
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface
  2015-11-03  7:51 [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface Teresa Remmet
  2015-11-03  7:51 ` [PATCH 2/2] ARM: am335x_defconfig: Enable SMSC phy driver Teresa Remmet
@ 2015-11-05  8:00 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2015-11-05  8:00 UTC (permalink / raw)
  To: Teresa Remmet; +Cc: barebox

On Tue, Nov 03, 2015 at 08:51:47AM +0100, Teresa Remmet wrote:
> There are phyFLEX modules with only the first eth phy mounted.
> As barebox only supports the first interface anyway, disable
> the second interface for now.
> 
> Signed-off-by: Teresa Remmet <t.remmet@phytec.de>

Applied, thanks

Sascha

> ---
>  arch/arm/dts/am335x-phytec-phyflex-som.dtsi | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/dts/am335x-phytec-phyflex-som.dtsi b/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
> index 6d488fa..c60943c 100644
> --- a/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
> +++ b/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
> @@ -224,12 +224,13 @@
>  	phy_id = <&davinci_mdio>, <2>;
>  	phy-mode = "rmii";
>  	dual_emac_res_vlan = <2>;
> +	status = "disabled";
>  };
>  
>  &mac {
>  	pinctrl-names = "default";
> -	pinctrl-0 = <&emac_rgmii1_pins &emac_rmii2_pins>;
> -	dual_emac;
> +	slaves = <1>;
> +	pinctrl-0 = <&emac_rgmii1_pins>;
>  	status = "okay";
>  };
>  
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-05  8:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-03  7:51 [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface Teresa Remmet
2015-11-03  7:51 ` [PATCH 2/2] ARM: am335x_defconfig: Enable SMSC phy driver Teresa Remmet
2015-11-05  8:00 ` [PATCH 1/2] dts: phyFLEX-AM335x: Disable second ethernet interface Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox