ARM: update imx_v7_defconfig
Subsystems (3)
PATCH 1/4 ARM: update imx_v7_defconfig
Enable micrel phy
Signed-off-by Christian Hemp <[email protected]>
--- arch/arm/configs/imx_v7_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v7_defconfig +1 -0
@@ -107,6 +107,7 @@ CONFIG_OFDEVICE=y CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_DRIVER_NET_FEC_IMX=y CONFIG_AT803X_PHY=y +CONFIG_MICREL_PHY=y CONFIG_NET_USB=y CONFIG_NET_USB_ASIX=y CONFIG_NET_USB_SMSC95XX=y
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/4 ARM:pfla02: Move ethernet phy timings to dts
Move the ethernet phy timinigs to phyFLEX-i.MX6 devicetree.
Signed-off-by Christian Hemp <[email protected]>
--- arch/arm/boards/phytec-phyflex-imx6/board.c | 10 ---------- arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 13 +++++++++++++ 2 files changed, 13 insertions(+), 10 deletions(-)
arch/arm/boards/phytec-phyflex-imx6/board.c +0 -10
@@ -63,13 +63,6 @@ static void phyflex_err006282_workaround(void)gpio_direction_input (MX6_PHYFLEX_ERR006282 ); } -static int ksz9031rn_phy_fixup (struct phy_device *dev) -{ -phy_write_mmd_indirect (dev,8 ,2 ,0x039F ); - -return 0 ; -} -static int phytec_pfla02_init (void ) { if (!of_machine_is_compatible("phytec,imx6q-pfla02") &&
@@ -79,9 +72,6 @@ static int phytec_pfla02_init(void)phyflex_err006282_workaround (); -phy_register_fixup_for_uid (PHY_ID_KSZ9031 ,MICREL_PHY_ID_MASK , - ksz9031rn_phy_fixup); -imx6_bbu_nand_register_handler ("nand" ,BBU_HANDLER_FLAG_DEFAULT );switch (bootsource_get ()) {
arch/arm/dts/imx6qdl-phytec-pfla02.dtsi +13 -0
@@ -62,9 +62,22 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; + phy-handle = <ðphy>; phy-mode = "rgmii"; phy-reset-gpios = <&gpio3 23 0>; status = "disabled"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@3 { + reg = <3>; + + txc-skew-ps = <1680>; + rxc-skew-ps = <1860>; + }; + }; }; &gpmi {
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/4 imx6: add support for phyBOARD-ALCORE
In reply to Christian HempAdd support for phyBOARD-ALCORE which use a phyFLEX-i.MX6 (pfla02) module.
- i.MX6 Quad with 1GB RAM on two banks
Signed-off-by Christian Hemp <[email protected]>
--- arch/arm/boards/phytec-phyflex-imx6/lowlevel.c | 16 +++++++++++ arch/arm/dts/Makefile | 2 +- arch/arm/dts/imx6q-phytec-phyboard-alcore.dts | 38 ++++++++++++++++++++++++++ images/Makefile.imx | 5 ++++ 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6q-phytec-phyboard-alcore.dts
arch/arm/boards/phytec-phyflex-imx6/lowlevel.c +16 -0
@@ -57,6 +57,7 @@ static inline void setup_uart(void)extern char __dtb_imx6q_phytec_pbab01_start[];extern char __dtb_imx6dl_phytec_pbab01_start[];extern char __dtb_imx6s_phytec_pbab01_start[]; +extern char __dtb_imx6q_phytec_phyboard_alcore_start[];BAREBOX_IMD_TAG_STRING (phyflex_mx6_memsize_512M,IMD_TYPE_PARAMETER ,"memsize=512" ,0 );BAREBOX_IMD_TAG_STRING (phyflex_mx6_memsize_1G,IMD_TYPE_PARAMETER ,"memsize=1024" ,0 );
@@ -135,3 +136,18 @@ ENTRY_FUNCTION(start_phytec_pbab01s_512mb, r0, r1, r2)barebox_arm_entry (0x10000000 ,SZ_512M , fdt); } + +ENTRY_FUNCTION(start_phytec_phyboard_alcore_1gib, r0, r1, r2) +{ +void *fdt; + +imx6_cpu_lowlevel_init (); + +arm_setup_stack (0x00920000 -8 ); + +IMD_USED (phyflex_mx6_memsize_1G); + + fdt = __dtb_imx6q_phytec_phyboard_alcore_start -get_runtime_offset (); + +barebox_arm_entry (0x10000000 ,SZ_1G , fdt); +}
arch/arm/dts/Makefile +1 -1
@@ -28,7 +28,7 @@ pbl-dtb-$(CONFIG_MACH_PCAAXL3) += imx6q-phytec-pbaa03.dtb.o pbl-dtb-$(CONFIG_MACH_PCM038) += imx27-phytec-phycore-rdk.dtb.o pbl-dtb-$(CONFIG_MACH_PCM051) += am335x-phytec-phycore-som.dtb.o am335x-phytec-phycore-som-no-spi.dtb.o am335x-phytec-phycore-som-mlo.dtb.o pbl-dtb-$(CONFIG_MACH_PFLA03) += am335x-phytec-phyflex.dtb.o -pbl-dtb-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6s-phytec-pbab01.dtb.o imx6dl-phytec-pbab01.dtb.o imx6q-phytec-pbab01.dtb.o +pbl-dtb-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6s-phytec-pbab01.dtb.o imx6dl-phytec-pbab01.dtb.o imx6q-phytec-pbab01.dtb.o imx6q-phytec-phyboard-alcore.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += armada-xp-openblocks-ax3-4-bb.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += kirkwood-openblocks_a6-bb.dtb.o pbl-dtb-$(CONFIG_MACH_RADXA_ROCK) += rk3188-radxarock.dtb.o
arch/arm/dts/imx6q-phytec-phyboard-alcore.dts new file +38 -0
@@ -0,0 +1,38 @@ +/* + * Copyright 2014 Christian Hemp <[email protected]>, PHYTEC Messtechnik GmbH + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +#include "imx6q-phytec-pfla02.dtsi" + +/ { + model = "Phytec phyBOARD ALCORE"; + compatible = "phytec,imx6q-pbab02", "phytec,imx6q-pfla02", "fsl,imx6q"; + + chosen { + stdout-path = &uart4; + }; +}; + +ðphy { + max-speed = <100>; +}; + +&fec { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&usdhc3 { + status = "okay"; +};
images/Makefile.imx +5 -0
@@ -115,6 +115,11 @@ CFG_start_phytec_pbab01s_512mb.pblx.imximg = $(board)/phytec-phyflex-imx6/flash- FILE_barebox-phytec-pbab01s-512mb.img = start_phytec_pbab01s_512mb.pblx.imximg image-$(CONFIG_MACH_PHYTEC_PFLA02) += barebox-phytec-pbab01s-512mb.img +pblx-$(CONFIG_MACH_PHYTEC_PFLA02) += start_phytec_phyboard_alcore_1gib +CFG_start_phytec_phyboard_alcore_1gib.pblx.imximg = $(board)/phytec-phyflex-imx6/flash-header-phytec-pfla02-1gib.imxcfg +FILE_barebox-phytec-phyboard-alcore-1gib.img = start_phytec_phyboard_alcore_1gib.pblx.imximg +image-$(CONFIG_MACH_PHYTEC_PFLA02) += barebox-phytec-phyboard-alcore-1gib.img + pblx-$(CONFIG_MACH_DFI_FS700_M60) += start_imx6dl_dfi_fs700_m60_6s CFG_start_imx6dl_dfi_fs700_m60_6s.pblx.imximg = $(board)/dfi-fs700-m60/flash-header-fs700-m60-6s.imxcfg FILE_barebox-dfi-fs700-m60-6s.img = start_imx6dl_dfi_fs700_m60_6s.pblx.imximg
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/4 imx6: Add support for phyBOARD-SUBRA
In reply to Christian HempAdd support for phyBOARD-SUBRA which use a phyFLEX-i.MX6 (pfla02) module.
- i.MX6 SOLO with 512MB RAM
Signed-off-by Christian Hemp <[email protected]>
--- arch/arm/boards/phytec-phyflex-imx6/lowlevel.c | 16 ++++++++++++ arch/arm/dts/Makefile | 2 +- arch/arm/dts/imx6dl-phytec-phyboard-subra.dts | 34 ++++++++++++++++++++++++++ images/Makefile.imx | 5 ++++ 4 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6dl-phytec-phyboard-subra.dts
arch/arm/boards/phytec-phyflex-imx6/lowlevel.c +16 -0
@@ -58,6 +58,7 @@ extern char __dtb_imx6q_phytec_pbab01_start[];extern char __dtb_imx6dl_phytec_pbab01_start[];extern char __dtb_imx6s_phytec_pbab01_start[];extern char __dtb_imx6q_phytec_phyboard_alcore_start[]; +extern char __dtb_imx6dl_phytec_phyboard_subra_start[];BAREBOX_IMD_TAG_STRING (phyflex_mx6_memsize_512M,IMD_TYPE_PARAMETER ,"memsize=512" ,0 );BAREBOX_IMD_TAG_STRING (phyflex_mx6_memsize_1G,IMD_TYPE_PARAMETER ,"memsize=1024" ,0 );
@@ -151,3 +152,18 @@ ENTRY_FUNCTION(start_phytec_phyboard_alcore_1gib, r0, r1, r2)barebox_arm_entry (0x10000000 ,SZ_1G , fdt); } + +ENTRY_FUNCTION(start_phytec_phyboard_subra_512mb, r0, r1, r2) +{ +void *fdt; + +imx6_cpu_lowlevel_init (); + +arm_setup_stack (0x00920000 -8 ); + +IMD_USED (phyflex_mx6_memsize_512M); + + fdt = __dtb_imx6dl_phytec_phyboard_subra_start -get_runtime_offset (); + +barebox_arm_entry (0x10000000 ,SZ_512M , fdt); +}
arch/arm/dts/Makefile +1 -1
@@ -28,7 +28,7 @@ pbl-dtb-$(CONFIG_MACH_PCAAXL3) += imx6q-phytec-pbaa03.dtb.o pbl-dtb-$(CONFIG_MACH_PCM038) += imx27-phytec-phycore-rdk.dtb.o pbl-dtb-$(CONFIG_MACH_PCM051) += am335x-phytec-phycore-som.dtb.o am335x-phytec-phycore-som-no-spi.dtb.o am335x-phytec-phycore-som-mlo.dtb.o pbl-dtb-$(CONFIG_MACH_PFLA03) += am335x-phytec-phyflex.dtb.o -pbl-dtb-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6s-phytec-pbab01.dtb.o imx6dl-phytec-pbab01.dtb.o imx6q-phytec-pbab01.dtb.o imx6q-phytec-phyboard-alcore.dtb.o +pbl-dtb-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6s-phytec-pbab01.dtb.o imx6dl-phytec-pbab01.dtb.o imx6q-phytec-pbab01.dtb.o imx6q-phytec-phyboard-alcore.dtb.o imx6dl-phytec-phyboard-subra.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += armada-xp-openblocks-ax3-4-bb.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += kirkwood-openblocks_a6-bb.dtb.o pbl-dtb-$(CONFIG_MACH_RADXA_ROCK) += rk3188-radxarock.dtb.o
arch/arm/dts/imx6dl-phytec-phyboard-subra.dts new file +34 -0
@@ -0,0 +1,34 @@ +/* + * Copyright 2014 Christian Hemp <[email protected]>, PHYTEC Messtechnik GmbH + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +#include "imx6s-phytec-pfla02.dtsi" + +/ { + model = "Phytec phyBOARD SUBRA"; + compatible = "phytec,imx6dl-pbab05", "phytec,imx6s-pfla02", "fsl,imx6dl"; + + chosen { + stdout-path = &uart4; + }; +}; + +&fec { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&usdhc3 { + status = "okay"; +};
images/Makefile.imx +5 -0
@@ -120,6 +120,11 @@ CFG_start_phytec_phyboard_alcore_1gib.pblx.imximg = $(board)/phytec-phyflex-imx6 FILE_barebox-phytec-phyboard-alcore-1gib.img = start_phytec_phyboard_alcore_1gib.pblx.imximg image-$(CONFIG_MACH_PHYTEC_PFLA02) += barebox-phytec-phyboard-alcore-1gib.img +pblx-$(CONFIG_MACH_PHYTEC_PFLA02) += start_phytec_phyboard_subra_512mb +CFG_start_phytec_phyboard_subra_512mb.pblx.imximg = $(board)/phytec-phyflex-imx6/flash-header-phytec-pfla02s-512mb.imxcfg +FILE_barebox-phytec-phyboard-subra-512mb.img = start_phytec_phyboard_subra_512mb.pblx.imximg +image-$(CONFIG_MACH_PHYTEC_PFLA02) += barebox-phytec-phyboard-subra-512mb.img + pblx-$(CONFIG_MACH_DFI_FS700_M60) += start_imx6dl_dfi_fs700_m60_6s CFG_start_imx6dl_dfi_fs700_m60_6s.pblx.imximg = $(board)/dfi-fs700-m60/flash-header-fs700-m60-6s.imxcfg FILE_barebox-dfi-fs700-m60-6s.img = start_imx6dl_dfi_fs700_m60_6s.pblx.imximg
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 6 lines · Christian Hemp
Enable micrel phy
Signed-off-by Christian Hemp <[email protected]>--- arch/arm/configs/imx_v7_defconfig | 1 + 1 file changed, 1 insertion(+)
Applied all, thanks
Sascha
Quoted 22 lines
arch/arm/configs/imx_v7_defconfig +1
-0@@ -107,6 +107,7 @@ CONFIG_OFDEVICE=y CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_DRIVER_NET_FEC_IMX=y CONFIG_AT803X_PHY=y +CONFIG_MICREL_PHY=y CONFIG_NET_USB=y CONFIG_NET_USB_ASIX=y CONFIG_NET_USB_SMSC95XX=ySignature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox