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

2014-06-29 Thread Paul Jones
Signed-off-by: Paul Jones --- 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 mode 100644 index 0

[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 --- 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 +++ b/arch/arm/configs/mult

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

2014-06-29 Thread Carlo Caione
Signed-off-by: Carlo Caione --- 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 +++ b/arch/arm/configs/sunxi_defconfig @

[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 --- 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 --- a/Documentatio

[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 --- 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 diff --git a/Docu

[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 Acked-by: Maxime Ripard --- Documentation/devicetree/bindings/mfd/axp20x.txt | 93 1 file changed, 93 insertions(+) create mode 100644 Documentation/de

[linux-sunxi] [PATCH v7 3/6] input: misc: Add driver for AXP20x Power Enable Key

2014-06-29 Thread Carlo Caione
This patch add support for the Power Enable Key found on MFD AXP202 and AXP209. Besides the basic support for the button, the driver adds two entries in sysfs to configure the time delay for power on/off. Signed-off-by: Carlo Caione Acked-by: Dmitry Torokhov --- drivers/input/misc/Kconfig

[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 USB-Co

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

[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" p

[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 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 [ar...@broadcom.com: conditionalize more of-code, use driver debug

[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: https://github.com/cubieboard2/linux-sunxi/commit/7f08ba395617d17e7a711507503d89a50

[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 --- 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 index 3deab79..6e6a366 1

[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 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 in the devicetree.

[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 ack

[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 wi

[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 Acked-by: Maxime Ripard --- drivers/pinctrl/su

[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 I

[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 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 Signed-off-by: Hans de Goede Acked-by: Maxime Ripard --- drivers/pinctrl/sunxi/pinctrl-sunxi.c |

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