Re: [U-Boot] [PATCH] sunxi: axp2xx: disable ldoio0/1 at boot

2016-09-12 Thread Hans de Goede
Hi, On 12-09-16 14:41, Ian Campbell wrote: On Mon, 2016-09-12 at 09:55 +0200, Hans de Goede wrote: @@ -223,7 +223,14 @@ int axp_init(void) if (!(axp_chip_id == 0x6 || axp_chip_id == 0x7 || axp_chip_id == 0x17)) return -ENODEV; - return 0

[U-Boot] [PATCH v2] sunxi: axp2xx: disable ldoio0/1 at boot

2016-09-12 Thread Hans de Goede
When cold-booting the ldoio0/1 regulators are always off / the gpios are always at tristate. But when re-booting from android these are sometimes on. Disable them at axp_init time (iow as early as possible) to remove this difference between a cold boot and a reboot. Signed-off-by: Hans de Goede

[U-Boot] [PATCH] sunxi: axp2xx: disable ldoio0/1 at boot

2016-09-12 Thread Hans de Goede
When cold-booting the ldoio0/1 regulators are always off / the gpios are always at tristate. But when re-booting from android these are sometimes on. Disable them at axp_init time (iow as early as possible) to remove this difference between a cold boot and a reboot. Signed-off-by: Hans de Goede

Re: [U-Boot] u-boot v2016.09-rc2: cache alignment issues on sunxi-based systems

2016-09-11 Thread Hans de Goede
Hi, On 10-09-16 22:09, Karsten Merker wrote: Hello, I have run tests of u-boot v2016.09-rc2 and current u-boot git head (as of commit 9dd1d0aa4e086bc8a5eaf19a67825c3323c41c5a) on various Allwinner A20-based systems and when netbooting a kernel, I get the following warning/error: "CACHE: Misa

Re: [U-Boot] Sdcard boot for a generic allwinner q8 clone A33 tablet not work.

2016-09-09 Thread Hans de Goede
Hi, On 09-09-16 14:10, far5893 wrote: Hi, i'm trying to boot a classic A33 q8 clone with uboot copied in sdcard but nothing happen (not backlight on) dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 on the partitioned sdcard for reference In my experience the A33 can be a bit picky

Re: [U-Boot] [PATCH 1/3] sunxi: Sync h3-orangepi dts files with kernel

2016-09-09 Thread Hans de Goede
Hi, On 08-09-16 13:58, Ian Campbell wrote: On Sat, 2016-09-03 at 13:12 +0200, Hans de Goede wrote: This adds an emac node to the orangepi-2 dts (not yet merged upstream, but in u-boot we already have emac support); fixes the alphetically sorting of nodes in sun8i-h3-orangepi-plus.dts and

Re: [U-Boot] [PATCH 0/4] sunxi: Pine64 fixes

2016-09-08 Thread Hans de Goede
Hi, On 07-09-16 17:55, Andre Przywara wrote: Hi, On 07/09/16 16:48, Hans de Goede wrote: Hi, On 07-09-16 17:18, Andre Przywara wrote: Hi, On 07/09/16 16:13, Hans de Goede wrote: Hi, On 05-09-16 02:32, Andre Przywara wrote: Some patches to fix the Pine64 support: The first two patches

Re: [U-Boot] [PATCH 0/4] sunxi: Pine64 fixes

2016-09-07 Thread Hans de Goede
Hi, On 07-09-16 17:18, Andre Przywara wrote: Hi, On 07/09/16 16:13, Hans de Goede wrote: Hi, On 05-09-16 02:32, Andre Przywara wrote: Some patches to fix the Pine64 support: The first two patches revert two patches that actually broke booting Pine64 via the boot0 blob, already in 2016.07

Re: [U-Boot] [PATCH 0/4] sunxi: Pine64 fixes

2016-09-07 Thread Hans de Goede
Hi, On 05-09-16 02:32, Andre Przywara wrote: Some patches to fix the Pine64 support: The first two patches revert two patches that actually broke booting Pine64 via the boot0 blob, already in 2016.07. This has been discussed on IRC before, the commit messages contain some details on the reasons

[U-Boot] Please pull u-boot-sunxi master (v2016.09 fixes)

2016-09-06 Thread Hans de Goede
): Revert "sunxi: Move the SPL stack top to 0x1A000 on Allwinner A64/A80" sunxi: Kconfig: rename non-existent SUN50I_A64 config symbol sunxi: fix 64-bit compiler warning for SPL header parsing Chen-Yu Tsai (1): sunxi: Fix H3 EMAC syscon register address Hans de Goede (3):

[U-Boot] [PATCH 2/3] sunxi: Enable emac on H3 orangepi boards

2016-09-03 Thread Hans de Goede
The Orange Pi 2 and Orange Pi Plus also come with ethernet, enable support for this. Signed-off-by: Hans de Goede --- configs/orangepi_2_defconfig| 1 + configs/orangepi_plus_defconfig | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/orangepi_2_defconfig b

[U-Boot] [PATCH 3/3] sunxi: Add defconfig and dts file for the Orange Pi Plus2E SBC

2016-09-03 Thread Hans de Goede
sun8i-emac support. Signed-off-by: Hans de Goede --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/sun8i-h3-orangepi-plus2e.dts | 83 +++ board/sunxi/MAINTAINERS | 1 + configs/orangepi_plus2e_defconfig | 19 +++ 4 files

[U-Boot] [PATCH 1/3] sunxi: Sync h3-orangepi dts files with kernel

2016-09-03 Thread Hans de Goede
has decided to do a separate dts files for the plus2e. Signed-off-by: Hans de Goede --- arch/arm/dts/sun8i-h3-orangepi-2.dts| 11 + arch/arm/dts/sun8i-h3-orangepi-pc.dts | 1 + arch/arm/dts/sun8i-h3-orangepi-plus.dts | 72 - 3 files changed, 37 insertions

[U-Boot] Please pull u-boot-sunxi master (v2016.09 fixes)

2016-09-03 Thread Hans de Goede
: sunxi: Add defconfig and dts file for the Orange Pi Plus2E SBC (2016-09-03 13:05:43 +0200) Chen-Yu Tsai (1): sunxi: Fix H3 EMAC syscon register address Hans de Goede (3): sunxi: Sync h3-orangepi dts files with

Re: [U-Boot] [PATCH v2] sunxi: Add support for A33-OLinuXino board

2016-09-03 Thread Hans de Goede
Hi, On 02-09-16 14:21, Stefan Mavrodiev wrote: A33-OLinuXino is A33 development board designed by Olimex LTD. It has AXP223 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash. It has two 40-pin headers. One for

Re: [U-Boot] [PATCH] sunxi: Fix H3 EMAC syscon register address

2016-09-03 Thread Hans de Goede
Hi, On 02-09-16 10:29, Chen-Yu Tsai wrote: The sun8i-emac driver follows an old version of the proposed DT bindings, where the EMAC clock and EPHY control register range is listed directly, rather than through a syscon phandle. Add back the syscon register range to avoid an invalid data access.

Re: [U-Boot] [PATCH 6/6] sun5i: boot in HYP mode by default

2016-09-01 Thread Hans de Goede
Hi, On 01-09-16 09:57, Antoine Tenart wrote: sun5i now implements the psci suspend function. In order to be used by the kernel, we should now boot in non-secure mode. Enable it by default. Signed-off-by: Antoine Tenart The sun5i has a cortex a8, which does not do HYP mode, please fix the com

Re: [U-Boot] [PATCH 0/6] sunxi: sun5/7i: add the psci suspend function

2016-09-01 Thread Hans de Goede
Hi, On 01-09-16 09:57, Antoine Tenart wrote: Hi all, This series adds an implementation of the psci suspend function for both sun5i and sun7i. This was tested on Nextthing's CHIP and on a A20, using cpuidle in Linux. My tests showed a power consumption reduced by a factor 2 on the CHIP when the

Re: [U-Boot] [PATCH 3/6] ARM: PSCI: protect GIC specific code with ARM_GIC

2016-09-01 Thread Hans de Goede
Hi, On 01-09-16 09:57, Antoine Tenart wrote: Introducing the ARM_GIC configuration option, use it to only use GIC specific code in ARM PSCI function when the SoC has a GIC. Signed-off-by: Antoine Tenart AFAIK sunxi is not the only user of these files, so before you can do this you should al

Re: [U-Boot] [PATCH v2 1/2] sunxi: add proper device tree for iNet D978 rev2 boards

2016-08-29 Thread Hans de Goede
s @@ -0,0 +1,88 @@ +/* + * Copyright 2015 Hans de Goede + * Copyright 2016 Icenowy Zheng + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. +

[U-Boot] Please pull u-boot-sunxi master

2016-08-26 Thread Hans de Goede
RAM PLL to improve lock time (2016-08-26 16:58:37 +0200) -------- Hans de Goede (4): sun6i: Add defconfig and dts file for tablets using the inet-q972 PCB sunxi: Sync dts files with upstream kernel sun5i: Add defconfig and dt

Re: [U-Boot] [linux-sunxi] [PATCH] sunxi: Tune H3 DRAM PLL to improve lock time

2016-08-26 Thread Hans de Goede
Hi, On 19-08-16 13:40, Jens Kuske wrote: The H3 PLL5 used for DRAM barely manages to lock to the required frequency before DRAM controller starts, sometimes leading to wrong delay-line calibration results. This patch changes the PLL tuning parameters to the same values as boot0 used, which speed

Re: [U-Boot] [PATCH v2] sunxi: display: Use PWM to drive backlight where applicable

2016-08-26 Thread Hans de Goede
Hi, On 26-08-16 16:15, Peter Korsgaard wrote: "Hans" == Hans de Goede writes: > When the backlight's pwm input is connected to a pwm output of the SoC, > actually use pwm to drive the backlight. > The mean reason for doing this is to fix the backlight turning of

Re: [U-Boot] [PATCH 1/2] sunxi: add proper device tree for iNet D978 rev2 boards

2016-08-26 Thread Hans de Goede
Hi, On 26-08-16 15:20, Icenowy Zheng wrote: 26.08.2016, 20:23, "Hans de Goede" : Hi, On 26-08-16 14:03, Icenowy Zheng wrote: Add a proper dts for the iNet D978 rev2 based A33 tablets. Hmm, this dts file is not using the new sun8i-reference-design-tablet.dtsi file. IIRC y

[U-Boot] [PATCH] sun5i: Add defconfig and dts file for the Empire Electronix M712 tablet

2016-08-26 Thread Hans de Goede
al to the one submitted to the upstream kernel. Signed-off-by: Hans de Goede --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun5i-a13-empire-electronix-m712.dts | 51 +++ board/sunxi/MAINTAINERS | 1 + co

[U-Boot] [PATCH v2] sunxi: display: Use PWM to drive backlight where applicable

2016-08-26 Thread Hans de Goede
a power-on-reset value of "off". An additional advantage is that this allows us to initatiate the backlight at 80%, which is the kernel default, avoiding a brightness change while the kernel loads. Signed-off-by: Hans de Goede --- Changes in v2: -Fix pwm mmio base-address being wrong fo

Re: [U-Boot] [PATCH] sunxi: display: Use PWM to drive backlight where applicable

2016-08-26 Thread Hans de Goede
Hi, On 22-08-16 16:01, Peter Korsgaard wrote: "Hans" == Hans de Goede writes: > When the backlight's pwm input is connected to a pwm output of the SoC, > actually use pwm to drive the backlight. > The mean reason for doing this is to fix the backlight turning of

Re: [U-Boot] [PATCH 1/2] sunxi: add proper device tree for iNet D978 rev2 boards

2016-08-26 Thread Hans de Goede
-d978-rev2.dts new file mode 100644 index 000..0a3ac91 --- /dev/null +++ b/arch/arm/dts/sun8i-a33-inet-d978-rev2.dts @@ -0,0 +1,139 @@ +/* + * Copyright 2015 Hans de Goede + * Copyright 2015 Icenowy Zheng + * + * This file is dual-licensed: you can use it either under the terms + * of the G

Re: [U-Boot] U-Boot SPL 2016.09-rc1 on NTC C.H.I.P.

2016-08-21 Thread Hans de Goede
Hi, On 21-08-16 11:01, Marcus Glocker wrote: On Sat, Aug 20, 2016 at 03:05:38PM -0400, Tom Rini wrote: On Sat, Aug 20, 2016 at 07:26:19AM +0200, Marcus Glocker wrote: Hello, While U-Boot SPL 2015.10 works fine on my allwinner,sun5i-r8 board I face following issue with U-Boot SPL 2016.09-rc1

[U-Boot] [PATCH] sunxi: display: Use PWM to drive backlight where applicable

2016-08-19 Thread Hans de Goede
a power-on-reset value of "off". An additional advantage is that this allows us to initatiate the backlight at 80%, which is the kernel default, avoiding a brightness change while the kernel loads. Signed-off-by: Hans de Goede --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 1 + arch/

Re: [U-Boot] [PATCH] sunxi: Sync dts files with upstream kernel

2016-08-19 Thread Hans de Goede
Hi, On 19-08-16 09:11, Ian Campbell wrote: On Fri, 2016-08-19 at 08:52 +0200, Hans de Goede wrote: Sync dts files with the current (Aug 18th 2016) state of Maxime's linux/sunxi/for-next repo. Is that a rebasing tree, or is the sha of the specific commit stable and therefore worth incl

[U-Boot] [PATCH] ARM: dts: sun6i: Add defconfig and dts file for tablets using the inet-q972 PCB

2016-08-18 Thread Hans de Goede
re qw tb9718-qhd tablet. The dts files are identical to the ones submitted to the upstream kernel. Signed-off-by: Hans de Goede --- arch/arm/dts/Makefile | 1 + .../arm/dts/sun6i-a31-reference-design-tablet.dtsi | 193 + arch/arm/dts/sun6i-a31s

[U-Boot] Please pull u-boot-sunxi master

2016-07-31 Thread Hans de Goede
) Chen-Yu Tsai (2): sunxi: gpio: Add .xlate function for gpio phandle resolution sunxi: Hummingbird_A31_defconfig: Drop MACPWR option Hans de Goede (4): sunxi: Ensure that the NIC specific bytes of the mac are not all 0 sunxi: On newer SoCs use words 1-3 instead of just

[U-Boot] [PATCH v3] sunxi: On newer SoCs use words 1-3 instead of just word 3 from the SID

2016-07-30 Thread Hans de Goede
using the crc32 of words 1 - 3 to get a more unique value for the mac-address / serialnr. Cc: Chen-Yu Tsai Cc: Corentin LABBE Cc: Amit Singh Tomar Signed-off-by: Hans de Goede --- Changes in v3: -Use crc32 instead of ex-or-ing the bytes together -Use new algorithm on all newer SoCs -Only check

Re: [U-Boot] [PATCH v2] sun8i: On H3 Use words 1-3 instead of just word 3 from the SID

2016-07-30 Thread Hans de Goede
Hi, On 29-07-16 12:28, Ian Campbell wrote: On Fri, 2016-07-29 at 11:49 +0200, Hans de Goede wrote: It seems that bytes 13-14 of the SID / bytes 1-2 from word 3 of the SID are always 0 on H3 making it a poor candidate to use as source for the serialnr / mac-address, and the other non constant

[U-Boot] [PATCH v2] net: sun8i_emac: Fix DMA alignment issues with the rx / tx buffers

2016-07-29 Thread Hans de Goede
5f8] DHCP client bound to address 10.42.43.80 (1009 ms) Note this commit also changes the max rx size from 2024 to 2044, matching what the kernel driver uses. Cc: Chen-Yu Tsai Cc: Corentin LABBE Cc: Amit Singh Tomar Signed-off-by: Hans de Goede --- Changes in v2: -Add a comment explaining

[U-Boot] [PATCH v2] sun8i: On H3 Use words 1-3 instead of just word 3 from the SID

2016-07-29 Thread Hans de Goede
using words 1 - 3 ex-or-ed together to get a more unique value for the mac-address / serialnr. Cc: Chen-Yu Tsai Cc: Corentin LABBE Cc: Amit Singh Tomar Signed-off-by: Hans de Goede --- Changes in v2: -ex-or all 3 words together instead of picking a different word --- board/sunxi/board.c | 15

Re: [U-Boot] [PATCH 3/4] sun8i: On H3 Use word 1 instead of word 3 from the SID

2016-07-29 Thread Hans de Goede
Hi, On 27-07-16 21:14, Siarhei Siamashka wrote: Hello Hans, I just realized I forgot to reply to this bit: Also changing the MAC address generation algorithm is an invasive change, which is affecting the end users. Agreed, which is why I'm only changing it for the H3 and why I'm changing

Re: [U-Boot] [PATCH] sunxi: Add defconfig and dts file for the Orange Pi PC Plus SBC

2016-07-28 Thread Hans de Goede
Hi, On 28-07-16 19:58, Jagan Teki wrote: On 27 July 2016 at 03:58, Hans de Goede wrote: There is a new Orange Pi PC *Plus* version available now, this is an extended version of the regular Orange Pi PC with sdio wifi and an eMMC. The upstream kernel devs have decided that they want a

Re: [U-Boot] [PATCH 1/4] net: sun8i_emac: Fix DMA alignment issues with the rx / tx buffers

2016-07-28 Thread Hans de Goede
Hi, On 27-07-16 19:11, Amit Tomer wrote: Hello, index 7c088c3..877859c 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -32,7 +32,8 @@ #define CONFIG_TX_DESCR_NUM32 #define CONFIG_RX_DESCR_NUM32 -#define CONFIG_ETH_BUFSIZE 2024 +#define CONFIG_ETH_BUFSIZE

Re: [U-Boot] [PATCH 3/4] sun8i: On H3 Use word 1 instead of word 3 from the SID

2016-07-28 Thread Hans de Goede
Hi, On 28-07-16 05:13, Chen-Yu Tsai wrote: Hi, On Thu, Jul 28, 2016 at 3:14 AM, Siarhei Siamashka wrote: Hello Hans, On Wed, 27 Jul 2016 18:10:34 +0200 Hans de Goede wrote: It seems that bytes 13-14 of the SID / bytes 1-2 from word 3 of the SID are always 0 on H3 making it a poor

[U-Boot] [PATCH 3/4] sun8i: On H3 Use word 1 instead of word 3 from the SID

2016-07-27 Thread Hans de Goede
It seems that bytes 13-14 of the SID / bytes 1-2 from word 3 of the SID are always 0 on H3 making it a poor candidate to use as source for the serialnr / mac-address, switch to word1 which seems to be more random. Cc: Chen-Yu Tsai Cc: Corentin LABBE Cc: Amit Singh Tomar Signed-off-by: Hans de

[U-Boot] [PATCH 1/4] net: sun8i_emac: Fix DMA alignment issues with the rx / tx buffers

2016-07-27 Thread Hans de Goede
5f8] DHCP client bound to address 10.42.43.80 (1009 ms) Cc: Chen-Yu Tsai Cc: Corentin LABBE Cc: Amit Singh Tomar Signed-off-by: Hans de Goede --- drivers/net/sun8i_emac.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_ema

[U-Boot] [PATCH 4/4] sunxi: Re-enable h3 emac support

2016-07-27 Thread Hans de Goede
With the recent bug fixes for the sun8i_emac driver all known issues are resolved, so we can re-enable the driver. While at it, also enable the emac on the Orange Pi One. Cc: Chen-Yu Tsai Cc: Corentin LABBE Cc: Amit Singh Tomar Signed-off-by: Hans de Goede --- arch/arm/dts/sun8i-h3-orangepi

[U-Boot] [PATCH 2/4] sunxi: Ensure that the NIC specific bytes of the mac are not all 0

2016-07-27 Thread Hans de Goede
Singh Tomar Signed-off-by: Hans de Goede --- board/sunxi/board.c | 4 1 file changed, 4 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 36cf963..ef3fe26 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -623,6 +623,10 @@ static void setup_environment

Re: [U-Boot] Please pull u-boot-sunxi master

2016-07-27 Thread Hans de Goede
Hi, On 27-07-16 04:38, Chen-Yu Tsai wrote: Hi Hans On Wed, Jul 27, 2016 at 6:30 AM, Hans de Goede wrote: Hi Tom, Here is the second sunxi pull-req for v2016.09, this adds some fixes to the h3 ethernet driver and disables it for now as it has too much issues. It also adds 1 new board. The

Re: [U-Boot] [PATCH 1/3] sunxi: Add EMAC ethernet0 alias for H3 dtsi

2016-07-26 Thread Hans de Goede
Hi, On 07/22/2016 12:16 PM, Chen-Yu Tsai wrote: The sunxi ethernet address generation code looks for ethernet[0-3] aliases to find ethernet controllers to generate MAC addresses for. Without a valid address, the driver fails to register. Signed-off-by: Chen-Yu Tsai Thanks I've merged the en

[U-Boot] Please pull u-boot-sunxi master

2016-07-26 Thread Hans de Goede
) Chen-Yu Tsai (3): sunxi: Add EMAC ethernet0 alias for H3 dtsi net: sun8i_emac: Do not configure AHB2 clock net: sun8i_emac: Drop redundant and incorrect setting of syscon register Hans de Goede (2): sunxi: Add defconfig and dts file for the Orange Pi PC Plus SBC

[U-Boot] [PATCH] sunxi: Disable sun8i emac driver

2016-07-26 Thread Hans de Goede
7bf59c90, 7bf59e10] CACHE: Misaligned operation at range [7bf5a478, 7bf5a5f8] DHCP client bound to address 10.42.43.80 (1009 ms) Cc: Chen-Yu Tsai Cc: Corentin LABBE Cc: Amit Singh Tomar Signed-off-by: Hans de Goede --- configs/orangepi_pc_defconfig | 1 - configs/pine64_plus_defconfig | 1 -

[U-Boot] [PATCH] sunxi: Add defconfig and dts file for the Orange Pi PC Plus SBC

2016-07-26 Thread Hans de Goede
. So add a new orangepi_pc_plus_defconfig to match. The added dts file matches the one submitted to the upstream kernel. Signed-off-by: Hans de Goede --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun8i-h3-orangepi-pc-plus.dts | 87

Re: [U-Boot] [PATCH] configs: Add more CONFIG_ARMV7_PSCI_NR_CPUS entries

2016-07-16 Thread Hans de Goede
Hi, On 15-07-16 21:32, Tom Rini wrote: The code had assumed 4 CPUS before and now we have this configurable. For now, set this to the previous default. Cc: Chander Kashyap Cc: Steve Rae Cc: Minkyu Kang Signed-off-by: Tom Rini Looks good to me: Reviewed-by: Hans de Goede Regards, Hans

[U-Boot] Please pull u-boot-sunxi master

2016-07-15 Thread Hans de Goede
ge in secure data section ARM: PSCI: Make psci_get_cpu_stack_top local to armv7/psci.S Hans de Goede (6): sunxi: Add support for multiple ethadrr-esses sunxi: Remove some unnecessary #ifdefs sunxi: Use BROM stored boot_media value to determine our boot-source sunxi: ora

Re: [U-Boot] Stepping down as sunxi u-boot custodian

2016-07-15 Thread Hans de Goede
Hi, On 04-07-16 14:57, Hans de Goede wrote: Hi All, Between my $dayjob, linux-sunxi, other foss projects and last but not least spending time with my wife and children I'm way too busy lately. So I've decided to seriously scale back my involvement in linux-sunxi, as such I'

Re: [U-Boot] [PATCH 1/4] sunxi: Use BROM stored boot_media value to determine our boot-source

2016-07-11 Thread Hans de Goede
Hi, On 10-07-16 10:17, Ian Campbell wrote: On Sat, 2016-07-09 at 22:22 +0200, Hans de Goede wrote: Now that we know that the BROM stores a value indicating the boot- source at the beginning of SRAM, use that instead of trying to recreate the BROM's boot probing. Signed-off-by: Hans de

Re: [U-Boot] [PATCH v2] sunxi: Add support for multiple ethadrr-esses

2016-07-11 Thread Hans de Goede
Hi, On 10-07-16 10:15, Ian Campbell wrote: On Sat, 2016-07-09 at 15:12 +0200, Hans de Goede wrote: Currently we fill ethaddr with a fixed unique address based on the SoCs serial (from the sid) to make sure that boards which use the integrated emac / gmac get a fixed mac rather then a random

Re: [U-Boot] Ethernet on Colombus (sun6i-a31-colombus)

2016-07-10 Thread Hans de Goede
Hi, On 05/19/2016 10:53 AM, Quentin Schulz wrote: Hi, I put U-Boot for the Colombus on an SD Card but could not make Ethernet work. In U-Boot v2015.10, v2016.01 and v2016.05, Ethernet port is not detected. In U-Boot v2016.03, the Ethernet port is detected but cannot be used. I get the followin

Re: [U-Boot] [U-BOOT][PATCH v2] net:Add EMAC driver for H3/A83T/A64 SoCs.

2016-07-09 Thread Hans de Goede
Hi, On 06-07-16 14:29, Amit Singh Tomar wrote: This patch add EMAC driver support for H3/A83T/A64 SoCs. Tested on Pine64(A64-External PHY) and Orangepipc(H3-Internal PHY). BIG Thanks to Andre for providing some of the DT code. Signed-off-by: Amit Singh Tomar Thank you, I've added this patch

[U-Boot] [PATCH 3/4] sunxi: Sync sun8i-h3-orangepi-plus.dts with upstream

2016-07-09 Thread Hans de Goede
This enables extra USB controllers which enable use of the 3th USB port on the new Orange Pi Plus 2E variant. Signed-off-by: Hans de Goede --- arch/arm/dts/sun8i-h3-orangepi-plus.dts | 127 +++- arch/arm/dts/sun8i-h3.dtsi | 10 +++ 2 files changed, 37

[U-Boot] [PATCH 4/4] sunxi: Add defconfig and dts file for the Orange Pi Lite SBC

2016-07-09 Thread Hans de Goede
The Orange Pi Lite SBC is a small H3 based SBC, with 512MB RAM, micro-sd slot, HDMI out, 2 USB-A connectors, 1 micro-USB connector, sdio attached rtl8189ftv wifi and an ir receiver. The dts file is identical to the one submitted to the upstream kernel. Signed-off-by: Hans de Goede --- arch/arm

[U-Boot] [PATCH 2/4] sunxi: orangepi_pc: Add support for eMMC found on the Orange Pi PC Plus

2016-07-09 Thread Hans de Goede
The Plus variant of the Orange Pi PC has an eMMC, add support for this. Note we are using the same u-boot defconfig / dts for both the regular Orange Pi PC as well as the Orange Pi PC Plus. Signed-off-by: Hans de Goede --- configs/orangepi_pc_defconfig | 2 ++ 1 file changed, 2 insertions

[U-Boot] [PATCH 1/4] sunxi: Use BROM stored boot_media value to determine our boot-source

2016-07-09 Thread Hans de Goede
Now that we know that the BROM stores a value indicating the boot-source at the beginning of SRAM, use that instead of trying to recreate the BROM's boot probing. Signed-off-by: Hans de Goede --- arch/arm/include/asm/arch-sunxi/mmc.h | 1 - arch/arm/mach-sunxi/board.c

[U-Boot] [PATCH v2] sunxi: Add support for multiple ethadrr-esses

2016-07-09 Thread Hans de Goede
. This commit changes the ethaddr setting code to check for ethernet%d aliases (as fdt_fixup_ethernet does) and set an ethaddr variable for all present aliases. Signed-off-by: Hans de Goede --- Changes in v2: -Only set ethaddr env variable for ethernet interfaces which have an ethernet%d alias in the

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-07-09 Thread Hans de Goede
Hi, On 09-07-16 15:05, Hans de Goede wrote: Currently we will already fill ethaddr with a fixed unique address based on the SoCs serial (from the sid) to make sure that boards which use the integrated emac / gmac get a fixed mac rather then a random one. On some boards (observed on 2 tablets

[U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-07-09 Thread Hans de Goede
not come with a fixed mac either, so also set eth1addr, so that dts files can set an ethernet1 alias to get mac-address and local-mac-address filled for dt nodes describing the wifi controller. Signed-off-by: Hans de Goede --- board/sunxi/board.c | 59

[U-Boot] [PATCH] sunxi: Remove some unnecessary #ifdefs

2016-07-09 Thread Hans de Goede
d-off-by: Hans de Goede --- board/sunxi/board.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 955a44f..9767310 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -20,12 +20,14 @@ #include #include #in

Re: [U-Boot] 2016.07 regression on Orange Pi PC

2016-07-09 Thread Hans de Goede
Hi, On 09-07-16 07:52, Peter Robinson wrote: It seems we've regressed with the Orange Pi PC for 2016.07 but I'm wondering with the PCSI bits whether the process has changed and I've missed the details of what's needed to flash u-boot. I just tried on my own Orange Pi PC with current master (wh

Re: [U-Boot] [RESEND PATCH] sunxi: mmc: increase status register polling rate for data transfers

2016-07-09 Thread Hans de Goede
Hi, On 08-07-16 12:40, Tobias Doerffel wrote: With a recent bunch of SD3.0 cards in our A20-based board we experienced data transfer rates of about 250 KiB/s instead of 10 MiB/s with previous cards from the same vendor (both 4 GB/class 10). By increasing status register polling rate from 1 kHz t

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-07-04 Thread Hans de Goede
Hi, On 04-07-16 09:20, Hongbo Zhang wrote: I said I would send a new iteration of this series, but there are code dependencies/conflicts with Chenyu's work, so I'd like to wait for a few more days to see his v2 sent out or even been merged. During this stage, any review comments are still apprec

[U-Boot] Stepping down as sunxi u-boot custodian

2016-07-04 Thread Hans de Goede
Hi All, Between my $dayjob, linux-sunxi, other foss projects and last but not least spending time with my wife and children I'm way too busy lately. So I've decided to seriously scale back my involvement in linux-sunxi, as such I'm going to step down as u-boot sunxi custodian. I've asked Ian if

[U-Boot] [PATCH 2/2] usb: dm: Make "usb info" use usb_for_each_root_dev()

2016-07-03 Thread Hans de Goede
re-probed something which only "usb reset" should do TL;DR: proper iterating over usb bus root devs is hard, use the helper for it. Reported-by: Bernhard Nortmann Signed-off-by: Hans de Goede --- cmd/usb.c | 31 ++- 1 file changed, 6 insertions(+), 25

Re: [U-Boot] [U-Boot, v1] dm: usb: Prevent NULL hub in usb_device_info()

2016-07-03 Thread Hans de Goede
Hi, On 02-07-16 23:13, Hans de Goede wrote: Hi, On 29-06-16 10:43, Bernhard Nortmann wrote: This patch modifies the usb_device_info() function to enumerate active USB hubs by iterating UCLASS_USB_HUB directly. The previous code used UCLASS_USB nodes instead and retrieved their first child

[U-Boot] [PATCH 1/2] usb: dm: Add a usb_for_each_root_dev() helper function

2016-07-03 Thread Hans de Goede
Iterating over usb-root devs and doing something for all of them is a bit tricky with dm, factor out the proven usb_show_tree() for this into a helper function. Signed-off-by: Hans de Goede --- cmd/usb.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cmd

Re: [U-Boot] sunxi: kernel crash on shutdown due to locked i2c bus depending on u-boot version

2016-07-03 Thread Hans de Goede
Hi, On 03-07-16 16:04, Karsten Merker wrote: Hello, I am experiencing a kernel panic on shutdown due to killing init on various Allwinner A20-based systems (e.g. Cubietruck and Lime2). Killing init in turn appears to be a result of a locked i2c bus. This only happens on shutdown, but not on reb

Re: [U-Boot] [PATCH 00/15] ARM: PSCI: Add secure stack and data sections

2016-07-03 Thread Hans de Goede
Hi, On 03-07-16 02:35, Chen-Yu Tsai wrote: Hi, On Sat, Jul 2, 2016 at 8:00 PM, Hans de Goede wrote: Hi, On 19-06-16 06:38, Chen-Yu Tsai wrote: Hi everyone, This is ARM PSCI improvements part 2. This series cleans up PSCI stack allocation and target PC storage by introducing a secure

Re: [U-Boot] [U-Boot, v1] dm: usb: Prevent NULL hub in usb_device_info()

2016-07-02 Thread Hans de Goede
Hi, On 29-06-16 10:43, Bernhard Nortmann wrote: This patch modifies the usb_device_info() function to enumerate active USB hubs by iterating UCLASS_USB_HUB directly. The previous code used UCLASS_USB nodes instead and retrieved their first child node, expecting it to be a hub. However, it did n

Re: [U-Boot] [U-Boot, 1/1] sunxi: Add support for A33-OLinuXino board

2016-07-02 Thread Hans de Goede
Hi, Has the dts file been submitted to the upstream kernel ? If not please do so. Also please provide a short description of the board in the commit msg, and add a line like "The dts file matches the one submitted to the upstream kernel" the commit msg. Last but not least, please add a board/su

[U-Boot] Please pull u-boot-sunxi master

2016-07-02 Thread Hans de Goede
://git.denx.de/u-boot-sunxi.git master for you to fetch changes up to d2a6af052845f671204ff978bc70bcfba8767cc9: sunxi: Add defconfig and DTS file for Allwinner R16 EVB (Parrot) (2016-07-02 13:53:15 +0200) Hans de Goede (1): sunxi: spl

Re: [U-Boot] [PATCH 00/15] ARM: PSCI: Add secure stack and data sections

2016-07-02 Thread Hans de Goede
Hi, On 19-06-16 06:38, Chen-Yu Tsai wrote: Hi everyone, This is ARM PSCI improvements part 2. This series cleans up PSCI stack allocation and target PC storage by introducing a secure stack section and a secure data section. I've added this series to my personal repo sunxi-wip branch for test

Re: [U-Boot] [PATCH] sunxi: Add defconfig and DTS file for Allwinner R16 EVB (Parrot)

2016-07-02 Thread Hans de Goede
Hi, On 24-06-16 14:33, Quentin Schulz wrote: The Parrot Board is an evaluation board with an Allwinner R16 (assumed to be close to an Allwinner A33), 4GB of eMMC, 512MB of RAM, USB host and OTG, a WiFi/Bluetooth combo chip, a micro SD Card reader, 2 controllable buttons, an LVDS port with separa

Re: [U-Boot] [PATCH] SPL: sunxi: don't force .BSS into DRAM

2016-07-02 Thread Hans de Goede
Hi, On 30-06-16 17:24, Simon Glass wrote: Hi, On 30 June 2016 at 03:00, Hans de Goede wrote: Hi Andre, On 30-06-16 02:25, Andre Przywara wrote: Probably due to some (ill-founded) fear of a large BSS all sunxi boards forced their SPL BSS section into DRAM. This only works if there is no

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-30 Thread Hans de Goede
Hi, On 30-06-16 15:52, Ian Campbell wrote: On Thu, 2016-06-30 at 13:15 +0200, Hans de Goede wrote: Hi, On 30-06-16 12:50, Ian Campbell wrote: On Sun, 2016-06-26 at 13:54 +0200, Hans de Goede wrote: Currently we will already fill ethaddr with a fixed unique address based on the SoCs serial

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-30 Thread Hans de Goede
Hi, On 30-06-16 12:50, Ian Campbell wrote: On Sun, 2016-06-26 at 13:54 +0200, Hans de Goede wrote: Currently we will already fill ethaddr with a fixed unique address based on the SoCs serial (from the sid) to make sure that boards which use the integrated emac / gmac get a fixed mac rather

Re: [U-Boot] [UBOOT PATCH] usb: ehci-hcd: Fix crash when rootdev not initialized

2016-06-27 Thread Hans de Goede
Hi, On 27-06-16 10:59, Siva Durga Prasad Paladugu wrote: This patch fixes the issue on zynq USB failure with DM when rootdev is not initialized. This variable is initalized to zero in non driver model case but not in DM. Signed-off-by: Siva Durga Prasad Paladugu --- - Tested on Zynq ZC702 boar

[U-Boot] [PATCH] sunxi: spl: Fix DRAM info printing

2016-06-26 Thread Hans de Goede
The switch to simple_printf was causing the SPL dram info to show as: DRAM: u MiB This fixes this by switching from %lu to %d for printing the DRAM size. Signed-off-by: Hans de Goede --- board/sunxi/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sunxi

[U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-26 Thread Hans de Goede
not come with a fixed mac either, so also set eth1addr, so that dts files can set an ethernet1 alias to get mac-address and local-mac-address filled for dt nodes describing the wifi controller. Signed-off-by: Hans de Goede --- board/sunxi/board.c | 12 1 file changed, 12 insertions

[U-Boot] [PATCH v3] Kconfig: Add a new DISTRO_DEFAULTS Kconfig option

2016-06-20 Thread Hans de Goede
de Goede --- Changes in v2: -Use "default y if ARCH_SUNXI" instead of selecting DISTRO_DEFAULT for sunxi -Document how to enable DISTRO_DEFAULT in doc/README.distro Changes in v3: -Rebase on latest master --- Kconfig | 17 + arch/arm/Kconfig | 9

[U-Boot] Please pull u-boot-sunxi master

2016-06-20 Thread Hans de Goede
sunxi: Add base address for GIC sunxi: Add PSCI implementation in C Hans de Goede (5): tinyprintf: Add vprintf implementation sunxi: Select USE_TINY_PRINTF sunxi: Add defconfig and dts file for Polaroid MID2407PXE03 tablet sunxi: Add defconfig and dts file for

Re: [U-Boot] [ANN] U-Boot v2016.07-rc2 released

2016-06-20 Thread Hans de Goede
Hi, On 20-06-16 17:26, Tom Rini wrote: Hey all, It's release day and v2016.07-rc2 is out and on time. I expect to do -rc3 in another two weeks. I've updated git and the tarballs are also up now. We've gotten a number of PRs in with the sort of changes that should go in, in. Going forward no

Re: [U-Boot] [linux-sunxi] Re: Auto-detecting touchscreen controller and dealing with hw configuration differences on q8 tablets

2016-06-20 Thread Hans de Goede
Hi, On 20-06-16 14:22, Pantelis Antoniou wrote: Hi Hans, On Jun 20, 2016, at 14:03 , Hans de Goede wrote: Hi, On 20-06-16 11:27, Pantelis Antoniou wrote: Yes, it’s quite possible. You can even have stacked overlays. Ok, is there any example code how to change an overlay before

Re: [U-Boot] Auto-detecting touchscreen controller and dealing with hw configuration differences on q8 tablets

2016-06-20 Thread Hans de Goede
Hi, On 20-06-16 11:27, Pantelis Antoniou wrote: Hi Hans, I’m going to commend only on the overlay related parts since I’m not I get all the nuances right. No problem and thanks for the answer anyways! On Jun 19, 2016, at 14:06 , Hans de Goede wrote: 2) Give the user some way to

[U-Boot] Auto-detecting touchscreen controller and dealing with hw configuration differences on q8 tablets

2016-06-19 Thread Hans de Goede
Hi All, The sunxi support in the kernel supports (amongst many other devices) the quite popular low cost q8 form factor 7" tablets. These are all based on the same case, with an allwinner SoC inside (there are non allwinner versions, but those are out of scope) and typically all based on the

[U-Boot] Auto-detecting touchscreen controller and dealing with hw configuration differences on q8 tablets

2016-06-19 Thread Hans de Goede
Hi All, The sunxi support in the kernel supports (amongst many other devices) the quite popular low cost q8 form factor 7" tablets. These are all based on the same case, with an allwinner SoC inside (there are non allwinner versions, but those are out of scope) and typically all based on the sa

Re: [U-Boot] [PATCH 1/1] sunxi: Add support for A33-OLinuXino board

2016-06-17 Thread Hans de Goede
Hi, On 17-06-16 15:46, stefan.mavrod...@gmail.com wrote: From: Stefan Mavrodiev Thanks, can you please add a proper commit msg, as well as update board/sunxi/MAINTAINERS with an entry for this board. Last but not least, have you also submitted the dts file to the upstream kernel? Regards,

Re: [U-Boot] [PATCH] configs: Re-sync BOOTDELAY changes

2016-06-15 Thread Hans de Goede
Hi, On 06/14/2016 04:24 PM, Tom Rini wrote: With updated moveconfig.py and an better default, re-generate the migration of BOOTDELAY to the defconfig. Signed-off-by: Tom Rini Series looks good to me, thank you for fixing this: Reviewed-by: Hans de Goede Regards, Hans --- configs

Re: [U-Boot] [PATCH v3 0/6] sunxi: Add NAND controller driver

2016-06-15 Thread Hans de Goede
have on the CHIP. The patches simply increase MAX_OOB_SIZE and MAX_ECCPOS values to support NANDs with 1664 OOB bytes. Best Regards, Boris This series looks fine from a sunxi pov and is: Acked-by: Hans de Goede Since this touches both generic nand and sunxi specific files, I suggest tha

Re: [U-Boot] [PATCH v3 11/11] sunxi: Add PSCI implementation in C

2016-06-13 Thread Hans de Goede
Hi, On 13-06-16 12:58, Chen-Yu Tsai wrote: On Mon, Jun 13, 2016 at 5:49 PM, Hans de Goede wrote: Hi, On 13-06-16 04:50, Chen-Yu Tsai wrote: On Fri, Jun 10, 2016 at 9:40 PM, Hans de Goede wrote: Hi, On 07-06-16 04:54, Chen-Yu Tsai wrote: To make the PSCI backend more maintainable and

Re: [U-Boot] [PATCH v2 0/5] Urgent fixes for misconverted CONFIG_BOOTDELAY

2016-06-13 Thread Hans de Goede
Hi, On 13-06-16 15:07, Wolfgang Denk wrote: Dear Tom, In message <20160613124715.GT11619@bill-the-cat> you wrote: BTW, would you consider changing the default of BOOTDELAY from 0 to 3 ? I'm going to move it over to 2 as I want to encourage people in general to move over to the distro defau

Re: [U-Boot] [PATCH v3 11/11] sunxi: Add PSCI implementation in C

2016-06-13 Thread Hans de Goede
Hi, On 13-06-16 04:50, Chen-Yu Tsai wrote: On Fri, Jun 10, 2016 at 9:40 PM, Hans de Goede wrote: Hi, On 07-06-16 04:54, Chen-Yu Tsai wrote: To make the PSCI backend more maintainable and easier to port to newer SoCs, rewrite the current PSCI implementation in C. Some inline assembly bits

Re: [U-Boot] [PATCH] sunxi: Revert "sunxi: make SoC variant choice mandatory"

2016-06-12 Thread Hans de Goede
Hi, On 12-06-16 14:25, Ian Campbell wrote: On Sun, 2016-06-12 at 13:03 +0200, Hans de Goede wrote: This reverts commit 1a5f0de08e86("sunxi: make SoC variant choice mandatory"). With the optional marking in the Kconfig "make savedefconfig" will drop CONFIG_MACH_SUN4I=y fro

[U-Boot] [PATCH] sunxi: Add defconfig and dts file for inet86dz board

2016-06-12 Thread Hans de Goede
rging port. The dts file this commit adds is identical to the one submitted to the upstream kernel. Signed-off-by: Hans de Goede --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun8i-a23-inet86dz.dts | 293 board/sunxi/MAINTAINERS | 1

<    1   2   3   4   5   6   7   8   9   10   >