[PATCH] arm: dart6ul: fix ddr size macro

2021-01-04 Thread ferlandm
From: Marc Ferland The previous macro was off by one bit and so we were getting a ddr size which was twice the real size. This commit refactors the macro so it returns the right size in _bytes_ and modifies the printf call so the size is still printed in MiB. Signed-off-by: Marc Ferland --- bo

[PATCH 1/1] arm: dart6ul: enable DM_ETH for the dart6ul

2021-01-04 Thread ferlandm
From: Marc Ferland This patch converts the dart6ul ethernet support to DM_ETH and cleans up the legacy ethernet code. The clean up, more specifically: * moves the fec2 node and pin definition to the carrier board DTS since the phy associated with it is on the carrier board and not on the SoM

[PATCH] cosmetic: fix typo in drivers/usb/Kconfig

2020-12-23 Thread ferlandm
From: Marc Ferland This commit fixes a simple typo: sPL --> SPL. Signed-off-by: Marc Ferland --- drivers/usb/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index fedc0134f5..6e291198ab 100644 --- a/drivers/usb/Kconfig +++ b

[PATCH 2/2] arm: dart6ul: read and print SoM info from eeprom on startup

2020-12-22 Thread ferlandm
From: Marc Ferland The dart6ul has an i2c eeprom at 0x50 which contains, among other things, the manufacturing/revision/options info of the SoM. This patch replaces the current checkboard() implementation with a more exhaustive one based on the content of the eeprom. Since this code uses the new

[PATCH 1/2] arm: dart6ul: change compatible string for eeprom

2020-12-22 Thread ferlandm
From: Marc Ferland The eeprom at address 0x50 is a BR24G04NUX-3TTR. It has a 4Kbit (512x8) capacity, change the compatible string to reflect this fact. Also, add an alias to easily refer to this eeprom with fdt_path_offset() which will be in another commit. Signed-off-by: Marc Ferland --- arc

[PATCH v2] i2c: mxc_i2c: improve error message readability

2020-12-21 Thread ferlandm
From: Marc Ferland Use 0x%2lx to print the i2c bus base address in hexadecimal format instead of printing as an integer. Signed-off-by: Marc Ferland --- Changes for v2: - Add commit message drivers/i2c/mxc_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2

[PATCH] i2c: mxc_i2c: improve error message readability

2020-12-19 Thread ferlandm
From: Marc Ferland Signed-off-by: Marc Ferland --- drivers/i2c/mxc_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 7609594bd0..d486dab043 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -954,7 +954,7