[U-Boot] [PATCH 19/20] ARM: dts: at91: sama5d2_xplained: add onewire connector for LCD eeprom

2018-07-19 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d2_xplained.dts | 12 arch/arm/dts/sama5d2.dtsi | 6 ++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_xplained.dts b/arch/arm

[U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured

2018-07-19 Thread Eugen Hristev
Add a sandbox eeprom on the bus as a device, if sandbox driver is configured. Signed-off-by: Eugen Hristev --- drivers/w1/w1-uclass.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c index cfddda3..e58c1ca 100644 --- a/drivers/w1/w1

[U-Boot] [PATCH 12/20] configs: sama5d2_xplained: add onewire and eeprom drivers

2018-07-19 Thread Eugen Hristev
SAMA5D2 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev --- configs

[U-Boot] [PATCH 14/20] board: atmel: add support for pda detection

2018-07-19 Thread Eugen Hristev
-off-by: Eugen Hristev --- board/atmel/common/board.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/board/atmel/common/board.c b/board/atmel/common/board.c index 650eb22..b9cf54c 100644 --- a/board/atmel/common/board.c +++ b/board/atmel/common

[U-Boot] [PATCH 13/20] configs: sama5d3_xplained: add onewire and eeprom drivers

2018-07-19 Thread Eugen Hristev
SAMA5D3 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev --- configs

[U-Boot] [PATCH 05/20] W1-EEPROM: add support for Maxim DS24 eeprom families

2018-07-19 Thread Eugen Hristev
From: Maxime Ripard Add a driver that supports Maxim 1 wire EEPROMs families DS24B33 and DS2431. Can be extended for other families as well. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked driver] Signed-off-by: Eugen Hristev --- drivers/w1-eeprom/Kconfig | 6

[U-Boot] [PATCH 15/20] board: sama5d2_xplained: add pda detect call at init time

2018-07-19 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b

[U-Boot] [PATCH 06/20] W1-EEPROM: add sandbox driver

2018-07-19 Thread Eugen Hristev
Add a sandbox driver for a one wire EEPROM memory Signed-off-by: Eugen Hristev --- drivers/w1-eeprom/Kconfig | 6 + drivers/w1-eeprom/Makefile | 1 + drivers/w1-eeprom/eep_sandbox.c | 57 + include/w1.h| 1 + 4 files

[U-Boot] [PATCH 08/20] pinctrl: sandbox: add gpio onewire w1 group

2018-07-19 Thread Eugen Hristev
Add onewire "w1" groups and pin function for onewire GPIOs in sandbox. Signed-off-by: Eugen Hristev --- drivers/pinctrl/pinctrl-sandbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 468fa2a..755a

[U-Boot] [PATCH 07/20] w1: add command for onewire protocol

2018-07-19 Thread Eugen Hristev
Add basic command for bus information and read for onewire bus using Dallas 1-Wire protocol. Signed-off-by: Eugen Hristev --- cmd/Kconfig | 7 cmd/Makefile | 1 + cmd/w1.c | 121 +++ 3 files changed, 129 insertions(+) create

[U-Boot] [PATCH 04/20] W1-EEPROM: Add an W1-EEPROM uclass for 1 wire EEPROMs

2018-07-19 Thread Eugen Hristev
From: Maxime Ripard We might want to access data stored onto one wire EEPROMs. Create a framework to provide a consistent API. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked patch] Signed-off-by: Eugen Hristev --- drivers/Kconfig | 2 ++ drivers

[U-Boot] [PATCH 02/20] w1: Add 1-Wire gpio driver

2018-07-19 Thread Eugen Hristev
From: Maxime Ripard Add a bus driver for bitbanging a 1-Wire bus over a GPIO. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: addressed review comments] Signed-off-by: Eugen Hristev --- drivers/w1/Kconfig | 7 +++ drivers/w1/Makefile | 2 + drivers/w1/w1-gpio.c | 158

[U-Boot] [PATCH 03/20] dt-bindings: W1: w1-gpio: added bindings for w1-gpio

2018-07-19 Thread Eugen Hristev
Added bindings specification for bitbanged gpio driver for Dallas one wire protocol Signed-off-by: Eugen Hristev --- doc/device-tree-bindings/w1/w1-gpio.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 04 doc/device-tree-bindings/w1 create mode 100644 doc

[U-Boot] [PATCH 01/20] w1: Add 1-Wire uclass

2018-07-19 Thread Eugen Hristev
From: Maxime Ripard We might want to use 1-Wire devices connected on boards such as EEPROMs in U-Boot. Provide a framework to be able to do that. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: fixed small issues and rebased] Signed-off-by: Eugen Hristev --- drivers/Kconfig

[U-Boot] [PATCH 00/20] Add support for 1wire protocol and 1wire eeproms

2018-07-19 Thread Eugen Hristev
is updated to include a onewire node. This is done in patch: [PATCH 20/20] ARM: dts: at91: sama5d3_xplained: add onewire connector Eugen Hristev (16): dt-bindings: W1: w1-gpio: added bindings for w1-gpio W1-EEPROM: add sandbox driver w1: add command for onewire protocol pinctrl: sandbox

[U-Boot] [PATCH 2/2] configs: sama5d2_xplained: fix bootcmd/args for spi+emmc demo

2018-05-11 Thread Eugen Hristev
mmon: Move CONFIG_BOOTARGS to Kconfig Signed-off-by: Eugen Hristev --- configs/sama5d2_xplained_spiflash_defconfig | 2 +- include/configs/sama5d2_xplained.h | 9 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configs/sama5d2_xplained_spiflash_defconfig

[U-Boot] [PATCH 1/2] configs: sama5d2_xplained: set default FAT env location to SD-Card

2018-05-11 Thread Eugen Hristev
, to align with our demo layout. Signed-off-by: Eugen Hristev --- configs/sama5d2_xplained_mmc_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama5d2_xplained_mmc_defconfig b/configs/sama5d2_xplained_mmc_defconfig index 066fdb3..b5233a6 100644 --- a/configs

[U-Boot] [PATCH v2 2/2] test: fs: fs-test: Modified test 1 to do a ls to a nonexistent dir

2018-05-09 Thread Eugen Hristev
Added a simple ls to a nonexistent directory for test 1. In case the driver is broken for a nonexistent directory, U-boot might crash. Here is an example failed output: => # Test Case 1 - ls => ext4ls host 0:0 4096 . 4096 .. 16384 lost+found 4096 SUBDIR 262144

[U-Boot] [PATCH v2 1/2] fs: ext4: fix crash on ext4ls

2018-05-09 Thread Eugen Hristev
ave a crash with data abort. I added initialization and a check for dirname being NULL. Fixes: "fa9ca8a" fs/ext4/ext4fs.c: Free dirnode in error path of ext4fs_ls Cc: Stefan Brüns Cc: Tom Rini Signed-off-by: Eugen Hristev --- Changes in v2: - Added test case in test/fs/fs-test.sh in a d

[U-Boot] [PATCH] configs: sama5d2_xplained: enable ext4 command support

2018-05-09 Thread Eugen Hristev
To support loading the zImage + DTB from the rootfs ext4 partitions, enable the ext4 command support. Based on original work by Wenyou Yang Signed-off-by: Eugen Hristev --- configs/sama5d2_xplained_mmc_defconfig | 1 + configs/sama5d2_xplained_spiflash_defconfig | 1 + 2 files changed, 2

[U-Boot] [PATCH] fs: ext4: fix crash on ext4ls

2018-05-09 Thread Eugen Hristev
ave a crash with data abort. I added initialization and a check for dirname being NULL. Fixes: "fa9ca8a" fs/ext4/ext4fs.c: Free dirnode in error path of ext4fs_ls Cc: Stefan Brüns Cc: Tom Rini Signed-off-by: Eugen Hristev --- Hello, Regarding this fix, I am not sure if we actually

[U-Boot] [PATCH] clk: at91: clk-h32mx: replace dm_warn with dev_dbg

2018-05-09 Thread Eugen Hristev
dm_warn is too noisy, replace with dev_dbg for less noise. Based on original work by Wenyou Yang Signed-off-by: Eugen Hristev --- drivers/clk/at91/clk-h32mx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/clk-h32mx.c b/drivers/clk/at91/clk-h32mx.c index

[U-Boot] [PATCH 3/3] configs: at91sam9x5ek: updated mtdparts variable in bootargs

2018-05-09 Thread Eugen Hristev
original work by Wenyou Yang Signed-off-by: Eugen Hristev --- configs/at91sam9x5ek_dataflash_defconfig | 2 +- configs/at91sam9x5ek_nandflash_defconfig | 2 +- configs/at91sam9x5ek_spiflash_defconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs

[U-Boot] [PATCH 1/3] configs: at91: sama5_common: Adjust CONFIG_ENV_OFFSET to match block alignment

2018-05-09 Thread Eugen Hristev
version of u-boot] Signed-off-by: Eugen Hristev --- include/configs/at91-sama5_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/at91-sama5_common.h b/include/configs/at91-sama5_common.h index 5af7d1d..30c6cd4 100644 --- a/include/configs/at91-sama5_common.h

[U-Boot] [PATCH 2/3] configs: at91: Adjust CONFIG_ENV_OFFSET to match sama5 address

2018-05-09 Thread Eugen Hristev
...@microchip.com: rework on latest version of u-boot] Signed-off-by: Eugen Hristev --- include/configs/at91sam9260ek.h| 2 +- include/configs/at91sam9261ek.h| 2 +- include/configs/at91sam9263ek.h| 2 +- include/configs/at91sam9m10g45ek.h | 2 +- include/configs/at91sam9n12ek.h| 2

[U-Boot] [PATCH 0/3] Adjust at91 boards config offset for all boards

2018-05-09 Thread Eugen Hristev
ds will be aligned with the same flash memory map linked above. Thanks! Eugen Hristev (1): configs: at91sam9x5ek: updated mtdparts variable in bootargs Nicolas Ferre (2): configs: at91: sama5_common: Adjust CONFIG_ENV_OFFSET to match block alignment configs: at91: Adjust CONFIG_ENV_OFFSE

[U-Boot] [PATCH] defconfig: at91-sama5d2_ptc_ek: remove unused SYS_EXTRA_OPTIONS

2018-04-25 Thread Eugen Hristev
From: Ludovic Desroches Remove SYS_USE_NANDFLASH, SYS_USE_MMC as they are deprecated and unused. The board configurations already use CONFIG_SD_BOOT and CONFIG_NAND_BOOT respectively. Signed-off-by: Ludovic Desroches [eugen.hris...@microchip.com: rework on latest u-boot] Signed-off-by: Eugen

[U-Boot] [PATCH] board: sama5d27_som1_ek: Fix the USB vbus power

2018-04-24 Thread Eugen Hristev
According to the REVB schematic, fix the USB vbus power enable pin. Based on original work by Wenyou Yang Signed-off-by: Eugen Hristev --- board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/atmel/sama5d27_som1_ek

[U-Boot] [PATCH] configs: at91: sama5: updated mtdparts variable in bootargs

2018-04-24 Thread Eugen Hristev
original work by Wenyou Yang Signed-off-by: Eugen Hristev --- configs/sama5d36ek_cmp_nandflash_defconfig | 2 +- configs/sama5d36ek_cmp_spiflash_defconfig| 2 +- configs/sama5d3_xplained_nandflash_defconfig | 2 +- configs/sama5d3xek_nandflash_defconfig | 2 +- configs

[U-Boot] [PATCH] board: sama5d2_ptc_ek: adjust the smc timings of nand

2018-04-24 Thread Eugen Hristev
To fix the issue of write the rootfs.ubi, adjust the smc timings configuration of the nand controller. Based on original work by Wenyou Yang Signed-off-by: Eugen Hristev --- board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[U-Boot] [PATCH] gpio: atmel_pio4: give a full configuration when muxing pins

2018-04-24 Thread Eugen Hristev
From: Ludovic Desroches When a pin is muxed to a peripheral or as a GPIO, the only configuration that can be set is the pullup. It is too restrictive so this patch allows to give a full configuration. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/include/mach/atmel_pio4.h| 16 +++

[U-Boot] [PATCH 1/2] gpio: atmel_pio4: add drive strength macros

2018-04-23 Thread Eugen Hristev
From: Ludovic Desroches Macros for drive strength configuration were missing. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/include/mach/atmel_pio4.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-at91/include/mach/atmel_pio4.h b/arch/arm/mach-at91/include/mac

[U-Boot] [PATCH 0/2] Drive stregth for sama5d2_ptc_ek

2018-04-23 Thread Eugen Hristev
These patches are originally created by Ludovic Desroches. For the Sama5d2_ptc_ek board, we need to set nand PIO drive strength. Created macros for drive strength configuration. The drive strength has to be set to medium for the NAND data lines. With a low drive, we can get some data corruption.

[U-Boot] [PATCH 2/2] board: atmel: sama5d2_ptc_ek: update pin configuration for NAND

2018-04-23 Thread Eugen Hristev
From: Ludovic Desroches The drive strength has to be set to medium for the NAND data lines. With a low drive, we can get some data corruption. Signed-off-by: Ludovic Desroches --- board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c | 16 1 file changed, 8 insertions(+), 8 deletions(-)

<    2   3   4   5   6   7