Re: [linux-sunxi] NAND wear leveling

2014-06-29 Thread Henrik Nordström
fre 2014-06-27 klockan 10:00 -0700 skrev markus.ropp...@gmail.com: with the NAND code being upstream (kernel 3.16), I wonder if any wear leveling is done. In software or in hardware (cubietruck)? Or could I use UBIFS? I read this does not work with block devices. The upstream NAND driver is a

[linux-sunxi] [PATCH v3 1/4] pinctrl: sunxi: Add IRQCHIP_SKIP_SET_WAKE flag for pinctrl irq chip

2014-06-29 Thread Hans de Goede
From: Chen-Yu Tsai w...@csie.org The sunxi pinctrl irq chip driver does not support wakeup at the moment. Adding IRQCHIP_SKIP_SET_WAKE lets the irqs work with drivers using wakeup. Signed-off-by: Chen-Yu Tsai w...@csie.org Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v3 2/4] pinctrl: sunxi: Move setting of mux to irq type from unmask to request_resources

2014-06-29 Thread Hans de Goede
With level triggered interrupt mask / unmask will get called for each interrupt, doing the somewhat expensive mux setting on each unmask thus is not a good idea. Instead add a request_resources callback and do it there. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v3 0/4] pinctrl: sunxi: Properly handle level triggered gpio irqs

2014-06-29 Thread Hans de Goede
Hi all, Here is v3 of my sunxi-pinctrl gpio irq patches, mainly aimed at get level triggered irqs to work properly for use with oob sdio irqs. Changes since v1: -Post these patches as a separate series, rather then as part of a larger patchset touching multiple subsystems -pinctrl: sunxi: Add

[linux-sunxi] [PATCH v3 3/4] pinctrl: sunxi: Properly handle level triggered gpio interrupts

2014-06-29 Thread Hans de Goede
For level triggered gpio interrupts we need to use handle_fasteoi_irq, like we do with the irq-sunxi-nmi driver. This is necessary to give threaded interrupt handlers a chance to actuall clear the source of the interrupt (which may involve sleeping waiting for i2c / spi / mmc transfers), before

[linux-sunxi] [PATCH v3 4/4] pinctrl: sunxi: Define enable / disable irq callbacks for level triggered irqs

2014-06-29 Thread Hans de Goede
Some drivers use disable_irq / enable_irq and do the work clearing the source in another thread instead of using a threaded interrupt handler. The irqchip used not having irq_disable and irq_enable callbacks in this case, will lead to unnecessary spurious interrupts: On a disable_irq in a chip

[linux-sunxi] [PATCH v3 1/4] dt: bindings: add bindings for Broadcom bcm43xx sdio devices

2014-06-29 Thread Hans de Goede
From: Arend van Spriel ar...@broadcom.com The Broadcom bcm43xx sdio devices are fullmac devices that may be integrated in ARM platforms. Currently, the brcmfmac driver for these devices support use of platform data. This patch specifies the bindings that allow this platform data to be expressed

[linux-sunxi] [PATCH v3 3/4] brcmfmac: Fix some wrong register defines

2014-06-29 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h b/drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h

[linux-sunxi] [PATCH v3 2/4] brcmfmac: add device tree support for SDIO devices

2014-06-29 Thread Hans de Goede
From: Chen-Yu Tsai w...@csie.org brcmfmac devices can use an out-of-band interrupt on a GPIO line. Currently this is specified using platform data. Add support for specifying out-of-band interrupt via device tree. Signed-off-by: Chen-Yu Tsai w...@csie.org [ar...@broadcom.com: conditionalize more

[linux-sunxi] [PATCH v3 4/4] brcmfmac: Fix OOB interrupt not working for BCM43362

2014-06-29 Thread Hans de Goede
It has taken me a long long time to get the OOB interrupt working on the AP6210 sdio wifi/bt module found on various Allwinner A20 boards. In the end I found these magic register pokes in the cubietruck kernel tree:

[linux-sunxi] [PATCH v4 0/4] brcmfmac: OOB interrupt support

2014-06-29 Thread Hans de Goede
Hi All, Here is v2 of the brcmfmac: OOB interrupt support series. Changes since v1: -Post as a stand alone series, rather then together with sunxi pinctrl changes, etc. -Add a patch to fixup the names of the register addresses used in the brcmfmac: Fix OOB interrupt not working for BCM43362

Re: [linux-sunxi] NAND wear leveling

2014-06-29 Thread Sergey Lapin
On Sun, Jun 29, 2014 at 6:09 PM, Henrik Nordström hen...@henriknordstrom.net wrote: fre 2014-06-27 klockan 10:00 -0700 skrev markus.ropp...@gmail.com: with the NAND code being upstream (kernel 3.16), I wonder if any wear leveling is done. In software or in hardware (cubietruck)? Or could I

[linux-sunxi] [PATCH v7 2/6] dt-bindings: add vendor-prefix for X-Powers

2014-06-29 Thread Carlo Caione
Signed-off-by: Carlo Caione ca...@caione.org --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 46a311e..0d5a80c 100644

[linux-sunxi] [PATCH v7 4/6] input: misc: Add ABI docs for AXP20x PEK

2014-06-29 Thread Carlo Caione
Add ABI entries for the PEK found on PMU X-Powers AXP202 and AXP209. Signed-off-by: Carlo Caione ca...@caione.org --- Documentation/ABI/testing/sysfs-driver-input-axp-pek | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-input-axp-pek

[linux-sunxi] [PATCH v7 1/6] mfd: AXP20x: Add bindings documentation

2014-06-29 Thread Carlo Caione
Bindings documentation for the AXP20x driver. In this file also sub-nodes are documented. Signed-off-by: Carlo Caione ca...@caione.org Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- Documentation/devicetree/bindings/mfd/axp20x.txt | 93 1 file changed, 93

[linux-sunxi] [PATCH v7 5/6] ARM: sunxi: Add AXP20x support in defconfig

2014-06-29 Thread Carlo Caione
Signed-off-by: Carlo Caione ca...@caione.org --- arch/arm/configs/sunxi_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 7209bfd..acf465f 100644 --- a/arch/arm/configs/sunxi_defconfig +++

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

2014-06-29 Thread Carlo Caione
During the merging of v6 several patches were left out. This v7 comprises all the patches that are still pending. //-- AXP209 and AXP202 are the PMUs (Power Management Unit) used by A10, A13 and A20 SoCs and developed by X-Powers, a sister company of Allwinner. AXP20x comprises an adaptive

[linux-sunxi] [PATCH v7 6/6] ARM: sunxi: Add AXP20x support multi_v7_defconfig

2014-06-29 Thread Carlo Caione
Signed-off-by: Carlo Caione ca...@caione.org --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index be1a345..d79418e 100644 --- a/arch/arm/configs/multi_v7_defconfig +++

[linux-sunxi] [PATCH] Add .fex for board YBKJ_A20

2014-06-29 Thread Paul Jones
Signed-off-by: Paul Jones p...@pauljones.id.au --- sys_config/a20/ybkj_a20.fex | 1007 +++ 1 file changed, 1007 insertions(+) create mode 100644 sys_config/a20/ybkj_a20.fex diff --git a/sys_config/a20/ybkj_a20.fex b/sys_config/a20/ybkj_a20.fex new file