Re: [PATCH v2] riscv: ax25: cache: Remove SPL_RISCV_MMODE config check

2020-04-19 Thread Rick Chen
> From: Pragnesh Patel [mailto:pragnesh.pa...@sifive.com] > Sent: Saturday, April 18, 2020 10:44 PM > To: u-boot@lists.denx.de; Rick Jian-Zhi Chen(陳建志) > Cc: atish.pa...@wdc.com; palmerdabb...@google.com; bmeng...@gmail.com; Paul > Walmsley; Simon Glass; Trevor Woerner > Subject: RE: [PATCH v2] ri

Re: [PATCH v6 02/17] riscv: sifive: fu540: Use OTP DM driver for serial environment variable

2020-04-19 Thread Bin Meng
On Wed, Apr 8, 2020 at 12:44 PM Pragnesh Patel wrote: > > Hi Jagan, > > >-Original Message- > >From: Jagan Teki > >Sent: 07 April 2020 14:51 > >To: Pragnesh Patel > >Cc: U-Boot-Denx ; Atish Patra > >; palmerdabb...@google.com; Bin Meng > >; Paul Walmsley ; Troy > >Benjegerdes ; Anup Pate

Re: [PATCH v4 00/14] RISC-V SiFive FU540 support SPL

2020-04-19 Thread Bin Meng
On Sun, Mar 8, 2020 at 3:28 PM Pragnesh Patel wrote: > > Hi, > > >-Original Message- > >From: Palmer Dabbelt > >Sent: 06 March 2020 22:32 > >To: Pragnesh Patel > >Cc: u-boot@lists.denx.de; Atish Patra ; > >bmeng...@gmail.com; Paul Walmsley ; > >ja...@amarulasolutions.com; Troy Benjegerde

[PATCH] ARM: zynq: Change SYS_MALLOC_LEN in zynq_cse_nand_defconfig

2020-04-19 Thread Michal Simek
From: T Karthik Reddy nand_scan_tail() function allocates memory dynamically for struct nand_buffers which needs ~21kbytes of memory. But the memory alloted with CONFIG_SYS_MALLOC_LEN is 4k which is insufficient. Increase CONFIG_SYS_MALLOC_LEN to 32Kbytes from which struct nand_buffers uses ~21kb

Re: [PATCH v2] travis: Correct error checking when building boards

2020-04-19 Thread Michal Simek
On 20. 04. 20 1:02, Simon Glass wrote: > At present if buildman reports an error, the travis build still succeeds. > > This is because the travis script does not stop when it sees errors; nor > does it automatically return the exit code. Also the current error > checking never triggers since 'ret'

RE: [PATCH] configs: ls2088ardb: Correct DEFAULT_DEVICE_TREE value

2020-04-19 Thread Wasim Khan
> -Original Message- > From: Priyanka Jain > Sent: Friday, April 17, 2020 2:38 PM > To: Kuldeep Singh ; u-boot@lists.denx.de; Wasim > Khan > Cc: Kuldeep Singh > Subject: RE: [PATCH] configs: ls2088ardb: Correct DEFAULT_DEVICE_TREE value > > >-Original Message- > >From: Kuldee

Re: [PATCH v6 2/6] fdtdec: Fix boundary check

2020-04-19 Thread Bin Meng
On Sun, Apr 19, 2020 at 3:32 AM Atish Patra wrote: > > In U-Boot, the reserved memory end address is considered as a inclusive > address. This notion is followed while adding a reserved memory node to > the DT. > > For example: > end_address = start_address + size - 1 > > Follow the same notion an

Re: [PATCH v6 4/6] riscv: Setup reserved-memory node for FU540

2020-04-19 Thread Bin Meng
On Sun, Apr 19, 2020 at 3:32 AM Atish Patra wrote: > > FU540 uses OF_SEPARATE instead of OF_PRIOR_STAGE. > > Enable OF_BOARD_FIXUP to update the DT with reserved-memory node. > > Signed-off-by: Atish Patra > Reviewed-by: Bin Meng > --- > arch/riscv/lib/fdt_fixup.c | 15 +++ > co

Re: [PATCH v6 5/6] riscv: Copy the reserved-memory nodes to final DT

2020-04-19 Thread Bin Meng
On Sun, Apr 19, 2020 at 3:32 AM Atish Patra wrote: > > The DT used by U-Boot may be different from the DT being passed to > the OS if the DT is loaded from external media such as network or > mmc. In that case, the reserved-memory node needs to be copied to > the DT passed to the OS. > > Signed-of

Re: [PATCH v6 3/6] riscv: Provide a mechanism to fix DT for reserved memory

2020-04-19 Thread Bin Meng
On Sun, Apr 19, 2020 at 3:32 AM Atish Patra wrote: > > In RISC-V, M-mode software can reserve physical memory regions > by setting appropriate physical memory protection (PMP) csr. As the > PMP csr are accessible only in M-mode, S-mode U-Boot can not read > this configuration directly. However, M-

Re: [PATCH v6 1/6] riscv: Add boot hartid to device tree

2020-04-19 Thread Bin Meng
On Sun, Apr 19, 2020 at 3:32 AM Atish Patra wrote: > > Linux booting protocol mandates that register "a0" contains the hartid. > However, U-Boot can not pass the hartid via a0 during via standard UEFI > protocol. DT nodes are commonly used to pass such information to the OS. > > Add a DT node unde

[PATCH v3] armv8: ls1046ardb: update the WRLVL_START to accommodate more DIMM

2020-04-19 Thread Yuantian Tang
The WRLVL_START values are optimized for old DDR MTA18ASF1G72AZ. Update DDR struct to set new WRLVL_START values so that the new DIMM MTA18ADF2G72AZ get optimized and the old DIMM still works. Signed-off-by: Yuantian Tang --- v3: - fix typo board/freescale/ls1046ardb/ddr.h | 2 +- 1 file

[PATCH v2] armv8: ls1046ardb: update the WRLVL_START to accomadate more DIMM

2020-04-19 Thread Yuantian Tang
The WRLVL_START values are optimized for old DDR MTA18ASF1G72AZ. Update DDR struct to set new WRLVL_START values so that the new DIMM MTA18ADF2G72AZ get optimized and the old DIMM still works. Signed-off-by: Yuantian Tang --- v2: - refine the commit message board/freescale/ls1046ardb/ddr

Re: [PATCH v5 4/8] board: presidio-asic: Add I2C support

2020-04-19 Thread Heiko Schocher
Hello Alex, Am 17.04.2020 um 03:38 schrieb Alex Nemirovsky: Add I2C board support for Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky CC: Heiko Schocher --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None configs/cortina_presidio-as

Re: [PATCH v5 3/8] i2c: i2c-cortina: added CAxxxx I2C support

2020-04-19 Thread Heiko Schocher
Hello Alex, Am 17.04.2020 um 03:38 schrieb Alex Nemirovsky: From: Arthur Li Add I2C controller support for Cortina Access CA SoCs Signed-off-by: Arthur Li Signed-off-by: Alex Nemirovsky CC: Heiko Schocher --- Changes in v5: None Changes in v4: - Utilize standard I2C macros from - Re

Re: Your message to U-Boot awaits moderator approval

2020-04-19 Thread Rayagonda Kokatanur
git send-email should be fine. On Mon, Apr 20, 2020 at 9:25 AM Reuben Dowle wrote: > > I have already subscribed to the mailing list, but for some other reason my > patch was rejected. > > Is there something else that could cause a patch to be rejected? > > By the way I am using git send-email,

Re: Your message to U-Boot awaits moderator approval

2020-04-19 Thread Reuben Dowle
I have already subscribed to the mailing list, but for some other reason my patch was rejected. Is there something else that could cause a patch to be rejected? By the way I am using git send-email, via my gmail account, to send the patch. I guess I could try copying the patch manually into a mai

[PATCH v6 12/14] dt-bindings: phy-mtk-tphy: add properties of address mapping and clocks

2020-04-19 Thread Chunfeng Yun
1. add the address mapping related properties; 2. make "ref" clock optional, and add optional clock "da_ref"; 3. add the banks layout of TPHY V1 and V2; Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v2~v5: no changes --- doc/device-tree-bindings/phy/phy-mtk

[PATCH v6 09/14] phy: phy-mtk-tphy: add a new reference clock

2020-04-19 Thread Chunfeng Yun
Usually the digital and analog phys use the same reference clock, but some platforms have two separate reference clocks for each of them, so add another optional clock to support them. In order to keep the clock names consistent with PHY IP's, change the da_ref for analog phy and ref clock for digi

[PATCH v6 10/14] xhci: mediatek: Add support for MTK xHCI host controller

2020-04-19 Thread Chunfeng Yun
This patch is used to support the on-chip xHCI controller on MediaTek SoCs, currently control/bulk/interrupt transfers are supported. Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v5: 1. print error number suggested by Marek 2. support interrupt tran

[PATCH v6 13/14] dt-bindings: usb: mtk-xhci: Add binding for MediaTek xHCI host controller

2020-04-19 Thread Chunfeng Yun
Add dt-binding for MediaTek xHCI host controller Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v2~v5: no changes --- .../usb/mediatek,mtk-xhci.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 doc/device-tree

[PATCH v6 14/14] MAINTAINERS: MediaTek: add USB related files

2020-04-19 Thread Chunfeng Yun
Add dt-binding files of xhci-mtk and phys, C files of phys. Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v5: new patch --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ac7e21ba1..cbbe7091ad 100644 ---

[PATCH v6 11/14] arm: dts: mt7629: add usb related nodes

2020-04-19 Thread Chunfeng Yun
Add usb, phy and clock nodes Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v3~v5: no changes v2: 1. remove fixed clock clk20m --- arch/arm/dts/mt7629-rfb.dts | 8 arch/arm/dts/mt7629.dtsi| 41 + 2 files

[PATCH v6 01/14] dm: core: Add function to get child count of ofnode or device

2020-04-19 Thread Chunfeng Yun
This patch add function used to get the child count of a ofnode or a device Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao Reviewed-by: Simon Glass --- v6: add Reviewed-by Weijie & Simon v4~v5: no changes v3: 1. add non/inline function dev_get_child_count() instead of macro suggested

[PATCH v6 02/14] test: dm: add test item for ofnode_get_child_count()

2020-04-19 Thread Chunfeng Yun
Add a test item for ofnode_get_child_count() Signed-off-by: Chunfeng Yun Reviewed-by: Simon Glass Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v4~v5: no changes v3: 1. squash dts patch into this one suggested by Simon 2. add reviewed-by Simon v2: a new patch to test ofn

[PATCH v6 05/14] usb: dwc3: use the phy bulk API to get phys

2020-04-19 Thread Chunfeng Yun
Get a group of phys by the phy bulk API Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v5: no changes v4: new patch --- drivers/usb/dwc3/core.c | 83 - drivers/usb/dwc3/dwc3-generic.c | 7 ++- include/dwc3-uboot.h

[PATCH v6 03/14] phy: Add get/enable/disable for a bulk of phys

2020-04-19 Thread Chunfeng Yun
This patch adds a "bulk" API to the phy API in order to get/enable/disable a group of phys associated with a device. The bulk API will avoid adding a copy of the same code to manage a group of phys in drivers. Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v

[PATCH v6 06/14] usb: dwc2_udc_otg: use the phy bulk API to get phys

2020-04-19 Thread Chunfeng Yun
Use the phy bulk API to get a group of phys Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v5: no changes v4: new patch --- drivers/usb/gadget/dwc2_udc_otg.c | 90 +-- 1 file changed, 12 insertions(+), 78 deletions(-) diff --git

[PATCH v6 07/14] phy: phy-mtk-tphy: add support USB phys

2020-04-19 Thread Chunfeng Yun
Support USB2 and USB3 PHY with shared banks when support multi-phys Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v3~v5: no changes v2: get the count of phys by dev_get_child_count() --- drivers/phy/phy-mtk-tphy.c | 227 +++-

[PATCH v6 08/14] phy: phy-mtk-tphy: add support new version

2020-04-19 Thread Chunfeng Yun
The new version removes all shared banks between multi-phys Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v6: add Reviewed-by Weijie v2~v5: no changes --- drivers/phy/phy-mtk-tphy.c | 68 +++--- 1 file changed, 63 insertions(+), 5 deletions(-) diff --

[PATCH v6 04/14] test: dm: phy: add a test item for the phy_bulk API

2020-04-19 Thread Chunfeng Yun
Add a test item for the phy_bulk API Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao Reviewed-by: Simon Glass --- v6: add Reviewed-by Weijie & Simon v5: no changes v4: new patch --- arch/sandbox/dts/test.dts | 11 +++ test/dm/phy.c | 29 +

[PATCH v6 00/14] Add support for MediaTek xHCI host controller

2020-04-19 Thread Chunfeng Yun
The series of patches are used to support xHCI host controller on MediaTek SoCs which has a glue layer IPPC (IP Port Control), and add USB function on T-PHY including T-PHY V1 and V2; Finally add USB related nodes for MT7629 platform. The files of xhci-mtk.* and phy-mtk-tphy.* are ported from Linu

Re: Your message to U-Boot awaits moderator approval

2020-04-19 Thread Rayagonda Kokatanur
you should subscribe to mailing list - https://lists.denx.de/listinfo/u-boot On Mon, Apr 20, 2020 at 5:30 AM Reuben Dowle wrote: > Hi, > > I have attempted to submit patch to this mailing list twice, and each time > the patch appears to get lost in moderation. > > Is there something extra I nee

Re: [PATCH v7 03/17] efi_loader: add signature database parser

2020-04-19 Thread AKASHI Takahiro
Heinrich, On Fri, Apr 17, 2020 at 08:05:41PM +0200, Heinrich Schuchardt wrote: > On 4/14/20 4:51 AM, AKASHI Takahiro wrote: > > efi_signature_parse_sigdb() is a helper function will be used to parse > > signature database variable and instantiate a signature store structure > > in later patches. >

Re: [PATCH v7 02/17] efi_loader: add signature verification functions

2020-04-19 Thread AKASHI Takahiro
Heinrich, On Fri, Apr 17, 2020 at 08:16:06PM +0200, Heinrich Schuchardt wrote: > On 4/14/20 4:51 AM, AKASHI Takahiro wrote: > > In this commit, implemented are a couple of helper functions which will be > > used to materialize variable authentication as well as image authentication > > in later pa

Re: [PATCH v7 02/17] efi_loader: add signature verification functions

2020-04-19 Thread AKASHI Takahiro
Heinrich, On Tue, Apr 14, 2020 at 04:36:19PM +0200, Heinrich Schuchardt wrote: > On 2020-04-14 04:51, AKASHI Takahiro wrote: > > In this commit, implemented are a couple of helper functions which will be > > used to materialize variable authentication as well as image authentication > > in later p

Re: Your message to U-Boot awaits moderator approval

2020-04-19 Thread Reuben Dowle
Hi, I have attempted to submit patch to this mailing list twice, and each time the patch appears to get lost in moderation. Is there something extra I need to do to enable me to submit to this mailing list (other than signing up to it)? Thanks, Reuben On Fri, 17 Apr 2020 at 08:19, wrote: > Y

Re: [PATCH 4/7] mkimage: fit_image: handle multiple errors when writing signatures

2020-04-19 Thread Simon Glass
On Fri, 17 Apr 2020 at 16:07, Heiko Stuebner wrote: > > From: Heiko Stuebner > > fit_image_write_sig() contains mostly functions from libfdt that > return FDT_ERR_foo errors but also a call to fit_set_timestamp() > which returns a regular error. > > When handling the size increase via multiple it

Re: [PATCH 2/3] cmd/bedbug.c: Make bedbug_init have a return value

2020-04-19 Thread Simon Glass
On Sat, 18 Apr 2020 at 00:08, Ovidiu Panait wrote: > > Do this as a preparation for removing initr_bedbug wrapper from > common/board_r.c. > > Signed-off-by: Ovidiu Panait > --- > cmd/bedbug.c | 4 ++-- > include/bedbug/type.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) >

Re: [PATCH] doc: fix references to README.qe_firmware

2020-04-19 Thread Simon Glass
On Sun, 19 Apr 2020 at 01:19, Heinrich Schuchardt wrote: > > In two files README.qe_firmware is referenced which never made it into the > U-Boot tree. The README is available in the Linux kernel tree. > > Update the references. > > Cc: Timur Tabi > Signed-off-by: Heinrich Schuchardt > --- > dri

Re: [PATCH 3/3] common/board_r: Drop initr_bedbug wrapper

2020-04-19 Thread Simon Glass
On Sat, 18 Apr 2020 at 00:08, Ovidiu Panait wrote: > > Drop initr_bedbug wrapper and call bedbug_init directly during the init > sequence. > > Signed-off-by: Ovidiu Panait > --- > common/board_r.c | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-) > Reviewed-by: Simon Glass

Re: [PATCH 1/1] log: remove useless cast

2020-04-19 Thread Simon Glass
On Sun, 19 Apr 2020 at 02:48, Heinrich Schuchardt wrote: > > There is no need to cast from (void *) before assigning to a pointer. > > Signed-off-by: Heinrich Schuchardt > --- > common/log.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH 7/7] rockchip: make_fit_atf: add signature handling

2020-04-19 Thread Simon Glass
Hi Heiko, On Fri, 17 Apr 2020 at 16:07, Heiko Stuebner wrote: > > From: Heiko Stuebner > > If the newly added fit-generator key-options are found, append needed > signature nodes to all generated image blocks, so that they can get > signed when mkimage later compiles the .itb from the generated

Re: dm: crash for DM_FLAG_PRE_RELOC

2020-04-19 Thread Simon Glass
Hi Heinrich, On Wed, 15 Apr 2020 at 15:17, Heinrich Schuchardt wrote: > > On 4/15/20 9:22 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Wed, 15 Apr 2020 at 12:33, Fabio Estevam wrote: > >> > >> Changing Ruchika's address to the NXP one. > >> > >> On Wed, Apr 15, 2020 at 3:28 PM Heinrich Sch

Re: [PATCH 1/3] common/board_r: arm: Merge initr_enable_interrupts into interrupts_init

2020-04-19 Thread Simon Glass
On Sat, 18 Apr 2020 at 00:08, Ovidiu Panait wrote: > > initr_enable_interrupts() is an ARM-specific wrapper over enable_interrupts(), > which is run during the common init sequence. It can be eliminated by moving > the enable_interrupts() call to the end of interrupt_init() function, in > arch/arm

Re: [PATCH v4] dm: uclass: don't assign aliased seq numbers

2020-04-19 Thread Simon Glass
Hi Michael, On Thu, 16 Apr 2020 at 04:50, Michael Walle wrote: > > Hi Simon, > > Am 2020-04-15 21:22, schrieb Simon Glass: > > Hi Michael, > > > > On Wed, 15 Apr 2020 at 09:22, Michael Walle wrote: > >> > >> Hi Simon, > >> > >> Am 2020-04-15 15:56, schrieb Simon Glass: > >> > +Tom > >> > > >> >

Re: [PATCH] test: make tests should use pytest -ra

2020-04-19 Thread Simon Glass
On Sat, 18 Apr 2020 at 06:09, Heinrich Schuchardt wrote: > > By passing -ra to pytest we get a summary indicating which tests failed > and why tests were skipped. > > Here is an example output: > > short test summary info = > SKIPPED [1] test/py/tes

Re: [PATCH] common: Add Kconfig option for FDT mem alignment

2020-04-19 Thread Simon Glass
On Mon, 13 Apr 2020 at 02:03, Michal Simek wrote: > > From: Ashok Reddy Soma > > FDT memory is aligned by 4KB. This is hardcoded in common/board_f.c. > Add Kconfig option, assign default value of 0x1000 and enable option to > change this value. > > Signed-off-by: Ashok Reddy Soma > Signed-off-by

Re: [PATCH 5/8] xhci: mediatek: Add support for MTK xHCI host controller

2020-04-19 Thread Simon Glass
Hi Marek, On Fri, 10 Apr 2020 at 13:57, Marek Vasut wrote: > > On 4/10/20 9:14 PM, Simon Glass wrote: > > Hi Marek, > > Hi, > > > On Fri, 10 Apr 2020 at 12:45, Marek Vasut wrote: > >> > >> On 3/31/20 6:05 PM, Marek Vasut wrote: > >>> On 3/31/20 4:16 PM, Simon Glass wrote: > HI Marek, > >>>

Re: [PATCH][RESEND] arm: lpc32xx: move SoC to mach-lpc32xx

2020-04-19 Thread Simon Glass
On Mon, 13 Apr 2020 at 22:40, Trevor Woerner wrote: > > Following the example of most other SoCs in arch/$(ARCH)/cpu/$(CPU)/$(SOC) > move the lpc32xx code from arch/arm/cpu/arm926ejs/lpc32xx to > arch/arm/mach-lpc32xx. > > Following the checklist from > commit 01f14456306c ("ARM: prepare for movin

Re: [PATCH] travis: Correct error checking when building boards

2020-04-19 Thread Simon Glass
Hi Michal, On Thu, 16 Apr 2020 at 00:31, Michal Simek wrote: > > On 16. 04. 20 5:06, Simon Glass wrote: > > At present if buildman reports an error, the travis build still succeeds. > > > > This is because the travis script does not stop when it sees errors; nor > > does it automatically return t

Re: [PATCH 2/3] kbuild: cherry-pick kbuild changes from Linux

2020-04-19 Thread Simon Glass
On Wed, 15 Apr 2020 at 22:39, Masahiro Yamada wrote: > > Import the following commits from Linux. They are mostly nice cleanups. > > b42841b7bb62 kbuild: Get rid of KBUILD_STR > ebf003f0cfb3 kbuild: Consolidate header generation from ASM offset information > 2982c953570b kbuild: remove redundant $

Re: [PATCH 1/1] drivers: crypto: rsa_mod_exp: avoid DM_FLAG_PRE_RELOC

2020-04-19 Thread Simon Glass
On Wed, 15 Apr 2020 at 15:32, Heinrich Schuchardt wrote: > > Function rsa_verify_key() is not called before relocation. So there is no > need to load the UCLASS_MOD_EXP drivers before relocation. > > This avoid a failure to boot for pine64-lts_defconfig with CONFIG_RSA=y. > > Signed-off-by: Heinri

Re: [PATCH 2/2] spl: mmc: Rename spl_boot_partition() to spl_mmc_boot_partition()

2020-04-19 Thread Simon Glass
On Wed, 15 Apr 2020 at 03:35, Harald Seiler wrote: > > This function is only relevant to the MMC driver so calling it > spl_boot_partition() might be confusing. Rename it to > spl_mmc_boot_partition() to make its purpose more clear (and bring > it in line with spl_mmc_boot_mode()). > > Signed-off

Re: [PATCH 1/3] kbuild: add FORCE to dependency of $(obj)/dts/dt-platdata.o

2020-04-19 Thread Simon Glass
On Wed, 15 Apr 2020 at 22:39, Masahiro Yamada wrote: > > if_changed must have FORCE as a prerequisite. > > Add $(obj)/dts/dt-platdata.o to 'targets' so that the corresponding > .cmd file is included. > > Signed-off-by: Masahiro Yamada > --- > > scripts/Makefile.spl | 5 +++-- > 1 file changed, 3

Re: [PATCH 4/5] ARM: rmobile: Merge prior-stage firmware DT fragment into U-Boot DT on Gen3

2020-04-19 Thread Simon Glass
On Sat, 11 Apr 2020 at 14:01, Marek Vasut wrote: > > The prior-stage firmware generates DT fragment containing the /firmware > node, /reserved-memory node and /memory@ nodes. Merge these nodes into > the U-Boot DT, so U-Boot can use this information. > > Signed-off-by: Marek Vasut > Cc: Nobuhiro

Re: [PATCH 1/2] dm: test: clk: add the test for the ccf gated clock

2020-04-19 Thread Simon Glass
On Mon, 13 Apr 2020 at 06:37, Dario Binacchi wrote: > > Unlike the other clock types, in the case of the gated clock, a new > driver has been developed which does not use the registering routine > provided by the common clock framework. > The addition of the ecspi0 clock to sandbox therefore allow

Re: [PATCH 1/2] spl: mmc: Rename spl_boot_mode() to spl_mmc_boot_mode()

2020-04-19 Thread Simon Glass
On Wed, 15 Apr 2020 at 03:35, Harald Seiler wrote: > > The function's name is misleading as one might think it is used > generally to select the boot-mode when in reality it is only used by the > MMC driver to find out in what way it should try reading U-Boot Proper > from a device (either using a

Re: [PATCH 1/1] tools: image-host.c: use correct output format

2020-04-19 Thread Simon Glass
On Sat, 11 Apr 2020 at 10:36, Heinrich Schuchardt wrote: > > When building on a 32bit host the following warning occurs: > > tools/image-host.c: In function ‘fit_image_read_data’: > tools/image-host.c:310:42: warning: format ‘%ld’ expects argument of type > ‘long int’, but argument 3 has type ‘ssi

Re: [PATCH 3/5] ARM: dts: rmobile: Reserve space in R-Car Gen3 DTs

2020-04-19 Thread Simon Glass
Hi Marek, On Sat, 11 Apr 2020 at 14:01, Marek Vasut wrote: > > Reserve 4 kiB of space in R-Car Gen3 DTs when those DTs are compiled > to permit patching in OpTee-OS /firmware node, /reserved-memory node > and possibly also additional /memory@ nodes. > > Signed-off-by: Marek Vasut > Cc: Nobuhiro

Re: [PATCH 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-04-19 Thread Simon Glass
Hi Marek, On Sat, 11 Apr 2020 at 14:01, Marek Vasut wrote: > > Add weak function which is called right after fdtdec_setup() configured > the U-Boot DT. This permits board-specific adjustments to the U-Boot DT > before U-Boot starts parsing the DT. This could be used e.g. to patch in > various cus

Re: [PATCH 2/2] dm: core: Walk the tree to find address- and size-cells properties

2020-04-19 Thread Simon Glass
Hi Matthias, On Sat, 11 Apr 2020 at 12:05, Matthias Brugger wrote: > > Hi Simon, > > On 4/9/20 6:25 PM, Simon Glass wrote: > > Hi Matthias, > > > > On Wed, 8 Apr 2020 at 03:35, wrote: > >> > >> From: Matthias Brugger > >> > >> Walk the tree when reading size-cells or address-cells properties. >

Re: [RFC PATCH v2 2/2] arch: x86: apl: Read FSP-S configuration from device-tree

2020-04-19 Thread Simon Glass
Hi Bernhard, On Tue, 14 Apr 2020 at 03:26, Bernhard Messerklinger wrote: > > Move FSP-S configuration to the device-tree like it's already done for > other SoCs (Baytrail). > > Signed-off-by: Bernhard Messerklinger > > --- > > Changes in v2: > Remove FSP-M binding file > > arch/x86/cpu/apollol

Re: [PATCH v2 1/3] patman: Add option to suppress empty changelog entries

2020-04-19 Thread Simon Glass
Hi Sean, On Mon, 13 Apr 2020 at 15:51, Sean Anderson wrote: > > Patman outputs a line for every edition of the series in every patch, > regardless of whether any changes were made. This can result in many > redundant lines in patch changelogs, especially when a patch did not exist > before a cert

Re: [PATCH 1/5] libfdt: Export overlay_apply_node() as fdt_overlay_apply_node()

2020-04-19 Thread Simon Glass
Hi Marek, On Sat, 11 Apr 2020 at 14:01, Marek Vasut wrote: > > This function is useful to merge a subset of DT into another DT, for > example if some prior-stage firmware passes a DT fragment to U-Boot > and U-Boot needs to merge it into its own DT. Export this function > to permit implementing s

Re: [RFC PATCH v2 1/2] arch: x86: apl: Only load VBT if CONFIG_HAVE_VBT is enabled

2020-04-19 Thread Simon Glass
Hi Bernhard, On Tue, 14 Apr 2020 at 03:26, Bernhard Messerklinger wrote: > > Only load VBT if it's present in the u-boot.rom. > > Signed-off-by: Bernhard Messerklinger > > --- > > Changes in v2: None > > arch/x86/cpu/apollolake/fsp_s.c | 14 -- > 1 file changed, 8 insertions(+), 6

[PATCH v2] travis: Correct error checking when building boards

2020-04-19 Thread Simon Glass
At present if buildman reports an error, the travis build still succeeds. This is because the travis script does not stop when it sees errors; nor does it automatically return the exit code. Also the current error checking never triggers since 'ret' is not set. Fix this by setting 'ret' correctly

[PATCH v7 9/9] acpi: Add an acpi command

2020-04-19 Thread Simon Glass
It is useful to dump ACPI tables in U-Boot to see what has been generated. Add a command to handle this. To allow the command to find the tables, add a position into the global data. Support subcommands to list and dump the tables. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner ---

[PATCH v7 7/9] acpi: Put table-setup code in its own function

2020-04-19 Thread Simon Glass
We always write three basic tables to ACPI at the start. Move this into its own function, along with acpi_fill_header(), so we can write a test for this code. Signed-off-by: Simon Glass --- Changes in v7: None Changes in v5: None Changes in v4: - Put back cast on table_compute_checksum() Change

[PATCH v7 8/9] acpi: Move the xsdt pointer to acpi_ctx

2020-04-19 Thread Simon Glass
Put this in the context along with the other important pointers. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v7: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/dm/acpi.h | 2 ++ lib/acpi/acpi_table.c | 10 -

[PATCH v7 3/9] acpi: Convert part of acpi_table to use acpi_ctx

2020-04-19 Thread Simon Glass
The current code uses an address but a pointer would result in fewer casts. Also it repeats the alignment code in a lot of places so this would be better done in a helper function. Update write_acpi_tables() to make use of the new acpi_ctx structure, adding a few helpers to clean things up. Signe

[PATCH v7 6/9] acpi: Move acpi_add_table() to generic code

2020-04-19 Thread Simon Glass
Move this code to a generic location so that we can test it with sandbox. This requires adding a few new fields to acpi_ctx, so drop the local variables used in the original code. Also use mapmem to avoid pointer-to-address casts which don't work on sandbox. Signed-off-by: Simon Glass Reviewed-b

[PATCH v7 5/9] acpi: Drop code for missing XSDT from acpi_write_rsdp()

2020-04-19 Thread Simon Glass
We don't actually support tables without an XSDT so we can drop this dead code. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v7: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x86/lib/acpi_table.c | 15 ++- 1 fi

[PATCH v7 2/9] acpi: Add a method to write tables for a device

2020-04-19 Thread Simon Glass
A device may want to write out ACPI tables to describe itself to Linux. Add a method to permit this. Reviewed-by: Wolfgang Wallner Signed-off-by: Simon Glass --- Changes in v7: None Changes in v5: - Drop bisectability changes Changes in v4: - Separate out the log newline Changes in v3: None C

[PATCH v7 0/9] dm: Add programmatic generation of ACPI tables (part A)

2020-04-19 Thread Simon Glass
This is split from the original series in an attempt to get things applied in chunks. v7 is just a rebase as requested Changes in v7: - Rebase to master Changes in v5: - Drop bisectability changes Changes in v4: - Put 'interrupts-extended' property on one line - Rename acpi-probed to linux,prob

[PATCH v7 4/9] x86: Allow devices to write ACPI tables

2020-04-19 Thread Simon Glass
Call the new core function to permit devices to write their own ACPI tables. These tables will appear after all other tables. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v7: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x

[PATCH v7 1/9] acpi: Add a binding for ACPI settings in the device tree

2020-04-19 Thread Simon Glass
Devices need to report various identifiers in the ACPI tables. Rather than hard-coding these in drivers it is typically better to put them in the device tree. Add a binding file to describe this. Signed-off-by: Simon Glass --- Changes in v7: None Changes in v5: None Changes in v4: - Put 'interr

Re: Enable USB host controller on Odroid-C2

2020-04-19 Thread Beniamino Galvani
On Fri, Mar 27, 2020 at 02:35:50PM +0100, Neil Armstrong wrote: > Hi, > > On 18/08/2019 15:42, Beniamino Galvani wrote: > > Hi, > > > > these two patches enable the USB host controller on Odroid-C2. The > > first patch adds a PHY driver; the second one enables the necessary > > configuration opti

[PATCH u-boot-marvell 10/11 fix] arm64: mvebu: armada-37xx: convert to use new generic-phy drivers

2020-04-19 Thread Marek Behún
This patch converts device trees and defconfigs of Armada 37xx boards (EspressoBIN, A37xx DB, uDPU and Turris MOX) to use the newly ported comphy and utmi generic-phy drivers. For Turris Mox also remove the comphy_update_map implementation, since it is no longer needed. Signed-off-by: Marek Behún

Re: [PATCH] x86: spi: Only use the fast SPI peripheral when support

2020-04-19 Thread Simon Glass
Hi Bin, On Tue, 31 Mar 2020 at 07:16, Simon Glass wrote: > > Hi Bin, > > On Tue, 31 Mar 2020 at 03:50, Bin Meng wrote: > > > > Hi Simon, > > > > On Tue, Mar 31, 2020 at 7:57 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Mon, 30 Mar 2020 at 03:42, Bin Meng wrote: > > > > > > > > Hi S

[PATCH u-boot-marvell 11/11] phy: marvell: remove comphy_a3700 driver

2020-04-19 Thread Marek Behún
This driver is no longer needed since A37xx was ported to generic-phy. The only thing not covered by those drivers is eMMC PHY init code, but even this is already done in different driver (xenon_sdhci). Signed-off-by: Marek Behún --- drivers/phy/marvell/Makefile |1 - drivers/phy/marv

[PATCH u-boot-marvell 10/11] arm64: mvebu: armada-37xx: convert to use new generic-phy drivers

2020-04-19 Thread Marek Behún
This patch converts device trees and defconfigs of Armada 37xx boards (EspressoBIN, A37xx DB, uDPU and Turris MOX) to use the newly ported comphy and utmi generic-phy drivers. For Turris Mox also remove the comphy_update_map implementation, since it is no longer needed. Signed-off-by: Marek Behún

[PATCH u-boot-marvell 07/11] pci: aardvark: add PHY support

2020-04-19 Thread Marek Behún
Use generic-phy API to power on PCIe PHY. Since the new comphy drivers only does a SMC call into ARM Trusted Firmware and the comphy driver in ATF does not do TX Enabling (step 7 in PCIe PHY power on algorithm), add TX enabling into this driver. Signed-off-by: Marek Behún --- drivers/pci/pci-aa

[PATCH u-boot-marvell 05/11] usb: ehci-marvell: call generic-phy initialization

2020-04-19 Thread Marek Behún
Use the new usb_phys_setup and usb_phys_shutdown to initialize potential generic-phys in the ehci-marvell driver. Signed-off-by: Marek Behún --- drivers/usb/host/ehci-marvell.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host

[PATCH u-boot-marvell 08/11] ata: ahci_mvebu: add PHY support

2020-04-19 Thread Marek Behún
Use generic-phy API to power on SATA PHY. Signed-off-by: Marek Behún --- drivers/ata/ahci_mvebu.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 48a9d00d14..d229ab84ed 100644 --- a/drivers/ata/ahc

[PATCH u-boot-marvell 04/11] usb: host: make PHY handling more generic

2020-04-19 Thread Marek Behún
Since XHCI may also want to use the generic-phy functions from ehci-hcd.c, move them into separate phy.c. Change these functions so that they enumerate end power on all generic-phys defined in device tree for a given USB controller. Signed-off-by: Marek Behún --- drivers/usb/host/Makefile

[PATCH u-boot-marvell 09/11] net: mvneta: add PHY support

2020-04-19 Thread Marek Behún
Use generic-phy API to power on comphy in mvneta driver. Signed-off-by: Marek Behún --- drivers/net/mvneta.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index d737400a20..31548445d7 100644 --- a/drivers/net/mvneta.c +++

[PATCH u-boot-marvell 02/11] phy: port Armada 37xx UTMI PHY from Linux

2020-04-19 Thread Marek Behún
This patch ports the A3700 UTMI PHY driver from Linux. Signed-off-by: Marek Behún --- drivers/phy/Kconfig| 8 + drivers/phy/Makefile | 1 + drivers/phy/phy-mvebu-a3700-utmi.c | 235 + 3 files changed, 244 insertions(+) create mode 10

[PATCH u-boot-marvell 00/11] Armada 37xx: port comphy to generic-phys (PLEASE TEST)

2020-04-19 Thread Marek Behún
Hi, I have ported the COMPHY and UTMI PHY drivers from Linux to U-Boot. With this we are able to abandon the current comphy_a3700 driver, which is incompatible with Linux' device trees. So if we want to have DTS files for A3720 boards identical to Linux', we have to do this. This series adds the

[PATCH u-boot-marvell 01/11] phy: add support for setting phy mode

2020-04-19 Thread Marek Behún
Import enum phy_mode from Linux and add .set_mode method to generic-phy operations structure. Signed-off-by: Marek Behún --- drivers/phy/phy-uclass.c | 11 + include/generic-phy.h| 51 2 files changed, 62 insertions(+) diff --git a/drivers/ph

[PATCH u-boot-marvell 03/11] phy: port Armada 37xx COMPHY from Linux

2020-04-19 Thread Marek Behún
This patch ports the A3700 COMPHY driver from Linux. Signed-off-by: Marek Behún --- drivers/phy/Kconfig | 8 + drivers/phy/Makefile | 1 + drivers/phy/phy-mvebu-a3700-comphy.c | 315 +++ 3 files changed, 324 insertions(+) create mode

[PATCH u-boot-marvell 06/11] usb: xhci-mvebu: call generic-phy initialization

2020-04-19 Thread Marek Behún
Use the new usb_phys_setup and usb_phys_shutdown to initialize potential generic-phys in the xhci-mvebu driver. Signed-off-by: Marek Behún --- drivers/usb/host/xhci-mvebu.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mvebu.c b/dri

Re: [PATCH] arm: imx: Add support for Google's Coral Dev Board

2020-04-19 Thread Stefano Babic
On 19/04/20 15:47, Fabio Estevam wrote: > Hi Marco, > > On Mon, Mar 9, 2020 at 5:05 PM Marco Franchi wrote: >> >> Thanks Alifer! >> >> I just followed the README, and it working very well. >> >> Congratulations! >> >> Tested-by: marco...@gmail.com > > Thanks for testing. > > The correct styl

[PATCH v11 00/13] Actions S700 SoC support

2020-04-19 Thread Amit Singh Tomar
This adds Cubieboard7[1] support based on Action Semi's S700 SoC[2], It's Quad-core ARMv8 SoC with Cortex-A53 cores. Peripheral like UART seems to be compatible with S900 SoC(basic support for it is alreay present in u-boot). This series(v11) takes care of the issues(breaks few boards unfortunat

[PATCH v11 12/13] doc: boards: add Cubieboard7 documentation

2020-04-19 Thread Amit Singh Tomar
This adds build and flash steps for Actions S700 based Cubieboard7 board. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Amit Singh Tomar --- Changes since v10: * Added Mani's reviewed-by Tag. Changes since v9: * Updated the heading to CUBIEBOARD7 to ACTIONS. * Added s

[PATCH v11 13/13] MAINTAINERS: add entry for cubieboard7 config

2020-04-19 Thread Amit Singh Tomar
This commit adds entry for cubieboard7 config under Actions Semi OWL family. Signed-off-by: Amit Singh Tomar --- * Newly added patch, was not there in earlier versions. Hi Mani, Hope, this is file with you to have this under ARCH_OWL? --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v11 07/13] arm: actions: add S700 SoC device tree

2020-04-19 Thread Amit Singh Tomar
This patch adds .dtsi file(sync with Linux 5.5-rc6 with hash "b3a987b0264d") and required binding for S700 SoC that is a 64-bit Quad-core ARM Cortex-A53 cores. It also provisions dts file to be built based on selected platform(CONFIG_MACH_S900/S700). Reviewed-by: Manivannan Sadhasivam Reviewed-b

[PATCH v11 10/13] actions: Move defconfig options to Kconfig

2020-04-19 Thread Amit Singh Tomar
This patch moves some of the config options from bubblegum_96_defconfig to respective Kconfig files. Signed-off-by: Amit Singh Tomar --- Changes since v10: * Moved out some of config options from mach-owl/Kconfig to appropriate config files. Changes since v9: * Added Rev

[PATCH v11 11/13] arm: add Cubieboard7 board support

2020-04-19 Thread Amit Singh Tomar
The Cubieboard is a single board computer containing a Actions S700 SoC(with 4 ARMv8 Cortex-A53 cores). This patch adds respective defconfig alongwith .dts(copied from Linux v5.5-rc6 with hash "b3a987b0264d"). Signed-off-by: Amit Singh Tomar --- Changes since v10: Brought back following option t

[PATCH v11 06/13] clk: actions: Add common clock driver

2020-04-19 Thread Amit Singh Tomar
This patch converts S900 clock driver to something common that can be used for other SoCs, for instance S700(few of clk registers are same). Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * Checked the relevant So

  1   2   >