[U-Boot] u-boot release and feature set

2018-08-27 Thread Prabhakar Kushwaha
Hi Tom, Every u-boot release announcement has a very high level feature set. I am wondering, if you also maintain detailed feature list per u-boot release? I can see "Statistics" details per release from https://www.denx.de/wiki/U-Boot/ReleaseCycle but not the feature set. May be I am looking

Re: [U-Boot] [PATCH v2 07/13] x86: Fix signed shift overflow in MSR_IA32_APICBASE_BASE

2018-08-27 Thread Eugeniu Rosca
Hi Bin, cc: Masahiro, Andrey On Tue, Aug 28, 2018 at 10:05:51AM +0800, Bin Meng wrote: > Hi Eugeniu, > > On Mon, Aug 27, 2018 at 7:19 AM Eugeniu Rosca wrote: > > > > Fix the following UBSAN report: > > == > > UBSAN: Undefined

[U-Boot] [PATCH v4 4/7] ARM: dts: rockchip: ADD dp83867 CLK_OUT muxing

2018-08-27 Thread Janine Hagemann
The CLK_O_SEL default is synchronus to XI input clock, which is 25 MHz. Set CLK_O_SEL to channel A transmit clock so we have 125 MHz on CLK_OUT. Signed-off-by: Janine Hagemann --- v4: No changes --- arch/arm/dts/rk3288-phycore-som.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm

[U-Boot] [PATCH v4 6/7] net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii

2018-08-27 Thread Janine Hagemann
We have to use RK3328_RXCLK_DLY_ENA_GMAC_ENABLE instead of RK3328_RXCLK_DLY_ENA_GMAC_MASK in rk3328_gmac_set_to_rgmii() to enable the RX delay. The MASK was used in a wrong way. Signed-off-by: Janine Hagemann Reviewed-by: Philipp Tomisch Acked-by: Joe Hershberger --- v4: No changes --- drivers

[U-Boot] [PATCH v4 7/7] net: gmac_rockchip: Add handeling for RGMII_ID/RXID/TXID

2018-08-27 Thread Janine Hagemann
Using PHY internal delays in combination with the phy-mode rgmii-id/rxid/txid was not possible. Only rgmii was supported. Now we can disable rockchip's gmac delay lines and also use rgmii-id/rxid/txid. Based on commit eaf70ad14cbb ("net: stmmac: dwmac-rk: Add handling for RGMII_ID/RXID/TXID") for

[U-Boot] [PATCH v4 3/3] net: phy: ti: Add binding for the CLK_OUT pin muxing

2018-08-27 Thread Janine Hagemann
The DP83867 has a muxing option for the CLK_OUT pin. It is possible to set CLK_OUT for different channels. Create a binding to select a specific clock for CLK_OUT pin. Based on commit 9708fb630d19 ("net: phy: dp83867: Add binding for the CLK_OUT pin muxing option") of mainline linux kernel. Signe

[U-Boot] [PATCH v4 2/3] net: phy: ti: Recover from "port mirroring" N/A MODE4

2018-08-27 Thread Janine Hagemann
The DP83867 when not properly bootstrapped - especially with LED_0 pin - can enter N/A MODE4 for "port mirroring" feature. To provide normal operation of the PHY, one needs not only to explicitly disable the port mirroring feature, but as well stop some IC internal testing (which disables RGMII co

[U-Boot] [PATCH v4 1/3] net: phy: ti: Add lane swapping support in the DP83867 TI's PHY driver

2018-08-27 Thread Janine Hagemann
This patch adds support for enabling or disabling the lane swapping (called "port mirroring" in PHY's CFG4 register) feature of the DP83867 TI's PHY device. One use case is when bootstrap configuration enables this feature (because of e.g. LED_0 wrong wiring) so then one needs to disable it in sof

[U-Boot] [PATCH v4 0/3] Expand dp83867-driver

2018-08-27 Thread Janine Hagemann
- Add enet-phy-lane-(no)-swap to the documentaion Janine Hagemann (3): net: phy: ti: Add lane swapping support in the DP83867 TI's PHY driver net: phy: ti: Recover from "port mirroring" N/A MODE4 net: phy: ti: Add binding for the CLK_OUT pin muxing doc/device-tree-bindings/net/ti,dp83867.t

[U-Boot] [PATCH v4 3/7] drivers: net: designware: Add reading of DT phy-handle node

2018-08-27 Thread Janine Hagemann
Add the ability to read the phy-handle node of the gmac. Upon reading this handle the phy-id can be stored based on the reg node in the DT. The phy-handle also needs to be stored and passed to the phy to access any phy data that is available. Signed-off-by: Janine Hagemann Acked-by: Joe Hershbe

[U-Boot] [PATCH v4 2/7] config: phycore-rk3288_defconfig: add PHY_TI

2018-08-27 Thread Janine Hagemann
add PHY_TI to support dp83867 Signed-off-by: Janine Hagemann --- v4: No changes --- configs/phycore-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore-rk3288_defconfig b/configs/phycore-rk3288_defconfig index b81b5e6..340ba5d 100644 --- a/configs/phycore-rk3288_

[U-Boot] [PATCH v4 5/7] rockchip: rk3288-phycore: set flash1 iodomain to 1.8V

2018-08-27 Thread Janine Hagemann
This pin is supplied by 1.8V, but the default iodomain setting is 3.3V. Signed-off-by: Janine Hagemann --- v4: No changes --- board/phytec/phycore_rk3288/phycore-rk3288.c | 16 1 file changed, 16 insertions(+) diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/p

[U-Boot] [PATCH v4 0/7] Add ethernet support for phyCORE-RK3288

2018-08-27 Thread Janine Hagemann
- Change a used function Janine Hagemann (7): arch: arm: mach-rockchip: rk3288: Enable regulators in board_init config: phycore-rk3288_defconfig: add PHY_TI drivers: net: designware: Add reading of DT phy-handle node ARM: dts: rockchip: ADD dp83867 CLK_OUT muxing rockchip: rk3288-phycore

[U-Boot] [PATCH v4 1/7] arch: arm: mach-rockchip: rk3288: Enable regulators in board_init

2018-08-27 Thread Janine Hagemann
Use regulators_enable_boot_on() to init all the regulators with regulator-boot-on property. This is relevant for all rk3288-boards. Signed-off-by: Wadim Egorov Signed-off-by: Janine Hagemann --- v4: No changes --- arch/arm/mach-rockchip/rk3288-board.c | 12 ++-- 1 file changed, 6 insert

Re: [U-Boot] [PATCH 00/10] AVB using OP-TEE

2018-08-27 Thread Jens Wiklander
On Thu, Aug 23, 2018 at 6:31 PM, Simon Glass wrote: > Hi Jens, > > On 23 August 2018 at 05:23, Jens Wiklander wrote: >> Hi Simon, >> >> On Thu, Aug 23, 2018 at 12:45 PM, Simon Glass wrote: >>> Hi Jens, >>> >>> On 13 August 2018 at 09:53, Jens Wiklander >>> wrote: Hi, This adds s

[U-Boot] [PATCH v2 7/8] powerpc: dts: Add u-boot.dtsi to use binman for MPC85xx boards

2018-08-27 Thread Jagdish Gediya
Signed-off-by: Jagdish Gediya --- Changes for v2: - Remove mpc85xx-u-boot.dtsi - Update u-boot.dtsi to use CONFIG_MPC85XX_HAVE_RESET_VECTOR arch/powerpc/dts/u-boot.dtsi | 32 1 file changed, 32 insertions(+) create mode 100644 arch/powerpc/dts/u-

[U-Boot] [PATCH v2 8/8] powerpc: dts: Enable device tree support for T2080QDS

2018-08-27 Thread Jagdish Gediya
Add device tree for T2080QDS board and enable CONFIG_OF_CONTROL so that device tree can be compiled. Update board README for device tree usage. Signed-off-by: Jagdish Gediya --- Changes for v2: - Enable CONFIG_MPC85XX_HAVE_RESET_VECTOR in T2080QDS_defconfig - README and commit m

[U-Boot] [PATCH v2 3/8] binman: Add a new "skip-at-start" property in Section class

2018-08-27 Thread Jagdish Gediya
Currently binman calculates '_skip_at_start' based on 'end-at-4gb' property and it is used for x86 images. For Powerpc mpc85xx based CPU, CONFIG_SYS_TEXT_BASE is the first entry offset which can be 0xeff4 or 0xfff4 for nor flash boot, 0x201000 for sd boot etc, so "_skip_at_start" should be

[U-Boot] [PATCH v2 5/8] powerpc: mpc85xx: Select BINMAN by default

2018-08-27 Thread Jagdish Gediya
Signed-off-by: Jagdish Gediya --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 8faef0b..c727d91 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -20,6 +20,7 @@ config MPC85xx select CREATE_ARCH_SY

[U-Boot] [PATCH v2 6/8] powerpc: mpc85xx: Use binman to embed dtb inside u-boot

2018-08-27 Thread Jagdish Gediya
Below is the sequence to embed dtb inside u-boot, 1. Remove bootpg and resetvec section if needed 2. Append dtb 3. Append bootpg and resetvec section back if removed in step 1 Above procedure is required only when CONFIG_MPC85xx and CONFIG_OF_SEPARATE are defined. Add new config CONFIG_MPC85XX_HA

[U-Boot] [PATCH v2 2/8] powerpc/dts: Makefile changes to clean and build dts

2018-08-27 Thread Jagdish Gediya
Signed-off-by: Jagdish Gediya --- arch/powerpc/dts/Makefile | 12 dts/Makefile | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 arch/powerpc/dts/Makefile diff --git a/arch/powerpc/dts/Makefile b/arch/powerpc/dts/Makefile new file mode 100644

[U-Boot] [PATCH v2 4/8] binman: Add support for Powerpc mpc85xx 'bootpg + resetvec' entry

2018-08-27 Thread Jagdish Gediya
This entry contains the Powerpc mpc85xx boot page and resetvec sections. Signed-off-by: Jagdish Gediya --- Changes for v2: - Updated README for new binman entry - Added test tools/binman/README.entries| 14 +++- .../etype/powerpc_mpc85xx_bootpg_re

[U-Boot] [PATCH v2 1/8] powerpc/dts: Define '_end' symbol in mpc85xx u-boot lds files

2018-08-27 Thread Jagdish Gediya
'board_fdt_blob_setup' function sets up fdt blob at '&_end' so define '_end' symbol in mpc85xx lds files. Signed-off-by: Jagdish Gediya --- Changes for v2: - Defined '_end' symbol in lds file instead of defining new 'board_fdt_blob_setup' function using existing '_init_end' symb

[U-Boot] [PATCH v2 0/8] Device tree support for Powerpc in u-boot

2018-08-27 Thread Jagdish Gediya
In current implementation, Powerpc does not support device tree in u-boot. This patch enables device tree support for PowerPC platform . T2080AQDS board used as first platform. Dtb is embedded in the u-boot following below steps using binmam tool. 1. Remove bootpg and resetvec section if req

Re: [U-Boot] [PATCH 8/8][RESEND] powerpc: dts: Enable device tree support for T2080QDS

2018-08-27 Thread Jagdish Gediya
Hi, > -Original Message- > From: Bin Meng > Sent: Tuesday, August 21, 2018 5:32 PM > To: Jagdish Gediya > Cc: Prabhakar Kushwaha ; York Sun > ; Poonam Aggrwal ; Tom > Rini ; Simon Glass ; U-Boot > Mailing List > Subject: Re: [PATCH 8/8][RESEND] powerpc: dts: Enable device tree support >

Re: [U-Boot] [PATCH v3] serial: omap: Introduce DM specific omap serial

2018-08-27 Thread Derald D. Woods
On Mon, Aug 27, 2018 at 03:55:24PM +0530, Lokesh Vutla wrote: > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla Works for omap3-evm, omap3-beagle-xm, and am3517-evm. I captured 'dm tree' output below: OMAP3_EVM # dm tree Clas

[U-Boot] [PATCH v8 6/8] armv8: ls1046a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi index 4acbaf7..7687d12 100644 --- a/arch/arm/dts/f

[U-Boot] [PATCH v8 8/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-27 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig |2 ++ configs/ls1021atwr_nor_lpuart_defconfig|2 ++ co

[U-Boot] [PATCH v8 7/8] armv7: ls1021a: enable esdhc

2018-08-27 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 5b3fc6a..59c97d5 100644 --- a/arch/arm/dts/ls1021a.dtsi +++ b/arc

[U-Boot] [PATCH v8 4/8] armv8: ls1088a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index 077caf3..72d755a 100644 --- a/arch/arm/dts/

[U-Boot] [PATCH v8 5/8] armv8: ls1043a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index ff40122..a804f51 100644 --- a/arch/arm/dts/f

[U-Boot] [PATCH v8 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-08-27 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c b/arch/arm/cpu/

[U-Boot] [PATCH v8 3/8] armv8: ls2088a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b0f8517..2d537ae 100644 --- a/arch/arm/dts/f

[U-Boot] [PATCH v8 1/8] ppa/fm/qe: use block layer in ppa/fm/qe driver

2018-08-27 Thread Yinbo Zhu
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model when CONFIG_BLK is enabled, use blk_dread to replace previous mmc read interface, use mmc_get_blk_desc to get the mmc device property Signed-off-by: Yinbo Zhu --- Change in v8: U

Re: [U-Boot] [PATCH 2/2] ARM: am3517_evm: Disable DM_I2C_COMPAT

2018-08-27 Thread Derald D. Woods
On Sun, Aug 19, 2018 at 11:11:03AM -0500, Adam Ford wrote: > DM_I2C_COMPAT is somehow being enabled outside of Kconfig, so > this explicitly undefines it in the header file, and brackets > the I2C initialization around an #ifdef to not manually > initialize the I2C controller when the DM_I2C is ena

Re: [U-Boot] [PATCH v2 07/13] x86: Fix signed shift overflow in MSR_IA32_APICBASE_BASE

2018-08-27 Thread Bin Meng
Hi Eugeniu, On Mon, Aug 27, 2018 at 7:19 AM Eugeniu Rosca wrote: > > Fix the following UBSAN report: > == > UBSAN: Undefined behaviour in arch/x86/cpu/lapic.c:73:14 > left shift of 1048575 by 12 places cannot be represented in

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Marek Vasut
On 08/28/2018 12:03 AM, Dalon L Westergreen wrote: > On Mon, 2018-08-27 at 21:03 +0200, Marek Vasut wrote: >> On 08/27/2018 05:30 PM, Dalon L Westergreen wrote: >> On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: >> On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: >> On Mon, 2018-08-20 at 20

Re: [U-Boot] [PATCH v2 06/13] net: ravb: Fix signed shift overflow

2018-08-27 Thread Marek Vasut
On 08/27/2018 10:24 PM, Eugeniu Rosca wrote: > Hi Marek, Hi, > On Mon, Aug 27, 2018 at 01:22:54AM +0200, Marek Vasut wrote: >> On 08/27/2018 01:13 AM, Eugeniu Rosca wrote: > [...] >>> >>> #define RAVB_DESC_DT(n)((n) << 28) >> >> What about changing this instead, ((u32)(n) <

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Dalon L Westergreen
On Mon, 2018-08-27 at 21:03 +0200, Marek Vasut wrote: > On 08/27/2018 05:30 PM, Dalon L Westergreen wrote: > On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: > On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: > On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: > On 08/20/2018 03:54 PM, D

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Marek Vasut
On 08/27/2018 05:30 PM, Dalon L Westergreen wrote: > On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: >> On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: >> On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: >> On 08/20/2018 03:54 PM, Dalon Westergreen wrote: >> Stratix10 requires a hex i

Re: [U-Boot] [PATCH v2 06/13] net: ravb: Fix signed shift overflow

2018-08-27 Thread Eugeniu Rosca
Hi Marek, On Mon, Aug 27, 2018 at 01:22:54AM +0200, Marek Vasut wrote: > On 08/27/2018 01:13 AM, Eugeniu Rosca wrote: [...] > > > > #define RAVB_DESC_DT(n)((n) << 28) > > What about changing this instead, ((u32)(n) << 28) ? This works too. [...] > > > > - writel((mac

[U-Boot] [PATCH 1/1] test: fix typo in cmd_ut_category() description

2018-08-27 Thread Heinrich Schuchardt
argc = 1: all tests are run argc > 1: only argv[1] is run So we need argc >= 1. Signed-off-by: Heinrich Schuchardt --- include/test/suites.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/test/suites.h b/include/test/suites.h index 8e4eac60eb..abb3a4b816 100644 ---

Re: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state

2018-08-27 Thread Andreas Dannenberg
Hi Kever, On Mon, Aug 27, 2018 at 11:26:52AM +0800, Kever Yang wrote: > Hi Philipp, Andreas, > > > On 08/25/2018 12:00 AM, Dr. Philipp Tomsich wrote: > >> On 24 Aug 2018, at 17:54, Andreas Dannenberg wrote: > >> > >> Philipp, > >> > >> On Fri, Aug 24, 2018 at 04:42:15PM +0200, Dr. Philipp Tomsi

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Dalon L Westergreen
On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: > On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: > On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: > On 08/20/2018 03:54 PM, Dalon Westergreen wrote: > Stratix10 requires a hex image of the spl for boot. The hex > image is added to th

Re: [U-Boot] [PATCH v4 17/17] usb: host: Drop [e-o]hci-sunxi drivers

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:26PM +0530, Jagan Teki wrote: > Now Allwinner platform is all set to use Generic USB > controller drivers, so remove the legacy sunxi drivers. > > Tested-by: Jagan Teki > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedde

Re: [U-Boot] [PATCH v4 16/17] sunxi: usb: Switch to Generic host controllers

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:25PM +0530, Jagan Teki wrote: > Once of key blocker for using USB Generic host controller > drivers in Allwinner are CLK and RESET drivers, now these > available for USB usage. So switch to use EHCI and OHCI > Generic controllers. > > Enabling USB is wisely a board ch

Re: [U-Boot] [PATCH v4 14/17] phy: sun4i-usb: Use CLK and RESET support

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:23PM +0530, Jagan Teki wrote: > Now clock and reset drivers are available for respective > SoC's so use clk and reset ops on phy driver. > > Tested-by: Jagan Teki > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded Linu

Re: [U-Boot] [PATCH v4 12/17] clk: sunxi: Add Allwinner V3S CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:21PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner V3S. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for V3S, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and USB

Re: [U-Boot] [PATCH v4 11/17] clk: sunxi: Add Allwinner R40 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:20PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner R40. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for R40, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and USB

Re: [U-Boot] [PATCH v4 10/17] clk: sunxi: Add Allwinner A83T CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:19PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A83T. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for A83T, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and US

Re: [U-Boot] [PATCH v4 09/17] clk: sunxi: a23: Add CLK support for A33

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:18PM +0530, Jagan Teki wrote: > A33 has separate clock driver in Linux because of > few clock differences wrt to A23 like audio etc,. > these may not useful for U-Boot so added a33 ccu > compatible on existing a23 clock driver. > > Signed-off-by: Jagan Teki I guess

Re: [U-Boot] [PATCH v4 08/17] clk: sunxi: Add Allwinner A23 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:17PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A23. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for A23, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and USB

Re: [U-Boot] [PATCH v4 07/17] clk: sunxi: Add Allwinner A31 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:16PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A31. > > - Implement USB ahb1 and USB clocks via ccu_clk_map descriptor > for A31, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB ahb1 and US

Re: [U-Boot] [PATCH v4 06/17] clk: sunxi: Add Allwinner A10s/A13 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:15PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A10s/A13. > > - Implement USB ahb and USB clocks via ccu_clk_map descriptor > for A10s/A13, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB re

Re: [U-Boot] [PATCH v4 05/17] clk: sunxi: Add Allwinner A10/A20 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:14PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A10/A20. > > - Implement USB ahb and USB clocks via ccu_clk_map descriptor > for A10/A20, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB rese

Re: [U-Boot] [PATCH v4 04/17] clk: sunxi: Add Allwinner H3/H5 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:13PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner H3/H5. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for H3/H5, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and

[U-Boot] [PATCH 4/4] armv8: ls1043a: enable icid setup for qman portals

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor Enable support for ICID setup of qman portals and the required device tree fixups. Signed-off-by: Laurentiu Tudor --- drivers/misc/fsl_portals.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/misc/fsl_portals.c b/drivers/misc/fsl_p

[U-Boot] [PATCH 2/4] armv8: ls1043a: advertise QMan v3 in configuration

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor The QMan IP block in this SoC is version 3.2 so advertise this in the SoC configuration header. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscap

[U-Boot] [PATCH 3/4] armv8: ls1043a: add icid setup support

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor Reuse the existing ICID setup code done for LS1046A smmu enablement and add the equivalent setup for LS1043A chips. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + .../arm/cpu/armv8/fsl-layerscape/ls1043_ids.c | 90

[U-Boot] [PATCH 0/4] NXP LS1043A SMMU enabling patches

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor This patch builds on the already existing LS1046A SMMU enablement infrastructure to add the required device setup and device tree fixups for enabling SMMU on LS1043A SoCs. Laurentiu Tudor (4): armv8: fsl-layerscape: add missing qe base address define armv8: ls1043a: adv

[U-Boot] [PATCH 1/4] armv8: fsl-layerscape: add missing qe base address define

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor Add define for quiccengine register block base address. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arch/arm/inclu

Re: [U-Boot] [PATCH v4 03/17] reset: Add Allwinner RESET driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:12PM +0530, Jagan Teki wrote: > Add common reset driver for all Allwinner SoC's. > > Since CLK and RESET share common DT compatible, it is CLK driver > job is to bind the reset driver. So add CLK bind call on respective > SoC driver by passing ccu map descriptor so-th

Re: [U-Boot] [PATCH v4 01/17] clk: Add Allwinner A64 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:10PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A64. > > Implement USB clock enable and disable functions for > OHCI, EHCI, OTG and USBPHY gate and clock registers. > > Tested-by: Jagan Teki # BPI-M64 > Signed-off-by: Jagan Teki Acked-by: Ma

Re: [U-Boot] [PATCH v2 01/13] UBSAN: run-time undefined behavior sanity checker

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:19AM +0200, Eugeniu Rosca wrote: > Import Undefined Behavior SANitizer from Linux Kernel v4.18, as > implemented by Andrey Ryabinin . > > Roughly, the UBSAN development history in Linux kernel looks like: > > v4.18 3ca17b1f3628 ("lib/ubsan: remove null-pointer c

Re: [U-Boot] [PATCH 11/15] efi_loader: capitalization table

2018-08-27 Thread Mike FABIAN
Alexander Graf さんは書きました: > On 26.08.18 21:00, Heinrich Schuchardt wrote: >> On 08/26/2018 08:22 PM, Alexander Graf wrote: >>> >>> >>> On 11.08.18 17:28, Heinrich Schuchardt wrote: This patch provides a define to initialize a table that maps lower to capital letters for Unicode code poin

Re: [U-Boot] [PATCH v2 20/24] remoteproc: Introduce K3 system controller

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:51PM +0530, Lokesh Vutla wrote: > K3 specific SoCs have a dedicated microcontroller for doing > resource management. Any HLOS/firmware on compute clusters should > load a firmware to this microcontroller before accessing any resource. > Adding support for loading this

Re: [U-Boot] [PATCH v2 7/8] armv8: K3: am654: Introduce FIT generator script

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:14PM +0530, Lokesh Vutla wrote: > Add a script that is capable of generating a FIT image > source file that combines ATF, SPL(64 bit) and DT. > This combined image is used by R5 SPL and start ATF > on ARMv8 core. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rin

Re: [U-Boot] [PATCH v2 03/13] armv8: mmu: Fix signed shift overflow

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:21AM +0200, Eugeniu Rosca wrote: > Fix the following UBSAN warnings: > Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/

Re: [U-Boot] [PATCH v2 12/13] input: Fix zero-sized array

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:30AM +0200, Eugeniu Rosca wrote: > Fix below UBSAN reports, thrown on sandbox: > > > UBSAN: Undefined behaviour in drivers/input/input.c:512:7 > variable length array bound value 0 <= 0 > ==

Re: [U-Boot] [PATCH v2 11/13] hashtable: Fix zero-sized array

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:29AM +0200, Eugeniu Rosca wrote: > Enabling CONFIG_UBSAN=y, below runtime warning occurs both in sandbox > and R-Car H3 Salvator-X U-Boot: > > = > UBSAN: Undefined behaviour in lib/hashtable.c:784:

Re: [U-Boot] [PATCH v2 2/8] arm: K3: Add support for AM654 SoC definition

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:09PM +0530, Lokesh Vutla wrote: > The AM654 device is designed for industrial automation and PLC > controller class platforms among other applications. Introduce > base support for AM654 SoC. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signatu

Re: [U-Boot] [PATCH v2 4/8] arm: K3: am654: Add support for boot device detection

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:11PM +0530, Lokesh Vutla wrote: > AM654 allows for booting from primary or backup boot media. > Both media can be chosen individually based on switch settings. > ROM looks for a valid image in primary boot media, if not found > then looks in backup boot media. In orde

Re: [U-Boot] [PATCH v3] serial: omap: Introduce DM specific omap serial

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:55:24PM +0530, Lokesh Vutla wrote: > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v2 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:08PM +0530, Lokesh Vutla wrote: > Add support for Texas Instruments' K3 Generation Processor > families. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boo

Re: [U-Boot] [PATCH v2 0/8] [1/3] Initial support Texas Instrument's AM654 Platform

2018-08-27 Thread Lokesh Vutla
On Monday 27 August 2018 03:57 PM, Lokesh Vutla wrote: > The AM654 SoC is a lead device of the K3 Multicore SoC architecture > platform, targeted for broad market and industrial control with aim to > meet the complex processing needs of modern embedded products. > > The device is partitioned int

[U-Boot] [PATCH v2 0/5] [3/3] Initial support Texas Instrument's AM654 Platform

2018-08-27 Thread Lokesh Vutla
Continue from PART 2/3... This series adds arm64 support for AM654 EVM. Patch 2/6 describes the boot flow in detail. I would recommend to go through the patch in order to understand the entire boot flow. Right now only arm64 support is added. r5 support will be posted later once loading of system

[U-Boot] [PATCH v2 22/24] spl: Allow remoteproc drivers to be used within SPL

2018-08-27 Thread Lokesh Vutla
Add an option for building remoteproc drivers within SPL. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- common/spl/Kconfig | 6 ++ drivers/Makefile| 2 +- drivers/remoteproc/Makefile | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/s

[U-Boot] [PATCH v2 23/24] mmc: k3_arasan: Add sdhci driver support for K3 family SoCs

2018-08-27 Thread Lokesh Vutla
AM654 has an arasan sdhci controller and a mmc phy attached to it. Add basic support for K3 specific arasan sdhci controller. Cc: Jaehoon Chung Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- drivers/mmc/Kconfig | 9 +++ drivers/mmc/Makefile | 1 + drivers/mmc/k3_ars

[U-Boot] [PATCH v2 05/24] firmware: ti_sci: Add support for reboot core service

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Since system controller now has control over SoC power management, it needs to be explicitly requested to reboot the SoC. Add support for it. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla Signed-off-by: Nishanth Menon --- driver

[U-Boot] [PATCH v2 10/24] reset: Introduce TI System Control Interface (TI SCI) reset driver

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some TI Keystone 2 and K3 family of SoCs contain a system controller (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and the Device Management and Security Controller on AM65x SoCs) that manage the low-level device control (like clocks, resets etc) for t

[U-Boot] [PATCH v2 17/24] mailbox: Introduce K3 Secure Proxy Driver

2018-08-27 Thread Lokesh Vutla
Secure Proxy module manages hardware threads that are meant for communication between the processor entities. Adding support for this driver. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- .../mailbox/k3-secure-proxy.txt | 40 ++ drivers/

[U-Boot] [PATCH v2 4/5] arm64: dts: k3: Add u-boot specific nodes

2018-08-27 Thread Lokesh Vutla
Add the minimum dt nodes required to boot. These nodes will get deleted as kernel gets these nodes added in the main dts files. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 203 +++ include/dt-bindings/pinctrl/k3-am65.h

[U-Boot] [PATCH v2 19/24] remoteproc: Allow for individual remoteproc initialization

2018-08-27 Thread Lokesh Vutla
Existing rproc_init() api tries to initialize all available remoteproc devices. This will fail when there is dependency among available remoteprocs. So introduce a separate api that allows to initialize remoteprocs individually based on id. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla ---

[U-Boot] [PATCH v2 1/5] board: ti: am654: a53: Add initial support for am654

2018-08-27 Thread Lokesh Vutla
Add initial support for AM654 based EVM running on A53. Enable 4GB of DDR available on the EVM so that kernel DTB file can be updated accordingly. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla [Andreas: Added 4GB ddr support] Signed-off-by: Andreas Dannenberg --- arch/arm/mach-k3/Kconfig

[U-Boot] [PATCH v2 5/5] configs: am65x_evm_a53: Add initial support

2018-08-27 Thread Lokesh Vutla
Add initial defconfig support for AM65x that runs on A53. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- board/ti/am65x/MAINTAINERS | 1 + configs/am65x_evm_a53_defconfig | 71 + 2 files changed, 72 insertions(+) create mode 100644 configs/am65x_evm

[U-Boot] [PATCH v2 24/24] gpio: do not include for ARCH_K3

2018-08-27 Thread Lokesh Vutla
As no gpio.h is defined in arch/arm/mach-k3/include/, to avoid compilation failure, do not include asm/arch/gpio.h. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/include/asm/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/gpio.h

[U-Boot] [PATCH v2 3/5] arm64: dts: k3: Add Support for AM654 SoC

2018-08-27 Thread Lokesh Vutla
Add initial DT support for AM654 EVM that runs on A53. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/dts/Makefile| 2 + arch/arm/dts/k3-am65-main.dtsi | 31 arch/arm/dts/k3-am65.dtsi| 87 arch/arm/dts/k3-am654-

[U-Boot] [PATCH v2 12/24] clk: Introduce TI System Control Interface (TI SCI) clock driver

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some TI Keystone 2 and K3 family of SoCs contain a system controller (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and the Device Management and Security Controller on AM65x SoCs) that manage the low-level device control (like clocks, resets etc) for t

[U-Boot] [PATCH v2 2/5] include: am654_evm: Establish initial environment for SD card boot

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Create a basic U-Boot environment that allows the automatic loading of a Linux Kernel located at /boot/Image and an associated device tree blob located at /boot/k3-am654-base-board.dtb from the secondary partition of an ext4-formatted SD card on the AM654x EVM. Furthermor

[U-Boot] [PATCH v2 01/24] firmware: Add basic support for TI System Control Interface (TI SCI) protocol

2018-08-27 Thread Lokesh Vutla
Texas Instrument's System Control Interface (TI SCI) message protocol is used in Texas Instrument's System on Chip (SoC) such as those in the K3 family AM654 SoC to communicate between various compute processors with a central system controller entity. The TI SCI message protocol provides support

[U-Boot] [PATCH v2 09/24] reset: Extend reset control with an optional data field

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some systems require more than a single ID to identify and configure any reset provider. For those scenarios add an optional data field to the reset control structure. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- include/res

[U-Boot] [PATCH v2 00/24] [2/3] Initial support Texas Instrument's AM654 Platform

2018-08-27 Thread Lokesh Vutla
Continue from PART 1/3. This series adds all the driver support that are required to boot AM654 SoC. The drivers are: - TISCI Communication protocol to system controller - Clock, power, reset drivers. - Mailbox driver to communication to system controller. - remoteproc drivers to start system

[U-Boot] [PATCH v2 07/24] dm: firmware: Automatically bind child devices

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg To support scenarios where a firmware device node has subnodes that have their own drivers automatically scan the DT and bind those when the firmware device gets bound. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- drivers/fi

[U-Boot] [PATCH v2 16/24] mailbox: Allow attaching private data for mbox_chan

2018-08-27 Thread Lokesh Vutla
Sometimes mbox controllers wants to store private data in mbox_chan so that it can be used at a later point of time. Adding support for hooking private data. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- include/mailbox.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) dif

[U-Boot] [PATCH v2 02/24] firmware: ti_sci: Add support for board configuration

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg TI-SCI message protocol provides support for board configuration to assign resources and other board related operations. Introduce the board configuration capability support to the driver protocol as part of this change. Reviewed-by: Tom Rini Signed-off-by: Andreas Dann

[U-Boot] [PATCH v2 03/24] firmware: ti_sci: Add support for device control

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg TI-SCI message protocol provides support for management of various hardware entitites within the SoC. Introduce the fundamental device management capability support to the driver protocol as part of this change. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla Signed-

[U-Boot] [PATCH v2 14/24] power domain: Introduce TI System Control Interface (TI SCI) power domain driver

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some TI Keystone 2 and K3 family of SoCs contain a system controller (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and the Device Management and Security Controller on AM65x SoCs) that manage the low-level device control (like clocks, resets etc) for t

[U-Boot] [PATCH v2 13/24] power domain: Add support for multiple powerdomains per device

2018-08-27 Thread Lokesh Vutla
There are cases where there are more than one power domain attached to the device inorder to get the device functional. So add support for enabling power domain based on the index. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- drivers/power/domain/power-domain-uclass.c | 11 +--

[U-Boot] [PATCH v2 08/24] dm: reset: Update uclass to allow querying reset status

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Add a reset operations function pointer to support querying the current status of a reset control. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- drivers/reset/reset-uclass.c | 9 + include/reset-uclass.h | 8 +

[U-Boot] [PATCH v2 21/24] remoteproc: Introduce K3 remoteproc driver

2018-08-27 Thread Lokesh Vutla
Add support for K3 based remoteproc driver that communicates with TISCI to start start a remote processor. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- .../remoteproc/k3-rproc.txt | 50 drivers/remoteproc/Kconfig| 9 + drivers/remoteproc/Ma

  1   2   >