[U-Boot] [PATCH 3/4] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-09 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- board/zipitz2/zipitz2.c |8 include/configs/zipitz2.h |5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c index b093c2f..4075fb6 100644 --- a/board

[U-Boot] [PATCH 2/4] zipitz2: enable pxa27x_mkp driver

2012-01-09 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- include/configs/zipitz2.h | 83 ++--- 1 files changed, 78 insertions(+), 5 deletions(-) diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h index 26204af..5560bef 100644 --- a/include

[U-Boot] [PATCH 1/4] PXA: PXA27x Matrix keypad driver

2012-01-09 Thread Vasily Khoruzhick
From: Marek Vasut marek.va...@gmail.com Signed-off-by: Marek Vasut marek.va...@gmail.com Signed-off-by: Vasily Khoruzhick anars...@gmail.com [vasily: adapted Marek's old version for newer u-boot] --- arch/arm/include/asm/arch-pxa/pxa-regs.h |6 +- drivers/input/Makefile

[U-Boot] [PATCH 4/4] zipitz2: fix boot issue introduced by PXA low level init rework

2012-01-09 Thread Vasily Khoruzhick
CONFIG_SYS_INIT_SP_ADDR points to RAM, but it's used before DRAM controller init. Fix it by setting CONFIG_SYS_INIT_SP_ADDR to SRAM Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- include/configs/zipitz2.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include

[U-Boot] [PATCH v2 1/4] PXA: PXA27x Matrix keypad driver

2012-01-11 Thread Vasily Khoruzhick
From: Marek Vasut marek.va...@gmail.com Signed-off-by: Marek Vasut marek.va...@gmail.com Signed-off-by: Vasily Khoruzhick anars...@gmail.com [vasily: adapted Marek's old version for newer u-boot] --- v2: use struct-based access to regs, minor cleanup arch/arm/include/asm/arch-pxa/pxa-regs.h

[U-Boot] [PATCH v2 2/4] zipitz2: enable pxa27x_mkp driver

2012-01-11 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: remove usbtty stuff from EXTRA_ENV_SETTINGS include/configs/zipitz2.h | 82 ++--- 1 files changed, 77 insertions(+), 5 deletions(-) diff --git a/include/configs/zipitz2.h b/include/configs

[U-Boot] [PATCH v2 3/4] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-11 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: mmcinfo is necessary to scan card for partitions board/zipitz2/zipitz2.c |8 include/configs/zipitz2.h |5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2

[U-Boot] [PATCH v2 4/4] zipitz2: fix boot issue introduced by PXA low level init rework

2012-01-11 Thread Vasily Khoruzhick
CONFIG_SYS_INIT_SP_ADDR points to RAM, but it's used before DRAM controller init. Fix it by setting CONFIG_SYS_INIT_SP_ADDR to SRAM Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: no changes include/configs/zipitz2.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[U-Boot] [PATCH v3 2/4] zipitz2: enable pxa27x_mkp driver

2012-01-12 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: remove usbtty stuff from EXTRA_ENV_SETTINGS v3: shift+backspace should produce backspace code include/configs/zipitz2.h | 82 ++--- 1 files changed, 77 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH v3 3/4] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-12 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: mmcinfo is necessary to scan card for partitions v3: replace mmcinfo with mmc rescan board/zipitz2/zipitz2.c |8 include/configs/zipitz2.h | 14 -- 2 files changed, 16 insertions(+), 6 deletions(-) diff

Re: [U-Boot] [PATCH v3 1/4] PXA: PXA27x Matrix keypad driver

2012-01-13 Thread Vasily Khoruzhick
On Fri, 2012-01-13 at 13:41 +0100, Marek Vasut wrote: +#define KPDK_DK1 (0x1 1) +#define KPDK_DK0 (0x1 0) Drop those two spaces here Two spaces? It's tabs! Btw, it's for good looking formatting and it was taken from pxa-regs.h. I'd like to preserve it like it is. +static

Re: [U-Boot] [PATCH v3 3/4] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-13 Thread Vasily Khoruzhick
On Fri, 2012-01-13 at 13:35 +0100, Marek Vasut wrote: + if mmc rescan 0 ext2load mmc 0 0xa000 boot/uboot.script ; \ Why mmc rescan 0 ? Because otherwise it does nothing to detect card and scan for partitions? 0 is mmc device index. Regards Vasily

[U-Boot] [PATCH v4 2/3] zipitz2: enable pxa27x_mkp driver

2012-01-14 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: remove usbtty stuff from EXTRA_ENV_SETTINGS v3: shift+backspace should produce backspace code v4: no change include/configs/zipitz2.h | 82 ++--- 1 files changed, 77 insertions(+), 5 deletions

[U-Boot] [PATCH v4 1/3] PXA: PXA27x Matrix keypad driver

2012-01-14 Thread Vasily Khoruzhick
From: Marek Vasut marek.va...@gmail.com Signed-off-by: Marek Vasut marek.va...@gmail.com Signed-off-by: Vasily Khoruzhick anars...@gmail.com [vasily: adapted Marek's old version for newer u-boot, fixed multiple keypresses handling] --- v2: use struct-based access to regs, minor cleanup

[U-Boot] [PATCH v4 3/3] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-14 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: mmcinfo is necessary to scan card for partitions v3: replace mmcinfo with mmc rescan v4: mmc rescan does not take extra argument in recent u-boot, so remove it. board/zipitz2/zipitz2.c |8 include/configs/zipitz2.h

[U-Boot] [PATCH v5 1/3] PXA: PXA27x Matrix keypad driver

2012-01-24 Thread Vasily Khoruzhick
From: Marek Vasut marek.va...@gmail.com Signed-off-by: Marek Vasut marek.va...@gmail.com Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: use struct-based access to regs, minor cleanup v3: fix multiple keypresses handling, minor cleanup v4: another minor cleanup v5: fix indentation

[U-Boot] [PATCH v5 2/3] zipitz2: enable pxa27x_mkp driver

2012-01-24 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: remove usbtty stuff from EXTRA_ENV_SETTINGS v3: shift+backspace should produce backspace code v4: no change v5: prettify CONFIG_PXA27X_MKP_KEYMAP include/configs/zipitz2.h | 82 ++--- 1 files

[U-Boot] [PATCH v5 3/3] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-24 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: mmcinfo is necessary to scan card for partitions v3: replace mmcinfo with mmc rescan v4: mmc rescan does not take extra argument in recent u-boot, so remove it. v5: remove spaces from CONFIG_BOOTCOMMAND board/zipitz2/zipitz2.c

[U-Boot] [PATCH v6 1/3] PXA: PXA27x Matrix keypad driver

2012-01-25 Thread Vasily Khoruzhick
From: Marek Vasut marek.va...@gmail.com Signed-off-by: Marek Vasut marek.va...@gmail.com Signed-off-by: Vasily Khoruzhick anars...@gmail.com [vasily: adapted Marek's old version for newer u-boot, fixed multiple keypresses handling] --- v2: use struct-based access to regs, minor cleanup

[U-Boot] [PATCH v6 2/3] zipitz2: enable pxa27x_mkp driver

2012-01-25 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: remove usbtty stuff from EXTRA_ENV_SETTINGS v3: shift+backspace should produce backspace code v4: no change v5: prettify CONFIG_PXA27X_MKP_KEYMAP v6: no change include/configs/zipitz2.h | 82

[U-Boot] [PATCH v6 3/3] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-25 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: mmcinfo is necessary to scan card for partitions v3: replace mmcinfo with mmc rescan v4: mmc rescan does not take extra argument in recent u-boot, so remove it. v5: remove spaces from CONFIG_BOOTCOMMAND v6: no change board/zipitz2

Re: [U-Boot] [PATCH v6 1/3] PXA: PXA27x Matrix keypad driver

2012-01-25 Thread Vasily Khoruzhick
2012/1/25 Marek Vasut marek.va...@gmail.com: From: Marek Vasut marek.va...@gmail.com Signed-off-by: Marek Vasut marek.va...@gmail.com Signed-off-by: Vasily Khoruzhick anars...@gmail.com [vasily: adapted Marek's old version for newer u-boot,          fixed multiple keypresses handling] Fine

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-20 Thread Vasily Khoruzhick
2012/4/20 Marek Vasut ma...@denx.de: Which doesn't matter, either way you need stack ... and you can have the stack in cache ;-) s3c24xx has 4kb of SRAM (steppingstone), you can use it for stack Btw, using cache for stack looks like awful hack to me. Regards Vasily

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-21 Thread Vasily Khoruzhick
2012/4/21 Marek Vasut ma...@denx.de:  I agree with Vasily Khoruzhick, it looks like a hack Please, bother to read the CPU manual and also the ARM Architecture reference manual before you start with such a wild accusations. Let me explain my point of view. Doing SDRAM init very early (even

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-21 Thread Vasily Khoruzhick
2012/4/21 Ilya Averyanov averyanovin+ub...@gmail.com: No have problem. Available only if you boot from NOR flash. If you boot from the NAND 4kb of SRAM (steppingstone) not available. For NAND boot it's mapped at 0x0 For NOR boot it's mapped at 0x4000 NAND controller uses it for booting

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440)

2012-04-21 Thread Vasily Khoruzhick
2012/4/21 Gabriel Huau cont...@huau-gabriel.fr: SteppingStone is available ONLY in NAND boot :) and not available in NOR boot. It's available at 0x4000 for NOR boot. Check datasheet ;) Regards Vasily ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] U-Boot 2012.10 PXA270 - saveenv / Kernel issue

2012-11-11 Thread Vasily Khoruzhick
On Sun, Nov 11, 2012 at 10:10 PM, Andreas Puls a...@gmx.net wrote: Hello everyone, i have a problem with the latest stable U-Boot 2012.10 and a Toradex Colibri PXA270 V2.4a Board and a upating the kernel. The problem apears when i erase the hole NOR Flash, copy the uboot and the uImage.

[U-Boot] [PATCH 07/11] pxa: start.S: enable SRAM clock

2016-03-20 Thread Vasily Khoruzhick
SRAM is used for early stack, but kernel disables its clock on suspend. Re-enable SRAM clock on startup, otherwise u-boot crashes on resume from suspend. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/cpu/pxa/start.S | 10 +- 1 file changed, 9 insertions

[U-Boot] [PATCH 08/11] pxa: add support for D- and I- caches

2016-03-20 Thread Vasily Khoruzhick
Tested with OHCI and pxafb drivers - no issues found Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/cpu/pxa/Makefile| 1 + arch/arm/cpu/pxa/cache.c | 62 arch/arm/cpu/pxa/pxa2xx.c| 10 +++ include/confi

[U-Boot] [PATCH 01/11] zipitz2: restore board support

2016-03-20 Thread Vasily Khoruzhick
zipitz2 was dropped in 49d8899ba9c26335e4a12e01c18028fc5e40c796 Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/Kconfig | 5 ++ board/zipitz2/Kconfig | 9 ++ board/zipitz2/MAINTAINERS | 6 ++ board/zipitz2/Makefile| 10 +++ board/zipitz2/zip

[U-Boot] [PATCH 03/11] pxa_lcd: invert colors for Zipit Z2 to get white on black palette

2016-03-20 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/pxa_lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 1809fc6..ba4f897 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa

[U-Boot] [PATCH 02/11] zipitz2: enable LCD rotation

2016-03-20 Thread Vasily Khoruzhick
z2's screen is rotated by 270 degrees Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/pxa_lcd.c | 1 + include/configs/zipitz2.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 2799425..1809fc6

[U-Boot] [PATCH 04/11] zipitz2: enable libfdt

2016-03-20 Thread Vasily Khoruzhick
zipitz2 supports DT boot since linux-4.4 (not mainlined yet) Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- include/configs/zipitz2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h index 169eaf3..f69b52e 100644 --- a/i

[U-Boot] [PATCH 05/11] pxa-common: pxa27x has 3 OHCI ports

2016-03-20 Thread Vasily Khoruzhick
3rd port can be used as a device or host. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- include/configs/pxa-common.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/pxa-common.h b/include/configs/pxa-common.h index f0ecc34..4c1c2c7 100644 --- a/include/c

[U-Boot] [PATCH 10/11] zipitz2: enable caches

2016-03-20 Thread Vasily Khoruzhick
It speeds up loading kernel from SD or USB a lot. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- board/zipitz2/zipitz2.c | 4 include/configs/zipitz2.h | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c

[U-Boot] [PATCH 06/11] zipitz2: enable USB host support

2016-03-20 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- board/zipitz2/zipitz2.c | 21 + include/configs/zipitz2.h | 1 + 2 files changed, 22 insertions(+) diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c index 8fa1261..aefbeee 100644 --- a/board/z

[U-Boot] [PATCH 09/11] pxa_lcd: make driver cache-aware

2016-03-20 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/pxa_lcd.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index ba4f897..d64c25b 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa

[U-Boot] [PATCH 11/11] cfi_flash: return device into read array mode after reading status

2016-03-20 Thread Vasily Khoruzhick
Otherwise flash remains in read status mode and it's not possible to access data on flash. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/mtd/cfi_flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 3

Re: [U-Boot] [PATCH 03/11] pxa_lcd: invert colors for Zipit Z2 to get white on black palette

2016-03-20 Thread Vasily Khoruzhick
On Sun, Mar 20, 2016 at 6:48 PM, Marek Vasut <ma...@denx.de> wrote: > On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: >> Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> > > What happens if you display picture ? Will the colors be complete mess ? Yes, inverted

Re: [U-Boot] [PATCH 11/11] cfi_flash: return device into read array mode after reading status

2016-03-21 Thread Vasily Khoruzhick
On Mon, Mar 21, 2016 at 9:19 AM, Stefan Roese <s...@denx.de> wrote: > Hi Vasily, Hi Stefan, > On 21.03.2016 02:54, Marek Vasut wrote: >> On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: >>> Otherwise flash remains in read status mode and it's not possible

[U-Boot] [RESEND PATCH 3/3] dts: sunxi: add PWM node for sun50i

2017-09-18 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/dts/sun50i-a64.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/sun50i-a64.dtsi b/arch/arm/dts/sun50i-a64.dtsi index 65a344d9ce..14e94bf00e 100644 --- a/arch/arm/dts/sun50i-a64.dtsi +++ b/arch/a

[U-Boot] [RESEND PATCH 1/3] pwm: sunxi: add support for PWM found on Allwinner A64 and H3

2017-09-18 Thread Vasily Khoruzhick
This commit adds basic support for PWM found on Allwinner A64 and H3 Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/include/asm/arch-sunxi/pwm.h | 12 +++ arch/arm/mach-sunxi/board.c| 11 +++ drivers/pwm/K

[U-Boot] [RESEND PATCH 2/3] video: pwm_backlight: make regulator optional

2017-09-18 Thread Vasily Khoruzhick
u-boot doesn't have dummy regulators, so pwm_backlight probe will fail if regulator is missing. Make it optional to get this driver working on platforms where there's no backlight regultor. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/pwm_backlight.

Re: [U-Boot] [PATCH 1/5] dm: video: bridge: add operation to read EDID

2017-09-18 Thread Vasily Khoruzhick
Please discard this, I forgot to include maintainers in CC. Will resend. On Sun, Sep 17, 2017 at 8:21 PM, Vasily Khoruzhick <anars...@gmail.com> wrote: > Bridge may have ability to read EDID from panel that is connected to it, > so add an operation to read EDID. > > Sig

Re: [U-Boot] [PATCH 1/3] pwm: sunxi: add support for PWM found on Allwinner A64 and H3

2017-09-18 Thread Vasily Khoruzhick
Please discard this, I forgot to include maintainers in CC. Will resend. On Sun, Sep 17, 2017 at 8:28 PM, Vasily Khoruzhick <anars...@gmail.com> wrote: > This commit adds basic support for PWM found on Allwinner A64 and H3 > > Signed-off-by: Vasily Khoruzhick <anars...@gmail.

[U-Boot] [RESEND PATCH 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-18 Thread Vasily Khoruzhick
Extend DE2 driver with LCD support Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/mach-sunxi/Kconfig | 2 +- drivers/video/sunxi/Makefile| 2 +- drivers/video/sunxi/sunxi_de2.c | 17 + drivers/video/sunxi/sunxi_lcd.c

[U-Boot] [RESEND PATCH 3/5] video: add anx6345 DM driver

2017-09-18 Thread Vasily Khoruzhick
This is a eDP bridge similar to ANX9804, it allows to connect eDP panels to the chips that can output only parallel signal Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/bridge/Kconfig | 8 + drivers/video/bridge/Makefile | 1 + drivers/video/bridge/anx

[U-Boot] [RESEND PATCH 1/5] dm: video: bridge: add operation to read EDID

2017-09-18 Thread Vasily Khoruzhick
Bridge may have ability to read EDID from panel that is connected to it, so add an operation to read EDID. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/bridge/video-bridge-uclass.c | 10 ++ include/video_bridge.h | 20 +

[U-Boot] [RESEND PATCH 4/5] sunxi: video: split out PLL code

2017-09-18 Thread Vasily Khoruzhick
It will be reused in new DM LCD driver. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/include/asm/arch-sunxi/lcdc.h | 2 + drivers/video/sunxi/lcdc.c | 117 ++- drivers/video/sunxi/sunxi_display.c

[U-Boot] [RESEND PATCH 2/5] video: anx9804: split out registers definitions into a separate header

2017-09-18 Thread Vasily Khoruzhick
This header will be used in anx6345 driver Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/anx9804.c | 54 +-- include/anx98xx-edp.h | 98 + 2 files changed, 99 insertions(+), 53 del

Re: [U-Boot] [RESEND PATCH 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-19 Thread Vasily Khoruzhick
On Tue, Sep 19, 2017 at 1:33 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Sep 18, 2017 at 10:04:21PM -0700, Vasily Khoruzhick wrote: >> Extend DE2 driver with LCD support > > (All) your commit messages could use a bit more details. OK, will add in v2.

[U-Boot] [PATCH v2 1/3] pwm: sunxi: add support for PWM found on Allwinner A64 and H3

2017-09-21 Thread Vasily Khoruzhick
This commit adds basic support for PWM found on Allwinner A64 and H3 It can be used for pwm_backlight driver (e.g. for Pinebook) Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - move pinmux config into enable function to make driver more friendly to the boards with et

[U-Boot] [PATCH v3 0/3] sunxi: add PWM driver for H3 and A64

2017-09-21 Thread Vasily Khoruzhick
This series introduces a PWM driver for Allwinner H3 and A64 and makes some adjustments to pwm_backlight driver that are neccessary to get backlight working on Pinebook. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v2 2/3] video: pwm_backlight: make regulator optional

2017-09-21 Thread Vasily Khoruzhick
u-boot doesn't have dummy regulators, so pwm_backlight probe will fail if regulator is missing. Make it optional to get this driver working on platforms where there's no backlight regultor. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - no changes drivers/video/pwm_backl

[U-Boot] [PATCH v2 3/3] dts: sunxi: add PWM node for sun50i

2017-09-21 Thread Vasily Khoruzhick
Add PWM definition to sun50i-a64.dtsi - it's compatible with PWM found on H3 Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - drop 'sun50i-a64-pwm' compatible string and use 'sun8i-h3-pwm' instead, since A64 PWM is compatible with one on H3 arch/arm/dts/sun50i-a64.dt

[U-Boot] [PATCH v2 0/5] sunxi: video: add DE2 LCD and ANX6345 drivers

2017-09-21 Thread Vasily Khoruzhick
This series adds drivers that are necessary to get LCD working on Pinebook: - ANX6345 eDP bridge driver that allows to connect eDP panels to SoCs that have parallel LCD interface - DE2 LCD driver for Allwinner A64. Similar hardware is present in V3s and R40, but is not supported by this

[U-Boot] [PATCH v2 4/5] sunxi: video: split out PLL configuration code

2017-09-21 Thread Vasily Khoruzhick
It will be reused in new DM LCD driver. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - no changes arch/arm/include/asm/arch-sunxi/lcdc.h | 2 + drivers/video/sunxi/lcdc.c | 117 ++- drivers/video/sunxi/sunxi_display.c

[U-Boot] [PATCH v2 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-21 Thread Vasily Khoruzhick
Extend DE2 driver with LCD support. Tested on Pinebook which is based on A64 and has ANX6345 eDP bridge with eDP panel connected to it. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - drop redundant clock_set_pll10() call - fallback to timings from DT if reading EDI

[U-Boot] [PATCH v2 3/5] video: add anx6345 DM driver

2017-09-21 Thread Vasily Khoruzhick
This is a eDP bridge similar to ANX9804, it allows to connect eDP panels to the chips that can output only parallel signal Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - no changes drivers/video/bridge/Kconfig | 8 + drivers/video/bridge/Makefile | 1 + drivers

[U-Boot] [PATCH v2 2/5] video: anx9804: split out registers definitions into a separate header

2017-09-21 Thread Vasily Khoruzhick
This header will be used in anx6345 driver Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - no changes drivers/video/anx9804.c | 54 +-- include/anx98xx-edp.h | 98 + 2 files changed, 99 insertions(

[U-Boot] [PATCH v2 1/5] dm: video: bridge: add operation to read EDID

2017-09-21 Thread Vasily Khoruzhick
Add an operation to read EDID, since bridge may have ability to read EDID from the panel that is connected to it, for example LCD<->eDP bridge. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- v2: - no changes drivers/video/bridge/video-bridge-uclass.c | 10 +++

Re: [U-Boot] [RESEND PATCH 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-20 Thread Vasily Khoruzhick
Hi, I did few tests, see results inline. On Tue, Sep 19, 2017 at 12:00 PM, Vasily Khoruzhick <anars...@gmail.com> wrote: > On Tue, Sep 19, 2017 at 1:33 AM, Maxime Ripard > <maxime.rip...@free-electrons.com> wrote: >> On Mon, Sep 18, 2017 at 10:04:21PM -0700, Vasily Khor

Re: [U-Boot] [PATCH v3 0/3] sunxi: add PWM driver for H3 and A64

2017-09-21 Thread Vasily Khoruzhick
Typo in cover letter subject, it's actually v2 series. On Wed, Sep 20, 2017 at 11:07 PM, Vasily Khoruzhick <anars...@gmail.com> wrote: > This series introduces a PWM driver for Allwinner H3 and A64 and makes > some adjustments to pwm_backlight driver that are neccessary to get > ba

[U-Boot] [PATCH 2/5] video: anx9804: split out registers definitions into a separate header

2017-09-17 Thread Vasily Khoruzhick
This header will be used in anx6345 driver Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/anx9804.c | 54 +-- include/anx98xx-edp.h | 98 + 2 files changed, 99 insertions(+), 53 del

[U-Boot] [PATCH 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-17 Thread Vasily Khoruzhick
Extend DE2 driver with LCD support Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/mach-sunxi/Kconfig | 2 +- drivers/video/sunxi/Makefile| 2 +- drivers/video/sunxi/sunxi_de2.c | 17 + drivers/video/sunxi/sunxi_lcd.c

[U-Boot] [PATCH 1/3] pwm: sunxi: add support for PWM found on Allwinner A64 and H3

2017-09-17 Thread Vasily Khoruzhick
This commit adds basic support for PWM found on Allwinner A64 and H3 Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/include/asm/arch-sunxi/pwm.h | 12 +++ arch/arm/mach-sunxi/board.c| 11 +++ drivers/pwm/K

[U-Boot] [PATCH 2/3] video: pwm_backlight: make regulator optional

2017-09-17 Thread Vasily Khoruzhick
u-boot doesn't have dummy regulators, so pwm_backlight probe will fail if regulator is missing. Make it optional to get this driver working on platforms where there's no backlight regultor. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/pwm_backlight.

[U-Boot] [PATCH 3/3] dts: sunxi: add PWM node for sun50i

2017-09-17 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/dts/sun50i-a64.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/sun50i-a64.dtsi b/arch/arm/dts/sun50i-a64.dtsi index 65a344d9ce..14e94bf00e 100644 --- a/arch/arm/dts/sun50i-a64.dtsi +++ b/arch/a

[U-Boot] [PATCH 3/5] video: add anx6345 DM driver

2017-09-17 Thread Vasily Khoruzhick
This is a eDP bridge similar to ANX9804, it allows to connect eDP panels to the chips that can output only parallel signal Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/bridge/Kconfig | 8 + drivers/video/bridge/Makefile | 1 + drivers/video/bridge/anx

[U-Boot] [PATCH 4/5] sunxi: video: split out PLL code

2017-09-17 Thread Vasily Khoruzhick
It will be reused in new DM LCD driver. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/include/asm/arch-sunxi/lcdc.h | 2 + drivers/video/sunxi/lcdc.c | 117 ++- drivers/video/sunxi/sunxi_display.c

[U-Boot] [PATCH 1/5] dm: video: bridge: add operation to read EDID

2017-09-17 Thread Vasily Khoruzhick
Bridge may have ability to read EDID from panel that is connected to it, so add an operation to read EDID. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/bridge/video-bridge-uclass.c | 10 ++ include/video_bridge.h | 20 +

Re: [U-Boot] [RESEND PATCH 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-22 Thread Vasily Khoruzhick
After discussing it with Maxime in IRC I decided to wait till pinctrl driver for sunxi is ready. Please kindly disregard this series. Regards, Vasily On Fri, Sep 22, 2017 at 7:44 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Fri, Sep 22, 2017 at 04:42:24AM +000

Re: [U-Boot] [RESEND PATCH 3/5] video: add anx6345 DM driver

2017-10-05 Thread Vasily Khoruzhick
Hi André, On Thu, Oct 5, 2017 at 11:44 AM, André Przywara <andre.przyw...@arm.com> wrote: > On 19/09/17 06:04, Vasily Khoruzhick wrote: >> This is a eDP bridge similar to ANX9804, it allows to connect eDP panels >> to the chips that can output only parallel signal >

[U-Boot] [PATCH] sunxi: video: HDMI: split VSYNC and HSYNC polarity settings

2017-11-28 Thread Vasily Khoruzhick
These are actually different bits, and since some monitors (Benq BL2420PT) have modes with different HSYNC and VSYNC polarity, we should set them independently Tested on Pine64-LTS with Benq BL2420PT monitor. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video

[U-Boot] [PATCH] net: nfs: don't fail when nfs_read_reply returns -NFS_RPC_DROP

2018-05-14 Thread Vasily Khoruzhick
That can happen if duplicate UDP packet arrived, and that's not uncommon. Anyway, we ignore packets with rpc_id lower than last we sent for other requests, so it makes sense to do that for read request as well. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- net/nfs.c | 2 ++

[U-Boot] [PATCH v4 2/2] dts: sunxi: add PWM node for sun50i

2018-05-14 Thread Vasily Khoruzhick
Add PWM definition to sun50i-a64.dtsi Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/dts/sun50i-a64.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/sun50i-a64.dtsi b/arch/arm/dts/sun50i-a64.dtsi index 65a344d9ce..a82a3d89af 100644 --- a/ar

[U-Boot] [PATCH v2 2/2] mmc: sunxi: run calibration on A64

2018-05-14 Thread Vasily Khoruzhick
Along with using new mode it fixes eMMC instability on Pinebook Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/include/asm/arch-sunxi/mmc.h | 6 +- drivers/mmc/sunxi_mmc.c | 11 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 1/2] sunxi-mmc: use new mode on A64

2018-05-14 Thread Vasily Khoruzhick
That is necessary for using automatic calibration on A64 eMMC. Signed-off-by: Vasily khoruzhick <anars...@gmail.com> --- arch/arm/mach-sunxi/Kconfig | 1 + drivers/mmc/sunxi_mmc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/Kconfig b/ar

[U-Boot] [PATCH v2 0/2] sunxi: fix eMMC stability issues on A64

2018-05-14 Thread Vasily Khoruzhick
eMMC seems to require new clocking mode and calibration on A64, otherwise it is pretty unstable on some boards (e.g. Pinebook) with some eMMCs. v2: - improve comment about calibration for eMMC on A64 - simplify ifdef-s around configuring delays Vasily Khoruzhick (2): sunxi-mmc: use new

[U-Boot] [PATCH v4 1/2] pwm: sunxi: add support for PWM found on Allwinner A64

2018-05-14 Thread Vasily Khoruzhick
This commit adds basic support for PWM found on Allwinner A64. It can be used for pwm_backlight driver (e.g. for Pinebook) Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/include/asm/arch-sunxi/pwm.h | 12 ++ drive

[U-Boot] [PATCH v4 0/2] sunxi: add PWM driver for A64

2018-05-14 Thread Vasily Khoruzhick
This series introduces a PWM driver for Allwinner A64. This driver can be used to control backlight on Pinebook v4: use the same binding as in Linux Vasily Khoruzhick (2): pwm: sunxi: add support for PWM found on Allwinner A64 dts: sunxi: add PWM node for sun50i arch/arm/dts/sun50i-a64

[U-Boot] [PATCH v2 0/2] video: dw_hdmi: fix HSYNC and VSYNC polarity settings

2018-05-14 Thread Vasily Khoruzhick
for hsync and vsync Vasily Khoruzhick (2): sunxi: video: HDMI: use correct bits for HSYNC and VSYNC polarity. video: dw_hdmi: fix HSYNC and VSYNC polarity settings drivers/video/dw_hdmi.c | 4 ++-- drivers/video/sunxi/sunxi_dw_hdmi.c | 4 ++-- 2 files changed, 4 insertions(+), 4

[U-Boot] [PATCH v2 1/2] sunxi: video: HDMI: use correct bits for HSYNC and VSYNC polarity.

2018-05-14 Thread Vasily Khoruzhick
HSYNC is bit 8, and VSYNC is bit 9. Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/sunxi/sunxi_dw_hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index c78e

[U-Boot] [PATCH v2 2/2] video: dw_hdmi: fix HSYNC and VSYNC polarity settings

2018-05-14 Thread Vasily Khoruzhick
Currently dw_hdmi configures HSYNC polarity using VSYNC setting from EDID and vice versa. Fix it, since it breaks displays where HSYNC and VSYNC polarity differs Signed-off-by: Vasily Khoruzhick <anars...@gmail.com> --- drivers/video/dw_hdmi.c | 4 ++-- 1 file changed, 2 insertions

Re: [U-Boot] [PATCH v3 2/4] usb: sunxi: ehci: get rid of ifdefs

2018-06-08 Thread Vasily Khoruzhick
On Fri, Jun 8, 2018 at 7:24 AM, Maxime Ripard wrote: > On Thu, Jun 07, 2018 at 07:23:39PM -0700, Vasily Khoruzhick wrote: >> We can use compatibles instead. >> >> Signed-off-by: Vasily Khoruzhick >> --- >> v3: use ehci_sunxi_cfg instead of id >>

Re: [U-Boot] [PATCH v2] usb: sunxi: access ahb_reset0_cfg in CCM using its offset

2018-06-15 Thread Vasily Khoruzhick
On Wed, Jun 13, 2018 at 11:19 PM, Vasily Khoruzhick wrote: > struct sunxi_ccm_reg doesn't have ahb_reset0_cfg on sun4i and sun5i, > thus compilation fails with: > > drivers/usb/host/ohci-sunxi.c:96:26: error: 'struct sunxi_ccm_reg' has > no member named 'ahb_reset0_cfg' > >

Re: [U-Boot] [PATCH v5 0/3] sunxi: fix eMMC stability issues on A64

2018-06-16 Thread Vasily Khoruzhick
On Sat, Jun 16, 2018 at 2:47 AM, Jagan Teki wrote: > On Wed, Jun 6, 2018 at 10:26 AM, Vasily Khoruzhick wrote: >> eMMC seems to require new clocking mode and calibration on A64, >> otherwise it is pretty unstable on some boards (e.g. Pinebook) >> with some eMMCs. >&g

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-16 Thread Vasily Khoruzhick
On Tue, Jun 5, 2018 at 8:39 PM, Vasily Khoruzhick wrote: > On Tue, Jun 5, 2018 at 12:04 AM, Jagan Teki wrote: >> >> Let me look at it and will come back. > > I fixed it. See "usb: sunxi: sun50i: enable OHCI0 clock when OHCI1 is > in use" and "sunxi: clock:

Re: [U-Boot] [PATCH] usb: sunxi: ohci: make ohci_t the first member in private data

2018-06-18 Thread Vasily Khoruzhick
On Mon, Jun 18, 2018 at 12:39 AM, Jagan Teki wrote: >> >From what I see in the other thread, the USB never worked with the >> series. If the controller returns 0s as EHCI version, something is >> obviously broken and I don't even understand how that could be an >> acceptable positive test result.

Re: [U-Boot] [PATCH v3 1/4] sunxi: clock: Fix EHCI and OHCI clocks on A64

2018-06-12 Thread Vasily Khoruzhick
On Thu, Jun 7, 2018 at 7:23 PM, Vasily Khoruzhick wrote: > EHCI0 is bit 24, EHCI1 - 25, OHCI0 - 28, OHCI1 - 29 > > Fixes commit fef73766d9ad ("sunxi: clock: Fix OHCI clock gating for H3/H5") > > Signed-off-by: Vasily Khoruzhick Any feedback on this patch series? >

Re: [U-Boot] [PATCH] usb: sunxi: don't touch reset bits in ccm if CONFIG_SUNXI_GEN_SUN6I is not defined

2018-06-13 Thread Vasily Khoruzhick
On Wed, Jun 13, 2018 at 8:23 PM, Chen-Yu Tsai wrote: >> + if (priv->cfg->has_reset) { >> +#ifdef CONFIG_SUNXI_GEN_SUN6I > > The "has_reset" field is supposed to deal with this. Is it not working? There's no ahb_reset0_cfg in ccm on sun4i and sun5i, so compilation fails with

[U-Boot] [PATCH] usb: sunxi: ohci: make ohci_t the first member in private data

2018-06-17 Thread Vasily Khoruzhick
ohci-hcd casts priv_data pointer to (ohci_t *), thus it must be the first member in private data struct. Fixes 831cc98b1 ("usb: sunxi: Simplify ccm reg base code") Signed-off-by: Vasily Khoruzhick --- drivers/usb/host/ohci-sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-18 Thread Vasily Khoruzhick
On Sun, Jun 17, 2018 at 11:04 PM, Jagan Teki wrote: >> Do git pull and make sure you are at least at >> a715415bb5948c84cc44c601b193188990f7238b. > > Yes, I even tried on this, can't see any issue? Let me know If I still miss > any. > > U-Boot 2018.07-rc1-00165-ga715415bb5 (Jun 18 2018 -

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-17 Thread Vasily Khoruzhick
On Sun, Jun 17, 2018 at 10:19 PM, Jagan Teki wrote: Hi Jagan, > I've plugged keyboard and mouse on so-pine board, couldn't reproduce the > issue. > This is on top of master, where this series got merged, is this issue > reproduces on your recent changes? > U-Boot 2018.07-rc1-00161-g76d69eb01d

Re: [U-Boot] [PATCH] usb: sunxi: don't touch reset bits in ccm if CONFIG_SUNXI_GEN_SUN6I is not defined

2018-06-13 Thread Vasily Khoruzhick
On Wed, Jun 13, 2018 at 10:29 PM, Jagan Teki wrote: > On Thu, Jun 14, 2018 at 9:01 AM, Vasily Khoruzhick wrote: >> On Wed, Jun 13, 2018 at 8:23 PM, Chen-Yu Tsai wrote: >> >>>> + if (priv->cfg->has_reset) { >>>> +#ifdef CONFIG_SUNXI_GEN_SU

[U-Boot] [PATCH v2] usb: sunxi: access ahb_reset0_cfg in CCM using its offset

2018-06-14 Thread Vasily Khoruzhick
ehci: get rid of ifdefs") and commit 56830cee3 ("usb: sunxi: ohci: get rid of ifdefs") Signed-off-by: Vasily Khoruzhick --- drivers/usb/host/ehci-sunxi.c | 21 ++--- drivers/usb/host/ohci-sunxi.c | 22 +++--- 2 files changed, 37 insertions(+),

[U-Boot] [PATCH] usb: sunxi: don't touch reset bits in ccm if CONFIG_SUNXI_GEN_SUN6I is not defined

2018-06-13 Thread Vasily Khoruzhick
CCM in sun4i and sun5i doesn't have reset. Fixes commit 1ed9c1118 ("usb: sunxi: ehci: get rid of ifdefs") and commit 56830cee3 ("usb: sunxi: ohci: get rid of ifdefs") Signed-off-by: Vasily Khoruzhick --- drivers/usb/host/ehci-sunxi.c | 10 -- drivers/usb/ho

[U-Boot] [PATCH v3 1/4] sunxi: clock: Fix EHCI and OHCI clocks on A64

2018-06-07 Thread Vasily Khoruzhick
EHCI0 is bit 24, EHCI1 - 25, OHCI0 - 28, OHCI1 - 29 Fixes commit fef73766d9ad ("sunxi: clock: Fix OHCI clock gating for H3/H5") Signed-off-by: Vasily Khoruzhick --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 4/4] usb: sunxi: sun50i: enable OHCI0 clock when OHCI1 is in use

2018-06-07 Thread Vasily Khoruzhick
On A64 OHCI1 clock source is OHCI0 clock, so we need to enable OHCI0 clock when OHCI1 is in use. Fixes commit dd3228170ad7 ("usb: sunxi: Switch to use generic-phy") Signed-off-by: Vasily Khoruzhick --- drivers/usb/host/ohci-sunxi.c | 12 ++-- 1 file changed, 10 insert

[U-Boot] [PATCH v3 3/4] usb: sunxi: ohci: get rid of ifdefs

2018-06-07 Thread Vasily Khoruzhick
We can use compatibles instead. Signed-off-by: Vasily Khoruzhick --- v3: use ohci_sunxi_cfg instead of id drivers/usb/host/ohci-sunxi.c | 83 ++- 1 file changed, 63 insertions(+), 20 deletions(-) diff --git a/drivers/usb/host/ohci-sunxi.c b/drivers/usb/host

  1   2   3   >