ARM: phytec-som-imx6: Add low cost variant for imx6dl phycore
Subsystems (3)
PATCH 1/8 ARM: phytec-som-imx6: Add low cost variant for imx6dl phycore
The phyCORE-i.MX 6Solo/DualLight is available with low-cost and full-featured phyBOARD-Mira. One crucial difference is the supported max. ethernet speed. On the full-featured Mira it is 1000 MBit/s but on the low-cost Mira it is only 100 MBit/s. To cover this difference two different images are necessary for low-cost and full-featured. Thus a low-cost variant is added for the phyCORE-i.MX 6Solo with NAND and the phyCORE-i.MX 6 DualLight with eMMC.
--- arch/arm/boards/phytec-som-imx6/lowlevel.c | 2 + arch/arm/dts/Makefile | 2 + arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 2 +- arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts | 65 ++++++++++++++++++++++ arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts | 57 +++++++++++++++++++ arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 2 +- images/Makefile.imx | 10 ++++ 7 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts create mode 100644 arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
arch/arm/boards/phytec-som-imx6/lowlevel.c +2 -0
@@ -109,8 +109,10 @@ PHYTEC_ENTRY(start_phytec_phyboard_subra_512mb_1bank, imx6dl_phytec_phyboard_subPHYTEC_ENTRY (start_phytec_phyboard_subra_1gib_1bank, imx6q_phytec_phyboard_subra,SZ_1G , false);PHYTEC_ENTRY (start_phytec_phycore_imx6dl_som_nand_256mb, imx6dl_phytec_phycore_som_nand,SZ_256M , true); +PHYTEC_ENTRY (start_phytec_phycore_imx6dl_som_lc_nand_256mb, imx6dl_phytec_phycore_som_lc_nand,SZ_256M , true);PHYTEC_ENTRY (start_phytec_phycore_imx6dl_som_nand_1gib, imx6dl_phytec_phycore_som_nand,SZ_1G , true);PHYTEC_ENTRY (start_phytec_phycore_imx6dl_som_emmc_1gib, imx6dl_phytec_phycore_som_emmc,SZ_1G , true); +PHYTEC_ENTRY (start_phytec_phycore_imx6dl_som_lc_emmc_1gib, imx6dl_phytec_phycore_som_lc_emmc,SZ_1G , true);PHYTEC_ENTRY (start_phytec_phycore_imx6q_som_nand_1gib, imx6q_phytec_phycore_som_nand,SZ_1G , true);PHYTEC_ENTRY (start_phytec_phycore_imx6qp_som_nand_1gib, imx6qp_phytec_phycore_som_nand,SZ_1G , true);PHYTEC_ENTRY (start_phytec_phycore_imx6q_som_emmc_1gib, imx6q_phytec_phycore_som_emmc,SZ_1G , true);
arch/arm/dts/Makefile +2 -0
@@ -63,7 +63,9 @@ pbl-dtb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += imx6q-phytec-pbaa03.dtb.o \ imx6q-phytec-phycore-som-emmc.dtb.o \ imx6qp-phytec-phycore-som-nand.dtb.o \ imx6dl-phytec-phycore-som-nand.dtb.o \ + imx6dl-phytec-phycore-som-lc-nand.dtb.o \ imx6dl-phytec-phycore-som-emmc.dtb.o \ + imx6dl-phytec-phycore-som-lc-emmc.dtb.o \ imx6ul-phytec-phycore-som.dtb.o \ imx6ull-phytec-phycore-som-lc.dtb.o \ imx6ull-phytec-phycore-som.dtb.o
arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts +1 -1
@@ -30,7 +30,7 @@ }; ðphy { - max-speed = <100>; + max-speed = <1000>; }; &fec {
arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts new file +65 -0
65 lines not on this page · raw message
arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts new file +57 -0
57 lines not on this page · raw message
arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts +1 -1
@@ -25,7 +25,7 @@ }; ðphy { - max-speed = <100>; + max-speed = <1000>; }; &fec {
images/Makefile.imx +10 -0
@@ -443,11 +443,21 @@ CFG_start_phytec_phycore_imx6dl_som_nand_1gib.pblb.imximg = $(board)/phytec-som- FILE_barebox-phytec-phycore-imx6dl-som-nand-1gib.img = start_phytec_phycore_imx6dl_som_nand_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-nand-1gib.img +pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6dl_som_lc_nand_256mb +CFG_start_phytec_phycore_imx6dl_som_lc_nand_256mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058dl-256mb.imxcfg +FILE_barebox-phytec-phycore-imx6dl-som-lc-nand-256mb.img = start_phytec_phycore_imx6dl_som_lc_nand_256mb.pblb.imximg +image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-lc-nand-256mb.img + pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6dl_som_emmc_1gib CFG_start_phytec_phycore_imx6dl_som_emmc_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg FILE_barebox-phytec-phycore-imx6dl-som-emmc-1gib.img = start_phytec_phycore_imx6dl_som_emmc_1gib.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-emmc-1gib.img +pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6dl_som_lc_emmc_1gib +CFG_start_phytec_phycore_imx6dl_som_lc_emmc_1gib.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058dl-1gib.imxcfg +FILE_barebox-phytec-phycore-imx6dl-som-lc-emmc-1gib.img = start_phytec_phycore_imx6dl_som_lc_emmc_1gib.pblb.imximg +image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6dl-som-lc-emmc-1gib.img + pblb-$(CONFIG_MACH_KONTRON_SAMX6I) += start_imx6q_samx6i CFG_start_imx6q_samx6i.pblb.imximg = $(board)/kontron-samx6i/flash-header-samx6i-quad.imxcfg FILE_barebox-imx6q-samx6i.img = start_imx6q_samx6i.pblb.imximg
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/8 ARM: dts: imx6qdl: phycore: Add state framework
From: Daniel Schultz <[email protected]>
Add the state framework with EEPROM backend.
--- arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 1 + arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts | 1 + arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts | 1 + arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 1 + arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts | 1 + arch/arm/dts/imx6q-phytec-phycore-som-nand.dts | 1 + arch/arm/dts/imx6qdl-phytec-state.dtsi | 81 ++++++++++++++++++++++ 7 files changed, 87 insertions(+) create mode 100644 arch/arm/dts/imx6qdl-phytec-state.dtsi
arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts +1 -0
@@ -15,6 +15,7 @@ #include <arm/imx6dl.dtsi> #include "imx6dl.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6qdl-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 DualLite/SOLO with eMMC";
arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts +1 -0
@@ -9,6 +9,7 @@ #include <arm/imx6dl.dtsi> #include "imx6dl.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6qdl-phytec-state.dtsi" / { model = "PHYTEC phyCORE-i.MX6 DualLite/SOLO with eMMC low-cost";
arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts +1 -0
@@ -9,6 +9,7 @@ #include <arm/imx6dl.dtsi> #include "imx6dl.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6qdl-phytec-state.dtsi" / { model = "PHYTEC phyCORE-i.MX6 Duallite/SOLO with NAND low-cost";
arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts +1 -0
@@ -14,6 +14,7 @@ #include <arm/imx6dl.dtsi> #include "imx6dl.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6qdl-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 Duallite/SOLO with NAND";
arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts +1 -0
@@ -14,6 +14,7 @@ #include <arm/imx6q.dtsi> #include "imx6q.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6qdl-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 Quad with eMMC";
arch/arm/dts/imx6q-phytec-phycore-som-nand.dts +1 -0
@@ -14,6 +14,7 @@ #include <arm/imx6q.dtsi> #include "imx6q.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6qdl-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 Quad with NAND";
arch/arm/dts/imx6qdl-phytec-state.dtsi new file +81 -0
81 lines not on this page · raw message
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/8 ARM: dts: imx6ul: phycore: Add eeprom label
In reply to Stefan RiedmuellerAdd a label for the EEPROM to be able to address it for the state framework.
--- arch/arm/dts/imx6ul-phytec-phycore-som.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/imx6ul-phytec-phycore-som.dtsi +1 -1
@@ -79,7 +79,7 @@ clock-frequency = <100000>; status = "disabled"; - eeprom@52 { + eeprom: eeprom@52 { compatible = "cat,24c32"; reg = <0x52>; };
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/8 ARM: dts: imx6ul: phycore: Add state framework
In reply to Stefan RiedmuellerFrom: Daniel Schultz <[email protected]>
Add the state framework with EEPROM backend.
--- arch/arm/dts/imx6ul-phytec-phycore-som.dts | 5 ++ arch/arm/dts/imx6ul-phytec-state.dtsi | 81 +++++++++++++++++++++++++++++ arch/arm/dts/imx6ull-phytec-phycore-som.dts | 5 ++ 3 files changed, 91 insertions(+) create mode 100644 arch/arm/dts/imx6ul-phytec-state.dtsi
arch/arm/dts/imx6ul-phytec-phycore-som.dts +5 -0
@@ -14,6 +14,7 @@ #include <arm/imx6ul.dtsi> #include "imx6ul-phytec-phycore-som.dtsi" +#include "imx6ul-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 Ultra Lite SOM";
@@ -32,6 +33,10 @@ status = "okay"; }; +&state { + status = "okay"; +}; + &uart1 { status = "okay"; };
arch/arm/dts/imx6ul-phytec-state.dtsi new file +81 -0
81 lines not on this page · raw message
arch/arm/dts/imx6ull-phytec-phycore-som.dts +5 -0
@@ -14,6 +14,7 @@ #include <arm/imx6ull.dtsi> #include "imx6ul-phytec-phycore-som.dtsi" +#include "imx6ul-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 ULL SOM";
@@ -32,6 +33,10 @@ status = "okay"; }; +&state { + status = "okay"; +}; + &uart1 { status = "okay"; };
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 5/8 ARM: imx6ul: phycore: Prepare for eMMC module
In reply to Stefan RiedmuellerPrepare for the new phyCORE-i.MX 6UL/ULL eMMC module by extending the dts filenames by their boot medium. Also add the boot medium to the compatible to be able to perform boot medium dependent setup code.
---
arch/arm/boards/phytec-som-imx6/board.c | 4 +-
arch/arm/boards/phytec-som-imx6/lowlevel.c | 6 +--
arch/arm/dts/Makefile | 6 +--
arch/arm/dts/imx6ul-phytec-phycore-som-nand.dts | 48 +++++++++++++++++++
arch/arm/dts/imx6ul-phytec-phycore-som.dts | 54 ----------------------
....dts => imx6ull-phytec-phycore-som-lc-nand.dts} | 6 +--
...som.dts => imx6ull-phytec-phycore-som-nand.dts} | 14 ++----
images/Makefile.imx | 28 +++++------
8 files changed, 77 insertions(+), 89 deletions(-)
create mode 100644 arch/arm/dts/imx6ul-phytec-phycore-som-nand.dts
delete mode 100644 arch/arm/dts/imx6ul-phytec-phycore-som.dts
rename arch/arm/dts/{imx6ull-phytec-phycore-som-lc.dts => imx6ull-phytec-phycore-som-lc-nand.dts} (70%)
rename arch/arm/dts/{imx6ull-phytec-phycore-som.dts => imx6ull-phytec-phycore-som-nand.dts} (50%)arch/arm/boards/phytec-som-imx6/board.c +2 -2
@@ -190,7 +190,7 @@ static int physom_imx6_devices_init(void) default_environment_path ="/chosen/environment-spinor" ; default_envdev ="SPI NOR flash" ; - }else if (of_machine_is_compatible ("phytec,imx6ul-pcl063" )) { + }else if (of_machine_is_compatible ("phytec,imx6ul-pcl063-nand" )) {barebox_set_hostname ("phyCORE-i.MX6UL" ); default_environment_path ="/chosen/environment-nand" ; default_envdev ="NAND flash" ;
@@ -249,7 +249,7 @@ static int physom_imx6_devices_init(void) || of_machine_is_compatible("phytec,imx6dl-pcm058-nand") || of_machine_is_compatible("phytec,imx6dl-pcm058-emmc")) {defaultenv_append_directory (defaultenv_physom_imx6_phycore); - } else if (of_machine_is_compatible("phytec,imx6ul-pcl063")) { + } else if (of_machine_is_compatible("phytec,imx6ul-pcl063-nand")) {defaultenv_append_directory (defaultenv_physom_imx6ul_phycore); }
arch/arm/boards/phytec-som-imx6/lowlevel.c +3 -3
@@ -118,6 +118,6 @@ PHYTEC_ENTRY(start_phytec_phycore_imx6qp_som_nand_1gib, imx6qp_phytec_phycore_soPHYTEC_ENTRY (start_phytec_phycore_imx6q_som_emmc_1gib, imx6q_phytec_phycore_som_emmc,SZ_1G , true);PHYTEC_ENTRY (start_phytec_phycore_imx6q_som_emmc_2gib, imx6q_phytec_phycore_som_emmc,SZ_2G , true); -PHYTEC_ENTRY (start_phytec_phycore_imx6ul_som_512mb, imx6ul_phytec_phycore_som,SZ_512M , false); -PHYTEC_ENTRY (start_phytec_phycore_imx6ull_som_lc_256mb, imx6ull_phytec_phycore_som_lc,SZ_256M , false); -PHYTEC_ENTRY (start_phytec_phycore_imx6ull_som_512mb, imx6ull_phytec_phycore_som,SZ_512M , false); +PHYTEC_ENTRY (start_phytec_phycore_imx6ul_som_nand_512mb, imx6ul_phytec_phycore_som_nand,SZ_512M , false); +PHYTEC_ENTRY (start_phytec_phycore_imx6ull_som_lc_nand_256mb, imx6ull_phytec_phycore_som_lc_nand,SZ_256M , false); +PHYTEC_ENTRY (start_phytec_phycore_imx6ull_som_nand_512mb, imx6ull_phytec_phycore_som_nand,SZ_512M , false);
arch/arm/dts/Makefile +3 -3
@@ -66,9 +66,9 @@ pbl-dtb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += imx6q-phytec-pbaa03.dtb.o \ imx6dl-phytec-phycore-som-lc-nand.dtb.o \ imx6dl-phytec-phycore-som-emmc.dtb.o \ imx6dl-phytec-phycore-som-lc-emmc.dtb.o \ - imx6ul-phytec-phycore-som.dtb.o \ - imx6ull-phytec-phycore-som-lc.dtb.o \ - imx6ull-phytec-phycore-som.dtb.o + imx6ul-phytec-phycore-som-nand.dtb.o \ + imx6ull-phytec-phycore-som-lc-nand.dtb.o \ + imx6ull-phytec-phycore-som-nand.dtb.o pbl-dtb-$(CONFIG_MACH_PHYTEC_PHYCORE_IMX7) += imx7d-phyboard-zeta.dtb.o pbl-dtb-$(CONFIG_MACH_PHYTEC_SOM_IMX8MQ) += imx8mq-phytec-phycore-som.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += armada-xp-openblocks-ax3-4-bb.dtb.o
arch/arm/dts/imx6ul-phytec-phycore-som-nand.dts new file +48 -0
48 lines not on this page · raw message
arch/arm/dts/imx6ul-phytec-phycore-som.dts deleted +0 -54
54 lines not on this page · raw message
arch/arm/dts/imx6ull-phytec-phycore-som-lc-nand.dts renamed from arch/arm/dts/imx6ull-phytec-phycore-som-lc.dts +3 -3
@@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) /* - * Copyright (C) 2018 PHYTEC Messtechnik GmbH + * Copyright (C) 2019 PHYTEC Messtechnik GmbH * Author: Stefan Riedmueller <[email protected]> */
@@ -10,8 +10,8 @@ #include "imx6ul-phytec-phycore-som.dtsi" / { - model = "Phytec phyCORE-i.MX6 ULL SOM low-cost"; - compatible = "phytec,imx6ul-pcl063", "fsl,imx6ull"; + model = "PHYTEC phyCORE-i.MX6 ULL SOM low-cost with NAND"; + compatible = "phytec,imx6ul-pcl063-nand", "fsl,imx6ull"; }; &fec1 {
arch/arm/dts/imx6ull-phytec-phycore-som-nand.dts renamed from arch/arm/dts/imx6ull-phytec-phycore-som.dts +4 -10
@@ -1,13 +1,7 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) /* - * Copyright (C) 2017 PHYTEC Messtechnik GmbH + * Copyright (C) 2019 PHYTEC Messtechnik GmbH * Author: Stefan Riedmueller <[email protected]> - * - * 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/;
@@ -17,8 +11,8 @@ #include "imx6ul-phytec-state.dtsi" / { - model = "Phytec phyCORE-i.MX6 ULL SOM"; - compatible = "phytec,imx6ul-pcl063", "fsl,imx6ull"; + model = "PHYTEC phyCORE-i.MX6 ULL SOM with NAND"; + compatible = "phytec,imx6ul-pcl063-nand", "fsl,imx6ull"; }; &fec1 {
images/Makefile.imx +14 -14
@@ -504,20 +504,20 @@ CFG_start_nxp_imx6ull_evk.pblb.imximg = $(board)/nxp-imx6ull-evk/flash-header-nx FILE_barebox-nxp-imx6ull-evk.img = start_nxp_imx6ull_evk.pblb.imximg image-$(CONFIG_MACH_NXP_IMX6ULL_EVK) += barebox-nxp-imx6ull-evk.img -pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ul_som_512mb -CFG_start_phytec_phycore_imx6ul_som_512mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg -FILE_barebox-phytec-phycore-imx6ul-512mb.img = start_phytec_phycore_imx6ul_som_512mb.pblb.imximg -image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ul-512mb.img - -pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ull_som_lc_256mb -CFG_start_phytec_phycore_imx6ull_som_lc_256mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg -FILE_barebox-phytec-phycore-imx6ull-lc-256mb.img = start_phytec_phycore_imx6ull_som_lc_256mb.pblb.imximg -image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-lc-256mb.img - -pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ull_som_512mb -CFG_start_phytec_phycore_imx6ull_som_512mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg -FILE_barebox-phytec-phycore-imx6ull-512mb.img = start_phytec_phycore_imx6ull_som_512mb.pblb.imximg -image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-512mb.img +pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ul_som_nand_512mb +CFG_start_phytec_phycore_imx6ul_som_nand_512mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg +FILE_barebox-phytec-phycore-imx6ul-nand-512mb.img = start_phytec_phycore_imx6ul_som_nand_512mb.pblb.imximg +image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ul-nand-512mb.img + +pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ull_som_lc_nand_256mb +CFG_start_phytec_phycore_imx6ull_som_lc_nand_256mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-256mb.imxcfg +FILE_barebox-phytec-phycore-imx6ull-lc-nand-256mb.img = start_phytec_phycore_imx6ull_som_lc_nand_256mb.pblb.imximg +image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-lc-nand-256mb.img + +pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ull_som_nand_512mb +CFG_start_phytec_phycore_imx6ull_som_nand_512mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg +FILE_barebox-phytec-phycore-imx6ull-nand-512mb.img = start_phytec_phycore_imx6ull_som_nand_512mb.pblb.imximg +image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-nand-512mb.img pblb-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += start_imx6ul_pico_hobbit_256mb CFG_start_imx6ul_pico_hobbit_256mb.pblb.imximg = $(board)/technexion-pico-hobbit/flash-header-imx6ul-pico-hobbit-256.imxcfg
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 6/8 ARM: phytec-som-imx: imx6ul: Add eMMC support
In reply to Stefan RiedmuellerAdd initial support for phyCORE-i.MX 6UL/ULL with eMMC. Including board code and default environment.
--- arch/arm/boards/phytec-som-imx6/board.c | 18 +++++++++++++++--- .../defaultenv-physom-imx6ul-phycore/boot/emmc | 5 +++++ .../defaultenv-physom-imx6ul-phycore/boot/mmc | 5 +++++ .../defaultenv-physom-imx6ul-phycore/init/automount | 5 +++++ .../defaultenv-physom-imx6ul-phycore/init/bootsource | 17 +++++++++++++++++ 5 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/boot/emmc create mode 100644 arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/boot/mmc create mode 100644 arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource
arch/arm/boards/phytec-som-imx6/board.c +15 -3
@@ -190,7 +190,8 @@ static int physom_imx6_devices_init(void) default_environment_path ="/chosen/environment-spinor" ; default_envdev ="SPI NOR flash" ; - }else if (of_machine_is_compatible ("phytec,imx6ul-pcl063-nand" )) { + }else if (of_machine_is_compatible ("phytec,imx6ul-pcl063-nand" ) + ||of_machine_is_compatible ("phytec,imx6ul-pcl063-emmc" )) {barebox_set_hostname ("phyCORE-i.MX6UL" ); default_environment_path ="/chosen/environment-nand" ; default_envdev ="NAND flash" ;
@@ -236,6 +237,10 @@ static int physom_imx6_devices_init(void)imx6_bbu_internal_mmc_register_handler ("mmc3" ,"/dev/mmc3" ,BBU_HANDLER_FLAG_DEFAULT ); + }else if (of_machine_is_compatible ("phytec,imx6ul-pcl063-emmc" )) { +imx6_bbu_internal_mmc_register_handler ("mmc1" , +"/dev/mmc1" , +BBU_HANDLER_FLAG_DEFAULT ); }else {imx6_bbu_nand_register_handler ("nand" ,BBU_HANDLER_FLAG_DEFAULT ); }
@@ -243,13 +248,20 @@ static int physom_imx6_devices_init(void)defaultenv_append_directory (defaultenv_physom_imx6);/* Overwrite file /env/init/automount */ -if (of_machine_is_compatible ("phytec,imx6qp-pcm058-nand" ) +if (of_machine_is_compatible ("phytec,imx6q-pfla02" ) + ||of_machine_is_compatible ("phytec,imx6dl-pfla02" ) + ||of_machine_is_compatible ("phytec,imx6s-pfla02" ) + ||of_machine_is_compatible ("phytec,imx6q-pcaaxl3" )) { +defaultenv_append_directory (defaultenv_physom_imx6); + }else if (of_machine_is_compatible ("phytec,imx6qp-pcm058-nand" ) ||of_machine_is_compatible ("phytec,imx6q-pcm058-nand" ) ||of_machine_is_compatible ("phytec,imx6q-pcm058-emmc" ) ||of_machine_is_compatible ("phytec,imx6dl-pcm058-nand" ) ||of_machine_is_compatible ("phytec,imx6dl-pcm058-emmc" )) { +defaultenv_append_directory (defaultenv_physom_imx6);defaultenv_append_directory (defaultenv_physom_imx6_phycore); - }else if (of_machine_is_compatible ("phytec,imx6ul-pcl063-nand" )) { + }else if (of_machine_is_compatible ("phytec,imx6ul-pcl063-nand" ) + ||of_machine_is_compatible ("phytec,imx6ul-pcl063-emmc" )) {defaultenv_append_directory (defaultenv_physom_imx6ul_phycore); }
arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/boot/emmc new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh + +global.bootm.image="/mnt/emmc/zImage" +global.bootm.oftree="/mnt/emmc/oftree" +global.linux.bootargs.dyn.root="root=/dev/mmcblk1p2 rootflags='discard,data=journal'"
arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/boot/mmc new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh + +global.bootm.image="/mnt/mmc/zImage" +global.bootm.oftree="/mnt/mmc/oftree" +global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2 rootflags='data=journal'"
arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/automount +5 -0
@@ -7,3 +7,8 @@ automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp' mkdir -p /mnt/mmc automount -d /mnt/mmc 'mmc0.probe=1 && [ -e /dev/mmc0.0 ] && mount /dev/mmc0.0 /mnt/mmc' + +if [ -e /dev/mmc1 ]; then + mkdir -p /mnt/emmc + automount -d /mnt/emmc 'mmc1.probe=1 && [ -e /dev/mmc1.0 ] && mount /dev/mmc1.0 /mnt/emmc' +fi
arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6ul-phycore/init/bootsource new file +17 -0
@@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -n "$nv.boot.default" ]; then + exit +fi + +if [ $bootsource = mmc ]; then + if [ $bootsource_instance = 0 ]; then + global.boot.default="mmc emmc nand spi net" + elif [ $bootsource_instance = 1 ]; then + global.boot.default="emmc mmc nand spi net" + fi +elif [ $bootsource = nand ]; then + global.boot.default="nand spi mmc net" +elif [ $bootsource = net ]; then + global.boot.default="net nand spi mmc" +fi
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 7/8 ARM: dts: imx6ul: phycore: Add support for eMMC
In reply to Stefan RiedmuellerAdd support for phyCORE-i.MX 6UL/ULL modules with eMMC instead of NAND flash.
--- arch/arm/dts/imx6ul-phytec-phycore-som.dtsi | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)
arch/arm/dts/imx6ul-phytec-phycore-som.dtsi +42 -0
@@ -25,6 +25,12 @@ device-path = &usdhc1, "partname:barebox-environment"; status = "disabled"; }; + + environment-sd2 { + compatible = "barebox,environment"; + device-path = &usdhc2, "partname:barebox-environment"; + status = "disabled"; + }; }; };
@@ -125,6 +131,27 @@ }; }; +&usdhc2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2>; + bus-width = <8>; + non-removable; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "barebox"; + reg = <0x0 0xe0000>; + }; + + partition@e0000 { + label = "barebox-environment"; + reg = <0xe0000 0x20000>; + }; +}; + &iomuxc { pinctrl-names = "default";
@@ -196,6 +223,21 @@ MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059 /* SD1 CD */ >; }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059 + MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10059 + MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059 + MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059 + MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059 + MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059 + MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059 + MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059 + MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059 + MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059 + >; + }; }; };
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 8/8 ARM: dts: imx6ul: phycore: Add phyCORE-i.MX 6ULL with eMMC
In reply to Stefan RiedmuellerAdd a phyCORE-i.MX 6ULL with eMMC. It has following features:
- i.MX 6ULL Y2 792 MHz
- 512 MB RAM
- 4 GB eMMC
- 10/100 MBits Ethernet
- USB OTG
- USB Host
--- arch/arm/boards/phytec-som-imx6/lowlevel.c | 1 + arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6ull-phytec-phycore-som-emmc.dts | 43 ++++++++++++++++++++++++ images/Makefile.imx | 5 +++ 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6ull-phytec-phycore-som-emmc.dts
arch/arm/boards/phytec-som-imx6/lowlevel.c +1 -0
@@ -121,3 +121,4 @@ PHYTEC_ENTRY(start_phytec_phycore_imx6q_som_emmc_2gib, imx6q_phytec_phycore_som_PHYTEC_ENTRY (start_phytec_phycore_imx6ul_som_nand_512mb, imx6ul_phytec_phycore_som_nand,SZ_512M , false);PHYTEC_ENTRY (start_phytec_phycore_imx6ull_som_lc_nand_256mb, imx6ull_phytec_phycore_som_lc_nand,SZ_256M , false);PHYTEC_ENTRY (start_phytec_phycore_imx6ull_som_nand_512mb, imx6ull_phytec_phycore_som_nand,SZ_512M , false); +PHYTEC_ENTRY (start_phytec_phycore_imx6ull_som_emmc_512mb, imx6ull_phytec_phycore_som_emmc,SZ_512M , false);
arch/arm/dts/Makefile +2 -1
@@ -68,7 +68,8 @@ pbl-dtb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += imx6q-phytec-pbaa03.dtb.o \ imx6dl-phytec-phycore-som-lc-emmc.dtb.o \ imx6ul-phytec-phycore-som-nand.dtb.o \ imx6ull-phytec-phycore-som-lc-nand.dtb.o \ - imx6ull-phytec-phycore-som-nand.dtb.o + imx6ull-phytec-phycore-som-nand.dtb.o \ + imx6ull-phytec-phycore-som-emmc.dtb.o pbl-dtb-$(CONFIG_MACH_PHYTEC_PHYCORE_IMX7) += imx7d-phyboard-zeta.dtb.o pbl-dtb-$(CONFIG_MACH_PHYTEC_SOM_IMX8MQ) += imx8mq-phytec-phycore-som.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += armada-xp-openblocks-ax3-4-bb.dtb.o
arch/arm/dts/imx6ull-phytec-phycore-som-emmc.dts new file +43 -0
43 lines not on this page · raw message
images/Makefile.imx +5 -0
@@ -519,6 +519,11 @@ CFG_start_phytec_phycore_imx6ull_som_nand_512mb.pblb.imximg = $(board)/phytec-so FILE_barebox-phytec-phycore-imx6ull-nand-512mb.img = start_phytec_phycore_imx6ull_som_nand_512mb.pblb.imximg image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-nand-512mb.img +pblb-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += start_phytec_phycore_imx6ull_som_emmc_512mb +CFG_start_phytec_phycore_imx6ull_som_emmc_512mb.pblb.imximg = $(board)/phytec-som-imx6/flash-header-phytec-pcl063-512mb.imxcfg +FILE_barebox-phytec-phycore-imx6ull-emmc-512mb.img = start_phytec_phycore_imx6ull_som_emmc_512mb.pblb.imximg +image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6ull-emmc-512mb.img + pblb-$(CONFIG_MACH_TECHNEXION_PICO_HOBBIT) += start_imx6ul_pico_hobbit_256mb CFG_start_imx6ul_pico_hobbit_256mb.pblb.imximg = $(board)/technexion-pico-hobbit/flash-header-imx6ul-pico-hobbit-256.imxcfg FILE_barebox-imx6ul-pico-hobbit-256mb.img = start_imx6ul_pico_hobbit_256mb.pblb.imximg
Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 4/8] ARM: dts: imx6ul: phycore: Add state framework
In reply to Stefan RiedmuellerQuoted 5 lines · Stefan Riedmueller
From: Daniel Schultz <[email protected]>
Add the state framework with EEPROM backend.
Signed-off-by Stefan Riedmueller <[email protected]>
Missing S-o-b from Daniel
Quoted 44 lines
--- arch/arm/dts/imx6ul-phytec-phycore-som.dts | 5 ++ arch/arm/dts/imx6ul-phytec-state.dtsi | 81 +++++++++++++++++++++++++++++ arch/arm/dts/imx6ull-phytec-phycore-som.dts | 5 ++ 3 files changed, 91 insertions(+) create mode 100644 arch/arm/dts/imx6ul-phytec-state.dtsiarch/arm/dts/imx6ul-phytec-phycore-som.dts +5
-0@@ -14,6 +14,7 @@ #include <arm/imx6ul.dtsi> #include "imx6ul-phytec-phycore-som.dtsi" +#include "imx6ul-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 Ultra Lite SOM";@@ -32,6 +33,10 @@ status = "okay"; }; +&state { + status = "okay"; +}; + &uart1 { status = "okay"; };arch/arm/dts/imx6ul-phytec-state.dtsi new file +8
-0@@ -0,0 +1,81 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2019 PHYTEC Messtechnik GmbH, + * Author: Stefan Riedmueller <[email protected]> + */ + +/ { + aliases {
arch/arm/dts/imx6ul-phytec-state.dtsi line 18
Quoted 10 lines
arch/arm/dts/imx6ul-phytec-state.dtsi new file +10
-0+ state = &state; + }; + + state: imx6ul_phytec_boot_state { + magic = <0x883b86a6>; + compatible = "barebox,state"; + backend-type = "raw"; + backend = <&backend_update_eeprom>; + backend-stridesize = <54>; + status = "disabled";
Same here too for missing backend-storage-type.
- Roland
Quoted 95 lines
arch/arm/dts/imx6ul-phytec-state.dtsi new file +63
-0+ + #address-cells = <1>; + #size-cells = <1>; + bootstate { + #address-cells = <1>; + #size-cells = <1>; + last_chosen { + reg = <0x0 0x4>; + type = "uint32"; + }; + system0 { + #address-cells = <1>; + #size-cells = <1>; + remaining_attempts { + reg = <0x4 0x4>; + type = "uint32"; + default = <3>; + }; + priority { + reg = <0x8 0x4>; + type = "uint32"; + default = <21>; + }; + ok { + reg = <0xc 0x4>; + type = "uint32"; + default = <0>; + }; + }; + system1 { + #address-cells = <1>; + #size-cells = <1>; + remaining_attempts { + reg = <0x10 0x4>; + type = "uint32"; + default = <3>; + }; + priority { + reg = <0x14 0x4>; + type = "uint32"; + default = <20>; + }; + ok { + reg = <0x18 0x4>; + type = "uint32"; + default = <0>; + }; + }; + }; + }; +}; + +&eeprom { + partitions { + compatible = "fixed-partitions"; + #size-cells = <1>; + #address-cells = <1>; + backend_update_eeprom: state@0 { + reg = <0x0 0x100>; + label = "update-eeprom"; + }; + }; +};arch/arm/dts/imx6ull-phytec-phycore-som.dts +5
-0@@ -14,6 +14,7 @@ #include <arm/imx6ull.dtsi> #include "imx6ul-phytec-phycore-som.dtsi" +#include "imx6ul-phytec-state.dtsi" / { model = "Phytec phyCORE-i.MX6 ULL SOM";@@ -32,6 +33,10 @@ status = "okay"; }; +&state { + status = "okay"; +}; + &uart1 { status = "okay"; };Signature · 7 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Roland Hieber | [email protected] | Pengutronix e.K. | https://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox