Re: [U-Boot] [PATCH 2/3] sunxi: add DM I2C support for H3/H5

2018-01-25 Thread Maxime Ripard
On Wed, Jan 24, 2018 at 12:00:58PM +0100, Nuno Gonçalves wrote: > On Wed, Jan 24, 2018 at 11:57 AM, Maxime Ripard > wrote: > > Why don't you just synchronize the DT with Linux? > > Didn't know that was the usual approach. But in Linux the files have a > different structure, for example there is s

Re: [U-Boot] [PATCH 3/3] sunxi: add I2C nodes present on Orange Pi >ero

2018-01-25 Thread Maxime Ripard
On Wed, Jan 24, 2018 at 12:03:26PM +0100, Nuno Gonçalves wrote: > On Wed, Jan 24, 2018 at 11:58 AM, Maxime Ripard > wrote: > > In particular, you should describe what these i2c buses are used for. > > They are available on the pins exclusively. I could add the pinout for > this board for sure. Bu

Re: [U-Boot] [PATCH 2/7] sun50i: a64: Fix USB clock/reset properties

2018-01-25 Thread Maxime Ripard
On Wed, Jan 24, 2018 at 07:06:37AM -0600, Samuel Holland wrote: > On 01/24/18 02:42, Maxime Ripard wrote: > > On Tue, Jan 23, 2018 at 04:18:14PM -0600, Samuel Holland wrote: > >> Move the CLK_USB_OHCI0/1 clocks to the OHCI nodes where they belong, and > >> make the format consistent with the H3/H5

Re: [U-Boot] [PATCH 0/2] Fix CAAM for TrustZone enable for warp7

2018-01-25 Thread Auer, Lukas
On Wed, 2018-01-24 at 19:41 +, Bryan O'Donoghue wrote: > > On 24/01/18 17:41, Auer, Lukas wrote: > > Thanks for adding me to the CC list. > > I have experienced the same thing regarding the dec0 registers. > > However, I don't understand why you want to detect secure mode in > > the > > kernel

Re: [U-Boot] [PATCH 1/3] configs: trats2: enable the max77686 regulator config

2018-01-25 Thread Lukasz Majewski
On Thu, 25 Jan 2018 16:06:35 +0900 Jaehoon Chung wrote: > Enable the CONFIG_DM_REGULATOR_MAX77686 for using regulator driver. > > Signed-off-by: Jaehoon Chung > --- > configs/trats2_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configs/trats2_defconfig b/configs/trats2_

Re: [U-Boot] [PATCH 2/3] power: pmic_max77686: remove the old pmic_max77686 file

2018-01-25 Thread Lukasz Majewski
On Thu, 25 Jan 2018 16:06:36 +0900 Jaehoon Chung wrote: > max77686 pmic is supporting with max77686.c under pmic/ and regulator/ > direnctroy. Remove pmic_max77686.c what didn't use anywhere. > Instead, enable CONFIG_DM_REGULATOR_MAX77686 and > CONFIG_DM_PMIC_MAX77686. > > Signed-off-by: Jaehoon

Re: [U-Boot] [PATCH v2 3/3] lib: fdtdec: drop the old compatible about max77686

2018-01-25 Thread Lukasz Majewski
On Thu, 25 Jan 2018 16:11:03 +0900 Jaehoon Chung wrote: > Drop the old compatible about max77686. > > Signed-off-by: Jaehoon Chung > --- > include/fdtdec.h | 1 - > lib/fdtdec.c | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/include/fdtdec.h b/include/fdtdec.h > index 4afb9ac50

Re: [U-Boot] [PATCH 0/2] Fix CAAM for TrustZone enable for warp7

2018-01-25 Thread Bryan O'Donoghue
On 25/01/18 09:14, Auer, Lukas wrote: On Wed, 2018-01-24 at 19:41 +, Bryan O'Donoghue wrote: On 24/01/18 17:41, Auer, Lukas wrote: Thanks for adding me to the CC list. I have experienced the same thing regarding the dec0 registers. However, I don't understand why you want to detect secur

Re: [U-Boot] [RFC PATCH] Allow providing default environment from file

2018-01-25 Thread Lukasz Majewski
Hi Rasmus, > It is sometimes useful to be able to define the entire default > environment in an external file. There is already available script for extracting the environment. Please look into: ./scripts/get_default_envs.sh Maybe you can reuse it in this patch? > This implements a Kconfig opt

Re: [U-Boot] FW: u-boot v2016 vs v2013

2018-01-25 Thread Lukasz Majewski
Hi, > On Wed, Jan 24, 2018 at 10:26 AM, Mehmet Ali İPİN > wrote: > > Dear Estevam, > > > > I am (in fact hardware engineer developed the PCB) not an > > experienced u-boot/linux developer, therefore sorry for my complex > > questions. I will check the forum, and google for this message, but > >

Re: [U-Boot] [RESEND PATCH] ddr: altera: silence PHY calibration unless in debug mode

2018-01-25 Thread Marek Vasut
On 01/25/2018 07:04 AM, Goldschmidt Simon wrote: > This driver has been using printf() including filename since it was > added. Convert to using debug() instead. > > Signed-off-by: Simon Goldschmidt Applied, thanks -- Best regards, Marek Vasut ___ U-

Re: [U-Boot] [PATCH v2] arm: socfpga: allow configs without network support

2018-01-25 Thread Marek Vasut
On 01/25/2018 07:18 AM, Simon Goldschmidt wrote: > Currently, socfpga_common.h does not allow configurations without > network support. This is because CONFIG_CMD_PXE is defined in this > file and distro mode has DHCP hard-coded as available. > > Fix this by moving CONFIG_CMD_PXE and CONFIG_MENU t

Re: [U-Boot] rockchip: dts: rk3128: update pwm-cell for pwm0

2018-01-25 Thread Philipp Tomsich
> The backlight pwm-cell is 3. > > This remove the warning in buildman: > arch/arm/dts/rk3126-evb.dtb: Warning (pwms_property): Property 'pwms', cell 3 > is not a phandle reference in /backlight > arch/arm/dts/rk3126-evb.dtb: Warning (pwms_property): Missing property > '#pwm-cells' in node /sram

Re: [U-Boot] [U-Boot, v3, 19/20] clk: rockchip: clk_rk3288: Implement "assign-clock-parent" and "assign-clock-rate"

2018-01-25 Thread Philipp Tomsich
> The RK3288 CRU-node assigns rates to a number of clocks that are not > implemented in the RK3288 clock-driver (but which have been > sufficiently initialised from rkclk_init()): for these clocks, we > implement the gmac clock set parent, but simply ignore the > others' set_rate() operation and re

Re: [U-Boot] rockchip: rk3036: enable rockusb support on rk3036 based device

2018-01-25 Thread Philipp Tomsich
> Rockchip Rockusb driver already merged. So we enable rockusb > support on rk3036 based device. > > Signed-off-by: Eddie Cai > --- > arch/arm/mach-rockchip/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Philipp Tomsich ___ U-Boot mai

Re: [U-Boot] [U-Boot, v3, 18/20] ARM: dts: rk3288: Remove unused LCDC clock assigned

2018-01-25 Thread Philipp Tomsich
> The LCDC assigned rate is 0, it will make boot error, > error log:"pll_para_config: the frequency can not be > 0 Hz". Remove them, and the lcdc driver will do the > correct clock rate setting. > > Signed-off-by: David Wu > --- > > Changes in v3: > - New patch > > Changes in v2: None > > ar

Re: [U-Boot] [U-Boot, v3, 17/20] config: evb-rk3229: Enable rk gmac configs

2018-01-25 Thread Philipp Tomsich
> Add gmac config support for rk3229 evb. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > configs/evb-rk3229_defconfig | 5 + > 1 file changed, 5 insertions(+) > Acked-by: Philipp Tomsich ___

Re: [U-Boot] [U-Boot, v3, 16/20] net: gmac_rockchip: Add support for the RK3228 GMAC

2018-01-25 Thread Philipp Tomsich
> The GMAC in the RK3228 once again is identical to the incarnation in > the RK3288 and the RK3399, except for where some of the configuration > and control registers are located in the GRF. > > This adds the RK3368-specific logic necessary to reuse this driver. > > Signed-off-by: David Wu > ---

Re: [U-Boot] spl: atf: pass NULL for bl32_ep pc

2018-01-25 Thread Philipp Tomsich
> ATF use bl32_ep_info->pc to decide if thre is an available bl32, > let's mark it as NULL first. > > Signed-off-by: Kever Yang > --- > > common/spl/spl_atf.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Acked-by: Philipp Tomsich ___

Re: [U-Boot] [U-Boot, v3, 15/20] clk: rockchip: Add rk322x gamc clock support

2018-01-25 Thread Philipp Tomsich
> Assuming mac_clk is fed by an external clock, set clk_rmii_src > clock select control register from IO for rgmii interface. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add "set parent" for gmac > - Add internal mac clk div_sel for gmac > > Changes in v2: > - New patch > > drive

Re: [U-Boot] [U-Boot, v3, 14/20] rockchip: pinctrl: Add rk322x gmac pinctrl support

2018-01-25 Thread Philipp Tomsich
> Set gmac pins iomux and rgmii tx pins to 12ma drive-strength, > clean others to 2ma. > > Signed-off-by: David Wu > --- > > Changes in v3: > - adhere to the established way of writing this to avoid future confusion > - use defined symbolic constants for drive-strength > > Changes in v2: > - Ne

Re: [U-Boot] [U-Boot, v3, 20/20] clk: rockchip: clk_rk3368: Implement "assign-clock-parent"

2018-01-25 Thread Philipp Tomsich
> Implement the setting parent for gmac clock, and add internal > pll div set for mac clk. > > Signed-off-by: David Wu > --- > > Changes in v3: > - New patch > > Changes in v2: None > > arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 7 ++ > drivers/clk/rockchip/clk_rk3368.c

Re: [U-Boot] [linux-sunxi] [PATCH 3/7] sun50i: a64: Move ethernet nodes to SoC DTS

2018-01-25 Thread Andre Przywara
Hi, On 25/01/18 07:46, Maxime Ripard wrote: > On Thu, Jan 25, 2018 at 12:21:07AM +, André Przywara wrote: >> On 23/01/18 22:46, Kyle Evans wrote: >>> On Tue, Jan 23, 2018 at 4:18 PM, Samuel Holland wrote: These nodes were previously in an unused file specific to the Pine64. Move the

Re: [U-Boot] [U-Boot, v4, 04/11] rockchip: rk322x: enable tpl support

2018-01-25 Thread Philipp Tomsich
> Move original spl to tpl, and add spl to load next stage firmware, > adapt all the address and option for them. > > Serial-changes: 2 > - update upon latest source > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > Changes in v4: > - remove non-used MACRO define > > Changes

Re: [U-Boot] [U-Boot, v3, 18/20] ARM: dts: rk3288: Remove unused LCDC clock assigned

2018-01-25 Thread Philipp Tomsich
> The LCDC assigned rate is 0, it will make boot error, > error log:"pll_para_config: the frequency can not be > 0 Hz". Remove them, and the lcdc driver will do the > correct clock rate setting. > > Signed-off-by: David Wu > --- > > Changes in v3: > - New patch > > Changes in v2: None > > ar

Re: [U-Boot] rockchip: dts: rk3128: update pwm-cell for pwm0

2018-01-25 Thread Philipp Tomsich
> The backlight pwm-cell is 3. > > This remove the warning in buildman: > arch/arm/dts/rk3126-evb.dtb: Warning (pwms_property): Property 'pwms', cell 3 > is not a phandle reference in /backlight > arch/arm/dts/rk3126-evb.dtb: Warning (pwms_property): Missing property > '#pwm-cells' in node /sram

Re: [U-Boot] rockchip: rk3036: enable rockusb support on rk3036 based device

2018-01-25 Thread Philipp Tomsich
> Rockchip Rockusb driver already merged. So we enable rockusb > support on rk3036 based device. > > Signed-off-by: Eddie Cai > --- > arch/arm/mach-rockchip/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Philipp Tomsich ___ U-Boot

Re: [U-Boot] [U-Boot, v3, 16/20] net: gmac_rockchip: Add support for the RK3228 GMAC

2018-01-25 Thread Philipp Tomsich
> The GMAC in the RK3228 once again is identical to the incarnation in > the RK3288 and the RK3399, except for where some of the configuration > and control registers are located in the GRF. > > This adds the RK3368-specific logic necessary to reuse this driver. > > Signed-off-by: David Wu > ---

Re: [U-Boot] [U-Boot, v3, 17/20] config: evb-rk3229: Enable rk gmac configs

2018-01-25 Thread Philipp Tomsich
> Add gmac config support for rk3229 evb. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > configs/evb-rk3229_defconfig | 5 + > 1 file changed, 5 insertions(+) > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, v3, 20/20] clk: rockchip: clk_rk3368: Implement "assign-clock-parent"

2018-01-25 Thread Philipp Tomsich
> Implement the setting parent for gmac clock, and add internal > pll div set for mac clk. > > Signed-off-by: David Wu > --- > > Changes in v3: > - New patch > > Changes in v2: None > > arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 7 ++ > drivers/clk/rockchip/clk_rk3368.c

Re: [U-Boot] [U-Boot, v4, 07/11] spl: add support to booting with OP-TEE

2018-01-25 Thread Philipp Tomsich
> OP-TEE is an open source trusted OS, in armv7, its loading and > running are like this: > loading: > - SPL load both OP-TEE and U-Boot > running: > - SPL run into OP-TEE in secure mode; > - OP-TEE run into U-Boot in non-secure mode; > > More detail: > https://github.com/OP-TEE/optee_os > and sea

Re: [U-Boot] spl: atf: pass NULL for bl32_ep pc

2018-01-25 Thread Philipp Tomsich
> ATF use bl32_ep_info->pc to decide if thre is an available bl32, > let's mark it as NULL first. > > Signed-off-by: Kever Yang > --- > > common/spl/spl_atf.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, v3, 19/20] clk: rockchip: clk_rk3288: Implement "assign-clock-parent" and "assign-clock-rate"

2018-01-25 Thread Philipp Tomsich
> The RK3288 CRU-node assigns rates to a number of clocks that are not > implemented in the RK3288 clock-driver (but which have been > sufficiently initialised from rkclk_init()): for these clocks, we > implement the gmac clock set parent, but simply ignore the > others' set_rate() operation and re

Re: [U-Boot] [U-Boot, v3, 03/20] rockchip: grf_rv1108.h: Fix the grf offsets

2018-01-25 Thread Philipp Tomsich
> The last 4 grf registers offset of rv1108 are wrong, fix them > for correct usage. > > Signed-off-by: David Wu > Reviewed-by: Simon Glass > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/include/asm/arch-rockchip/grf_rv1108.h | 8 ++-- > 1 file changed, 6

Re: [U-Boot] [U-Boot, v3, 06/20] rockchip: pinctrl: rk3328: Move the iomux definitions into pinctrl-driver

2018-01-25 Thread Philipp Tomsich
> Clean the iomux definitions at grf_rk3328.h, and move them into > pinctrl-driver for resolving the compiling error of redefinition. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/include/asm/arch-rockchip/grf_rk3328.h | 113 > ---

Re: [U-Boot] [U-Boot, v3, 15/20] clk: rockchip: Add rk322x gamc clock support

2018-01-25 Thread Philipp Tomsich
> Assuming mac_clk is fed by an external clock, set clk_rmii_src > clock select control register from IO for rgmii interface. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add "set parent" for gmac > - Add internal mac clk div_sel for gmac > > Changes in v2: > - New patch > > drive

Re: [U-Boot] [U-Boot, v3, 09/20] net: gmac_rockchip: Add rk3328 gmac support

2018-01-25 Thread Philipp Tomsich
> The GMAC2IO in the RK3328 once again is identical to the incarnation in > the RK3288 and the RK3399, except for where some of the configuration > and control registers are located in the GRF. > > This adds the RK3328-specific logic necessary to reuse this driver. > > Signed-off-by: David Wu >

Re: [U-Boot] [U-Boot, v3, 12/20] rockchip: dts: rk3328-evb: Enable gmac2io for rk3328-evb

2018-01-25 Thread Philipp Tomsich
> Add rk3328-evb gmac support. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/dts/rk3328-evb.dts | 30 ++ > 1 file changed, 30 insertions(+) > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, v3, 03/20] rockchip: grf_rv1108.h: Fix the grf offsets

2018-01-25 Thread Philipp Tomsich
> The last 4 grf registers offset of rv1108 are wrong, fix them > for correct usage. > > Signed-off-by: David Wu > Reviewed-by: Simon Glass > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/include/asm/arch-rockchip/grf_rv1108.h | 8 ++-- > 1 file changed, 6

Re: [U-Boot] [PATCH] imx: mx25: Remove SION bit in all pin-mux

2018-01-25 Thread Benoît Thébaudeau
Hi Michael, On 25/01/2018 at 06:47, Michael Nazzareno Trimarchi wrote: > On 25 Jan. 2018 12:07 am, "Fabio Estevam" > wrote: > > Hi Michael, > > On Wed, Jan 24, 2018 at 3:46 PM, Michael Nazzareno Trimarchi > mailto:mich...@amarulasolutions.com>> > wrote: >

Re: [U-Boot] [RFC PATCH] Allow providing default environment from file

2018-01-25 Thread Rasmus Villemoes
On 2018-01-25 10:30, Lukasz Majewski wrote: > Hi Rasmus, > >> It is sometimes useful to be able to define the entire default >> environment in an external file. > > There is already available script for extracting the environment. > > Please look into: > ./scripts/get_default_envs.sh > > Maybe

Re: [U-Boot] [U-Boot, v3, 08/20] clk: rockchip: Add rk3328 gamc clock support

2018-01-25 Thread Philipp Tomsich
> The rk3328 soc has two gmac controllers, one is gmac2io, > the other is gmac2phy. We use the gmac2io rgmii interface > for 1000M phy here. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add "set parent" for gmac2io > - Add internal mac clk div_sel for gmac2io > > Changes in v2: > -

Re: [U-Boot] [U-Boot, v3, 07/20] rockchip: pinctrl: Add rk3328 gmac pinctrl support

2018-01-25 Thread Philipp Tomsich
> Need to set gmac m1 pins iomux, gmac m0 tx pins, select bit2 > and bit10 at com iomux register. After that, set rgmii m1 tx > pins to 12ma drive-strength, and clean others to 2ma. > > Signed-off-by: David Wu > --- > > Changes in v3: > - adhere to the established way of writing this to avoid fu

Re: [U-Boot] [U-Boot, v3, 10/20] rockchip: configs: Enable GMAC configs for evb-rk3328

2018-01-25 Thread Philipp Tomsich
> Enable GMAC configs for evb-rk3328 > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > configs/evb-rk3328_defconfig | 5 + > 1 file changed, 5 insertions(+) > Reviewed-by: Philipp Tomsich ___ U

Re: [U-Boot] [U-Boot, v3, 06/20] rockchip: pinctrl: rk3328: Move the iomux definitions into pinctrl-driver

2018-01-25 Thread Philipp Tomsich
> Clean the iomux definitions at grf_rk3328.h, and move them into > pinctrl-driver for resolving the compiling error of redefinition. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/include/asm/arch-rockchip/grf_rk3328.h | 113 > ---

Re: [U-Boot] [U-Boot, v3, 10/20] rockchip: configs: Enable GMAC configs for evb-rk3328

2018-01-25 Thread Philipp Tomsich
> Enable GMAC configs for evb-rk3328 > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > configs/evb-rk3328_defconfig | 5 + > 1 file changed, 5 insertions(+) > Acked-by: Philipp Tomsich ___ U-Bo

Re: [U-Boot] [U-Boot, v3, 12/20] rockchip: dts: rk3328-evb: Enable gmac2io for rk3328-evb

2018-01-25 Thread Philipp Tomsich
> Add rk3328-evb gmac support. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/dts/rk3328-evb.dts | 30 ++ > 1 file changed, 30 insertions(+) > Reviewed-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, v3, 11/20] rockchip: dts: rk3328: Add gmac2io support

2018-01-25 Thread Philipp Tomsich
> Add basic dts configuration for rk3328 gmac2io. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/dts/rk3328.dtsi | 19 +++ > 1 file changed, 19 insertions(+) > Acked-by: Philipp Tomsich ___

Re: [U-Boot] [U-Boot, v4, 07/11] spl: add support to booting with OP-TEE

2018-01-25 Thread Bryan O'Donoghue
On 18/01/18 11:21, Bryan O'Donoghue wrote: On 18/01/18 01:31, Kever Yang wrote: I don't think we can reuse IH_TYPE_TEE, it use a optee.img type create by mkimage and it seem use more then one cpu. Don't really understand what you mean by using more than one CPU - can you give an example i

Re: [U-Boot] [U-Boot, v3, 11/20] rockchip: dts: rk3328: Add gmac2io support

2018-01-25 Thread Philipp Tomsich
> Add basic dts configuration for rk3328 gmac2io. > > Signed-off-by: David Wu > --- > > Changes in v3: > - None > > Changes in v2: > - New patch > > arch/arm/dts/rk3328.dtsi | 19 +++ > 1 file changed, 19 insertions(+) > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, v3, 04/20] rockchip: pinctrl: rv1108: Move the iomux definitions into pinctrl-driver

2018-01-25 Thread Philipp Tomsich
> If we include both the rk3288_grf.h and rv1108_grf.h, it will cause the > conflicts of redefinition. Clean the iomux definitions at grf_rv1108.h, > and move them into pinctrl-driver. > > Signed-off-by: David Wu > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - Fix the wrong define f

Re: [U-Boot] [U-Boot, v3, 07/20] rockchip: pinctrl: Add rk3328 gmac pinctrl support

2018-01-25 Thread Philipp Tomsich
> Need to set gmac m1 pins iomux, gmac m0 tx pins, select bit2 > and bit10 at com iomux register. After that, set rgmii m1 tx > pins to 12ma drive-strength, and clean others to 2ma. > > Signed-off-by: David Wu > --- > > Changes in v3: > - adhere to the established way of writing this to avoid fu

Re: [U-Boot] [U-Boot, v3, 04/20] rockchip: pinctrl: rv1108: Move the iomux definitions into pinctrl-driver

2018-01-25 Thread Philipp Tomsich
> If we include both the rk3288_grf.h and rv1108_grf.h, it will cause the > conflicts of redefinition. Clean the iomux definitions at grf_rv1108.h, > and move them into pinctrl-driver. > > Signed-off-by: David Wu > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - Fix the wrong define f

Re: [U-Boot] [U-Boot, v3, 13/20] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver

2018-01-25 Thread Philipp Tomsich
> Clean the iomux definitions at grf_rk322x.h, and move them into > pinctrl-driver for resolving the compiling error of redefinition. > After that, define the uart2 iomux at rk322x-board file. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Fix the wrong define for uart2 iomux > > Chan

Re: [U-Boot] [U-Boot, v3, 14/20] rockchip: pinctrl: Add rk322x gmac pinctrl support

2018-01-25 Thread Philipp Tomsich
> Set gmac pins iomux and rgmii tx pins to 12ma drive-strength, > clean others to 2ma. > > Signed-off-by: David Wu > --- > > Changes in v3: > - adhere to the established way of writing this to avoid future confusion > - use defined symbolic constants for drive-strength > > Changes in v2: > - Ne

Re: [U-Boot] [U-Boot, v3, 05/20] net: gmac_rockchip: Add support for the RV1108 GMAC

2018-01-25 Thread Philipp Tomsich
> The rv1108 GMAC only support rmii interface, so need to add the > set_rmii() ops. Use the phy current interface to set rmii or > rgmii ops. At the same time, need to set the mac clock rate of > rmii with 50M, the clock rate of rgmii with 125M. > > Signed-off-by: David Wu > --- > > Changes in v

Re: [U-Boot] [U-Boot, v3, 13/20] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver

2018-01-25 Thread Philipp Tomsich
> Clean the iomux definitions at grf_rk322x.h, and move them into > pinctrl-driver for resolving the compiling error of redefinition. > After that, define the uart2 iomux at rk322x-board file. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Fix the wrong define for uart2 iomux > > Chan

Re: [U-Boot] [U-Boot, v3, 08/20] clk: rockchip: Add rk3328 gamc clock support

2018-01-25 Thread Philipp Tomsich
> The rk3328 soc has two gmac controllers, one is gmac2io, > the other is gmac2phy. We use the gmac2io rgmii interface > for 1000M phy here. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add "set parent" for gmac2io > - Add internal mac clk div_sel for gmac2io > > Changes in v2: > -

Re: [U-Boot] [U-Boot, v3, 09/20] net: gmac_rockchip: Add rk3328 gmac support

2018-01-25 Thread Philipp Tomsich
> The GMAC2IO in the RK3328 once again is identical to the incarnation in > the RK3288 and the RK3399, except for where some of the configuration > and control registers are located in the GRF. > > This adds the RK3328-specific logic necessary to reuse this driver. > > Signed-off-by: David Wu >

Re: [U-Boot] [U-Boot, v3, 05/20] net: gmac_rockchip: Add support for the RV1108 GMAC

2018-01-25 Thread Philipp Tomsich
> The rv1108 GMAC only support rmii interface, so need to add the > set_rmii() ops. Use the phy current interface to set rmii or > rgmii ops. At the same time, need to set the mac clock rate of > rmii with 50M, the clock rate of rgmii with 125M. > > Signed-off-by: David Wu > --- > > Changes in v

Re: [U-Boot] [PATCH] imx: mx25: Remove SION bit in all pin-mux

2018-01-25 Thread Michael Nazzareno Trimarchi
Hi On Thu, Jan 25, 2018 at 11:02 AM, Benoît Thébaudeau wrote: > Hi Michael, > > On 25/01/2018 at 06:47, Michael Nazzareno Trimarchi wrote: >> On 25 Jan. 2018 12:07 am, "Fabio Estevam" > > wrote: >> >> Hi Michael, >> >> On Wed, Jan 24, 2018 at 3:46 PM, Michael Na

Re: [U-Boot] [PATCH 1/7] mmc: uniphier-sd: Use mmc_of_parse()

2018-01-25 Thread Masahiro Yamada
2018-01-25 10:01 GMT+09:00 Jaehoon Chung : > Hi, > > On 01/17/2018 02:16 AM, Marek Vasut wrote: >> Drop the ad-hoc DT caps parsing in favor of common framework function. >> >> Signed-off-by: Marek Vasut >> Cc: Jaehoon Chung >> Cc: Masahiro Yamada > > If Masahiro is ok, i will pick this patch and

Re: [U-Boot] [PATCH] mmc: uniphier-sd: Add compatible strings for RCar Gen2

2018-01-25 Thread Masahiro Yamada
2018-01-25 9:58 GMT+09:00 Jaehoon Chung : > On 01/25/2018 07:19 AM, Marek Vasut wrote: >> Add DT compatible strings for RCar Gen2 SoCs, so that this driver >> can bind with them. Unlike Gen3, which uses 64bit FIFO, the Gen2 >> uses 16bit FIFO. >> >> Signed-off-by: Marek Vasut >> Cc: Jaehoon Chung

Re: [U-Boot] [PATCH V2 2/7] mmc: uniphier-sd: Properly handle pin voltage configuration

2018-01-25 Thread Masahiro Yamada
2018-01-17 2:16 GMT+09:00 Marek Vasut : > Factor out the regulator handling into set_ios and add support for > selecting pin configuration based on the voltage to support UHS modes. > > Signed-off-by: Marek Vasut > Cc: Jaehoon Chung > Cc: Masahiro Yamada > --- > V2: Protect vqmmc_dev access in u

Re: [U-Boot] [PATCH 3/7] mmc: uniphier-sd: Add Renesas RCar quirks

2018-01-25 Thread Masahiro Yamada
2018-01-17 2:16 GMT+09:00 Marek Vasut : > Add a quirk to identify that the controller is Renesas RCar variant > of the Matsushita SD IP and another quirk indicating it can support > Renesas RCar HS200/HS400/SDR104 modes. > > Signed-off-by: Marek Vasut > Cc: Jaehoon Chung > Cc: Masahiro Yamada >

Re: [U-Boot] [RFC PATCH] Allow providing default environment from file

2018-01-25 Thread Lukasz Majewski
Hi Rasmus, > On 2018-01-25 10:30, Lukasz Majewski wrote: > > Hi Rasmus, > > > >> It is sometimes useful to be able to define the entire default > >> environment in an external file. > > > > There is already available script for extracting the environment. > > > > Please look into: > > ./scr

Re: [U-Boot] [PATCH 4/7] mmc: uniphier-sd: Handle Renesas div-by-1

2018-01-25 Thread Masahiro Yamada
2018-01-17 2:17 GMT+09:00 Marek Vasut : > On the Renesas version of the IP, the /1 divider is realized by > setting the clock register [7:0] to 0xff instead of setting bit > 10 of the register. Check the quirk and handle accordingly. > > Signed-off-by: Marek Vasut > Cc: Jaehoon Chung > Cc: Masahi

Re: [U-Boot] [PATCH] imx: mx25: Remove SION bit in all pin-mux

2018-01-25 Thread Benoît Thébaudeau
On 25/01/2018 at 11:17, Michael Nazzareno Trimarchi wrote: > On Thu, Jan 25, 2018 at 11:02 AM, Benoît Thébaudeau > wrote: >> You said that setting SION only for a UART is enough to trigger your USB >> issue. >> Of course, there is no reason to set SION by default for a UART, but I was >> thinkin

Re: [U-Boot] [PATCH 5/7] mmc: uniphier-sd: Add Renesas SDR104/HS200 tuning support

2018-01-25 Thread Masahiro Yamada
2018-01-17 2:17 GMT+09:00 Marek Vasut : > Add code for PHY tuning required for SDR104/HS200 support on Renesas RCar. > > Signed-off-by: Marek Vasut > Cc: Jaehoon Chung > Cc: Masahiro Yamada > --- > drivers/mmc/uniphier-sd.c | 290 > ++ > 1 file chang

Re: [U-Boot] [PATCH 6/7] mmc: uniphier-sd: Handle DMA completion flag differences

2018-01-25 Thread Masahiro Yamada
2018-01-17 2:17 GMT+09:00 Marek Vasut : > The DMA READ completion flag position differs on Socionext and Renesas > SoCs. It is bit 20 on Socionext SoCs and using bit 17 is a hardware bug > and forbidden. It is bit 17 on Renesas SoCs and bit 20 does not work on > them. > > Signed-off-by: Marek Vasut

Re: [U-Boot] [PATCH 7/7] mmc: uniphier-sd: Always check controller version

2018-01-25 Thread Masahiro Yamada
2018-01-17 2:17 GMT+09:00 Marek Vasut : > Handle the controller version even if quirks are set. The controller in > Renesas Gen3 SoCs does provide the version register, which indicates a > controller v10 and the controller does support internal DMA and /1024 > divider. > > Signed-off-by: Marek Vasu

[U-Boot] [PATCH v2 02/24] mmc: omap_hsmmc: cleanup omap_hsmmc_set_ios

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I No functional change. Move bus width configuration setting to a separate function and invoke it only if there is a change in the bus width. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 29

[U-Boot] [PATCH v2 00/24] omap_hsmmc: Add support for HS200 and UHS modes

2018-01-25 Thread Jean-Jacques Hiblot
This series adds the missing bits to enable the UHS and HS200 modes for the TI platforms. Enabling support for high speed modes on omap5 requires implementing: * io signal voltage selection * tuning support * pin configuration (IO delays) The few last patches enable the high speed modes for t

[U-Boot] [PATCH v2 01/24] mmc: omap_hsmmc: cleanup clock configuration

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Add a separate function for starting the clock, stopping the clock and setting the clock. Starting the clock and stopping the clock can be used irrespective of setting the clock (For example during iodelay recalibration). Also set the clock only if there is a change i

[U-Boot] [PATCH v2 05/24] mmc: omap_hsmmc: Enable DDR mode support

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I In order to enable DDR mode, Dual Data Rate mode bit has to be set in MMCHS_CON register. Set it here. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot --- arch/arm/include/asm/omap_mmc.h | 1 + drivers/mmc/omap_hsmmc.c| 5 + 2

[U-Boot] [PATCH v2 03/24] mmc: omap_hsmmc: add support to set default io voltage

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I "ti,dual-volt" is used in linux kernel to set the voltage capabilities. For host controller dt nodes that doesn't have "ti,dual-volt", it's assumed 1.8v is the io voltage. This is not always true (like in the case of beagle-x15 where the io lines are connected to 3.3v

[U-Boot] [PATCH v2 08/24] mmc: omap_hsmmc: Reduce the max timeout for reset controller fsm

2018-01-25 Thread Jean-Jacques Hiblot
From OMAP3 SoCs (OMAP3, OMAP4, OMAP5, AM572x, AM571x), the DAT/CMD lines reset procedure section in TRM suggests to first poll the SRD/SRC bit until it is set to 0x1. But looks like that bit is never set to 1 and there is an observable delay of 1sec everytime the driver tries to reset DAT/CMD. (The

[U-Boot] [PATCH v2 11/24] mmc: omap_hsmmc: Add support to set IODELAY values

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I The data manual of J6/J6 Eco recommends to set different IODELAY values depending on the mode in which the MMC/SD is enumerated in order to ensure IO timings are met. Add support to parse mux values and iodelay values from device tree and set these depending on the e

[U-Boot] [PATCH v2 06/24] mmc: omap_hsmmc: Add tuning support

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I HS200/SDR104 requires tuning command to be sent to the card. Use the mmc_send_tuning library function to send the tuning command and configure the internal DLL. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot --- arch/arm/include/asm/omap

[U-Boot] [PATCH v2 10/24] ARM: OMAP5/DRA7: Enable iodelay recalibration to be done from uboot

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Add a new API to perform iodelay recalibration without isolate io to be used in uboot. The data manual of J6/J6 Eco recommends to set different IODELAY values depending on the mode in which the MMC/SD is enumerated in order to ensure IO timings are met. The MMC drive

[U-Boot] [PATCH v2 22/24] dts: am57xx-idk: disable HS200 support

2018-01-25 Thread Jean-Jacques Hiblot
HS200 cannot be supported on mmc2, because the IO lines of mmc2 are connected to 3.3v. Signed-off-by: Jean-Jacques Hiblot --- arch/arm/dts/am57xx-idk-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/am57xx-idk-common.dtsi b/arch/arm/dts/am57xx-idk-common.dtsi inde

[U-Boot] [PATCH v2 18/24] ARM: OMAP5: set mmc clock frequency to 192MHz

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Now that omap_hsmmc has support for hs200 mode, change the clock frequency to 192MHz. Also change the REFERENCE CLOCK frequency to 192MHz based on which the internal mmc clock divider is calculated. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques H

[U-Boot] [PATCH v2 07/24] mmc: omap_hsmmc: Workaround for errata id i802

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I According to errata i802, DCRC error interrupts (MMCHS_STAT[21] DCRC=0x1) can occur during the tuning procedure. The DCRC interrupt, occurs when the last tuning block fails (the last ratio tested). The delay from CRC check until the interrupt is asserted is bigger th

[U-Boot] [PATCH v2 16/24] mmc: omap_hsmmc: allow mmc clock to be gated

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I mmc core has defined a new parameter *clk_disable* to gate the clock. Disable the clock here if *clk_disable* is set. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 6 ++ 1 file changed, 6 insertions(+)

[U-Boot] [PATCH v2 15/24] mmc: omap_hsmmc: implement send_init_stream callback

2018-01-25 Thread Jean-Jacques Hiblot
This callback is used to send the 74 clock cycles after power up. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 28fac9b..5eeccfc 100644 --- a/drivers/mm

[U-Boot] [PATCH v2 20/24] ARM: dts: dra7: Add supported MMC/SD modes in MMC dt nodes

2018-01-25 Thread Jean-Jacques Hiblot
On DRA7 family SoCs, MMC1 controller supports SDR104, SDR50, DDR50, SDR25 and SDR12 UHS modes. MMC2 controller supports HS200 and DDR modes. MMC3 controller supports SDR12, SDR25 and SDR50 modes. MMC4 controller supports SDR12 and SDR25 modes. Add these supported modes in device-tree file. Sig

[U-Boot] [PATCH v2 19/24] ARM: dts: DRA7: use new dra7-specific compatible string

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Use the new compatible string "ti,dra7-hsmmc" that was specifically added for dra7 and dra72. This is required since for dra7 and dra72 processors iodelay values has to be set unlike other processors. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori

[U-Boot] [PATCH v2 17/24] mmc: omap_hsmmc: add signal voltage selection support

2018-01-25 Thread Jean-Jacques Hiblot
I/O data lines of UHS SD card operates at 1.8V when in UHS speed mode (same is true for eMMC in DDR and HS200 modes). Add support to switch signal voltage to 1.8V in order to support UHS cards and eMMC HS200 and DDR modes. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH v2 23/24] ARM: DRA7x/AM57x: Add MMC/SD fixups for rev1.0 and rev 1.1

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Since DRA7xx/AM57xx SR1.1 and SR1.0 has errata to limit the frequency of MMC1 to 96MHz and frequency of MMC2 to 48MHz for AM572x SR1.1, limit the frequency and disable higher speed modes for those revision. Also use the recommended IO delays (those tagged with "rev11"

[U-Boot] [PATCH v2 24/24] configs: dra7xx_evm/dra7xx_hs_evm: Enable MMC HS200 and SD UHS support

2018-01-25 Thread Jean-Jacques Hiblot
By default UHS and HS200 are not enabled. Signed-off-by: Jean-Jacques Hiblot --- configs/dra7xx_evm_defconfig| 3 +++ configs/dra7xx_hs_evm_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig index b13a27e..e79e6d6 1

[U-Boot] [PATCH v2 04/24] mmc: omap_hsmmc: set MMC mode in the UHSMS bit field

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Use the timing parameter set in the MMC core to set the mode in UHSMS bit field. This is in preparation for adding HS200 support in omap hsmmc driver. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot --- arch/arm/include/asm/omap_mmc.h |

[U-Boot] [PATCH v2 13/24] mmc: omap_hsmmc: allow the simple HS modes to use the default pinctrl

2018-01-25 Thread Jean-Jacques Hiblot
The default configuration is usually working fine for the the HS modes. Don't enforce the presence of a dedicated pinmux for the HS modes. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git

[U-Boot] [PATCH v2 12/24] mmc: omap_hsmmc: Add support to get pinctrl values and max frequency for different hw revisions

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I AM572x SR1.1 requires different IODelay values to be used than that used in AM572x SR2.0. These values are populated in device tree. Add capability in omap_hsmmc driver to extract IOdelay values for different silicon revision. The maximum frequency is also reduced whe

[U-Boot] [PATCH v2 09/24] mmc: omap_hsmmc: use mmc_of_parse to populate mmc_config

2018-01-25 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Use the mmc_of_parse library function to populate mmc_config instead of repeating the same code in host controller driver. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 24 +--- 1 file

[U-Boot] [PATCH v2 14/24] mmc: omap_hsmmc: update mmc->clock with the actual bus speed

2018-01-25 Thread Jean-Jacques Hiblot
When the clock is applied, compute the actual value of the clock. It may be slightly different from the requested value (max freq, divisor threshold) Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v2 21/24] dts: am57xx-beagle-x15: disable UHS and HS200 support

2018-01-25 Thread Jean-Jacques Hiblot
The UHS modes are not supported in beagle-x15 because it's not possible to switch the IO lines supply voltage to 1.8v. Also HS200 cannot be supported on mmc2, because the IO lines of mmc2 are connected to 3.3v. Signed-off-by: Jean-Jacques Hiblot --- arch/arm/dts/am57xx-beagle-x15.dts | 6 ++

[U-Boot] [PATCH v3 13/15] MAINTAINERS: Take over BCM2835 maintainership

2018-01-25 Thread Alexander Graf
It seems as if I have more interest in BCM2835 support than most others, so I'll bite the bullet and declare myself maintainer. It'd be a shame to leave that platform orphaned. Signed-off-by: Alexander Graf --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/M

[U-Boot] [PATCH v3 10/15] pl011: Convert CONFIG_PL011_SERIAL to Kconfig

2018-01-25 Thread Alexander Graf
We want to use Kconfig logic to depend on whether pl01x devices are built in, so let's convert their inclusion selection to Kconfig. This round goes to pl011. Signed-off-by: Alexander Graf --- arch/arm/Kconfig | 19 +++ drivers/serial/Kconfig| 6 +++

[U-Boot] [PATCH v3 01/15] serial: Use next serial device if probing fails

2018-01-25 Thread Alexander Graf
Currently our serial device search chokes on the fact that the serial probe function could fail. If it does, instead of searching for the next usable serial device, it just quits. This patch changes the fallback logic so that even when a serial device was not probed correctly, we just try the next

[U-Boot] [PATCH v3 06/15] serial_bcm283x_mu: Always skip init

2018-01-25 Thread Alexander Graf
The serial initialization doesn't always quite work for me, so let's always skip it for now. We know that firmware on the RPi initializes us properly already. Signed-off-by: Alexander Graf --- drivers/serial/serial_bcm283x_mu.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --

  1   2   3   >