[PATCH v1 2/2] drivers: spi: add commands for micron SPI

2020-05-03 Thread Rayagonda Kokatanur
Add commands for dual and quad SPI transfers on Micon SPI. Signed-off-by: Rayagonda Kokatanur --- include/spi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/spi.h b/include/spi.h index 2b4929fc79..491f1f805c 100644 --- a/include/spi.h +++ b/include/spi.h @@ -150,6 +150,8 @@ stru

[PATCH v1 1/2] driver: spi: add brcm iproc qspi support.

2020-05-03 Thread Rayagonda Kokatanur
Add brcm iproc qspi support. Signed-off-by: Rayagonda Kokatanur --- drivers/spi/Kconfig | 14 + drivers/spi/Makefile | 1 + drivers/spi/iproc_qspi.c | 852 +++ drivers/spi/iproc_qspi.h | 18 + drivers/spi/iproc_spi.c | 71 5 files changed,

[PATCH v1 0/2] add broadcom spi driver

2020-05-03 Thread Rayagonda Kokatanur
This patchset, -adds Broadcom SPI driver for iproc-based platforms and -extends Micron SPI commands for dual and quad SPI transfers on Micon SPI. Rayagonda Kokatanur (2): driver: spi: add brcm iproc qspi support. drivers: spi: add commands for micron SPI drivers/spi/Kconfig | 14 + dri

Please pull u-boot-marvell/master

2020-05-03 Thread Stefan Roese
Hi Tom, please pull these 2 MVEBU related fixes. Here the Azure build, without any issues: https://dev.azure.com/sr0718/u-boot/_build/results?buildId=6&view=results Thanks, Stefan The following changes since commit c693f212c5b0433b3a49a89d87cbff28bf78eb87: Merge branch '2020-05-01-master-i

Re: sd-card is not working on espressobin

2020-05-03 Thread Stefan Roese
Hi Moritz, On 27.04.20 09:56, Moritz Berghof wrote: Hi Community, Hi Marek, Hi Stefan, we are still working on the u-boot master of the espressobin platform. Do you have any ideas why mmc cannot find any sd-card? Could you please give the patches from Peter Vollmer a try: https://patchwork

RE: [RFC PATCH 3/3] net: tsec: convert fsl_pq_mdio to DM_MDIO

2020-05-03 Thread Z.q. Hou
> -Original Message- > From: Vladimir Oltean > Sent: 2020年5月4日 2:52 > To: u-boot@lists.denx.de; joe.hershber...@ni.com; Priyanka Jain > > Cc: Z.q. Hou ; bmeng...@gmail.com; Claudiu > Manoil ; Alexandru Marginean > > Subject: [RFC PATCH 3/3] net: tsec: convert fsl_pq_mdio to DM_MDIO >

RE: [RFC PATCH 1/3] phy: make phy_connect_fixed work with a null mdio bus

2020-05-03 Thread Z.q. Hou
> -Original Message- > From: Vladimir Oltean > Sent: 2020年5月4日 2:52 > To: u-boot@lists.denx.de; joe.hershber...@ni.com; Priyanka Jain > > Cc: Z.q. Hou ; bmeng...@gmail.com; Claudiu > Manoil ; Alexandru Marginean > > Subject: [RFC PATCH 1/3] phy: make phy_connect_fixed work with a null

RE: [PATCHv2 3/3] net: tsec: Access TBI PHY through the corresponding MII

2020-05-03 Thread Z.q. Hou
Hi Vladimir, Thanks for your comments! > -Original Message- > From: Vladimir Oltean > Sent: 2020年5月4日 0:27 > To: Z.q. Hou > Cc: u-boot ; Joe Hershberger > ; Bin Meng ; Priyanka Jain > > Subject: Re: [PATCHv2 3/3] net: tsec: Access TBI PHY through the > corresponding MII > > On Sun, 3

Re: [PATCH] Actions: S700 Calculate SDRAM size

2020-05-03 Thread Manivannan Sadhasivam
On Sat, May 02, 2020 at 06:55:20PM +0530, Amit Singh Tomar wrote: > Calculate the SDRAM size from DDR capacity register registers instead of using > hard-coded value. This is quite useful to get correct size on differnt boards > based on S700 SoC. > > There is no documentation available that talks

Re: [PATCH v3] cmd: mvebu: bubt: fix quoted string split across lines

2020-05-03 Thread Stefan Roese
Hi Joel, On 01.05.20 23:41, Joel Johnson wrote: Ping for review feedback on this patch, it'd be good to have the fix included in the same release as the merge was included. I'll send the pull request later today. Thanks, Stefan Joel On 2020-04-25 20:54, Joel Johnson wrote: Update quoted s

RE: [PATCH v7 04/22] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-05-03 Thread Pragnesh Patel
>-Original Message- >From: Jagan Teki >Sent: 02 May 2020 21:04 >To: Heinrich Schuchardt ; Pragnesh Patel >; Bin Meng >Cc: U-Boot Mailing List ; Atish Patra >; Palmer Dabbelt ; Paul >Walmsley ; Troy Benjegerdes >; Anup Patel ; Sagar >Kadam ; Rick Chen ; Peng >Fan ; Lukasz Majewski ; Simon

RE: [PATCH v7 16/22] riscv: Enable cpu clock if it is present

2020-05-03 Thread Pragnesh Patel
Hi Sean, >-Original Message- >From: Sean Anderson >Sent: 03 May 2020 22:47 >To: Pragnesh Patel ; u-boot@lists.denx.de >Cc: atish.pa...@wdc.com; palmerdabb...@google.com; >bmeng...@gmail.com; Paul Walmsley ; >ja...@amarulasolutions.com; Troy Benjegerdes >; anup.pa...@wdc.com; Sagar Kadam >

Re: [PATCH v2] arm: dts: uDPU: switch default PHY speed to 3.125Gbit

2020-05-03 Thread Stefan Roese
On 24.04.20 11:24, Jakov Petrina wrote: This resolves issues with certain SFP modules. Signed-off-by: Jakov Petrina Signed-off-by: Vladimir Vid --- v2: - changed PHY mode as well Reviewed-by: Stefan Roese Thanks, Stefan arch/arm/dts/armada-3720-uDPU.dts | 18 ++ 1 fil

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

2020-05-03 Thread Heiko Stübner
Hi Kever, Am Freitag, 1. Mai 2020, 12:32:23 CEST schrieb Kever Yang: > On 2020/4/21 上午8:23, 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 > > sign

RE: [PATCH V2 resend 1/4] imx: add module fuse support

2020-05-03 Thread Peng Fan
Hi Stefano, > Subject: Re: [PATCH V2 resend 1/4] imx: add module fuse support > > Hi Peng, > > On 01.05.20 16:08, Peng Fan wrote: > > There are different parts from one SoC. Take i.MX6ULL for example, > > some part might not have ENET, some might have; some might not have > > USB, some might hav

RE: [PATCH 10/13] imx: load calibration parameters from fuse for i.MX8MP

2020-05-03 Thread Peng Fan
Hi Fabio, > Subject: Re: [PATCH 10/13] imx: load calibration parameters from fuse for > i.MX8MP > > Hi Peng and Ye Li, > > On Sun, May 3, 2020 at 10:57 AM Peng Fan wrote: > > > > From: Ye Li > > > > i.MX8MP thermal which has two probes and supports temperature range > > from -40 to 125. The d

RE: [PATCH 5/5] power: imx8: Replace SC_R_LAST with SC_R_NONE

2020-05-03 Thread Peng Fan
> Subject: Re: [PATCH 5/5] power: imx8: Replace SC_R_LAST with SC_R_NONE > > Hi Peng, > > On Sun, 3 May 2020 22:33:23 +0800 > Peng Fan peng@nxp.com wrote: > ... > > --- > > arch/arm/dts/fsl-imx8dx.dtsi| 619 > > > Why is this patch removing the d

[PATCH v3 2/4] patman: Suppress empty changelog entries

2020-05-03 Thread Sean Anderson
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 certain revision. For example, the existing behaviour could result in a chan

[PATCH v3 4/4] patman: Support multi-line changes in changelogs

2020-05-03 Thread Sean Anderson
This patch adds support to multi-line changes. That is, if one has a line in a changelog like - Do a thing but it spans multiple lines Using Series-process-log sort would sort as if those lines were unrelated. With this patch, any change line starting with whitespace will be considered part of th

[PATCH v3 3/4] patman: Add new tags for finer-grained changelog control

2020-05-03 Thread Sean Anderson
By default patman generates a combined changelog for the cover letter. This may not always be desireable. Many patches may have the same changes. These can be coalesced with "Series-process-log: uniq", but this is imperfect. Similar changes like "Move foo to patch 7" will not be merged with the si

[PATCH v3 1/4] patman: Modify functional tests for new behavior

2020-05-03 Thread Sean Anderson
This patch adds or modifies functional tests for the Cover-changes, Commit-changes, and Series-process-log tags in order to account for new behavior added in the next several patches. The '(no changes since v1)' case is not tested for, since that would need an additional commit to test in addition

[PATCH v3 0/4] patman: Add changelog customization options

2020-05-03 Thread Sean Anderson
This series adds a few changes I have been using locally as new tags for patman. This series has itself been developed using these patches, and the unprocessed commits can be viewed at [1]. [1] https://github.com/Forty-Bot/u-boot/tree/patman Changes in v3: - Document empty changelog suppression i

Re: Bisected: mmc cause reboot loops on N900

2020-05-03 Thread Pali Rohár
Pavel suggested to add Tomi into the loop as Jean is not with TI anymore. Tomi, could you please look at this mmc related problem? See details below. On Sunday 26 April 2020 00:20:07 Pali Rohár wrote: > On Saturday 25 April 2020 23:26:15 Pali Rohár wrote: > > Adding Jean to the loop. Could you pl

[PATCH v2] video: omap: change include order

2020-05-03 Thread Dario Binacchi
Apply u-boot coding style on include files order as described by the wiki https://www.denx.de/wiki/U-Boot/CodingStyle. Signed-off-by: Dario Binacchi --- Changes in v2: - Add reference to code style wiki drivers/video/am335x-fb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) d

[RFC PATCH 3/3] net: tsec: convert fsl_pq_mdio to DM_MDIO

2020-05-03 Thread Vladimir Oltean
From: Vladimir Oltean For the platforms on which the eTSEC driver uses DM_ETH, convert its MDIO controller code to also use DM_MDIO. Note that for handling the TBI PHY (the MAC PCS for SGMII), we still don't register a udevice for it, since we can drive it locally and there is no point in doing

[RFC PATCH 2/3] configs: enable DM_MDIO for LS1021A-TWR and LS1021A-TSN

2020-05-03 Thread Vladimir Oltean
From: Vladimir Oltean The tsec driver now requires DM_MDIO when DM_ETH is enabled. To avoid build errors, enable DM_MDIO in these boards' configs before we actually add DM_MDIO support to tsec. Signed-off-by: Vladimir Oltean --- configs/ls1021atsn_qspi_defconfig | 1 + config

[RFC PATCH 1/3] phy: make phy_connect_fixed work with a null mdio bus

2020-05-03 Thread Vladimir Oltean
From: Vladimir Oltean It is utterly pointless to require an MDIO bus pointer for a fixed PHY device. The fixed.c implementation does not require it, only phy_device_create. Fix that. Signed-off-by: Vladimir Oltean --- drivers/net/phy/phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[RFC PATCH 0/3] DM_MDIO for fsl_tsec driver

2020-05-03 Thread Vladimir Oltean
From: Vladimir Oltean This series converts the MDIO handling portion of the DM_ETH variant of the tsec driver (currently in use only on LS1021A-TSN and LS1021A-TWR) to use DM_MDIO. The other (non-DM_ETH) users of tsec are left alone. Posted as RFC since it depends on Zhiqiang's series "[PATCHv2,

[PATCH] net: pcnet: fix I/O primitives for memory access

2020-05-03 Thread Daniel Schwierzeck
Commit 69529c912059 ("net: pcnet: Switch to PCI memory access") switched from PCI IO access to PCI memory access without updating the I/O primitives. Contrary to SH, the primitives for memory access and IO access are implemented differently. Thus doing memory access with IO port primitives breaks t

Re: [PATCH v7 16/22] riscv: Enable cpu clock if it is present

2020-05-03 Thread Sean Anderson
On 5/3/20 3:12 AM, Pragnesh Patel wrote: > Hi Sean, > >> -Original Message- >> From: Sean Anderson >> Sent: 02 May 2020 23:46 >> To: Pragnesh Patel ; u-boot@lists.denx.de >> Cc: atish.pa...@wdc.com; palmerdabb...@google.com; >> bmeng...@gmail.com; Paul Walmsley ; >> ja...@amarulasolutions

[PATCH v4 1/2] drivers: gpio: add broadcom iproc gpio driver support

2020-05-03 Thread Rayagonda Kokatanur
Add gpio driver support for Broadcom iproc-based socs. Signed-off-by: Rayagonda Kokatanur Signed-off-by: Sheetal Tigadoli --- drivers/gpio/Kconfig | 11 ++ drivers/gpio/Makefile | 1 + drivers/gpio/iproc_gpio.c | 269 ++ 3 files changed, 281 inser

[PATCH v4 2/2] gpio: do not include on TARGET_BCMNS3

2020-05-03 Thread Rayagonda Kokatanur
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch bcmns3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- arch/arm/include/asm/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/gpio

[PATCH v4 0/2] add brcm iproc gpio driver

2020-05-03 Thread Rayagonda Kokatanur
Add support for broadcom iproc gpio driver. Changes from v3: -Address review comments from Simon Glass, Rearrange header file, Add struct comment taking about members, Use clrsetbits_le32(), Add new line before return etc. Changes from v2: -remove ununsed variable "node" in iproc_get_g

Re: [PATCHv2 3/3] net: tsec: Access TBI PHY through the corresponding MII

2020-05-03 Thread Vladimir Oltean
On Sun, 3 May 2020 at 17:53, Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > When an eTSEC is configured to use TBI, configuration of the > TBI is done through the MIIM registers for that eTSEC. > For example, if a TBI interface is required on eTSEC2, then > the MIIM registers starting at offset 0

[PATCH] sh: Enable ffunction-sections and fdata-sections

2020-05-03 Thread Marek Vasut
Enable these two options to let compiler eliminate unused code. On R2Dplus, this results in considerable amount of saved space: textdata bss dec hex filename - 266580 13196 39076 318852 4dd84 u-boot + 220214 12797 38745 271756 4258c u-boot Signed-off-by: Ma

Re: [PATCH V2 resend 1/4] imx: add module fuse support

2020-05-03 Thread Stefano Babic
Hi Peng, On 01.05.20 16:08, Peng Fan wrote: > There are different parts from one SoC. Take i.MX6ULL for example, > some part might not have ENET, some might have; some might not have > USB, some might have. The information could be got from OCOTP, > to make one image support the different parts, w

Re: [PATCH 10/13] imx: load calibration parameters from fuse for i.MX8MP

2020-05-03 Thread Fabio Estevam
Hi Peng and Ye Li, On Sun, May 3, 2020 at 10:57 AM Peng Fan wrote: > > From: Ye Li > > i.MX8MP thermal which has two probes and supports temperature range > from -40 to 125. The driver still uses default 1p HW > calibration at 25C and loads calibration parameters from fuse. > > Reviewed-by: Pen

Re: [PATCH 2/2] net: pcnet: Switch to PCI memory access

2020-05-03 Thread Marek Vasut
On 5/2/20 5:03 PM, Daniel Schwierzeck wrote: > > > Am 02.05.20 um 17:00 schrieb Daniel Schwierzeck: >> Hi Marek, >> >> Am 18.04.20 um 05:15 schrieb Marek Vasut: >>> Replace the PCI IO access with PCI memory access, the card >>> supports both, but the former does not work with QEMU SH4. >>> >>> Si

[PATCHv2 3/3] net: tsec: Access TBI PHY through the corresponding MII

2020-05-03 Thread Zhiqiang Hou
From: Hou Zhiqiang When an eTSEC is configured to use TBI, configuration of the TBI is done through the MIIM registers for that eTSEC. For example, if a TBI interface is required on eTSEC2, then the MIIM registers starting at offset 0x2_5520 are used to configure it. Fixes: 9a1d6af55ecd ("net: t

[PATCHv2 2/3] net: tsec: Access eTSEC registers using virtual address

2020-05-03 Thread Zhiqiang Hou
From: Hou Zhiqiang The current code accesses eTSEC registers using physical address directly, it's not correct, though no problem on current platforms. It won't work on platforms, which does not support 1:1 virtual-physical address map. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean

[PATCHv2 1/3] doc: dt-bindings: tsec: Correct the Ethernet port compatible string

2020-05-03 Thread Zhiqiang Hou
From: Hou Zhiqiang Change the compatible string to "fsl,etsec2" for the Ethernet ports, which is used in the current driver's match table. Fixes: 69a00875e3db ("doc: dt-bindings: Describe Freescale TSEC ethernet controller") Signed-off-by: Hou Zhiqiang Acked-by: Vladimir Oltean --- V2: - No

[PATCHv2 0/3] net: tsec: Fix issues of DM driver

2020-05-03 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set is to fix some issues of eTSEC DM driver. Hou Zhiqiang (3): doc: dt-bindings: tsec: Correct the Ethernet port compatible string net: tsec: Access eTSEC registers using virtual address net: tsec: Access TBI PHY through the corresponding MII doc/device-tre

RE: [PATCH 3/3] net: tsec: Access TBI PHY through the corresponding MII

2020-05-03 Thread Z.q. Hou
Hi Vladimir, Thanks a lot for your comments! > -Original Message- > From: Vladimir Oltean > Sent: 2020年5月3日 22:07 > To: Z.q. Hou > Cc: u-boot ; Joe Hershberger > ; Bin Meng ; Priyanka > Jain > Subject: Re: [PATCH 3/3] net: tsec: Access TBI PHY through the > corresponding MII > > Hi Zh

[PATCH 1/1] efi_loader: correct comments for efi_status_t

2020-05-03 Thread Heinrich Schuchardt
EFI_STATUS is unsigned (UINTN). Hence it cannot be negative. Correct comments for 'Return:'. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_setup.c | 2 +- lib/efi_loader/efi_signature.c | 2 +- lib/efi_loader/efi_variable.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletio

[PATCH 1/1] efi_loader: eliminate efi_set_(non)volatile_variable

2020-05-03 Thread Heinrich Schuchardt
Eliminate superfluous functions efi_set_volatile_variable() and efi_set_nonvolatile_variable(). Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_variable.c | 141 +- 1 file changed, 37 insertions(+), 104 deletions(-) diff --git a/lib/efi_loader/efi_varia

[PATCH V2 7/8] fec: Move imx_get_mac_from_fuse declare to imx file

2020-05-03 Thread Peng Fan
From: Ye Li imx_get_mac_from_fuse is used to load MAC address from fuse. On imx8mp, we have two different ENET controllers and both need to call this function. So decouple its declare from fec driver. Reviewed-by: Fugang Duan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/

[PATCH V2 5/8] net: dwc_eth_qos: add dwc eqos for imx support

2020-05-03 Thread Peng Fan
From: Fugang Duan Add dwc eqos for imx support. Reviewed-by: Ye Li Signed-off-by: Fugang Duan Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 187 ++ 1 file changed, 173 insertions(+), 14 deletions(-) diff --git a/drivers/net/dwc_eth_qos.c

[PATCH V2 8/8] eQos: Implement the read_rom_hwaddr callback

2020-05-03 Thread Peng Fan
From: Ye Li Implement the read_rom_hwaddr callback to load MAC address from fuse for imx8m platforms. Reviewed-by: Fugang Duan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/dwc_eth_qos.c

[PATCH V2 6/8] net: eqos: implement callbaks to get interface and set txclk rate

2020-05-03 Thread Peng Fan
From: Fugang Duan Implement the callbacks to get phy mode interface and txclk rate configuration. Reviewed-by: Ye Li Signed-off-by: Fugang Duan Signed-off-by: Peng Fan --- V2: Fix build break drivers/net/dwc_eth_qos.c | 55 --- 1 file changed, 5

Re: [PATCH 5/5] power: imx8: Replace SC_R_LAST with SC_R_NONE

2020-05-03 Thread Anatolij Gustschin
Hi Peng, On Sun, 3 May 2020 22:33:23 +0800 Peng Fan peng@nxp.com wrote: ... > --- > arch/arm/dts/fsl-imx8dx.dtsi| 619 > Why is this patch removing the dtsi file? -- Anatolij

[PATCH V2 4/8] net: phy: realtek: add rx delay support for RTL8211F

2020-05-03 Thread Peng Fan
From: Fugang Duan Add RX delay enable support for RTL8211F PHY. Reviewed-by: Ye Li Signed-off-by: Fugang Duan Signed-off-by: Peng Fan --- drivers/net/phy/realtek.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 8f1

[PATCH V2 1/8] net: eth-uclass: add return value check

2020-05-03 Thread Peng Fan
Add return value check Signed-off-by: Peng Fan --- net/eth-uclass.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 8bf2eabe90..950a48d520 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -40,8 +40,12 @@ static in

[PATCH V2 3/8] net: Update eQos driver and FEC driver to use eth phy interfaces

2020-05-03 Thread Peng Fan
From: Ye Li Update eQoS and fec ethernet drivers to support shared MDIO framework Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 45 +++-- drivers/net/fec_mxc.c | 16 ++-- 2 files changed, 45 insertions(+),

[PATCH V2 2/8] net: Add eth phy generic driver for shared MDIO

2020-05-03 Thread Peng Fan
From: Ye Li For dual ethernet controllers, the HW design may connect ETH phys to one MDIO ports. So two different ethernet drivers have to share MDIO bus. Since two ethernet drivers are independent, we can't ensure their probe order. To resolve this problem, introduce an eth phy generic driver a

[PATCH 5/5] power: imx8: Replace SC_R_LAST with SC_R_NONE

2020-05-03 Thread Peng Fan
From: Leonard Crestez We are currently using SC_R_LAST as a marker for imx8 power domain tree nodes without a resource attached. This value is compiled into dtb as part of the linux build and used by uboot. The SC_R_LAST constant changes frequently as SCFW resources are added (by design) and eve

Re: [PATCH] video: omap: change include order

2020-05-03 Thread Lokesh Vutla
On 02/05/20 9:09 PM, Dario Binacchi wrote: > Apply u-boot coding style on include files order. Can you describe more on how you are ordering? Thanks and regards, Lokesh > > Signed-off-by: Dario Binacchi > --- > > drivers/video/am335x-fb.c | 8 > 1 file changed, 4 insertions(+), 4

[PATCH 4/5] power: imx8: Check owned resource in power on

2020-05-03 Thread Peng Fan
From: Ye Li When fspi is assigned to M4, we have to let the fspi probe failed when its power domain is failed to power up. Because not all devices have power domain (for example, external devices on the board). Current checking resource owner in power domain probe is not good, change to check it

[PATCH 2/5] power: imx8-power-domain: Set DM_FLAG_DEFAULT_PD_CTRL_OFF flag

2020-05-03 Thread Peng Fan
From: Ye Li If without this flag, calling dev_power_domain_ctrl will iteratively remove the power domain device will causes iteratively power off parent PD. This is not expected by imx8-power-domain-legacy driver. Power off parent PD is controlled by the driver internally. So set DM_FLAG_DEFAULT

[PATCH 1/5] imx8: power: Add PD device lookup interface to power domain uclass

2020-05-03 Thread Peng Fan
Add power_domain_lookup_name interface to power domain uclass to find a power domain device by its DTB node name, not using its associated client device. Through this interface, we can operate the power domain devices directly. This is needed for non-DM drivers. Modified from Ye's NXP downstream

[PATCH 3/5] power: imx8: remove the resource owned check before power off

2020-05-03 Thread Peng Fan
For all the devices used and set ACTIVE in U-Boot, U-Boot needs to power off all of them without the check of resource owner. When we create software partition before booting Linux, the resource own checkw will return false, and cause the power domain not powered off. If without the check of resou

[PATCH 1/2] misc: fuse: Update imx8 fuse driver for 8QM

2020-05-03 Thread Peng Fan
From: Ye Li Add the second ECC fuse area for 8QM which is different with 8QXP Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/imx8/fuse.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c index 1309215d4d..4d7f2f524d 100

[PATCH 2/2] misc: scu: Increase the timeout for MU communication

2020-05-03 Thread Peng Fan
From: Ye Li When power on some sources in Video system, current timeout 10ms is too short and returns before SCU response. So increase the timeout to 1s. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/imx8/scu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 3/3] net: tsec: Access TBI PHY through the corresponding MII

2020-05-03 Thread Vladimir Oltean
Hi Zhiqiang, On Sun, 3 May 2020 at 16:49, Z.q. Hou wrote: > > Hi Vladimir, > > Thanks a lot for your review and test! > > > -Original Message- > > From: Vladimir Oltean > > Sent: 2020年5月3日 19:35 > > To: Z.q. Hou > > Cc: u-boot ; Joe Hershberger > > ; Bin Meng ; Priyanka > > Jain > > Su

[PATCH 3/4] sata: dwc_ahsata: Fix incorrect free

2020-05-03 Thread Peng Fan
From: Ye Li Fix coverity issue CID 43665: Free of address-of expression (BAD_FREE) incorrect_free: free frees incorrect pointer pp. pp points the port array field of struct ahci_uc_priv, should not free it. Acked-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ata/dwc_

[PATCH 4/4] sata: dwc_ahsata: Fix memory issue in reset_sata

2020-05-03 Thread Peng Fan
From: Ye Li The reset_sata should reset the sata device info and free the probe_ent memory. Otherwise, it will cause memory leak if we init the sata again. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ata/dwc_ahsata.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/

[PATCH 2/4] sata: ahsata: Fix wrong operand for checking SERR DIAG_X

2020-05-03 Thread Peng Fan
From: Ye Li Fix coverity issue CID 3261683: Wrong operator used (CONSTANT_EXPRESSION_RESULT) operator_confusion: ({...; __v;}) | 67108864 is always 1/true regardless of the values of its operand. This occurs as the logical operand of ! When DIAG_X is set, the PHY COMINIT signal is detected, so s

[PATCH 1/4] sata: ahsata: Fix resource leak

2020-05-03 Thread Peng Fan
From: Ye Li Fix coverity issue CID 3606684: Resource leak (RESOURCE_LEAK) leaked_storage: Variable uc_priv going out of scope leaks the storage it points to Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ata/dwc_ahsata.c | 5 + 1 file changed, 5 insertions(+) diff --git a/driv

[PATCH 11/13] imx8mp: Set default SNSR25C for TMU probe1

2020-05-03 Thread Peng Fan
From: Ye Li So far u-boot only load SNSR25C for TMU main probe (probe 0). However, kernel enables two probes. So it also needs to set default SNSR25C of TCALIV1 for blank samples. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 ++ 1 f

[PATCH 13/13] imx: cpu: support tmu

2020-05-03 Thread Peng Fan
Support tmu when print cpu info Signed-off-by: peng Fan --- arch/arm/mach-imx/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index bfa85c64c6..2d70b6861d 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/

[PATCH 12/13] imx: regs: add more fuse bank structure

2020-05-03 Thread Peng Fan
Add more fuse bank structure for use. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 41 +- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.

[PATCH 10/13] imx: load calibration parameters from fuse for i.MX8MP

2020-05-03 Thread Peng Fan
From: Ye Li i.MX8MP thermal which has two probes and supports temperature range from -40 to 125. The driver still uses default 1p HW calibration at 25C and loads calibration parameters from fuse. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/

[PATCH 09/13] imx: i.MX8MN: Enable loading TASR and TCALIV from fuse

2020-05-03 Thread Peng Fan
From: Ye Li Like iMX8MM, iMX8MN also needs SW to load TMU TASR and TCALIV registers value from fuse before enabling TMU calibration. Otherwise the calibration is not exact. Reviewed-by: Anson Huang Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 +- 1 file

[PATCH 02/13] thermal: Add thermal driver for i.MX8M

2020-05-03 Thread Peng Fan
The driver is ported form Linux Kernel and support driver model. Users need to provide the tmu node and sensors nodes in DTB. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/thermal/Kconfig | 9 ++ drivers/thermal/Makefile | 1 + drivers/thermal/imx_tmu.c | 325 +

[PATCH 05/13] thermal: imx_tmu: Fix for temperature out of range

2020-05-03 Thread Peng Fan
When the temperature is out of sensor's range, the Valid bit won't be set in TRITSR register. So the polling loop won't go out. Change the codes to retry 10 times with 100ms interval for the Valid bit. If the timeout, we give a warning for the invalid data. Modifed from Ye's NXP patch Signed-off

[PATCH 08/13] imx8mm: Load fuse for TMU TCALIV and TASR

2020-05-03 Thread Peng Fan
From: Ye Li On iMX8MM, the default value of TMU registers TCALIV and TASR need be loaded from fuse. HW won't do this, it expect SW loads them before using TMU. Reviewed-by: Bai Ping Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 28 ++

[PATCH 07/13] thermal: imx_tmu: support i.MX8MP

2020-05-03 Thread Peng Fan
Support i.MX8MP thermal which has two probes and supports temperature range from -40 to 125. Still uses default 1p HW calibration at 25C and loads calibration parameters from fuse. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/thermal/imx_tmu.c | 76 ++

[PATCH 06/13] thermal: imx_tmu: Check the TEMP range for iMX8MM

2020-05-03 Thread Peng Fan
On iMX8MM, the V flag in TRISTR register only reflect the state of SNSR value, not the calibrated TEMP value. So checking this flag is not reliable. Per IC suggestion, change to read the TEMP/AVG_TEMP directly and check whether it in valid range 10-125C. Signed-off-by: Ye Li Signed-off-by: Peng F

[PATCH 04/13] thermal: imx_tmu: support TMU arch level initialization

2020-05-03 Thread Peng Fan
i.MX8MM TMU needs to load some registers from fuse, this is arch dependent operation and may vary on different platforms. So add a interface for arch level initialization. Signed-off-by: Peng Fan --- drivers/thermal/imx_tmu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/ther

[PATCH 03/13] thermal: imx_tmu: Add support for thermal sensor on iMX8MM

2020-05-03 Thread Peng Fan
The analog sensors on iMX8MM are new, used for 14LPP process. So the Temperature Sensor Monitoring Unit (TMU) has some change accordingly. We use version 2 in TMU driver to represent the new TMU, so the one driver can service for both i.MX8MQ/M. Signed-off-by: Peng Fan --- drivers/thermal/imx_tm

[PATCH 01/13] thermal: imx_scu_thermal: Update driver for i.MX8QM thermal sensor

2020-05-03 Thread Peng Fan
From: Ye Li Add iMX8QM thermal compatible string and its driver data. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/thermal/imx_scu_thermal.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/thermal/imx_scu_thermal.c b/drivers/thermal/imx_scu_thermal.c index 7e1

[PATCH 00/13] imx: tmu support and scu thermal update

2020-05-03 Thread Peng Fan
This patchset is to support TMU in i.MX8M family, including i.MX8QM SCU thermal update. Peng Fan (8): thermal: Add thermal driver for i.MX8M thermal: imx_tmu: Add support for thermal sensor on iMX8MM thermal: imx_tmu: support TMU arch level initialization thermal: imx_tmu: Fix for temperat

Re: [PATCH v8 00/14] Add support for MediaTek xHCI host controller

2020-05-03 Thread Marek Vasut
On 5/3/20 8:33 AM, Frank Wunderlich wrote: > > > Am 2. Mai 2020 12:32:56 MESZ schrieb Marek Vasut : >> Applied, thanks. >> >> btw do you really need such a massive CC list ? > > Thanks, > > i took To/Cc from v7 (i guess coverletter) to prepare my coverletter and used > it for complete series.

RE: [PATCH 2/3] net: tsec: Access eTSEC registers using virtual address

2020-05-03 Thread Z.q. Hou
Hi Vladimir, Thanks a lot for your review and test! Thanks, Zhiqiang > -Original Message- > From: Vladimir Oltean > Sent: 2020年5月3日 19:36 > To: Z.q. Hou > Cc: u-boot ; Joe Hershberger > ; Bin Meng ; Priyanka > Jain > Subject: Re: [PATCH 2/3] net: tsec: Access eTSEC registers using vir

RE: [PATCH 3/3] net: tsec: Access TBI PHY through the corresponding MII

2020-05-03 Thread Z.q. Hou
Hi Vladimir, Thanks a lot for your review and test! > -Original Message- > From: Vladimir Oltean > Sent: 2020年5月3日 19:35 > To: Z.q. Hou > Cc: u-boot ; Joe Hershberger > ; Bin Meng ; Priyanka > Jain > Subject: Re: [PATCH 3/3] net: tsec: Access TBI PHY through the > corresponding MII >

RE: [PATCH 1/3] doc: dt-bindings: tsec: Correct the Ethernet port compatible string

2020-05-03 Thread Z.q. Hou
Hi Vladimir, Thanks a lot for your ack! > -Original Message- > From: Vladimir Oltean > Sent: 2020年5月3日 19:13 > To: Z.q. Hou > Cc: u-boot ; Joe Hershberger > ; Bin Meng ; Priyanka > Jain ; mario@gdsys.cc > Subject: Re: [PATCH 1/3] doc: dt-bindings: tsec: Correct the Ethernet port > c

Re: [PATCH v2 8/8] rockchip: Enable PCIe/M.2 on rock960 board

2020-05-03 Thread Manivannan Sadhasivam
On Thu, Apr 30, 2020 at 12:34:12PM +0530, Jagan Teki wrote: > Due to some on board limitation rock960 PCIe > works only with 1.8V IO domain. > > So, this patch enables grf io_sel explicitly > to make PCIe/M.2 to work. > > Cc: Tom Cubie > Cc: Manivannan Sadhasivam > Signed-off-by: Jagan Teki >

[PATCH V3 9/9] cpu: imx8: show RevC instead of Rev? at boot log

2020-05-03 Thread Peng Fan
From: Frank Li Add REVC informaiton. Reviewed-by: Simon Glass Signed-off-by: Frank Li Signed-off-by: Peng Fan --- V3: None V2: Add R-b tag arch/arm/include/asm/arch-imx/cpu.h | 1 + drivers/cpu/imx8_cpu.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/includ

[PATCH V3 8/9] cpu: imx_cpu: Print the CPU temperature for iMX8QM A72

2020-05-03 Thread Peng Fan
From: Ye Li iMX8QM registers two thermal devices for CPUs, get the temperature from "cpu-thermal1" device for A72 Reviewed-by: Simon Glass Signed-off-by: Ye Li Signed-off-by: Peng Fan --- V3: None V2: Per Simon's comments, use uclass_get_device drivers/cpu/imx8_cpu.c | 18

[PATCH V3 7/9] cpu: imx8: fix get core name and rate

2020-05-03 Thread Peng Fan
When current cpu is A53, using is_cortex_a53 could not detect A72 information, so check cpu device compatible property to get the correct information. Reviewed-by: Simon Glass Signed-off-by: Peng Fan --- V3: None V2: Add R-b tag drivers/cpu/imx8_cpu.c | 27 +-- 1 file

[PATCH V3 6/9] cpu: imx8: support a72 as boot cpu

2020-05-03 Thread Peng Fan
Support booting i.MX8QM with A72 as boot cpu Reviewed-by: Simon Glass Signed-off-by: Peng Fan --- V3: None V2: Add R-b tag drivers/cpu/imx8_cpu.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 7c54c290b8..c4679e1

[PATCH V3 4/9] common: board_f: Use cpu_get_current_dev in print_cpuinfo

2020-05-03 Thread Peng Fan
From: Ye Li Current print_cpuinfo gets the first udevice in CPU class to return the cpu info. This has problem if the boot CPU is not fixed. Changing to use new API cpu_get_current_dev to fix the issue. Reviewed-by: Simon Glass Signed-off-by: Ye Li Signed-off-by: Peng Fan --- V3: None V2:

[PATCH V3 3/9] test: cpu: test current cpu

2020-05-03 Thread Peng Fan
Add test whether the CPU is U-Boot is running from. Reviewed-by: Simon Glass Signed-off-by: Peng Fan --- V3: Add R-b tag V2: New test/dm/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/dm/cpu.c b/test/dm/cpu.c index e6dc576ea3..def9b64a28 100644 --- a/test/dm/cpu.c +++ b/tes

[PATCH V3 5/9] cpu: imx8: reimplement get cpu count

2020-05-03 Thread Peng Fan
Return 4 is not correct on i.MX8DX/DXL/8QM and etc. we need to count available cpu node with device_type "cpu". Reviewed-by: Simon Glass Signed-off-by: Peng Fan --- V3: None V2: Add R-b tag drivers/cpu/imx8_cpu.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) dif

[PATCH V3 2/9] cpu: sandbox: support is_current

2020-05-03 Thread Peng Fan
Support querying whether U-Boot is running on current cpu Reviewed-by: Simon Glass Signed-off-by: Peng Fan --- V3: Add R-b V2: New drivers/cpu/cpu_sandbox.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/cpu/cpu_sandbox.c b/drivers/cpu/cpu_sandbox.c index 05b384f6a4..30

[PATCH V3 1/9] uclass: cpu: Add new API to get udevice for current CPU

2020-05-03 Thread Peng Fan
When running on SoC with multiple clusters, the boot CPU may not be fixed, saying booting from cluster A or cluster B. Add a API that can return the udevice for current boot CPU. Cpu driver needs to implement is_current_cpu interface for this feature, otherwise the API only returns the first udevic

RE: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for current CPU

2020-05-03 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for > current CPU > > Hi Peng, > > On Fri, 1 May 2020 at 07:22, Peng Fan wrote: > > > > When running on SoC with multiple clusters, the boot CPU may not be > > fixed, saying booting from cluster A or cluster B. > >

[PATCH V2] imx: Add support for i.MX8MM Beacon EmbeddedWorks devkit.

2020-05-03 Thread Adam Ford
Beacon EmbeddedWorks, formerly known as Logic PD, is releasing a devkit based on the i.MX8M Mini SoC consisting of baseboard + SOM. It supports eMMC on the SOM, microSD on the baseboard, various GPIO, the PINCTRL, and UART. Signed-off-by: Adam Ford --- V2: Remove do_reset from SPL and enable ca

[PATCH] dm: serial: introduce puts hook

2020-05-03 Thread Peng Fan
Introduce puts hook for dm serial driver. Signed-off-by: Peng Fan --- drivers/serial/serial-uclass.c | 13 +++-- include/serial.h | 8 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c i

[PATCH] sf: Add Macronix MX25R6435F SPI NOR flash to flash parameters array

2020-05-03 Thread Peng Fan
From: Ye Li On i.mx7ulp EVK board, we use MX25R6435F NOR flash, add its parameters and IDs to flash parameter array. Otherwise, the flash probe will fails. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver

[PATCH] pinctrl: nxp: scu: Check the pad partition before set pinmux

2020-05-03 Thread Peng Fan
From: Ye Li If a pad is not owned by current partition we should not set its pinmux. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/pinctrl-scu.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pin

  1   2   >