[linux-sunxi] WiFi driver for Mele M3 (A20)

2015-08-28 Thread Nahom
I have ubuntu 14.04 running on Mele M3 using latest mainline kernel and latest u-boot. Everything is working except WiFi. The hardware is Realtek RTL8188ETV (as read on the chip). I have enabled support for it in the kernel (it's staging driver) but now I can not find the firmware file anywhere

Re: [linux-sunxi] WiFi driver for Mele M3 (A20)

2015-08-28 Thread Hans de Goede
Hi, On 28-08-15 11:15, Nahom wrote: I have ubuntu 14.04 running on Mele M3 using latest mainline kernel and latest u-boot. Everything is working except WiFi. The hardware is Realtek RTL8188ETV (as read on the chip). I have enabled support for it in the kernel (it's staging driver) but now I can

[linux-sunxi] [PATCH 6/6] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet

2015-08-28 Thread Chen-Yu Tsai
From: Karsten Merker The MSI Primo81 is an A31s based tablet, with 1G RAM, 16G NAND, 768x1024 IPS LCD display, mono speaker, 0.3 MP front camera, 2.0 MP rear camera, 3500 mAh battery, gt911 touchscreen, mma8452 accelerometer and rtl8188etv usb wifi. Has "power", "volume+" and "volume-" buttons (b

[linux-sunxi] [PATCH 3/6] ARM: dts: sun6i: hummingbird: Use axp221.dtsi for axp221 regulators

2015-08-28 Thread Chen-Yu Tsai
Now that we have axp221.dtsi describing common axp22x hardware, use it and reference the nodes instead of declaring the whole tree. Also add regulator reference for cpu0 supply. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31-hummingbird.dts | 114 ++-- 1 fil

[linux-sunxi] [PATCH 0/6] ARM: sunxi: Support MSI Primo81 tablet and Sinlinx SinA31s

2015-08-28 Thread Chen-Yu Tsai
Hi Maxime, This series adds support for MSI's Primo81 tablet, and Sinlinx's SinA31s development kit. This also adds a common axp221.dtsi, like we have for axp209 and axp152. The Hummingbird A31 dts is also migrated to this. The Primo81 patch is actually a v5. Changes since the last version can be

[linux-sunxi] [PATCH 4/6] ARM: dts: sun6i: Add mmc2 pins for 8 bit emmc

2015-08-28 Thread Chen-Yu Tsai
This also includes the reset pin for emmc. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 431c7c884e1c..98359f37bf11 100644 --- a/arch/arm/b

[linux-sunxi] [PATCH 2/6] ARM: dts: sunxi: Add dtsi for AXP221 PMIC

2015-08-28 Thread Chen-Yu Tsai
The AXP221 PMIC is used with some Allwinner SoCs. This patch adds a dtsi file listing all the regulator nodes. The regulators are initialized based on their device node names. This can later be used with the AXP223 PMIC as well, which has the same functionality as AXP221, except for its host inter

[linux-sunxi] [PATCH 1/6] ARM: dts: sun6i: Add lradc node

2015-08-28 Thread Chen-Yu Tsai
sun6i also has the LRADC for tablet buttons. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 54bb83b58f42..431c7c884e1c 100644 --- a/arch/arm/boot

[linux-sunxi] [PATCH 5/6] ARM: dts: sun6i: Add support for Sinlinx A31s SDK board

2015-08-28 Thread Chen-Yu Tsai
The Sinlinx A31s SDK is a A31s based module/baseboard development kit. The core module has the SoC, PMIC, DRAM, eMMC and supporting components. There are also pads for UART0, JTAG and I2S. The baseboard has 100 Mbps Ethernet, 5x USB 2.0 host ports via a USB 2.0 hub chip, MMC, HDMI, SPDIF, CIR, au

Re: [linux-sunxi] WiFi driver for Mele M3 (A20)

2015-08-28 Thread Nahom
Hans, I downloaded the file rtl8188eufw.bin to my /lib/firmware directory and tried but it didn't work. Same error as before. On Friday, August 28, 2015 at 12:53:45 PM UTC+3, Hans de Goede wrote: > > Hi, > > On 28-08-15 11:15, Nahom wrote: > > I have ubuntu 14.04 running on Mele M3 using lates

Re: [linux-sunxi] WiFi driver for Mele M3 (A20)

2015-08-28 Thread Hans de Goede
Hi, On 28-08-15 12:25, Nahom wrote: Hans, I downloaded the file rtl8188eufw.bin to my /lib/firmware directory and tried but it didn't work. Same error as before. You need to put it under /lib/firmware/rtlwifi Regards, Hans On Friday, August 28, 2015 at 12:53:45 PM UTC+3, Hans de Goede w

Re: [linux-sunxi] WiFi driver for Mele M3 (A20)

2015-08-28 Thread Nahom
Hans, Sorry about that typo... I did put it in /lib/firmware/rtlwifi Didn't work. Nahom On Friday, August 28, 2015 at 1:40:56 PM UTC+3, Hans de Goede wrote: > > Hi, > > On 28-08-15 12:25, Nahom wrote: > > Hans, > > I downloaded the file rtl8188eufw.bin to my /lib/firmware directory and > > tr

Re: [linux-sunxi] WiFi driver for Mele M3 (A20)

2015-08-28 Thread Hans de Goede
Hi, On 28-08-15 12:46, Nahom wrote: Hans, Sorry about that typo... I did put it in /lib/firmware/rtlwifi Didn't work. Weird, it works for me, and that one is smaller then 0x4000 bytes (aka 16Kb). Regards, Hans Nahom On Friday, August 28, 2015 at 1:40:56 PM UTC+3, Hans de Goede wrote:

[linux-sunxi] Banana pi BPI-M2 uboot 2015-7 and kernel 4.1.6 test

2015-08-28 Thread lion wang
BPI team have test linux kernel 4.1.6 on BPI-M1,BPI-M1+,BPI-M2,BPI-M3,with newest uboot 2015-7 , we update to BPI-SINVOIP github . we hope you can join us ,and help us to fixed dirver issue. this is our target , all BPI board all use newset open source code. link from :http://forum.banana-

Re: [linux-sunxi] WiFi driver for Mele M3 (A20)

2015-08-28 Thread Nahom
Do you have a Mele M3 too? If so, what settings have you changed in menuconfig while compiling the kernel? On Friday, August 28, 2015 at 2:03:09 PM UTC+3, Hans de Goede wrote: > > Hi, > > On 28-08-15 12:46, Nahom wrote: > > Hans, > > Sorry about that typo... I did put it in /lib/firmware/rtlw

Re: [linux-sunxi] Banana pi BPI-M2 uboot 2015-7 and kernel 4.1.6 test

2015-08-28 Thread Dmitriy B.
2015-08-28 14:09 GMT+03:00 lion wang : > github: https://github.com/bpi-sinovoip > Is there any chance for this to stop? https://github.com/BPI-SINOVOIP/BPI-Kernel4.0/commits/master/linux-4.0.2 https://github.com/BPI-SINOVOIP/BPI-Mainline-kernel/commits/master You've uploaded your presumably fixe

[linux-sunxi] Re: [PATCH 0/1] ARM: dts: sun5i: inet98v_rev2 fix regulator for the usb wifi

2015-08-28 Thread Maxime Ripard
Hi Hans, On Thu, Aug 27, 2015 at 08:37:30PM +0200, Hans de Goede wrote: > Hi Maxime, > > Here is a fixup patch for the patch adding a dts for the inet98v_rev2. > > I'm not sure if you've merged the original patch yet, hence I'm sending > this as a follow-up patch. If you've not yet merged the or

[linux-sunxi] Re: [PATCH 1/6] ARM: dts: sun6i: Add lradc node

2015-08-28 Thread Maxime Ripard
On Fri, Aug 28, 2015 at 05:54:34PM +0800, Chen-Yu Tsai wrote: > sun6i also has the LRADC for tablet buttons. > > Signed-off-by: Chen-Yu Tsai Queued, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- You received this

[linux-sunxi] Re: [PATCH 2/6] ARM: dts: sunxi: Add dtsi for AXP221 PMIC

2015-08-28 Thread Maxime Ripard
On Fri, Aug 28, 2015 at 05:54:35PM +0800, Chen-Yu Tsai wrote: > The AXP221 PMIC is used with some Allwinner SoCs. This patch adds > a dtsi file listing all the regulator nodes. The regulators are > initialized based on their device node names. > > This can later be used with the AXP223 PMIC as wel

[linux-sunxi] Re: [PATCH 3/6] ARM: dts: sun6i: hummingbird: Use axp221.dtsi for axp221 regulators

2015-08-28 Thread Maxime Ripard
On Fri, Aug 28, 2015 at 05:54:36PM +0800, Chen-Yu Tsai wrote: > Now that we have axp221.dtsi describing common axp22x hardware, use > it and reference the nodes instead of declaring the whole tree. > > Also add regulator reference for cpu0 supply. > > Signed-off-by: Chen-Yu Tsai > --- > arch/ar

[linux-sunxi] Re: WiFi driver for Mele M3 (A20)

2015-08-28 Thread Stefan Monnier
> I have ubuntu 14.04 running on Mele M3 using latest mainline kernel and > latest u-boot. Everything is working except WiFi. The hardware is Realtek > RTL8188ETV (as read on the chip). I have enabled support for it in the FWIW, the "r8188eu" staging module in mainline doesn't work well for me

[linux-sunxi] Re: [PATCH 4/6] ARM: dts: sun6i: Add mmc2 pins for 8 bit emmc

2015-08-28 Thread Maxime Ripard
On Fri, Aug 28, 2015 at 05:54:37PM +0800, Chen-Yu Tsai wrote: > This also includes the reset pin for emmc. > > Signed-off-by: Chen-Yu Tsai Queued, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- You received this me

[linux-sunxi] Re: [PATCH 5/6] ARM: dts: sun6i: Add support for Sinlinx A31s SDK board

2015-08-28 Thread Maxime Ripard
On Fri, Aug 28, 2015 at 05:54:38PM +0800, Chen-Yu Tsai wrote: > The Sinlinx A31s SDK is a A31s based module/baseboard development kit. > > The core module has the SoC, PMIC, DRAM, eMMC and supporting components. > There are also pads for UART0, JTAG and I2S. Can you use that core module without t

[linux-sunxi] Re: [PATCH 6/6] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet

2015-08-28 Thread Maxime Ripard
On Fri, Aug 28, 2015 at 05:54:39PM +0800, Chen-Yu Tsai wrote: > From: Karsten Merker > > The MSI Primo81 is an A31s based tablet, with 1G RAM, 16G NAND, > 768x1024 IPS LCD display, mono speaker, 0.3 MP front camera, 2.0 MP > rear camera, 3500 mAh battery, gt911 touchscreen, mma8452 accelerometer

[linux-sunxi] Network registration fialed in Humming board A31 in android 4.4

2015-08-28 Thread Nithin Chakravarthy
Hi, I am using Humming bird a31 board with android 4.4 with Linux kernel 3.3 After inserting sim card, some time i am able to scan mobile network, but whatever network sim-card I use I am able to scan only Vodafone(INDIA). Even I tried with Vodafone sim, but it is also not registering on network.

[linux-sunxi] Re: A20 mainline kernel questions

2015-08-28 Thread Alexis Jeandet
Hi Andrea, Good news! I can hear some sounds :). After some discussions with Marcus I've checked I2S pins with logic analyser, the data where at the output but really fast (340kS/s). I decided to replace the I2S driver from Marcus repo with your code

[linux-sunxi] [PATCH v2] ARM: dts: sun5i: Add dts file for inet98v_rev2 based tablets

2015-08-28 Thread Hans de Goede
The inet98v_rev2 is a pcb used in generic A13 based tablets. It features volume buttons, a power barrel, micro-usb otg, headphone connector and a power button. Signed-off-by: Hans de Goede --- Changes in v2: -Use the right regulator for thw usb-wifi module / usb1 --- arch/arm/boot/dts/Makefile

[linux-sunxi] Re: [PATCH 0/1] ARM: dts: sun5i: inet98v_rev2 fix regulator for the usb wifi

2015-08-28 Thread Hans de Goede
Hi, On 28-08-15 14:28, Maxime Ripard wrote: Hi Hans, On Thu, Aug 27, 2015 at 08:37:30PM +0200, Hans de Goede wrote: Hi Maxime, Here is a fixup patch for the patch adding a dts for the inet98v_rev2. I'm not sure if you've merged the original patch yet, hence I'm sending this as a follow-up pa

[linux-sunxi] Re: [PATCH 6/6] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet

2015-08-28 Thread Siarhei Siamashka
On Fri, 28 Aug 2015 14:38:05 +0200 Maxime Ripard wrote: > On Fri, Aug 28, 2015 at 05:54:39PM +0800, Chen-Yu Tsai wrote: > > From: Karsten Merker > > > > The MSI Primo81 is an A31s based tablet, with 1G RAM, 16G NAND, > > 768x1024 IPS LCD display, mono speaker, 0.3 MP front camera, 2.0 MP > > re

[linux-sunxi] Re: [PATCH 2/6] ARM: dts: sunxi: Add dtsi for AXP221 PMIC

2015-08-28 Thread Chen-Yu Tsai
On Fri, Aug 28, 2015 at 8:31 PM, Maxime Ripard wrote: > On Fri, Aug 28, 2015 at 05:54:35PM +0800, Chen-Yu Tsai wrote: >> The AXP221 PMIC is used with some Allwinner SoCs. This patch adds >> a dtsi file listing all the regulator nodes. The regulators are >> initialized based on their device node na

[linux-sunxi] Re: [PATCH 3/6] ARM: dts: sun6i: hummingbird: Use axp221.dtsi for axp221 regulators

2015-08-28 Thread Chen-Yu Tsai
On Fri, Aug 28, 2015 at 8:32 PM, Maxime Ripard wrote: > On Fri, Aug 28, 2015 at 05:54:36PM +0800, Chen-Yu Tsai wrote: >> Now that we have axp221.dtsi describing common axp22x hardware, use >> it and reference the nodes instead of declaring the whole tree. >> >> Also add regulator reference for cpu

[linux-sunxi] Re: [PATCH 2/6] ARM: dts: sunxi: Add dtsi for AXP221 PMIC

2015-08-28 Thread Maxime Ripard
On Sat, Aug 29, 2015 at 12:09:55AM +0800, Chen-Yu Tsai wrote: > >> +/* > >> + * AXP221/221s/223 Integrated Power Management Chip > >> + * http://www.x-powers.com/product/AXP22X.php > >> + * > >> http://dl.linux-sunxi.org/AXP/AXP221%20Datasheet%20V1.2%2020130326%20.pdf > >> + */ > > > > I'm usually

[linux-sunxi] Re: [PATCH 3/6] ARM: dts: sun6i: hummingbird: Use axp221.dtsi for axp221 regulators

2015-08-28 Thread Maxime Ripard
On Sat, Aug 29, 2015 at 12:47:00AM +0800, Chen-Yu Tsai wrote: > >> +®_dcdc3 { > >> + regulator-always-on; > >> + regulator-min-microvolt = <70>; > >> + regulator-max-microvolt = <132>; > >> + regulator-name = "vdd-gpu"; > >> +}; > > > > I'm know it's just a mechanical change

[linux-sunxi] Re: [PATCH v2] ARM: dts: sun5i: Add dts file for inet98v_rev2 based tablets

2015-08-28 Thread Maxime Ripard
On Fri, Aug 28, 2015 at 03:15:17PM +0200, Hans de Goede wrote: > The inet98v_rev2 is a pcb used in generic A13 based tablets. It features > volume buttons, a power barrel, micro-usb otg, headphone connector and > a power button. > > Signed-off-by: Hans de Goede Queued, thanks! Maxime -- Maxim

[linux-sunxi] Re: [PATCH 6/6] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet

2015-08-28 Thread Maxime Ripard
Hi, On Fri, Aug 28, 2015 at 04:31:44PM +0300, Siarhei Siamashka wrote: > > > external connectors are represented by MicroSD slot, MiniHDMI, MicroUSB > > > OTG and 3.5mm headphone jack. More details are available at > > > > > > http://linux-sunxi.org/MSI_Primo81 > > > > Again, not a huge fan

[linux-sunxi] Re: [PATCH 2/6] ARM: dts: sunxi: Add dtsi for AXP221 PMIC

2015-08-28 Thread Chen-Yu Tsai
On Sat, Aug 29, 2015 at 4:43 AM, Maxime Ripard wrote: > On Sat, Aug 29, 2015 at 12:09:55AM +0800, Chen-Yu Tsai wrote: >> >> +/* >> >> + * AXP221/221s/223 Integrated Power Management Chip >> >> + * http://www.x-powers.com/product/AXP22X.php >> >> + * >> >> http://dl.linux-sunxi.org/AXP/AXP221%20Da

[linux-sunxi] Re: [PATCH 6/6] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet

2015-08-28 Thread Siarhei Siamashka
On Fri, 28 Aug 2015 23:02:08 +0200 Maxime Ripard wrote: > Hi, > > On Fri, Aug 28, 2015 at 04:31:44PM +0300, Siarhei Siamashka wrote: > > > > external connectors are represented by MicroSD slot, MiniHDMI, MicroUSB > > > > OTG and 3.5mm headphone jack. More details are available at > > > > > > >

[linux-sunxi] Re: [PATCH 1/2] sunxi-tools: prevent possible out-of-bounds memory access

2015-08-28 Thread Siarhei Siamashka
On Fri, 21 Aug 2015 15:39:06 +0200 Bernhard Nortmann wrote: > Am 21.08.2015 03:34, schrieb Siarhei Siamashka: > > My compiler happens to be anal about this: > > > > fel.c: In function ‘aw_fel_process_spl_and_uboot’: > > fel.c:838:11: warning: comparison between signed and unsigned integer > > exp

[linux-sunxi] [PATCH sunxi-tools 2/6] fel: get rid of the FEL_EXEC_SCRATCH_AREA constant

2015-08-28 Thread Siarhei Siamashka
The safe area to upload and execute code via FEL may be different for different SoC variants (0x12000 for A80, 0x2000 for everything else), so we can't have it as a global compile time constant, but need need to treat it as a property of the SoC. This patch changes the code to pass the SoC info st

[linux-sunxi] [PATCH sunxi-tools 0/6] Fixes which should provide "fel spl" command support for A80

2015-08-28 Thread Siarhei Siamashka
This is a set of patches, which are intended to eventually support booting Allwinner A80 over USB with the "fel spl" and "fel uboot" commands. The memory map in Allwinner A80 differs from all the other known Allwinner SoC variant. The SPL (or BOOT0) load location is now moved to 0x1 from 0x0,

[linux-sunxi] [PATCH sunxi-tools 1/6] fel: Report FEL stack pointers

2015-08-28 Thread Siarhei Siamashka
This is may be useful when adding support for new SoC variants. We want to be sure that the IRQ stack and the regular stack both reside at predictable locations in SRAM and such extra diagnostic message can confirm this. Signed-off-by: Siarhei Siamashka --- fel.c | 45 +++

[linux-sunxi] [PATCH sunxi-tools 4/6] Makefile: 'fel' tool depends on fel-to-spl-thunk.h

2015-08-28 Thread Siarhei Siamashka
Signed-off-by: Siarhei Siamashka --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 922da8f..71e0396 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ LIBUSB = libusb-1.0 LIBUSB_CFLAGS = `pkg-config --cflags $(LIBUSB)` LIBUSB_LIBS = `

[linux-sunxi] [PATCH sunxi-tools 5/6] fel: Make the SPL load address configurable instead of hardcoded 0x0

2015-08-28 Thread Siarhei Siamashka
Add a new field 'spl_addr' to the SoC description structure and adjust the code to honor it. This is needed for supporting Allwinner A80. Tested on Allwinner A20 by changing the 'spl_addr' to 0x28000 in the 'fel' tool and using a custom build of U-Boot (CONFIG_SPL_TEXT_BASE changed from 0x20 to 0x

[linux-sunxi] [PATCH sunxi-tools 3/6] fel-to-spl-thunk.S: Fix safety guard which checks for enabled cache

2015-08-28 Thread Siarhei Siamashka
The exit code path after detecting that the cache is enabled does not need to swap FEL stacks and backup buffers. This way we get the error actually reported by the 'fel' tool instead of the device getting locked up. The thunk code refuses to work if the caches are enabled because we don't want to

[linux-sunxi] [PATCH sunxi-tools 6/6] fel: add fel spl support for A80

2015-08-28 Thread Siarhei Siamashka
FIXME: Untested on real hardware Signed-off-by: Siarhei Siamashka --- fel.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/fel.c b/fel.c index c29df86..03eb13d 100644 --- a/fel.c +++ b/fel.c @@ -384,6 +384,17 @@ sram_swap_buffers a31_sram_swap_buffers[] = { { 0 }