[PATCH 1/4] commands: Kconfig: Remove HW ECC dependency from nandtest

2021-03-30 Thread Stefan Riedmueller
NAND_ECC_HW is no longer optional so remove the dependency from nandtest. Otherwise nandtest won't be build for HW ECC boards. Signed-off-by: Stefan Riedmueller --- commands/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/commands/Kconfig b/commands/Kconfig index 6d84c956e576

[PATCH 3/4] mtd: nand_msx: Implement ooblayout ops

2021-03-30 Thread Stefan Riedmueller
. Signed-off-by: Stefan Riedmueller --- drivers/mtd/nand/nand_mxs.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c index 96ae71364efb..285ae3c121b6 100644 --- a/drivers/mtd/nand/nand_mxs.c +++ b/drivers/mtd/nand

[PATCH 2/4] nandtest: Fix status print for NAND which size exceeds 4 GB

2021-03-30 Thread Stefan Riedmueller
Nandsize can be larger than 4 GB. So during status print the number of blocks calculation needs to use 64 bit division. Signed-off-by: Stefan Riedmueller --- commands/nandtest.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/nandtest.c b/commands/nandtest.c

[PATCH 4/4] imx-bbu-nand-fcb: Inform user if the barebox partition is too small

2021-03-30 Thread Stefan Riedmueller
Show an error message and return an error code if the barebox partition is too small. This can easily happen when having large erasoblocks since all four FCB copies need a separate eraseblock. Signed-off-by: Stefan Riedmueller --- common/imx-bbu-nand-fcb.c | 16 +++- 1 file changed

[PATCH] net: eth: of_fixup_node: Use reproducible node name for fixup

2021-03-29 Thread Stefan Riedmueller
To be able to fixup older devicetrees, prior to v4.15 where leading zeros of the unit addresses were removed, use the reproducible name to find the corresponding nodes. Signed-off-by: Stefan Riedmueller --- net/eth.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

[PATCH] mtd: Notify user when erasure of a block failed during erase op

2021-03-16 Thread Stefan Riedmueller
Give the user information about the faulty block when an erase operation fails with error. Signed-off-by: Stefan Riedmueller --- drivers/mtd/core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c index af33ad665c5a..22eb2a056c4e

[PATCH 1/2] nand: nand-mxs: Fix marking BBT blocks as bad

2021-03-16 Thread Stefan Riedmueller
ses the same mechanism. This fixes an issue where marking Bad Block Table blocks as bad fails with: NXS NAND: Writing OOB isn't supported Tested on PHYTEC phyCORE-i.MX 6Q. Signed-off-by: Stefan Riedmueller --- drivers/mtd/nand/nand_mxs.c | 87 +++-- 1 file

[PATCH] fs: Fix default mount when device already mounted

2021-03-16 Thread Stefan Riedmueller
on /mnt/mmc Signed-off-by: Stefan Riedmueller --- fs/fs.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 3db24b7b6822..4f2345d22544 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -951,9 +951,10 @@ const char *cdev_get_mount_path(struct

[PATCH 2/2] mtd: nand_bbt: Skip bad blocks when searching for the BBT in NAND

2021-03-16 Thread Stefan Riedmueller
The blocks containing the bad block table can become bad as well. So make sure to skip any blocks that are marked bad when searching for the bad block table. Signed-off-by: Stefan Riedmueller --- drivers/mtd/nand/nand_bbt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd

[PATCH v3 7/7] ARM: dts: imx6: phytec: Increase NAND barebox partition size

2019-12-11 Thread Stefan Riedmueller
-by: Stefan Riedmueller --- Changes in v3: - Rebased on latest master --- arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 6 +++--- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 6 +++--- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH v3 5/7] ARM: dts: imx6: phycard: Switch to new partitions binding

2019-12-11 Thread Stefan Riedmueller
The SD card interface is still using the legacy partition binding. Change this by switching to the new bindings. Signed-off-by: Stefan Riedmueller --- Changes in v3: - Rebased on latest master --- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 22 +- 1 file changed, 13

[PATCH v3 6/7] ARM: dts: imx6: phycard: Use gpio binding constants

2019-12-11 Thread Stefan Riedmueller
Signed-off-by: Stefan Riedmueller --- Changes in v3: - Rebased on latest master --- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi b/arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi

[PATCH v3 2/7] ARM: dts: imx6: pcaaxl3: Update license and model description

2019-12-11 Thread Stefan Riedmueller
Make use of SPDX license identifiers and update copyright notices and model descriptions of the phyCARD-i.MX 6 SOM. Signed-off-by: Stefan Riedmueller --- Changes in v3: - Rebased on latest master --- arch/arm/dts/imx6q-phytec-pbaa03.dts | 13 - arch/arm/dts/imx6q-phytec-pcaaxl3

[PATCH v3 1/7] ARM: dts: imx6: pcaaxl3: Order nodes alphabetically

2019-12-11 Thread Stefan Riedmueller
Bring the device tree nodes in alphabetical order and in this context also remove the deprecated iomux group. Signed-off-by: Stefan Riedmueller --- Changes in v3: - Rebased on latest master --- arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi | 182 - 1 file changed, 90

[PATCH v3 4/7] ARM: dts: imx6: phycard: Make eeprom configurable

2019-12-11 Thread Stefan Riedmueller
The EEPROM is a configurable option. So make it configurable from the dts file. Signed-off-by: Stefan Riedmueller --- Changes in v3: - Rebased on latest master --- arch/arm/dts/imx6q-phytec-phycard.dts| 4 arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 1 + 2 files changed, 5

[PATCH v3 3/7] ARM: dts: imx6: pcaaxl3: Make use of the simpler name phycard

2019-12-11 Thread Stefan Riedmueller
Use the simpler name phycard instead of the article number pcaaxl3 for device tree file names and image names of the phyCARD-i.MX 6. Signed-off-by: Stefan Riedmueller --- Changes in v3: - Rebased on latest master --- arch/arm/boards/phytec-som-imx6/lowlevel.c | 6

[PATCH v2 8/8] ARM: dts: imx6: phytec: Increase NAND barebox partition size

2019-12-09 Thread Stefan Riedmueller
-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 6 +++--- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 6 +++--- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/dts/imx6qdl

[PATCH v2 6/8] ARM: dts: imx6: phycard: Switch to new partitions binding

2019-12-09 Thread Stefan Riedmueller
The SD card interface is still using the legacy partition binding. Change this by switching to the new bindings. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 21 - 1 file changed, 12 insertions(+), 9 deletions

[PATCH v2 3/8] ARM: dts: imx6: pcaaxl3: Make use of the simpler name phycard

2019-12-09 Thread Stefan Riedmueller
Use the simpler name phycard instead of the article number pcaaxl3 for device tree file names and image names of the phyCARD-i.MX 6. Also make the dtsi file includeable for i.MX 6Solo/DualLight as well. Signed-off-by: Stefan Riedmueller --- Changes in v2: - Remove the model and compatible from

[PATCH v2 4/8] ARM: dts: imx6: phycard: Make eeprom configurable

2019-12-09 Thread Stefan Riedmueller
The EEPROM is a configurable option. So make it configurable from the dts file. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/dts/imx6q-phytec-phycard.dts| 4 arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 1 + 2 files changed, 5 insertions(+) diff --git

[PATCH v2 7/8] ARM: dts: imx6: phycard: Use gpio binding constants

2019-12-09 Thread Stefan Riedmueller
Signed-off-by: Stefan Riedmueller --- Changes in v2: - Added this patch --- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi b/arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi index

[PATCH v2 1/8] ARM: dts: imx6: pcaaxl3: Order nodes alphabetically

2019-12-09 Thread Stefan Riedmueller
Bring the device tree nodes in alphabetical order and in this context also remove the deprecated iomux group. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi | 182 - 1 file changed, 90 insertions(+), 92 deletions

[PATCH v2 5/8] ARM: dts: imx6: phycard: Use partname for environment device-path

2019-12-09 Thread Stefan Riedmueller
Change environment device-path from using a separate label to referencing a device plus partname. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts

[PATCH v2 2/8] ARM: dts: imx6: pcaaxl3: Update license and model description

2019-12-09 Thread Stefan Riedmueller
Make use of SPDX license identifiers and update copyright notices and model descriptions of the phyCARD-i.MX 6 SOM. Signed-off-by: Stefan Riedmueller --- Changes in v2: - Don't remove dtsi's model and compatible yet --- arch/arm/dts/imx6q-phytec-pbaa03.dts | 13 - arch/arm/dts

[PATCH 7/7] ARM: dts: imx6: phytec: Increase NAND barebox partition size

2019-12-09 Thread Stefan Riedmueller
-by: Stefan Riedmueller --- arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 6 +++--- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 6 +++--- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/dts/imx6qdl-phytec-pfla02.dtsi b

[PATCH 5/7] ARM: dts: imx6: phycard: Use partname for environment device-path

2019-12-09 Thread Stefan Riedmueller
Change environment device-path from using a separate label to referencing a device plus partname. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/imx6qdl-phytec-phycard

[PATCH 6/7] ARM: dts: imx6: phycard: Switch to new partitions binding

2019-12-09 Thread Stefan Riedmueller
The SD card interface is still using the legacy partition binding. Change this by switching to the new bindings. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/arch/arm

[PATCH 4/7] ARM: dts: imx6: phycard: Make eeprom configurable

2019-12-09 Thread Stefan Riedmueller
The EEPROM is a configurable option. So make it configurable from the dts file. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6q-phytec-phycard.dts| 4 arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm/dts/imx6q

[PATCH 3/7] ARM: dts: imx6: pcaaxl3: Make use of the simpler name phycard

2019-12-09 Thread Stefan Riedmueller
Use the simpler name phycard instead of the article number pcaaxl3 for device tree file names and image names of the phyCARD-i.MX 6. Signed-off-by: Stefan Riedmueller --- arch/arm/boards/phytec-som-imx6/lowlevel.c | 6 ++--- arch/arm/dts/Makefile | 2

[PATCH 2/7] ARM: dts: imx6: pcaaxl3: Update license and model description

2019-12-09 Thread Stefan Riedmueller
Make use of SPDX license identifiers and update copyright notices and model descriptions of the phyCARD-i.MX 6 SOM. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6q-phytec-pbaa03.dts | 13 - arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi | 14 +++--- 2 files changed, 7

[PATCH 1/7] ARM: dts: imx6: pcaaxl3: Order nodes alphabetically

2019-12-09 Thread Stefan Riedmueller
Bring the device tree nodes in alphabetical order and in this context also remove the deprecated iomux group. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi | 182 - 1 file changed, 90 insertions(+), 92 deletions(-) diff --git

[PATCH] ARM: boards: phytec-som-imx6: Replace spi by spi-nor in bootsource script

2019-12-03 Thread Stefan Riedmueller
Commit 7802c6f891b7 ("ARM: i.MX6: boot: Return BOOTSOURCE_SPI_NOR, not BOOTSOURCE_SPI") changed the returned boot source for SPI NOR on i.MX 6 from SPI to SPI_NOR. This needs to be accounted for in the bootsource scripts. Signed-off-by: Stefan Riedmueller --- .../phytec-som-imx6/

[PATCH] ARM: dts: imx6qdl: phycore: Remove emmc vmmc-supply

2019-12-03 Thread Stefan Riedmueller
There is no driver for the eMMC's vmmc-supply regulator in the barebox. Use a dummy regulator instead by simply deleting the vmmc-supply property. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts

[PATCH 2/2] ARM: dts: imx6: phycore: Update License, copyright and model description

2019-11-11 Thread Stefan Riedmueller
Make use of SPDX license identifiers and update copyright notices and model descriptions of the phyCORE-i.MX 6 SOM's. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 10 ++ arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 13 - arch

[PATCH 1/2] ARM: dts: imx6: phycore: Make use of upstream devicetree

2019-11-11 Thread Stefan Riedmueller
Make use of the upstream devicetree for the phyCORE-i.MX 6 and the phyBOARD-Mira to reduce code duplication. In this context also add a Mira devicetree for barebox to better differentiate between phyCORE related settings and baseboard related settings. Signed-off-by: Stefan Riedmueller --- arch

[PATCH 2/2] ARM: dts: imx6qdl: pfla02: Remove fec phy-supply

2019-10-08 Thread Stefan Riedmueller
There is no driver for the phyFLEX-i.MX 6 phy-supply regulator in the barebox. Use a dummy regulator instead by simply deleting the phy-supply property. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm

[PATCH 1/2] net: fec_imx: Fix resource rollback with regulator errors

2019-10-08 Thread Stefan Riedmueller
When the driver is not able to get or control the phy regulator memory resources are already acquired and need to be released during rollback. Signed-off-by: Stefan Riedmueller --- drivers/net/fec_imx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net

[PATCH] nvmem: Fix read/write access to partition devices

2019-09-27 Thread Stefan Riedmueller
Partition devices are not directly associated with the nvmem instance but via their master cdev. Thus reading and writing needs to be handled via the master. Signed-off-by: Stefan Riedmueller --- drivers/nvmem/core.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff

[PATCH v2] mtd: ubi: Max out wear-leveling threshold

2019-09-20 Thread Stefan Riedmueller
option. Signed-off-by: Stefan Riedmueller --- Changes in v2: - Remove threshold config completely instead of just maxing out the default --- drivers/mtd/ubi/Kconfig | 17 - drivers/mtd/ubi/build.c | 2 +- drivers/mtd/ubi/ubi.h | 11 +++ drivers/mtd/ubi/wl.c| 8

[PATCH] mtd: ubi: Max out default wear-leveling threshold

2019-07-10 Thread Stefan Riedmueller
the chance of wear-leveling in the barebox max out the threshold. Signed-off-by: Stefan Riedmueller --- drivers/mtd/ubi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index 9a344082b7bb..509a1f77ddcd 100644

[PATCH] ARM: dts: am335x-phytec-state: Add backend-storage-type

2019-07-10 Thread Stefan Riedmueller
Add the backend-storage-type for both states and set it to "direct" as the backend is an EEPROM. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/am335x-phytec-state.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/am335x-phytec-state.dtsi b/arch/arm/dts/am3

[PATCH v2 3/8] ARM: dts: imx6ul: phycore: Add eeprom label

2019-07-10 Thread Stefan Riedmueller
Add a label for the EEPROM to be able to address it for the state framework. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/dts/imx6ul-phytec-phycore-som.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imx6ul-phytec-phycore-som.dtsi b

[PATCH v2 4/8] ARM: dts: imx6ul: phycore: Add state framework

2019-07-10 Thread Stefan Riedmueller
From: Daniel Schultz Add the state framework with EEPROM backend. Signed-off-by: Daniel Schultz Signed-off-by: Stefan Riedmueller --- Changes in v2: - Added backend-storage-type - Added missing Signed-off-by --- arch/arm/dts/imx6ul-phytec-phycore-som.dts | 5 ++ arch/arm/dts/imx6ul

[PATCH v2 8/8] ARM: dts: imx6ul: phycore: Add phyCORE-i.MX 6ULL with eMMC

2019-07-10 Thread Stefan Riedmueller
Add 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 Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/boards/phytec-som-imx6

[PATCH v2 1/8] ARM: phytec-som-imx6: Add low cost variant for imx6dl phycore

2019-07-10 Thread Stefan Riedmueller
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. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/boards/phytec-som-imx6/lowlevel.c | 2 + arch/arm/dts/Makefile

[PATCH v2 6/8] ARM: phytec-som-imx: imx6ul: Add eMMC support

2019-07-10 Thread Stefan Riedmueller
Add initial support for phyCORE-i.MX 6UL/ULL with eMMC. Including board code and default environment. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/boards/phytec-som-imx6/board.c| 18 +++--- .../defaultenv-physom-imx6ul-phycore/boot/emmc

[PATCH v2 7/8] ARM: dts: imx6ul: phycore: Add support for eMMC

2019-07-10 Thread Stefan Riedmueller
Add support for phyCORE-i.MX 6UL/ULL modules with eMMC instead of NAND flash. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/dts/imx6ul-phytec-phycore-som.dtsi | 42 + 1 file changed, 42 insertions(+) diff --git a/arch/arm/dts/imx6ul-phytec

[PATCH v2 2/8] ARM: dts: imx6qdl: phycore: Add state framework

2019-07-10 Thread Stefan Riedmueller
From: Daniel Schultz Add the state framework with EEPROM backend. Signed-off-by: Daniel Schultz Signed-off-by: Stefan Riedmueller --- Changes in v2: - Added backend-storage-type --- arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts| 1 + arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts

[PATCH v2 5/8] ARM: imx6ul: phycore: Prepare for eMMC module

2019-07-10 Thread Stefan Riedmueller
Prepare 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. Signed-off-by: Stefan Riedmueller --- No changes in v2 --- arch/arm/boards/phytec-som-imx6

[PATCH v2] ARM: mach-imx: imx6: Read and print the UID of i.MX6 SOCs

2019-07-04 Thread Stefan Riedmueller
Read the unified ID of the i.MX 6 SOCs and print it in the boot log. Signed-off-by: Stefan Riedmueller --- Changes in v2: - Made function available for others through mach-imx/include/mach/imx6.h --- arch/arm/mach-imx/imx6.c | 19 +++ arch/arm/mach-imx/include/mach

[PATCH 2/2] ARM: dts: imx6ul: phycore: Reduce eth drive strength

2019-07-02 Thread Stefan Riedmueller
Reduce the drive strength for the MDC, MDIO and TX pins of fec1 to improve signal quality and EMC. Also disable internal pull ups on the MDC and MDIO pins. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6ul-phytec-phycore-som.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6

[PATCH 5/8] ARM: imx6ul: phycore: Prepare for eMMC module

2019-07-02 Thread Stefan Riedmueller
Prepare 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. Signed-off-by: Stefan Riedmueller --- arch/arm/boards/phytec-som-imx6/board.c

[PATCH 8/8] ARM: dts: imx6ul: phycore: Add phyCORE-i.MX 6ULL with eMMC

2019-07-02 Thread Stefan Riedmueller
Add 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 Signed-off-by: Stefan Riedmueller --- arch/arm/boards/phytec-som-imx6/lowlevel.c | 1

[PATCH 6/8] ARM: phytec-som-imx: imx6ul: Add eMMC support

2019-07-02 Thread Stefan Riedmueller
Add initial support for phyCORE-i.MX 6UL/ULL with eMMC. Including board code and default environment. Signed-off-by: Stefan Riedmueller --- arch/arm/boards/phytec-som-imx6/board.c| 18 +++--- .../defaultenv-physom-imx6ul-phycore/boot/emmc | 5

[PATCH 1/8] ARM: phytec-som-imx6: Add low cost variant for imx6dl phycore

2019-07-02 Thread Stefan Riedmueller
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. Signed-off-by: Stefan Riedmueller --- arch/arm/boards/phytec-som-imx6/lowlevel.c | 2 + arch/arm/dts/Makefile

[PATCH 3/8] ARM: dts: imx6ul: phycore: Add eeprom label

2019-07-02 Thread Stefan Riedmueller
Add a label for the EEPROM to be able to address it for the state framework. Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6ul-phytec-phycore-som.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imx6ul-phytec-phycore-som.dtsi b/arch/arm/dts/imx6ul

[PATCH 2/8] ARM: dts: imx6qdl: phycore: Add state framework

2019-07-02 Thread Stefan Riedmueller
From: Daniel Schultz Add the state framework with EEPROM backend. Signed-off-by: Daniel Schultz Signed-off-by: Stefan Riedmueller --- 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

[PATCH] ARM: mach-imx: imx6: Read and print the UID of i.MX6 SOCs

2019-07-02 Thread Stefan Riedmueller
Read the unified ID of the i.MX 6 SOCs and print it in the boot log. Signed-off-by: Stefan Riedmueller --- arch/arm/mach-imx/imx6.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-imx/imx6.c b/arch/arm/mach-imx/imx6.c index e898be9ab545..66f3d22a68a7

[PATCH] nvmem: ocotp: Fix writing of second mac address fuses on imx6ul

2018-12-19 Thread Stefan Riedmueller
Commit 19a32c0f6bf0 ("nvmem: ocotp: Add support for second mac address fuses on imx6ul") added support for correctly reading the second MAC address from fuses of the i.MX 6UL/ULL but not for writing. So also fit writing of the second MAC address fuses to the correct method. Signed-off-

[PATCH 2/3] ARM: dts: phyCORE-i.MX 6UL/ULL: Enable USB OTG on port 1

2018-12-05 Thread Stefan Riedmueller
From: Fabian Godehardt Enable USB OTG support on USB OTG port 1 of the phyCORE-i.MX 6UL/ULL. Signed-off-by: Fabian Godehardt Signed-off-by: Stefan Riedmueller --- arch/arm/dts/imx6ul-phytec-phycore-som.dts | 4 arch/arm/dts/imx6ul-phytec-phycore-som.dtsi | 14 ++ arch/arm

[PATCH] phytec-som-imx6: ksz8081_phy_fixup: Don't override B-CAST_OFF strap-in

2018-12-04 Thread Stefan Riedmueller
From: Jan Remmet As PHY address 0 is not used on PHYTEC i.MX 6 and i.MX 6UL SOMs we do not have to override the B-CAST_OFF strap-in which disables broadcast on PHY address 0. Also add some comments about the magic values. Signed-off-by: Jan Remmet Signed-off-by: Stefan Riedmueller --- arch

[PATCH] nvmem: ocotp: Add support for second mac address fuses on imx6ul

2018-12-04 Thread Stefan Riedmueller
| MAC1 | - 0x24| MAC1 | MAC1 | MAC1 | MAC1 | - So to read the second MAC address the first two bytes of 0x23 need to be skipped. Signed-off-by: Christian Hemp Signed-off-by: Stefan Riedmueller

[PATCH] commands: of_display_timings: Add simple-panel support

2018-04-20 Thread Stefan Riedmueller
-by: Stefan Riedmueller <s.riedmuel...@phytec.de> --- commands/of_display_timings.c | 65 --- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/commands/of_display_timings.c b/commands/of_display_timings.c index ccf2db0..ca8275f

[PATCH 2/3] ARM: i.MX6ul: Add Clock support for i.MX6ull

2017-05-11 Thread Stefan Riedmueller
>From linux-4.10 clock support, only skipped some unnecessary clocks Signed-off-by: Stefan Riedmueller <s.riedmuel...@phytec.de> --- drivers/clk/imx/clk-imx6ul.c | 73 +--- 1 file changed, 62 insertions(+), 11 deletions(-) diff --git a/drivers/cl

[PATCH 3/3] ARCH: ARM: Add support for phytec-phycore-imx6ull

2017-05-11 Thread Stefan Riedmueller
Created imx6ull devicetree to support Phytec phyCORE-i.MX6ULL. - 256 MB RAM - 128 MB NAND - 10/100 Mbit Ethernet Signed-off-by: Stefan Riedmueller <s.riedmuel...@phytec.de> --- .../flash-header-phytec-pcl063-256mb.imxcfg| 9 ++ arch/arm/boards/phytec-som-imx6/lowl

[PATCH 1/3] ARM: i.MX: Add i.MX6 ULL support

2017-05-11 Thread Stefan Riedmueller
Signed-off-by: Stefan Riedmueller <s.riedmuel...@phytec.de> --- arch/arm/mach-imx/imx.c | 2 ++ arch/arm/mach-imx/imx6.c | 3 +++ arch/arm/mach-imx/include/mach/imx6.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/arch/arm/mach-imx/imx.c b/arch/arm/ma