Re: [PATCH v2] doc: driver-model: fix typo in design.rst

2020-06-13 Thread sjg
Fix the 'memeber' typo in doc/driver-model/design.rst. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- Changes in v2: - Add the commit message doc/driver-model/design.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm, thanks!

[PATCH 1/1] doc: random number generation

2020-06-13 Thread Heinrich Schuchardt
Add random number generation APIs to the HTML documentation. Fix style issues. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + doc/api/index.rst | 1 + doc/api/rng.rst | 17 + include/rand.h| 6 +++--- include/rng.h | 26 ++ 5

[PATCH v2 02/10] powerpc: Remove configs/BSC9131RDB_NAND_SYSCLK100_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Poonam Aggrwal Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 7 - board/freescale/bsc9131rdb/Kconfig| 12 - board/freesc

[PATCH v2 00/10] spi: dm-conversion (part2)

2020-06-13 Thread Jagan Teki
This is rebased v2 for previous version spi dm-conversion series[1] on fsl_espi boards. All these patches dropped the boards which are not converted spi dm and also the maintainer is accepted to remove the same. Rest of the patches in this series are trying to switch spi dm. Changes for v2: - reb

[PATCH v2 04/10] powerpc: Remove configs/C29XPCIE_NAND_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Po Liu Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig| 10 - board/freescale/c29xpcie/Kconfig| 14 - board/freescale/c29xpcie

[PATCH v2 03/10] powerpc: Remove configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Naveen Burmi Patch-cc: Ruchika Gupta Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 9 - board/freescale/bsc9132qds/Kconfig

[PATCH v2 05/10] powerpc: Remove configs/MPC8536DS_36BIT_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Priyanka Jain Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 9 - board/freescale/mpc8536ds/Kconfig | 12 - board/freescale/mpc8536ds/MAI

[PATCH v2 08/10] powerpc: Remove T1040QDS_DDR4_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Poonam Aggrwal Patch-cc: Ruchika Gupta Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 11 - board/freescale/t1040qds/Kconfig | 1

[PATCH v2 06/10] powerpc: Remove P1022DS_36BIT_NAND_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Timur Tabi Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 9 - board/freescale/p1022ds/Kconfig | 12 - board/freescale/p1022ds/MA

[PATCH v2 10/10] powerpc: Remove TWR-P1025_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Xiaobo Xie Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 5 - board/freescale/p1_twr/Kconfig | 12 - board/freescale/p1_twr/MAINTAINERS |

Re: [PATCHv3 00/36] spi: fsl-espi: Convert eSPI driver to DM

2020-06-13 Thread Jagan Teki
On Thu, Jun 4, 2020 at 8:52 PM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > Merged the following 2 series and added P1010RDB boards into the > support list. > https://patchwork.ozlabs.org/project/uboot/list/?series=126119&archive=both&state=%2a > https://patchwork.ozlabs.org/project/uboot/list/

Re: [PATCHv3 01/36] dm: spi: Convert Freescale ESPI driver to driver model

2020-06-13 Thread Jagan Teki
On Thu, Jun 4, 2020 at 8:52 PM Zhiqiang Hou wrote: > > From: Chuanhua Han > > Modify the Freescale ESPI driver to support the driver model. > Also resolved the following problems: > > = WARNING == > This board does not use CONFIG_DM_SPI. Please update > the

[PATCH v2 07/10] powerpc: Remove T1024QDS_DDR4_SECURE_BOOT_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Signed-off-by: Jagan Teki --- arch/powerpc/cpu/mpc85xx/Kconfig| 11 - board/freescale/t102xqds/Kconfig| 14 - board/freescale/t102xqds/MAINTAINERS| 12 - board/freescale/t

[PATCH v2 01/10] powerpc: Remove configs/B4420QDS_NAND_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Ashish Kumar Patch-cc: Ruchika Gupta Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 17 - board/freescale/b4860qds/Kconfig

[PATCH v2 09/10] powerpc: Remove T4160QDS_NAND_defconfig board

2020-06-13 Thread Jagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Ruchika Gupta Signed-off-by: Jagan Teki Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 20 - board/freescale/t4qds/Kconfig | 14 - board/freescale/t4qds

[PATCH 01/16] cl-som-imx7: Switch to DM_SPI/DM_SPI_FLASH

2020-06-13 Thread Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with associated config options. Build fine, but not tested. Patch-cc: Uri Mashiach Signed-off-by: Jagan Teki --- configs/cl-som-imx7_defconfig | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/cl-som-imx7_defconfig b/configs/cl-som-im

[PATCH 02/16] cm_fx6: Switch to full DM-aware

2020-06-13 Thread Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option. Build fine, but not tested. Patch-cc: Nikita Kiryanov Signed-off-by: Jagan Teki --- configs/cm_fx6_defconfig | 3 +++ include/configs/cm_fx6.h | 7 --- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/configs/cm_fx6_def

[PATCH 00/16] spi: dm-conversion (part3)

2020-06-13 Thread Jagan Teki
This series updated boards which are using mxc_spi driver. Series has patches for 1) DM_SPI/SPI_FLASH enablement for boards which already support DM and OF_CONTROL. 2) Drop the boards which doesn't support DM or OF_CONTROL. Now it's call for board maintainers to update their board to use devi

[PATCH 03/16] dh_imx6: Switch to full DM-aware

2020-06-13 Thread Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option. Build fine, but not tested. Cc: Ludwig Zenz Cc: Andreas Geisreiter Signed-off-by: Jagan Teki --- configs/dh_imx6_defconfig | 3 +++ include/configs/dh_imx6.h | 6 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/con

[PATCH 06/16] arm: Remove tqma6s_wru4_mmc_defconfig

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this defconfig. Remove it. Patch-cc: Markus Niebel Signed-off-by: Jagan Teki --- configs/tqma6s_wru4_mmc_defconfig | 81 --- 1 file changed, 81 deletions(-) delete mode 100644 configs/tqm

[PATCH 08/16] arm: Remove pcm058 board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Stefano Babic Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 6 - board/phytec/pcm058/Kconfig | 12 - board/phytec/pcm058/MAINTAINERS | 6 - board/phytec/pcm

[PATCH 04/16] arm: Remove mx51evk board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Stefano Babic Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx5/Kconfig | 6 - board/freescale/mx51evk/Kconfig | 15 - board/freescale/mx51evk/MAINTAINERS |

[PATCH 07/16] arm: Remove pfla02 board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Stefano Babic Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 7 - board/phytec/pfla02/Kconfig | 18 - board/phytec/pfla02/MAINTAINERS | 6 - board/phytec/pfl

[PATCH 05/16] arm: Remove ts4800 board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Lucile Quirion Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx5/Kconfig| 5 - board/technologic/ts4800/Kconfig | 15 -- board/technologic/ts4800/MAINTAINERS | 6 -

[PATCH 12/16] arm: Remove ot1200 board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Christian Gmeiner Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 6 - board/bachmann/ot1200/Kconfig | 12 - board/bachmann/ot1200/MAINTAINE

[PATCH 09/16] arm: Remove riotboard board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Eric Bénard Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 6 - board/embest/mx6boards/Kconfig | 12 - board/embest/mx6boards/MAINTAINERS | 8 - board/emb

[PATCH 11/16] arm: Remove cgtqmx6eval board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Otavio Salvador Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig| 10 - board/congatec/cgtqmx6eval/Kconfig | 12 - board/congatec/cgtqmx6eval/MAINTAIN

[PATCH 10/16] arm: Remove zc5202/zc5601 board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Patch-cc: Stefano Babic Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 17 - board/el/el6x/Kconfig | 25 -- board/el/el6x/MAINTAINERS | 8 - board/el/el6x/Makefile|

[PATCH 13/16] arm: Remove dms-ba16 board

2020-06-13 Thread Jagan Teki
OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Akshay Bhat Patch-cc: Ken Lin Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig| 7 - board/advantech/dms-ba16/Kconfig | 31 -- board/advantech/dms-b

[PATCH 14/16] arm: Remove configs/mx35pdk_defconfig board

2020-06-13 Thread Jagan Teki
DM, OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Stefano Babic Signed-off-by: Jagan Teki --- arch/arm/Kconfig| 6 - board/freescale/mx35pdk/Kconfig | 15 -- board/freescale/mx35pdk/MAINTAINERS

[PATCH 15/16] arm: Remove flea3_defconfig board

2020-06-13 Thread Jagan Teki
DM, OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Stefano Babic Signed-off-by: Jagan Teki --- arch/arm/Kconfig| 5 - board/CarMediaLab/flea3/Kconfig | 15 -- board/CarMediaLab/flea3/MAINTAINERS

[PATCH 16/16] arm: Remove mx31pdk_defconfig board

2020-06-13 Thread Jagan Teki
DM, OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Magnus Lilja Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx3/Kconfig | 12 -- board/freescale/mx31pdk/Kconfig | 15 --- board/freescale/mx31pdk/MAINTAINERS

Re: [PATCH 00/16] spi: dm-conversion (part3)

2020-06-13 Thread Tom Rini
On Sat, Jun 13, 2020 at 07:24:39PM +0530, Jagan Teki wrote: > This series updated boards which are using mxc_spi > driver. > > Series has patches for > 1) DM_SPI/SPI_FLASH enablement for boards which >already support DM and OF_CONTROL. > 2) Drop the boards which doesn't support DM or OF_CONT

Re: [PATCH v2 03/23] am335x: baltos: Enable DM_SPI

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:26 PM Jagan Teki wrote: > > Enable DM_SPI for am355x baltos board. > > Build is fine, but not tested. > > Cc: Yegor Yefremov Any comments?

Re: [PATCH v2 04/23] am335x: igep003x: Enable DM_SPI

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:26 PM Jagan Teki wrote: > > Enable DM_SPI for am355x igep003x board. > > Build is fine, but not tested. > > Cc: Javier Martínez Canillas > Signed-off-by: Jagan Teki > --- > Changes for v2: > - new patch > > configs/am335x_igep003x_defconfig | 1 + > 1 file changed, 1 i

Re: [PATCH v2 05/23] siemens: draco: Enable DM_SPI, DM_SPI_FLASH

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > Enable DM_SPI, DM_SPI_FLASH for siemens draco board. > > Build is fine, but not tested. > > Cc: Samuel Egli Any comments?

Re: [PATCH v2 06/23] siemens: pxm2: Enable DM_SPI, DM_SPI_FLASH

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > Enable DM_SPI, DM_SPI_FLASH for siemens pxm2 board. > > Build is fine, but not tested. > > Cc: Samuel Egli Any comments?

Re: [PATCH v2 07/23] siemens: rut: Enable DM_SPI, DM_SPI_FLASH

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > Enable DM_SPI, DM_SPI_FLASH for siemens rut board. > > Build is fine, but not tested. > > Cc: Samuel Egli Any comments?

Re: [PATCH v2 08/23] compulab: Drop cm_t54

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > DM, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Dmitry Lifshitz Any comments?

Re: [PATCH v2 09/23] compulab: Drop cm_t35

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > DM, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Igor Grinberg Any comments?

Re: [PATCH v2 10/23] overo: Drop omap3 overo

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > OF_CONTROL, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Steve Sakoman Any inputs?

Re: [PATCH v2 12/23] logicpd: Drop omap3 zoom1

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > OF_CONTROL, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Nishanth Menon Any comments?

Re: [PATCH v2 13/23] quipos: Drop omap3 cairo

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > OF_CONTROL, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Albert ARIBAUD (3ADEV) Any comments?

Re: [PATCH v2 14/23] gumstix: Drop duovero

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > DM, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Ash Charles Any comments?

Re: [PATCH v2 16/23] ti: Drop sdp4430 board

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > DM, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Lokesh Vutla Any comments?

Re: [PATCH v2 15/23] ti: Drop panda board

2020-06-13 Thread Jagan Teki
On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote: > > Hi Jagan, > > On 27/05/20 6:26 pm, Jagan Teki wrote: > > DM, DM_SPI and other driver model migration deadlines > > are expired for this board. > > > > Drop it. > > > > Cc: Lokesh Vutla > > Signed-off-by: Jagan Teki > > Please hold this patc

Re: [PATCH v2 17/23] ti: Drop omap5 uevm

2020-06-13 Thread Jagan Teki
On Fri, Jun 5, 2020 at 10:02 AM Lokesh Vutla wrote: > > Hi Jagan, > > On 27/05/20 6:26 pm, Jagan Teki wrote: > > DM, DM_SPI and other driver model migration deadlines > > are expired for this board. > > > > Drop it. > > > > Cc: Lokesh Vutla > > Signed-off-by: Jagan Teki > > Please hold this patc

Re: [PATCH v2 18/23] birdland: Drop bav335x

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > OF_CONTROL, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Gilles Gameiro Any comments?

Re: [PATCH v2 19/23] gumstix: Drop pepper

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > OF_CONTROL, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Ash Charles Any comments?

Re: [PATCH v2 21/23] silica: Drop pengwyn

2020-06-13 Thread Jagan Teki
On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > OF_CONTROL, DM_SPI and other driver model migration deadlines > are expired for this board. > > Drop it. > > Cc: Lothar Felten Any comments?

[PATCH] ARM: dts: stm32: add seeed studio odyssey-stm32mp157c board

2020-06-13 Thread Marcin Sloniewski
This commit adds device tree files supporting SBC from Seeed Studio based on STM32MP157C. This works with generic stm32mp1 config. Right now only booting from SD card is supported. Signed-off-by: Marcin Sloniewski --- arch/arm/dts/Makefile | 3 +- .../dts/odyssey-stm

Re: [PATCH v2 15/23] ti: Drop panda board

2020-06-13 Thread Peter Robinson
On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki wrote: > > On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote: > > > > Hi Jagan, > > > > On 27/05/20 6:26 pm, Jagan Teki wrote: > > > DM, DM_SPI and other driver model migration deadlines > > > are expired for this board. > > > > > > Drop it. > > > > > >

Re: [PATCH v2 15/23] ti: Drop panda board

2020-06-13 Thread Jagan Teki
On Sun, 14 Jun, 2020, 01:02 Peter Robinson, wrote: > On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki > wrote: > > > > On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote: > > > > > > Hi Jagan, > > > > > > On 27/05/20 6:26 pm, Jagan Teki wrote: > > > > DM, DM_SPI and other driver model migration deadl

Re: [PATCH v2 15/23] ti: Drop panda board

2020-06-13 Thread Tom Rini
On Sun, Jun 14, 2020 at 01:05:53AM +0530, Jagan Teki wrote: > On Sun, 14 Jun, 2020, 01:02 Peter Robinson, wrote: > > > On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki > > wrote: > > > > > > On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla wrote: > > > > > > > > Hi Jagan, > > > > > > > > On 27/05/20 6:26

Re: [PATCH] musb-new: Use predefined configuration data for SUN50I_H6

2020-06-13 Thread Roman Stratiienko
чт, 14 мая 2020 г. в 09:44, Roman Stratiienko : > > CC: ja...@amarulasolutions.com > > пт, 8 мая 2020 г. в 15:29, Roman Stratiienko : > > > > Same was done in the kernel for all devices compatible with > > 'allwinner,sun8i-a33-musb' at [1] and [2]. > > > > Fixes musb initialization on H6 SOC. > > >

Re: [PATCH v2 15/23] ti: Drop panda board

2020-06-13 Thread Jagan Teki
On Sun, 14 Jun, 2020, 01:09 Tom Rini, wrote: > On Sun, Jun 14, 2020 at 01:05:53AM +0530, Jagan Teki wrote: > > On Sun, 14 Jun, 2020, 01:02 Peter Robinson, > wrote: > > > > > On Sat, Jun 13, 2020 at 7:24 PM Jagan Teki > > > > wrote: > > > > > > > > On Fri, Jun 5, 2020 at 10:01 AM Lokesh Vutla >

Re: [PATCH v3 3/3] fastboot: Add default fastboot_set_reboot_flag implementation

2020-06-13 Thread Roman Stratiienko
Hi Roman, ср, 10 июн. 2020 г. в 19:37, Roman Kovalivskyi : > > Default implementation of fastboot_set_reboot_flag function that depends > on "bcb" commands could be used in general case if there are no need to > make any platform-specific implementation, otherwise it could be > disabled via Kconfi

Re: [PATCH v2 5/5] arm: qemu: override flash accessors to use virtualizable instructions

2020-06-13 Thread Ard Biesheuvel
On Thu, 11 Jun 2020 at 10:17, Ard Biesheuvel wrote: > > Some instructions in the ARM ISA have multiple output registers, such > as ldrd/ldp (load pair), where two registers are loaded from memory, > but also ldr with indexing, where the memory base register is incremented > as well when the value

Re: [PATCH v2 15/23] ti: Drop panda board

2020-06-13 Thread Peter Robinson
>> > > > > > DM, DM_SPI and other driver model migration deadlines >> > > > > > are expired for this board. >> > > > > > >> > > > > > Drop it. >> > > > > > >> > > > > > Cc: Lokesh Vutla >> > > > > > Signed-off-by: Jagan Teki >> > > > > >> > > > > Please hold this patch. I see patches in ML for co

Re: [PATCH v2 15/23] ti: Drop panda board

2020-06-13 Thread Tom Rini
On Sun, Jun 14, 2020 at 12:15:59AM +0100, Peter Robinson wrote: > >> > > > > > DM, DM_SPI and other driver model migration deadlines > >> > > > > > are expired for this board. > >> > > > > > > >> > > > > > Drop it. > >> > > > > > > >> > > > > > Cc: Lokesh Vutla > >> > > > > > Signed-off-by: Jagan

Re: [PATCH 09/10] dtoc: update dtb_platdata to support cd-gpios

2020-06-13 Thread Simon Glass
Hi Walter, On Mon, 8 Jun 2020 at 10:01, Walter Lozano wrote: > > Hi Simon > > On 4/6/20 12:59, Simon Glass wrote: > > On Fri, 29 May 2020 at 12:15, Walter Lozano > > wrote: > >> Currently dtoc does not support the property cd-gpios used to declare > >> the gpios for card detect in mmc. > >> > >

[PATCH v3 00/35] dm: Add programmatic generation of ACPI tables (part B)

2020-06-13 Thread Simon Glass
This is split from the original series in an attempt to get things applied in chunks. This part includes: - writing basic ACPI code for integers, strings, names, packages - writing descriptors for GPIO, I2C, interrupts, SPI - writing code to enable/disable ACPI peripherals via GPIOs - writing SSDT

[PATCH v3 01/35] dm: core: Add an ACPI name for the root node

2020-06-13 Thread Simon Glass
This always has a fixed ACPI name so add it as a driver function. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner Reviewed-by: Bin Meng --- (no changes since v1) Changes in v1: - Capitalise ACPI_OPS_PTR drivers/core/root.c | 13 + 1 file changed, 13 insertions(+) diff

[PATCH v3 04/35] irq: Add a method to convert an interrupt to ACPI

2020-06-13 Thread Simon Glass
When generating ACPI tables we need to convert IRQs in U-Boot to the ACPI structures required by ACPI. This is a SoC-specific conversion and cannot be handled by generic code, so add a new IRQ method to do the conversion. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes

[PATCH v3 05/35] acpi: Support generation of ACPI code

2020-06-13 Thread Simon Glass
Add a new file to handle generating ACPI code programatically. This is used when information must be dynamically added to the tables, e.g. the SSDT. Initial support is just for writing simple values. Also add a 'base' value so that the table can be freed. This likely doesn't happen in normal code,

[PATCH v3 03/35] acpi: Add a way to check device status

2020-06-13 Thread Simon Glass
At present U-Boot does not support the different ACPI status values, but it is best to put this logic in a central place. Add a function to get the device status. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpi_device.h | 28 +++

[PATCH v3 06/35] acpi: Support generation of interrupt descriptor

2020-06-13 Thread Simon Glass
Add a function to write an interrupt descriptor to the generated ACPI code. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpi_device.h | 15 + lib/acpi/acpi_device.c | 118 + test/dm/acpigen.c

[PATCH v3 08/35] acpi: Support string output

2020-06-13 Thread Simon Glass
Add support for output of strings and streams of bytes. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpigen.h | 19 +++ lib/acpi/acpigen.c | 14 ++ test/dm/acpigen.c | 42 +

[PATCH v3 02/35] acpi: Add a function to get a device path and scope

2020-06-13 Thread Simon Glass
Add a function to build up the ACPI path for a device and another for its scope. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner Reviewed-by: Bin Meng --- Changes in v3: - s/NUL/NULL/ for the NUL character, since that is in more common use Changes in v1: - Split into more patches for

[PATCH v3 09/35] acpi: Support generation of GPIO descriptor

2020-06-13 Thread Simon Glass
Add a function to write a GPIO descriptor to the generated ACPI code. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpi_device.h | 22 ++ lib/acpi/acpi_device.c | 151 + test/dm/acpigen.c

[PATCH v3 11/35] acpi: Support generation of I2C descriptor

2020-06-13 Thread Simon Glass
Add a function to write a GPIO descriptor to the generated ACPI code. Reviewed-by: Wolfgang Wallner Signed-off-by: Simon Glass --- Changes in v3: - Update comment in acpi_device_set_i2c() to talk about scope parameter Changes in v2: - Fix memset of I2C descriptor drivers/i2c/sandbox_i2c.c |

[PATCH v3 07/35] gpio: Add a method to convert a GPIO to ACPI

2020-06-13 Thread Simon Glass
When generating ACPI tables we need to convert GPIOs in U-Boot to the ACPI structures required by ACPI. This is a SoC-specific conversion and cannot be handled by generic code, so add a new GPIO method to do the conversion. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no change

[PATCH v3 12/35] acpi: Support generation of SPI descriptor

2020-06-13 Thread Simon Glass
Add a function to write a SPI descriptor to the generated ACPI code. Signed-off-by: Simon Glass --- Changes in v3: - Make acpi_device_write_spi() static - Add an extra comment about scope to acpi_device_set_spi() - Use BIT() in a few places - Resist the temptation to go to >80 characters Change

[PATCH v3 10/35] acpi: Support generation of a GPIO/irq for a device

2020-06-13 Thread Simon Glass
Some devices use interrupts but some use GPIOs. Since these are fully specified in the device tree we can automatically produce the correct ACPI descriptor for a device. Add a function to handle this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v3: - Fix 'an GPIO is

[PATCH v3 13/35] acpigen: Support writing a length

2020-06-13 Thread Simon Glass
It is convenient to write a length value for preceding a block of data. Of course the length is not known or is hard to calculate a priori. So add a way to mark the start on a stack, so the length can be updated when known. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in

[PATCH v3 14/35] acpigen: Support writing a package

2020-06-13 Thread Simon Glass
A package collects together several elements. Add an easy way of writing a package header and updating its length later. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v3: - Fix 'easy of testing' typo - Move two function comments into the previous patch include/acpi/a

[PATCH v3 16/35] acpi: Support writing a string

2020-06-13 Thread Simon Glass
ACPI supports storing a simple nul-terminated string. Add support for this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpigen.h | 10 ++ lib/acpi/acpigen.c | 6 ++ test/dm/acpigen.c | 32 ++

[PATCH v3 15/35] acpi: Support writing an integer

2020-06-13 Thread Simon Glass
ACPI supports storing integers in various ways. Add a function to handle this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpigen.h | 17 ++ lib/acpi/acpigen.c | 51 ++ test/dm/acpigen

[PATCH v3 21/35] acpi: Support copying properties from device tree to ACPI

2020-06-13 Thread Simon Glass
Some drivers in Linux support both device tree and ACPI. U-Boot itself uses Linux device-tree bindings for its own configuration but does not use ACPI. It is convenient to copy these values over to the device tree for passing to linux. Add some convenience functions to help with this. Signed-off-

[PATCH v3 18/35] acpi: Support writing a UUID

2020-06-13 Thread Simon Glass
ACPI supports writing a UUID in a special format. Add a function to handle this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpigen.h | 13 + lib/acpi/acpigen.c | 38 ++ test/dm/acpigen.c

[PATCH v3 17/35] acpi: Support writing a name

2020-06-13 Thread Simon Glass
ACPI supports storing names which are made up of multiple path components. Several special cases are supported. Add a function to emit a name. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpigen.h | 25 +++ include/test/ut.h | 1

[PATCH v3 20/35] acpi: Support writing a GPIO

2020-06-13 Thread Simon Glass
Allowing writing out a reference to a GPIO within the ACPI output. This can be used by ACPI code to access a GPIO at runtime. Signed-off-by: Simon Glass --- Changes in v3: - Use an enum for the GPIO priority - Add error checking include/acpi/acpi_dp.h | 20 lib/acpi/acpi_d

[PATCH v3 19/35] acpi: Support writing Device Properties objects via _DSD

2020-06-13 Thread Simon Glass
More complex device properties can be provided to drivers via a device-specific data (_DSD) object. To create this we need to build it up in a separate data structure and then generate the ACPI code, due to its recursive nature. Add an implementation of this. Signed-off-by: Simon Glass Reviewed

[PATCH v3 23/35] acpi: Add support for writing a Power Resource

2020-06-13 Thread Simon Glass
These are used in ACPI to disable power to various pats of the system when in sleep. Add a way to create a power resource, with the caller finishing off the details. Reviewed-by: Wolfgang Wallner Signed-off-by: Simon Glass --- (no changes since v1) include/acpi/acpigen.h | 22

[PATCH v3 22/35] acpi: Add support for various misc ACPI opcodes

2020-06-13 Thread Simon Glass
Add more functions to handle some miscellaneous ACPI opcodes. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v3: - Fix function name in comment for acpigen_write_not() - Use #defines for the mask values include/acpi/acpigen.h | 117

[PATCH v3 24/35] acpi: Add support for writing a GPIO power sequence

2020-06-13 Thread Simon Glass
Power to some devices is controlled by GPIOs. Add a way to generate ACPI code to enable and disable a GPIO so that this can be handled within an ACPI method. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpigen.h | 12 +++ lib/acpi/acpige

[PATCH v3 25/35] acpi: Add support for a generic power sequence

2020-06-13 Thread Simon Glass
Add a way for devices to enable and disable themselves using ACPI code that updates GPIOs. This takes several timing parameters and supports enable, reset and stop. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/acpi/acpi_device.h | 41 +

[PATCH v3 26/35] acpi: Add support for SSDT generation

2020-06-13 Thread Simon Glass
Some devices need to generate code for the Secondary System Descriptor Table (SSDT). Add a method to handle this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v3: - Fix 'THe' typo Changes in v1: - Switch parameter order of _acpi_fill_ssdt() and make it static - Fix '

[PATCH v3 27/35] x86: acpi: Move MADT down a bit

2020-06-13 Thread Simon Glass
Put this table before MCFG so that it matches the order that coreboot uses when passing tables to Linux. This is a cosmetic change since the order of the tables does not otherwise matter. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) Changes in v1: - Correc

[PATCH v3 28/35] acpi: Record the items added to SSDT

2020-06-13 Thread Simon Glass
It is useful to be able to control the order of data written to the SSDT so that we can compare the output against known-good kernel dumps. Add code to record each item that is added along with the device that added it. That allows us to reorder things later if needed. Signed-off-by: Simon Glass

[PATCH v3 30/35] x86: Allow devices to write an SSDT

2020-06-13 Thread Simon Glass
Call the new core function to write the SSDT. This is made up of fragments generated by devices that have the fill_ssdt() method. Signed-off-by: Simon Glass --- Changes in v3: Drop coreboot_acpi_ids enum Changes in v1: - Use OEM_TABLE_ID instead of ACPI_TABLE_CREATOR - Update ACPI_DSTATUS enum

[PATCH v3 29/35] acpi: Support ordering SSDT data by device

2020-06-13 Thread Simon Glass
Add a /chosen property to control the order in which the data appears in the SSDT. This allows matching up U-Boot's output from a dump of the known-good data obtained from within Linux. Signed-off-by: Simon Glass --- Changes in v3: - Make find_item() static and rename to find_acpi_item() - Renam

[PATCH v3 31/35] acpi: Add support for DSDT generation

2020-06-13 Thread Simon Glass
Some devices need to inject extra code into the Differentiated System Descriptor Table (DSDT). Add a method to handle this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v3: - Fix 'THe' typo - Rename build_type() to sort_acpi_item_type() Changes in v1: - Generalise th

[PATCH v3 32/35] x86: Allow devices to write to DSDT

2020-06-13 Thread Simon Glass
Call the new core function to inject ASL programmatically into the DSDT. This is made up of fragments generated by devices that have the inject_dsdt() method. The normal, compiled ASL file is added after this. Signed-off-by: Simon Glass --- Changes in v3: - Refactor the code to remove the extra

[PATCH v3 33/35] pci: Avoid a crash in device_is_on_pci_bus()

2020-06-13 Thread Simon Glass
This function cannot currently be called on the root node. Add a check for this as well as a test. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- (no changes since v1) include/dm/device.h | 2 +- test/dm/pci.c | 14 ++ 2 files changed, 15 insertions(+), 1 dele

[PATCH v3 35/35] acpi: Add an acpi command to list/dump generated ACPI items

2020-06-13 Thread Simon Glass
Add a command that shows the individual blocks of data generated by each device, effectively splitting the full table into its component parts. This can be helpful for debugging. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v3: - Update acpi_dump_items() to take an en

[PATCH v2 08/49] binman: Fix a few typos in the entry docs

2020-06-13 Thread Simon Glass
Some typos have been fixed in the code but the entry docs were not regenerated. Fix this. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/README.entries | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/binman/README.entries b/tools/binman/README.e

[PATCH v3 34/35] dm: acpi: Enhance acpi_get_name()

2020-06-13 Thread Simon Glass
For many device types it is possible to figure out the name just by looking at its uclass or parent. Add a function to handle this, since it allows us to cover the vast majority of cases automatically. However it is sometimes impossible to figure out an ACPI name for a device just by looking at it

[PATCH v2 05/49] binman: Correct the search patch for pylibfdt

2020-06-13 Thread Simon Glass
Now that binman uses tools/ as its base directory for importing modules, the path to the pylibfdt build by U-Boot is incorrect. Fix it with a new path. Signed-off-by: Simon Glass --- Changes in v2: - Leave the old (object-directory) path in place tools/binman/main.py | 1 + 1 file changed, 1 i

[PATCH v2 01/49] dm: core Fix long line in device_bind_common()

2020-06-13 Thread Simon Glass
Fix an over-length line in this function. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/core/device.c b/drivers/core/device.c index a7408d9c76..2e3d555ea4 100644 --- a/drivers/core/device

  1   2   >