Re: [linux-sunxi] SUNXI-GMAC driver logs every vlan frame...

2014-10-22 Thread Alejandro Mery
On 04.06.2014 16:36, Eddy Beaupre wrote: Hello! Don't know if i'm the only one who's using vlan with sunxi-gmac, but the current driver is terribly spammy for the logs, it log every single vlan frame at the INFO level. Personally i don't think that information is useful at all but if you want

[linux-sunxi] Re: [RFC Patch 1/4] mfd: AXP20x: Add power supply bindings documentation

2014-10-22 Thread Bruno Prémont
On Tue, 21 October 2014 Lee Jones wrote: > On Mon, 20 Oct 2014, Bruno Prémont wrote: > > --- > > Note: the OCV values seem to have some defaults build into the > > PMIC though may need adjustment if the used battery has a different > > open circuit voltage curve. > > As far as understood (these va

[linux-sunxi] Re: [PATCH] Add Full Duplex support to SPI (v2)

2014-10-22 Thread Gnichi Mohamed
Le mardi 20 mai 2014 11:44:56 UTC+1, miltong...@gmail.com a écrit : > excelent news this patch is available since i am trying to connect rf24l01 > sensor using spi, now i have a simple question, my as an absolute > newbiehoy do i apply this patch? i am using cubieez on cb2. > your help will b

[linux-sunxi] Hello, everyone. does anyone have the description of ddr memory controller's registers of A31?

2014-10-22 Thread Jason Hu
we want to use different ddr3 sdram ics(EtronTech EM6GE16EWXC) which work on wider operating temperature(-40 ~ +95), so we have to config the memory controller to apply new ddr3 memory ic. I noticed A31 is of sun6i, and sun6i uses Allwinner AW1633 DRAM memory controller, but I couldn't find an

[linux-sunxi] Re: [U-Boot] [PATCH] sun7i: Set CONFIG_ARMV7_SEC_BY_DEFAULT when CONFIG_OLD_KERNEL_COMPAT is set

2014-10-22 Thread Tom Rini
On Wed, Oct 22, 2014 at 03:45:23PM +0200, Hans de Goede wrote: > Old kernels cannot handle booting in non-secure (hyp) mode, so when > CONFIG_OLD_KERNEL_COMPAT is set, also set CONFIG_ARMV7_SEC_BY_DEFAULT. > > Note that whether to booting secure or non-secure can always be overriden > using the b

[linux-sunxi] Re: [PATCH] sun7i: Set CONFIG_ARMV7_SEC_BY_DEFAULT when CONFIG_OLD_KERNEL_COMPAT is set

2014-10-22 Thread Ian Campbell
On Wed, 2014-10-22 at 15:45 +0200, Hans de Goede wrote: > Old kernels cannot handle booting in non-secure (hyp) mode, so when > CONFIG_OLD_KERNEL_COMPAT is set, also set CONFIG_ARMV7_SEC_BY_DEFAULT. > > Note that whether to booting secure or non-secure can always be overriden nits: "boot" (not bo

[linux-sunxi] Re: [U-Boot] [PATCH 3/3] sunxi: Add CONFIG_OLD_KERNEL_COMPAT Kconfig option

2014-10-22 Thread Tom Rini
On Wed, Oct 22, 2014 at 03:44:36PM +0200, Hans de Goede wrote: > Add a Kconfig option which users can select when they want to boot older > kernels, e.g. the linux-sunxi 3.4 kernels. For now this just forces the pll5 > "p" value to 1 (divide by 2) as that is what those kernels are hardcoded too, >

[linux-sunxi] Re: [PATCH v2] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-22 Thread Ian Campbell
On Wed, 2014-10-22 at 15:45 +0200, Hans de Goede wrote: > if (!fake) { > #if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT) > - armv7_init_nonsec(); > - secure_ram_addr(_do_nonsec_entry)(kernel_entry, > - 0, ma

[linux-sunxi] Re: [PATCH 3/3] sunxi: Add CONFIG_OLD_KERNEL_COMPAT Kconfig option

2014-10-22 Thread Ian Campbell
On Wed, 2014-10-22 at 15:44 +0200, Hans de Goede wrote: > Add a Kconfig option which users can select when they want to boot older > kernels, e.g. the linux-sunxi 3.4 kernels. For now this just forces the pll5 > "p" value to 1 (divide by 2) as that is what those kernels are hardcoded too, > in the

[linux-sunxi] Re: [PATCH 2/3] sunxi: dram: Use clock_get_pll5p to calculate mbus, rather then hardcoding

2014-10-22 Thread Ian Campbell
On Wed, 2014-10-22 at 15:44 +0200, Hans de Goede wrote: > This is a preparation patch for making the pll5 "p" divisor configurable > through Kconfig. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell -- You received this message because you are subscribed to the Google Groups "linux-s

[linux-sunxi] Re: [PATCH 1/3] sunxi: Add clock_get_pll5p() function

2014-10-22 Thread Ian Campbell
On Wed, 2014-10-22 at 15:44 +0200, Hans de Goede wrote: > This is a preparation patch for making the pll5 "p" divisor configurable > through Kconfig. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell -- You received this message because you are subscribed to the Google Groups "linux-s

[linux-sunxi] Re: [PATCH v2 5/8] ARM: sunxi: Add support for R_PIO gpio banks

2014-10-22 Thread Ian Campbell
On Wed, 2014-10-22 at 16:47 +0800, Chen-Yu Tsai wrote: > From: Hans de Goede > > The A31, A23 and later SoCs have an extra pin controller, called CPUs_PIO > or R_PIO, which handles pin banks L and beyond. > > Also add a clear description about SUNXI_GPIO_BANKS, stating it only > counts the numbe

[linux-sunxi] [PATCH] Move fsl_s8.fex to the a31s directory.

2014-10-22 Thread Reinhard Max
Hi, my last patch that added fsl_s8.fex misplaced it in the a31 directory. This one moves it to a31s. cu Reinhard --- sys_config/a31/fsl_s8.fex | 964 - sys_config/a31s/fsl_s8.fex | 964 + 2 files c

[linux-sunxi] [PATCH v4 3/5] simplefb: formalize pseudo palette handling

2014-10-22 Thread Hans de Goede
From: Luc Verhaegen Signed-off-by: Luc Verhaegen Acked-by: Stephen Warren [hdego...@redhat.com: drop unnecessary void * cast] Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede Acked-by: Geert Uytterhoeven Reviewed-by: Maxime Ripard Reviewed-by: David Herrmann --- drivers/video/fbdev

[linux-sunxi] [PATCH v4 1/5] simplefb: Add simplefb MAINTAINERS entry

2014-10-22 Thread Hans de Goede
During the discussion about adding clock handling code to simplefb, it became clear that simplefb currently does not have an active maintainer. I've discussed this with Stephen Warren , the original author of simplefb, and with his permisson I'm picking up maintainership of simplefb. Cc: Stephen

[linux-sunxi] [PATCH v4 0/5] simplefb: add clock handling code

2014-10-22 Thread Hans de Goede
Hi Tomi, Here is v4 of the patch-set to add clocks support to simplefb. Changes in v2: -Added "simplefb: Add simplefb MAINTAINERS entry" patch Changes in v3: -Improved description of simplefb binding Changes in v4: -Change clocks in simplefb from a linked-list to a (simpler) dynamically alloca

[linux-sunxi] [PATCH v4 5/5] simplefb: add clock handling code

2014-10-22 Thread Hans de Goede
From: Luc Verhaegen This claims and enables clocks listed in the simple framebuffer dt node. This is needed so that the display engine, in case the required clocks are known by the kernel code and are described in the dt, will remain properly enabled. Signed-off-by: Luc Verhaegen [hdego...@redh

[linux-sunxi] [PATCH v4 2/5] dt-bindings: Add a clocks property to the simple-framebuffer binding

2014-10-22 Thread Hans de Goede
A simple-framebuffer node represents a framebuffer setup by the firmware / bootloader. Such a framebuffer may have a number of clocks in use, add a property to communicate this to the OS. Signed-off-by: Hans de Goede Reviewed-by: Mike Turquette Acked-by: Geert Uytterhoeven Reviewed-by: Maxime R

[linux-sunxi] [PATCH v4 4/5] simplefb: add goto error path to probe

2014-10-22 Thread Hans de Goede
From: Luc Verhaegen While at it update ioremap_wc error return from ENODEV to ENOMEM. Signed-off-by: Luc Verhaegen Acked-by: Stephen Warren Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede Acked-by: Geert Uytterhoeven Reviewed-by: Maxime Ripard Reviewed-by: David Herrmann --- driv

[linux-sunxi] Re: [PATCH v3 1/4] input: Add new sun4i-lradc-keys driver

2014-10-22 Thread Maxime Ripard
Hi Hans, On Wed, Oct 22, 2014 at 01:11:02PM +0200, Hans de Goede wrote: > Allwinnner sunxi SoCs have a low resolution adc (called lradc) which is > specifically designed to have various (tablet) keys (ie home, back, search, > etc). attached to it using a resistor network. This adds a driver for th

[linux-sunxi] [PATCH] sun7i: Set CONFIG_ARMV7_SEC_BY_DEFAULT when CONFIG_OLD_KERNEL_COMPAT is set

2014-10-22 Thread Hans de Goede
Old kernels cannot handle booting in non-secure (hyp) mode, so when CONFIG_OLD_KERNEL_COMPAT is set, also set CONFIG_ARMV7_SEC_BY_DEFAULT. Note that whether to booting secure or non-secure can always be overriden using the bootm_boot_mode environment variable. Signed-off-by: Hans de Goede --- i

[linux-sunxi] [PATCH v2] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-22 Thread Hans de Goede
Older Linux kernels will not properly boot in hype mode, add support for a bootm_boot_mode environment variable, which when set to "sec" will cause u-boot to boot in secure mode even when build with non-sec (and hyp) support. Signed-off-by: Hans de Goede Acked-by: Marc Zyngier Acked-by: Siarhei

[linux-sunxi] [PATCH 2/3] sunxi: dram: Use clock_get_pll5p to calculate mbus, rather then hardcoding

2014-10-22 Thread Hans de Goede
This is a preparation patch for making the pll5 "p" divisor configurable through Kconfig. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/sunxi/dram.c | 32 ++-- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/arch/arm/cpu/armv7/sunxi/dram.c b/arch

[linux-sunxi] [PATCH 3/3] sunxi: Add CONFIG_OLD_KERNEL_COMPAT Kconfig option

2014-10-22 Thread Hans de Goede
Add a Kconfig option which users can select when they want to boot older kernels, e.g. the linux-sunxi 3.4 kernels. For now this just forces the pll5 "p" value to 1 (divide by 2) as that is what those kernels are hardcoded too, in the future this may enable further workarounds. Signed-off-by: Hans

[linux-sunxi] [PATCH 1/3] sunxi: Add clock_get_pll5p() function

2014-10-22 Thread Hans de Goede
This is a preparation patch for making the pll5 "p" divisor configurable through Kconfig. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/sunxi/clock_sun4i.c| 11 +++ arch/arm/include/asm/arch-sunxi/clock.h | 1 + arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 3 +++

[linux-sunxi] Re: [U-Boot] [PATCH v3 6/6] sunxi: Kconfig: Unify sunxi Kconfig code

2014-10-22 Thread Hans de Goede
Hi, On 10/21/2014 09:03 PM, Ian Campbell wrote: > On Sun, 2014-10-12 at 22:17 +0100, Ian Campbell wrote: >>> -if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I >>> + default "sun4i" if TARGET_SUN4I >>> + default "sun5i" if TARGET_SUN5I >>> + default "sun6i" if TARGET_SUN5I > >

[linux-sunxi] Re: [PATCH v6 2/2] mtd: nand: add sunxi NFC dt bindings doc

2014-10-22 Thread Ezaul Zillmer
Good Day My Noble Friend ... I'll post here some results Boris would like if possible could pass me some more step for tests with nand? what is still missing to run? take a look below .. __ [1.119502] nand: device found,

[linux-sunxi] [PATCH v3 4/4] ARM: dts: sun7i: Add lradc node

2014-10-22 Thread Hans de Goede
Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 59 - arch/arm/boot/dts/sun7i-a20.dtsi| 7 +++ 2 files changed, 64 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/bo

[linux-sunxi] [PATCH v3 1/4] input: Add new sun4i-lradc-keys driver

2014-10-22 Thread Hans de Goede
Allwinnner sunxi SoCs have a low resolution adc (called lradc) which is specifically designed to have various (tablet) keys (ie home, back, search, etc). attached to it using a resistor network. This adds a driver for this. There are 2 channels, currently this driver only supports chan0 since ther

[linux-sunxi] [PATCH v3 3/4] ARM: dts: sun5i: Add lradc node

2014-10-22 Thread Hans de Goede
Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 45 ++-- arch/arm/boot/dts/sun5i-a10s.dtsi| 7 arch/arm/boot/dts/sun5i-a13-olinuxino.dts| 45 ++-- arch/arm/boot/dts/sun5i-a13.dtsi

[linux-sunxi] [PATCH v3 2/4] ARM: dts: sun4i: Add lradc node

2014-10-22 Thread Hans de Goede
Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 380f914..1ef7d57 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi +++ b/arch/arm/boot/dts/sun4i-a10.d

[linux-sunxi] [PATCH v3 0/4] input: Add new sun4i-lradc-keys driver

2014-10-22 Thread Hans de Goede
Hi All, Here is v3 of my patchset for the lradc attached tablet keys found one some Allwinner boards. Changes since v2: -s/KEY_HOME/KEY_HOMEPAGE/ -s/sun4i-lradc-keys/sun4i-a10-lradc-keys/ -Use mV as address for the key subnodes in devicetree -dts formatting fixes according to Maxime's review -Do

[linux-sunxi] Re: [PATCH v2 1/4] input: Add new sun4i-lradc-keys driver

2014-10-22 Thread Hans de Goede
Hi, On 10/21/2014 07:04 PM, Maxime Ripard wrote: > Hi Hans, > > Thanks, a lot for respinning this. > > On Tue, Oct 21, 2014 at 10:24:47AM +0200, Hans de Goede wrote: >> Allwinnner sunxi SoCs have a low resolution adc (called lradc) which is >> specifically designed to have various (tablet) keys

Re: [linux-sunxi] Re: [PATCH v2 3/4] ARM: dts: sun5i: Add lradc node

2014-10-22 Thread Hans de Goede
Hi, On 10/21/2014 10:29 PM, Hans de Goede wrote: > Hi, > > On 10/21/2014 06:21 PM, Dmitry Torokhov wrote: >> Hi Hans, >> >> On Tue, Oct 21, 2014 at 10:24:49AM +0200, Hans de Goede wrote: >>> +button@98 { >>> +label = "Home"; >>> +linux,code = ; >> >> I

Re: [linux-sunxi] Re: [PATCH v7 0/6] mfd: AXP20x: Add support for AXP202 and AXP209

2014-10-22 Thread Carlo Caione
On Wed, Oct 22, 2014 at 09:59:29AM +0200, Maxime Ripard wrote: > On Wed, Oct 22, 2014 at 08:28:42AM +0200, Bruno Prémont wrote: > > On Sun, 29 Jun 2014 20:23:51 +0200 Carlo Caione wrote: > > > During the merging of v6 several patches were left out. This v7 comprises > > > all the patches that are s

[linux-sunxi] Re: [PATCH v5 4/4] crypto: Add Allwinner Security System crypto accelerator

2014-10-22 Thread Arnd Bergmann
On Sunday 19 October 2014 16:16:22 LABBE Corentin wrote: > Add support for the Security System included in Allwinner SoC A20. > The Security System is a hardware cryptographic accelerator that support > AES/MD5/SHA1/DES/3DES/PRNG algorithms. > > Signed-off-by: LABBE Corentin Please wrap lines i

[linux-sunxi] [PATCH v2 1/8] ARM: sunxi: Add sun8i (A23) UART0 pin mux support

2014-10-22 Thread Chen-Yu Tsai
UART0 pin muxes on the A23 have a different function value. Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/gpio.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h b/arch/arm/include/asm/arch-sunxi/gpio.h in

[linux-sunxi] [PATCH v2 0/8] ARM: sunxi: Add Allwinner A23 (sun8i) support

2014-10-22 Thread Chen-Yu Tsai
Hi everyone, This series adds support for Allwinner's A23 SoC. All the patches are either direct cherry-picks or changes manually merged from u-boot-sunxi. Patch 1 adds uart0 pinmux values for A23. Patch 2 adds support for using uart0 on port F, either using a breakout board or soldering wires t

[linux-sunxi] [PATCH v2 2/8] ARM: sunxi: Add support for uart0 on port F (mmc0)

2014-10-22 Thread Chen-Yu Tsai
Allwinner SoCs provide uart0 muxed with mmc0, which can then be used with a micro SD breakout board. On the A23, this is the only way to use uart0. Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell --- arch/arm/cpu/armv7/sunxi/board.c | 11 ++- include/configs/sunxi-common.h | 2 ++

[linux-sunxi] [PATCH v2 8/8] ARM: sunxi: Add Ippo-q8h-v5 A23 tablet board defconfig

2014-10-22 Thread Chen-Yu Tsai
Ippo q8h is a series of A23 tablet boards. This defconfig is for v5 of these boards, though for u-boot purposes they are mostly the same. See: http://linux-sunxi.org/Ippo_q8h Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell --- board/sunxi/MAINTAINERS| 5 + configs/Ippo_q8h_defconfig

[linux-sunxi] [PATCH v2 3/8] mmc: sunxi: Add support for sun8i (A23)

2014-10-22 Thread Chen-Yu Tsai
The Allwinner A23 SoC has reset controls like the A31 (sun6i). The FIFO address is also the same as sun6i. Re-use code added for sun6i. Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/mmc.h | 2 +- drivers/mmc/sunxi_mmc.c | 2 +- 2 files cha

[linux-sunxi] [PATCH v2 7/8] ARM: sunxi: Add support for using R_UART as console

2014-10-22 Thread Chen-Yu Tsai
The A23 only has UART0 muxed with MMC0. Some of the boards we encountered expose R_UART as a set of pads. Add support for R_UART so we can have a console while using mmc. Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell --- arch/arm/cpu/armv7/sunxi/board.c | 4 arch/arm/cpu/armv7/

[linux-sunxi] [PATCH v2 5/8] ARM: sunxi: Add support for R_PIO gpio banks

2014-10-22 Thread Chen-Yu Tsai
From: Hans de Goede The A31, A23 and later SoCs have an extra pin controller, called CPUs_PIO or R_PIO, which handles pin banks L and beyond. Also add a clear description about SUNXI_GPIO_BANKS, stating it only counts the number of pin banks in the _main_ pin controller. Signed-off-by: Hans de

[linux-sunxi] [PATCH v2 6/8] ARM: sunxi: Allow specifying module in prcm apb0 init function

2014-10-22 Thread Chen-Yu Tsai
The prcm apb0 controls multiple modules. Allow specifying which modules to enable clocks and de-assert resets so the function can be reused. Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell --- arch/arm/cpu/armv7/sunxi/prcm.c| 12 +++- arch/arm/include/asm/arch-sunxi/prcm.h |

[linux-sunxi] [PATCH v2 4/8] ARM: sunxi: Add basic A23 support

2014-10-22 Thread Chen-Yu Tsai
The basic blocks of the A23 are similar to the A31 (sun6i). Re-use sun6i code for initial clock, gpio, and uart setup. There is no SPL support for A23, as we do not have any documentation or sample code for DRAM initialization. Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell --- arch/arm/Kc

Re: [linux-sunxi] Re: [PATCH v2 4/4] ARM: dts: sun7i: Add lradc node

2014-10-22 Thread Hans de Goede
Hi, On 10/22/2014 10:38 AM, Maxime Ripard wrote: > Hi Hans, > > On Tue, Oct 21, 2014 at 10:24:50AM +0200, Hans de Goede wrote: >> Signed-off-by: Hans de Goede >> --- >> arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 48 >> + >> arch/arm/boot/dts/sun7i-a20.dtsi

[linux-sunxi] Re: [PATCH v2 4/4] ARM: dts: sun7i: Add lradc node

2014-10-22 Thread Maxime Ripard
Hi Hans, On Tue, Oct 21, 2014 at 10:24:50AM +0200, Hans de Goede wrote: > Signed-off-by: Hans de Goede > --- > arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 48 > + > arch/arm/boot/dts/sun7i-a20.dtsi| 7 > 2 files changed, 55 insertions(+) > >

[linux-sunxi] Re: [PATCH v7 0/6] mfd: AXP20x: Add support for AXP202 and AXP209

2014-10-22 Thread Maxime Ripard
On Wed, Oct 22, 2014 at 08:28:42AM +0200, Bruno Prémont wrote: > On Sun, 29 Jun 2014 20:23:51 +0200 Carlo Caione wrote: > > During the merging of v6 several patches were left out. This v7 comprises > > all the patches that are still pending. > > Any progress on this or reason why these are stuck?