[PATCH] of: platform: rename parameter 'bus' to 'node' in of_platform_bus_create()

2025-07-17 Thread Bo Sun
The parameter represents a device tree node, not specifically a bus. Use more accurate naming following device tree conventions. Signed-off-by: Bo Sun --- drivers/of/platform.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/of/platform.c b/drivers

[PATCH] driver: convert struct device comments to kernel-doc style

2025-07-17 Thread Bo Sun
Convert the comments of struct device from the old style to standard kernel-doc style. No functional changes. Signed-off-by: Bo Sun --- As suggested, I took the opportunity to switch struct device comments to kernel-doc style. include/device.h | 86

Re: [PATCH 1/3] driver: clean up comment formatting and spacing

2025-07-11 Thread Bo Sun
On 2025-07-11 20:39, Ahmad Fatoum wrote: Hello Bo, On 7/11/25 14:27, Bo Sun wrote: - Fixed a missing closing parenthesis in the comment for DEVICE_ID_SINGLE - Cleaned up indentation and alignment of multi-line comments in struct device - Removed redundant spaces in function pointer

[PATCH 1/3] driver: clean up comment formatting and spacing

2025-07-11 Thread Bo Sun
- Fixed a missing closing parenthesis in the comment for DEVICE_ID_SINGLE - Cleaned up indentation and alignment of multi-line comments in struct device - Removed redundant spaces in function pointer declarations No functional changes. Signed-off-by: Bo Sun --- include/device.h | 18

[PATCH 3/3] of: base: fix of_match_node function documentation

2025-07-11 Thread Bo Sun
Fix grammar error, correct structure name, and add missing return value description. Signed-off-by: Bo Sun --- drivers/of/base.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 1439e55a0a..903adb3670 100644 --- a/drivers/of

[PATCH 2/3] miitool: clarify help text for default behavior and -s option

2025-07-11 Thread Bo Sun
The -s option description was misleading about default behavior. Clarify that miitool without options shows all PHYs, and -s requires a device argument. Signed-off-by: Bo Sun --- commands/miitool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/miitool.c b

[PATCH] barebox.h: correct barebox_main default comment

2025-07-01 Thread Bo Sun
The comment incorrectly states that barebox_main defaults to run_shell() when a shell is enabled. In fact, it defaults to run_init() when both shell and command support are enabled. Update the comment to match the actual logic. Signed-off-by: Bo Sun --- include/barebox.h | 2 +- 1 file changed

Re: [PATCH 1/1] spi: convert transfer delay to new spi_delay struct

2025-06-30 Thread bo
On 2025-06-30 16:08, Sascha Hauer wrote: Hi, On Fri, Jun 27, 2025 at 08:28:11PM +0800, Bo Sun wrote: Replace the deprecated delay_usecs field with the new spi_delay struct in spi_transfer structure. Update spi_transfer_one_message to use spi_delay_exec and the mc13xxx driver to use the new

[PATCH 0/1] spi: convert transfer delay to new spi_delay struct

2025-06-27 Thread Bo Sun
This resolves the TODO comment in spi_transfer_one_message(). Only one driver (mc13xxx) was using the delay_usecs field, making this a straightforward conversion with minimal impact. Bo Sun (1): spi: convert transfer delay to new spi_delay struct drivers/mfd/mc13xxx.c | 5 - drivers/spi

[PATCH 1/1] spi: convert transfer delay to new spi_delay struct

2025-06-27 Thread Bo Sun
Replace the deprecated delay_usecs field with the new spi_delay struct in spi_transfer structure. Update spi_transfer_one_message to use spi_delay_exec and the mc13xxx driver to use the new structure. Signed-off-by: Bo Sun --- drivers/mfd/mc13xxx.c | 5 - drivers/spi/spi.c | 4

[PATCH 0/1] Fix documentation for git checkout command

2025-06-20 Thread bo
From: Bo Sun This patch fixes a minor error in the Barebox documentation where the git checkout command uses incorrect remote branch syntax. Bo Sun (1): docs: fix git checkout command for next branch Documentation/user/barebox.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/1] docs: fix git checkout command for next branch

2025-06-20 Thread bo
From: Bo Sun Correct the remote branch reference from 'origin/remotes/next' to 'remotes/origin/next' in the documentation. Signed-off-by: Bo Sun --- Documentation/user/barebox.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentatio

[PATCH] ARM: atmel: sama5d4_xplained: switch to env2

2015-03-09 Thread Bo Shen
Switch sama5d4 xplained board to use default environment 2. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d4_xplained/env/boot/mmc | 8 + arch/arm/boards/sama5d4_xplained/env/boot/nand | 8 + arch/arm/boards/sama5d4_xplained/env/config| 42

Re: mtd partition handling updates

2015-02-12 Thread Bo Shen
he whole series, test OK with Doug's patch on sama5d4ek board. Tested-by: Bo Shen commands/partition.c | 104 + defaultenv/defaultenv-2-base/bin/mtdparts-add | 15 +- drivers/mtd/core.c| 213 +- d

Re: [PATCH] SAMA5D4EK - Now uses the new environment.

2015-02-12 Thread Bo Shen
RT=y CONFIG_CMD_LOADENV=y CONFIG_CMD_PRINTENV=y +CONFIG_CMD_MAGICVAR=y +CONFIG_CMD_MAGICVAR_HELP=y CONFIG_CMD_SAVEENV=y CONFIG_CMD_FILETYPE=y CONFIG_CMD_SLEEP=y diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index b85e6fa..5b27526 100644 --- a/arch/arm/mach-at91/Kconf

Re: [PATCH] ARM: atmel: sama5d4 xplained: correc env path

2015-02-10 Thread Bo Shen
Hi Sascha, I found there is a typo error in subject. "s/correc/correct" Can you help fix it? Thanks. On 02/10/2015 05:36 PM, Sascha Hauer wrote: On Tue, Feb 10, 2015 at 04:04:01PM +0800, Bo Shen wrote: Correct the environment path for sama5d4 xplained board. Signed-off-b

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Bo Shen
mean let Doug to keep the default boot from net? I did send patch for this in the past but they did not hit the mainline Can you point us this? Thanks. Best Regards, J. Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradea

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Bo Shen
Doug Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Bo Shen
h-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 9ee4f30..7207232 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -489,6 +489,7 @@ choice config MACH_SAMA5D4EK bool "Atmel SAMA5D4 Evaluation Kit" + select HAVE_DEFAULT_ENVIRONMENT_NEW help Select this if you are using Atmel's SAMA5D4-EK Evaluation Kit. Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Bo Shen
-bootargs="console=ttyS0,115200" +bootargs="console=ttyS0,115200 ubi.mtd=8 ubi.mtd=9 init=/init androidboot.hardware=sama5-pda androidboot.lcd=wvga" # set a fancy prompt (if support is compiled in) PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m\n# " Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] ARM: atmel: sama5d4 xplained: correc env path

2015-02-10 Thread Bo Shen
Correct the environment path for sama5d4 xplained board. Signed-off-by: Bo Shen --- arch/arm/configs/sama5d4_xplained_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/sama5d4_xplained_defconfig b/arch/arm/configs/sama5d4_xplained_defconfig index

[PATCH] ARM: atmel: at91sam9n12: add subtype support

2015-02-05 Thread Bo Shen
As the at91sam9n12 series includes at91sam9n12, at91sam9cn11, at91sam9cn12. So, add subtype to distinguish them. Signed-off-by: Bo Shen --- arch/arm/mach-at91/include/mach/cpu.h | 7 +++ arch/arm/mach-at91/setup.c| 17 + 2 files changed, 24 insertions(+) diff

[PATCH] usb: at91_udc: pass the vbus initial value

2015-02-04 Thread Bo Shen
If without pass the vbus initial value, the vbus status alway present as 0 even if the vbus is connected to 5v. Signed-off-by: Bo Shen --- drivers/usb/gadget/at91_udc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index

[PATCH] ARM: atmel: at91sam9n12ek: correct udc device name

2015-02-04 Thread Bo Shen
The created device name for atmel udc is at91_udc while not at91_udc0. Signed-off-by: Bo Shen --- arch/arm/boards/at91sam9n12ek/env/bin/init_board | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/at91sam9n12ek/env/bin/init_board b/arch/arm/boards

Re: Passing kernel arguments - SAMA5D4EK

2015-02-03 Thread Bo Shen
environment is board specific and your board isn't converted yet. If you are interested I can show you the steps to convert it. I am interested in this, could you show me the steps to convert it? Thanks. Sascha Best Regards, Bo Shen ___ ba

[PATCH] ARM: atmel: sama5d4: nand: add has_pmecc parameter

2015-01-28 Thread Bo Shen
Add the missing has_pmecc parameter for sama5d4 based boards. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c | 1 + arch/arm/boards/sama5d4ek/sama5d4ek.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boards/sama5d4_xplained

Re: [PATCH] ARM: atmel: sama5d3xek: fix conflict between w1 and led

2015-01-23 Thread Bo Shen
Hi J, On 01/23/2015 03:58 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 6:03 PM, Bo Shen wrote: Hi J, On 01/21/2015 05:56 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 5:41 PM, Sascha Hauer wrote: On Tue, Jan 20, 2015 at 03:31:25PM +0800, Bo Shen

[PATCH] ARM: atmel: sama5d3xek: let emac auto detect phy addr

2015-01-21 Thread Bo Shen
On the SAMA5D35 the EMAC phy addr is 1 while not 0. So, let the EMAC auto detect phy addr, or else hard code to 0, the ethernet can not work on SAMA5D35 board. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d3xek/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

Re: [PATCH] ARM: atmel: sama5d3xek: let gmac auto detect phy id

2015-01-21 Thread Bo Shen
Hi J, On 01/22/2015 12:35 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 11:07 PM, Sascha Hauer wrote: On Mon, Jan 19, 2015 at 12:39:39PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 17:54 Mon 19 Jan , Bo Shen wrote: On the SAMA5D33 and SAMA5D35 the GMAC PHY ID

Re: [PATCH] ARM: atmel: sama5d3xek: let gmac auto detect phy id

2015-01-21 Thread Bo Shen
On 01/22/2015 01:12 PM, Bo Shen wrote: Hi J, On 01/22/2015 12:35 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 11:07 PM, Sascha Hauer wrote: On Mon, Jan 19, 2015 at 12:39:39PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 17:54 Mon 19 Jan , Bo Shen wrote: On the

Re: [PATCH] ARM: atmel: sama5d3xek: fix conflict between w1 and led

2015-01-21 Thread Bo Shen
Hi J, On 01/21/2015 05:56 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 5:41 PM, Sascha Hauer wrote: On Tue, Jan 20, 2015 at 03:31:25PM +0800, Bo Shen wrote: As the 1-wire and LED d2 use the same pin (PE25) on the EK board. So, make LED enable only when the 1-wire is

[PATCH] ARM: atmel: sama5d3xek: fix conflict between w1 and led

2015-01-19 Thread Bo Shen
As the 1-wire and LED d2 use the same pin (PE25) on the EK board. So, make LED enable only when the 1-wire is disabled. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d3xek/init.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards

[PATCH] ARM: atmel: sama5d4 xplained: fix mci1 power pin

2015-01-19 Thread Bo Shen
Correct the mci1 power pin from PE15 to PE4. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c b/arch/arm/boards/sama5d4_xplained

Re: [PATCH] ARM: atmel: sama5d3xek: let gmac auto detect phy id

2015-01-19 Thread Bo Shen
Hi J, On 01/19/2015 07:39 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 17:54 Mon 19 Jan , Bo Shen wrote: On the SAMA5D33 and SAMA5D35 the GMAC PHY ID is 1 while not 7. So, let the GMAC auto detect phy id, or else hard code to 7, it can not work on these two boards. Signed-off-by: Bo

[PATCH] ARM: atmel: sama5d3xek: let gmac auto detect phy id

2015-01-19 Thread Bo Shen
On the SAMA5D33 and SAMA5D35 the GMAC PHY ID is 1 while not 7. So, let the GMAC auto detect phy id, or else hard code to 7, it can not work on these two boards. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d3xek/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH 2/2] ARM: atmel: sama5d4ek: correct the typo

2015-01-14 Thread Bo Shen
Signed-off-by: Bo Shen --- arch/arm/boards/sama5d4ek/sama5d4ek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/sama5d4ek/sama5d4ek.c b/arch/arm/boards/sama5d4ek/sama5d4ek.c index bbc53c6..1e7c08c 100644 --- a/arch/arm/boards/sama5d4ek/sama5d4ek.c +++ b

[PATCH 1/2] ARM: atmel: sama5d4 xplained: correct the name

2015-01-14 Thread Bo Shen
Correct the function and board name for sama5d4 xplained board. Signed-off-by: Bo Shen --- .../arm/boards/sama5d4_xplained/sama5d4_xplained.c | 24 +++--- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c b/arch

[PATCH] ARM: atmel: add sama5d4 xplained ultra board support

2014-10-29 Thread Bo Shen
The sama5d4 xplained ultra board support following features: - NAND flash support - SPI flash support - MMC card support (MCI1) - LCD display support (with QT1070) - Ethernet support Signed-off-by: Bo Shen --- arch/arm/boards/Makefile | 1 + arch/arm

Re: [PATCH 6/7] i2c: at91: fix invalid length check

2014-10-20 Thread Bo Shen
Hi Lucas, On 10/21/2014 02:16 AM, Lucas Stach wrote: Signed-off-by: Lucas Stach Acked-by: Bo Shen --- drivers/i2c/busses/i2c-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index deb4ea4

Re: [PATCH 4/7] arm: at91: remove unused variable

2014-10-20 Thread Bo Shen
Hi Lucas, On 10/21/2014 02:15 AM, Lucas Stach wrote: Signed-off-by: Lucas Stach Acked-by: Bo Shen --- arch/arm/mach-at91/clock.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index 7a4282e..a7051c3 100644 --- a/arch/arm

[PATCH v2 2/4] ARM: at91: add sama5d4 soc support #1

2014-09-23 Thread Bo Shen
Signed-off-by: Bo Shen --- Changes in v2: - Multi line the #define arch/arm/mach-at91/clock.c | 58 +++--- arch/arm/mach-at91/clock.h | 2 +- arch/arm/mach-at91/include/mach/at91_pmc.h | 1 + arch/arm/mach-at91/include/mach/cpu.h

[PATCH v2 4/4] ARM: at91: add sama5d4ek board support

2014-09-23 Thread Bo Shen
Add Atmel sama5d4ek board support, which include following features: - NAND flash support - SPI flash support - MMC card support (MCI1) - LCD display support (with QT1070) - Ethernet support Signed-off-by: Bo Shen --- Changes in v2: - Add new LED D9. arch/arm/boards/Makefile

[PATCH v2 3/4] ARM: at91: add sama5d4 soc support #2

2014-09-23 Thread Bo Shen
Signed-off-by: Bo Shen --- Changes in v2: - Using clkdev_add_physbase to define GPIO clock. arch/arm/mach-at91/include/mach/sama5d4.h | 134 arch/arm/mach-at91/sama5d4.c | 304 ++ arch/arm/mach-at91/sama5d4_devices.c | 495

[PATCH v2 1/4] net: macb: enable GEM with only FE feature

2014-09-23 Thread Bo Shen
RGMII/GMII. Signed-off-by: Bo Shen --- Changes in v2: - using the same bit for RMII/MII configuration for GEM only with FE feature. drivers/net/macb.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 12a2a3c..876af0d 100644

[PATCH v2 0/4] ARM: at91: add sama5d4ek board support

2014-09-23 Thread Bo Shen
configuration for GEM with only FE feature enable. Bo Shen (4): net: macb: enable GEM with only FE feature ARM: at91: add sama5d4 soc support #1 ARM: at91: add sama5d4 soc support #2 ARM: at91: add sama5d4ek board support arch/arm/boards/Makefile | 1 + arch/arm/boards

Re: [PATCH 7/9] ARM: at91: add sama5d4 soc support #1

2014-09-22 Thread Bo Shen
Hi Sascha, On 09/18/2014 02:10 PM, Sascha Hauer wrote: On Wed, Sep 17, 2014 at 06:21:33PM +0800, Bo Shen wrote: Signed-off-by: Bo Shen --- diff --git a/arch/arm/mach-at91/sam9_smc.c b/arch/arm/mach-at91/sam9_smc.c index 9f02807..5df7109 100644 --- a/arch/arm/mach-at91/sam9_smc.c +++ b/arch

Re: [PATCH 5/9] net: macb: using default value for FBLDO

2014-09-21 Thread Bo Shen
Hi Sascha, On 09/22/2014 12:59 PM, Sascha Hauer wrote: On Wed, Sep 17, 2014 at 06:21:31PM +0800, Bo Shen wrote: Signed-off-by: Bo Shen --- drivers/net/macb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 12a2a3c..ef49f74 100644 --- a

Re: [PATCH 8/9] ARM: at91: add sama5d4 soc support #2

2014-09-17 Thread Bo Shen
ink use the GPIO i2c first, after the i2c fix has been applied, then switch to use atmel i2c driver. In this way, it won't block the sama5d4ek board support go into mainline. Btw, if the i2c fix has been applied before I send the v2 patch, I will switch to use atmel i2c driver. Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 7/9] ARM: at91: add sama5d4 soc support #1

2014-09-17 Thread Bo Shen
Signed-off-by: Bo Shen --- arch/arm/mach-at91/clock.c | 58 +++--- arch/arm/mach-at91/clock.h | 2 +- arch/arm/mach-at91/include/mach/at91_pmc.h | 1 + arch/arm/mach-at91/include/mach/cpu.h | 28 +++ arch/arm/mach-at91

[PATCH 3/9] ARM: at91: clock: use cpu_has_pcr for pcr1 checking

2014-09-17 Thread Bo Shen
Signed-off-by: Bo Shen --- arch/arm/mach-at91/clock.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index 9d2a846..50450f5 100644 --- a/arch/arm/mach-at91/clock.c +++ b/arch/arm/mach-at91/clock.c

[PATCH 6/9] mci: atmel: add new ip version 0x600 support

2014-09-17 Thread Bo Shen
Signed-off-by: Bo Shen --- drivers/mci/atmel_mci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c index 36107a6..b36fbe3 100644 --- a/drivers/mci/atmel_mci.c +++ b/drivers/mci/atmel_mci.c @@ -511,6 +511,7 @@ static void atmci_get_cap(struct

[PATCH 5/9] net: macb: using default value for FBLDO

2014-09-17 Thread Bo Shen
Signed-off-by: Bo Shen --- drivers/net/macb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 12a2a3c..ef49f74 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -304,7 +304,6 @@ static void macb_configure_dma(struct macb_device *bp

[PATCH 9/9] ARM: at91: add sama5d4ek board support

2014-09-17 Thread Bo Shen
Add Atmel sama5d4ek board support, which include following features: - NAND flash support - SPI flash support - MMC card support (MCI1) - LCD display support (with QT1070) - Ethernet support Signed-off-by: Bo Shen --- arch/arm/boards/Makefile | 1 + arch/arm

[PATCH 2/9] ARM: atmel: sama5d3 is a family member of sama5

2014-09-17 Thread Bo Shen
As the sama5d3 is a family member of sama5, so only check sama5 family. Signed-off-by: Bo Shen --- arch/arm/mach-at91/include/mach/cpu.h | 2 +- arch/arm/mach-at91/setup.c| 2 +- arch/arm/mach-at91/soc.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 1/9] ARM: at91: move pmc base address into soc header

2014-09-17 Thread Bo Shen
As the PMC base address may be different between each SoC, so move them to SoC header. Signed-off-by: Bo Shen --- arch/arm/mach-at91/include/mach/at91rm9200.h | 1 + arch/arm/mach-at91/include/mach/at91sam9260.h | 2 ++ arch/arm/mach-at91/include/mach/at91sam9261.h | 1 + arch/arm/mach-at91

[PATCH 4/9] nand: atmel: runtime to generate galois table

2014-09-17 Thread Bo Shen
Signed-off-by: Bo Shen --- drivers/mtd/nand/atmel_nand.c | 121 -- 1 file changed, 117 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 1e7c6c6..fa4fac2 100644 --- a/drivers/mtd/nand

[PATCH 8/9] ARM: at91: add sama5d4 soc support #2

2014-09-17 Thread Bo Shen
Signed-off-by: Bo Shen --- arch/arm/mach-at91/include/mach/sama5d4.h | 134 arch/arm/mach-at91/sama5d4.c | 303 ++ arch/arm/mach-at91/sama5d4_devices.c | 495 ++ 3 files changed, 932 insertions(+) create mode 100644 arch

[PATCH 0/9] ARM: at91: add sama5d4ek board support

2014-09-17 Thread Bo Shen
This patch series add Atmel new SoC SAMA5D4 support, which embedded the Cortex-A5 core. This patch series also add the EK board base on SAMA5D4 SoC support. Bo Shen (9): ARM: at91: move pmc base address into soc header ARM: atmel: sama5d3 is a family member of sama5 ARM: at91: clock: use

Re: [PATCH] Makefile: remove never reached code

2014-09-03 Thread Bo Shen
Hi, Sorry for this noise, it goes wrong to the barebox ML. Please ignore it. On 09/04/2014 09:43 AM, Bo Shen wrote: Signed-off-by: Bo Shen --- Makefile | 8 1 file changed, 8 deletions(-) diff --git a/Makefile b/Makefile index 5cd0369..7a7ad38 100644 --- a/Makefile +++ b

[PATCH] Makefile: remove never reached code

2014-09-03 Thread Bo Shen
Signed-off-by: Bo Shen --- Makefile | 8 1 file changed, 8 deletions(-) diff --git a/Makefile b/Makefile index 5cd0369..7a7ad38 100644 --- a/Makefile +++ b/Makefile @@ -180,14 +180,6 @@ endif BOOT_NAME=$(BOARDNAME)-$(PROJECT)$(CARD_SUFFIX)boot-$(TARGET_NAME)$(BLOB)-$(VERSION)$(REV

Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-06 Thread Bo Shen
then apply your patch and generate the series and send it, then there won't have "signed-off" issue. (In general, keep my "signed-off" and add your "signed-off" if you prefer). Best Regards, Bo Shen _

Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-05 Thread Bo Shen
Hi Raphaël Poggi, On 08/06/2014 04:05 AM, Raphaël Poggi wrote: I am ready to send a v3. Are you going to send your fix or you want me to squash it in v3 ? Please send it together with your patch. Thanks. Best Regards, Raphaël Poggi Best Regards, Bo Shen

Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-05 Thread Bo Shen
Hi Raphaël Poggi, On 08/04/2014 05:29 PM, Bo Shen wrote: Hi Raphaël Poggi, On 08/04/2014 05:22 PM, Raphaël Poggi wrote: Hi, I have tested it on a custom board which use a sam9m10 and it worked... Tell me more when we have found something suspicious. I tested on sama5d3xek with qt1070

Re: [PATCH V2 1/2] i2c: at91: add support of device tree

2014-08-04 Thread Bo Shen
Hi Raphaël Poggi, On 08/04/2014 05:42 PM, Raphaël Poggi wrote: > >Btw, do you use "tab" for alignment? Yes, but maybe my vim config is wrong ? (set tabstop=4, set shiftwidth=4, set softtabstop=4) In general, the tabstop = 8. Best

Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-04 Thread Bo Shen
can not access qt1070, if I use i2c-gpio driver, it works well. I am still working on it, if any news, I will let you know. Best Regards, Bo Shen Thanks for your test. Raphaël Poggi 2014-08-04 11:11 GMT+02:00 Bo Shen : Hi Raphaël Poggi, I try to manage to make the i2c driver work

Re: [PATCH V2 2/2] at91sam9g45: clock: add i2c clocks

2014-08-04 Thread Bo Shen
V_DEV_ID("at91rm9200-gpio0", &pioA_clk), CLKDEV_DEV_ID("at91rm9200-gpio1", &pioB_clk), CLKDEV_DEV_ID("at91rm9200-gpio2", &pioC_clk), Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH V2 1/2] i2c: at91: add support of device tree

2014-08-04 Thread Bo Shen
tatic struct driver_d at91_twi_driver = { .name = "at91-twi", .probe = at91_twi_probe, .id_table = at91_twi_devtypes, + .of_compatible = DRV_OF_COMPAT(at91_twi_dt_ids), }; device_platform_driver(at91_twi_driver); Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH V2 0/2] Add device tree support of i2c Atmel driver

2014-08-04 Thread Bo Shen
Hi Raphaël Poggi, I try to manage to make the i2c driver work, however, failed for non device tree. I am still checking it. However, some comments for the patches. Best Regards, Bo Shen On 08/04/2014 04:31 PM, Raphaël Poggi wrote: Change since v1: * Squash the commit [1] which

Re: [PATCH] i2c: at91: add at91sam9x5 config

2014-08-04 Thread Bo Shen
Hi Raphaël Poggi, On 08/04/2014 03:34 PM, Bo Shen wrote: Hi Raphaël Poggi, Actually, this is a build fix. On 08/01/2014 09:26 PM, Raphaël Poggi wrote: Signed-off-by: Raphaël Poggi Acked-by: Bo Shen Sorry, can you squash this patch into "[PATCH 1/2] i2c: at91: add support of d

Re: [PATCH] i2c: at91: add at91sam9x5 config

2014-08-04 Thread Bo Shen
Hi Raphaël Poggi, Actually, this is a build fix. On 08/01/2014 09:26 PM, Raphaël Poggi wrote: Signed-off-by: Raphaël Poggi Acked-by: Bo Shen --- drivers/i2c/busses/i2c-at91.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c

[PATCH] Makefile: remove drivers/serial/Makefile.rej file

2014-08-01 Thread Bo Shen
This file is introduced by commit: 949df9c Remove it. Signed-off-by: Bo Shen --- This patch is base on the next branch. drivers/serial/Makefile.rej | 7 --- 1 file changed, 7 deletions(-) delete mode 100644 drivers/serial/Makefile.rej diff --git a/drivers/serial/Makefile.rej b/drivers

[PATCH] ARM: atmel: sama5d3_xplained: import smc timing from U-Boot

2014-08-01 Thread Bo Shen
-off-by: Bo Shen --- arch/arm/boards/sama5d3_xplained/init.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/arch/arm/boards/sama5d3_xplained/init.c b/arch/arm/boards/sama5d3_xplained/init.c index ae18863..5674225 100644 --- a/arch/arm/boards

[PATCH] ARM: at91: clock: fix the pllb checking

2014-07-29 Thread Bo Shen
On at91sam9n12 soc, it has pllb, while on sama5d3 soc, it doesn't has pllb. Signed-off-by: Bo Shen --- arch/arm/mach-at91/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index 59c4d11..9d2a846 100644 --- a

[PATCH] mci: core: the sd1.0 card can work in 4 bits mode

2014-07-29 Thread Bo Shen
The sd 1.0 card can work in 4 bits mode also. Signed-off-by: Bo Shen --- drivers/mci/mci-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index ce6e590..8221632 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci

Re: [PATCH 2/2] mtd: atmel_nand: enable PMECC for 8k page nand

2014-07-17 Thread Bo Shen
Hi Raphael, On 07/17/2014 04:51 PM, Raphael Poggi wrote: Enable the PMECC to support 8k page. Signed-off-by: Raphaël Poggi Acked-by: Bo Shen --- drivers/mtd/nand/atmel_nand.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b

Re: [PATCH 1/2] mtd: atmel_nand: increase chip_delay

2014-07-17 Thread Bo Shen
Hi Raphael, On 07/17/2014 04:51 PM, Raphael Poggi wrote: Some nand like Micron MT29F32G08ABAAAWP need more than 20us. Signed-off-by: Raphaël Poggi Acked-by: Bo Shen --- drivers/mtd/nand/atmel_nand.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd

Re: [PATCH 1/2] sama5d3x: fix HSMC MODE register offset and add TIMINGS register

2014-06-24 Thread Bo Shen
config); + +sam9_smc_cs_write_timings(AT91_SMC_CS(id, cs), sama5d3_extra_config); +} + static int at91sam9_smc_probe(struct device_d *dev) { int id = dev->id; Otherwise, it seems good. Thanks again. Best Regards, Bo Shen ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: atmel_nand pmecc on 8k page [RFC]

2014-06-18 Thread Bo Shen
Hi Jean-Christophe PLAGNIOL-VILLARD, On 06/19/2014 12:31 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:19 Mon 16 Jun , Bo Shen wrote: Hi Matteo, On 06/13/2014 08:48 PM, Matteo Fortini wrote: Hi all, glad you found my patch useful. Sascha rejected it because he sees it more fit to

Re: atmel_nand pmecc on 8k page [RFC]

2014-06-16 Thread Bo Shen
or the new coming SoC. Thank you in advance for your comments, I ask Raphaël to wait until this patch is settled to send in his changes. They will be very useful for me, too (I had to deactivate PMECC to use my NAND...) M Best Regards, Bo Shen _

Re: atmel_nand pmecc on 8k page

2014-06-12 Thread Bo Shen
hich board are you test this? Can you try to apply two patches from matteo.fort...@gmail.com on 2014-06-06 with name [PATCH 1/2] sama5d3x: fix HSMC MODE register offset and add TIMINGS [PATCH 2/2] sama5d3x: HSMC NAND initialize TIMINGS and import values Best regards, Raphaël Best Regard

[PATCH] ARM: atmel: add sama5d3_xplained support

2014-06-03 Thread Bo Shen
Signed-off-by: Bo Shen --- arch/arm/boards/Makefile|1 + arch/arm/boards/sama5d3_xplained/Makefile |1 + arch/arm/boards/sama5d3_xplained/env/config | 42 + arch/arm/boards/sama5d3_xplained/init.c | 238 +++ arch/arm/configs

Re: [PATCH] sama5d3x: fix AT91_SMC_CS offset stride

2014-05-29 Thread Bo Shen
Hi J, On 05/29/2014 08:11 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On May 29, 2014, at 5:55 PM, Matteo Fortini wrote: Acked-by: Bo Shen --- arch/arm/mach-at91/sam9_smc.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-at91/sam9_smc.c b/arch/arm/mach-at91/sam9_smc.c

[PATCH] ARM: atmel: sama5d3xek: remove duplicate included file

2014-05-28 Thread Bo Shen
As the at91sam9_smc.h duplicate in header list, remove one. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d3xek/init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards/sama5d3xek/init.c index e078642..731 100644 --- a/arch/arm/boards

Re: [PATCH] SAMA5D3X FIX AT91_SMC_CS offset stride

2014-05-28 Thread Bo Shen
Hi Matteo, Thanks for your patch. Can you resend it directly while not through attachment? When you resend, you can add my acked-by. Best Regards, Bo Shen On 05/29/2014 01:16 AM, Matteo Fortini wrote: As stated in section 29.19.32 of SAMA5D3 Series datasheet, to move from CS(n) to CS(n+1

Re: [PATCH 2/5] ARM: at91: add missing break

2014-04-21 Thread Bo Shen
Hi Lucas Stach, On 04/22/2014 04:15 AM, Lucas Stach wrote: Otherwise SAM A5d35 would be detected as A5d36. Signed-off-by: Lucas Stach Acked-by: Bo Shen --- arch/arm/mach-at91/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91

[PATCH] ARM: at91: add sama5d36 SoC support

2014-03-28 Thread Bo Shen
SAMA5D36 SoC is a sub type of SAMA5D3 which has two Ethernets Signed-off-by: Bo Shen --- arch/arm/mach-at91/include/mach/cpu.h | 5 - arch/arm/mach-at91/sama5d3.c | 6 -- arch/arm/mach-at91/setup.c| 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) diff