[linux-sunxi] sun4i audio updates

2016-03-20 Thread Code Kipper
Hi all, I've been playing with the audio on sun4i for some time now and have placed a branch on my github with all my changes https://github.com/codekipper/linux-sunxi/commits/kevin. Most of this is WIP but I'm pretty confident that I've covered everything with the sun4i-codec. It's just that I've

Re: [linux-sunxi] sun4i audio updates

2016-03-20 Thread Peter Korsgaard
> "Code" == Code Kipper writes: > Hi all, > I've been playing with the audio on sun4i for some time now and have > placed a branch on my github with all my changes > https://github.com/codekipper/linux-sunxi/commits/kevin. > Most of this is WIP but I'm pretty confident that I've covered

Re: [linux-sunxi] sun4i audio updates

2016-03-20 Thread Danny Milosavljevic
Hi CK, >I've been playing with the audio on sun4i for some time now and have placed a >branch on my github with all my changes > https://github.com/codekipper/linux-sunxi/commits/kevin. Good to hear! On which branch? I checked https://github.com/codekipper/linux-sunxi/tree/linux-next/sound/soc

Re: [linux-sunxi] sun4i audio updates

2016-03-20 Thread Code Kipper
On 20 March 2016 at 10:53, Danny Milosavljevic wrote: > Hi CK, > >>I've been playing with the audio on sun4i for some time now and have placed a >>branch on my github with all my changes >> https://github.com/codekipper/linux-sunxi/commits/kevin. > > Good to hear! > > On which branch? I checked

Re: [linux-sunxi] sun4i audio updates

2016-03-20 Thread Code Kipper
On 20 March 2016 at 10:16, Peter Korsgaard wrote: >> "Code" == Code Kipper writes: > > > Hi all, > > I've been playing with the audio on sun4i for some time now and have > > placed a branch on my github with all my changes > > https://github.com/codekipper/linux-sunxi/commits/kevin. > >

[linux-sunxi] Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)

2016-03-20 Thread Robin Murphy
On 16/03/16 11:39, Marc Zyngier wrote: On 16/03/16 11:19, Bert Lindner wrote: Hi, Hopefully this is the correct place and way to report this. For the board sun7i-a20-olinuxino-lime2, there seems to be a problem with the eth0 PHY in mainline kernel 4.5.0 that developed since 4.5.0-rc7. Ethernet

[linux-sunxi] Re: [PATCH sunxi-tools v5] fel: support selection of specific USB bus and device number

2016-03-20 Thread Siarhei Siamashka
On Thu, 17 Mar 2016 11:18:03 +0100 Bernhard Nortmann wrote: > See https://github.com/linux-sunxi/sunxi-tools/issues/37 > > The patch was originally inspired by > https://github.com/NextThingCo/sunxi-tools/commit/16386a7 > and > https://github.com/NextThingCo/sunxi-tools/commit/47bafaf > > It in

[linux-sunxi] Re: [PATCH sunxi-tools 6/7] fel: Add "readl" and "writel" commands

2016-03-20 Thread Siarhei Siamashka
On Thu, 17 Mar 2016 13:55:25 +0100 Bernhard Nortmann wrote: > Am Montag, 25. Januar 2016 05:51:02 UTC+1 schrieb Siarhei Siamashka: > > The read/write operations done by FEL are not suitable for accessing > > hardware registers. For example, trying to read a SID value using > > the "read" or "hexd

[linux-sunxi] Re: [PATCH sunxi-tools v5] fel: support selection of specific USB bus and device number

2016-03-20 Thread Bernhard Nortmann
Am 20.03.2016 um 13:53 schrieb Siarhei Siamashka: Thanks, also adding an extra || busnum < 0 || devnum < 0 check here would make it perfect. If the user tries to provide negative numbers in the command line, then it is reasonable to fail with an error instead of silently reverti

[linux-sunxi] Re: [PATCH sunxi-tools 5/7] fel: Move the temporary scratch buffer under the IRQ stack

2016-03-20 Thread Siarhei Siamashka
On Thu, 17 Mar 2016 18:31:42 +0100 Bernhard Nortmann wrote: > Am Montag, 25. Januar 2016 05:51:02 UTC+1 schrieb Siarhei Siamashka: > > Doing certain operations may need uploading and executing code > > on the device. For example, such operations right now are > > reading/writing ARM CP15 coproces

Re: [linux-sunxi] [PATCH sunxi-tools] fel: Add release USB interface to allow proper operation on Mac OS X.

2016-03-20 Thread Siarhei Siamashka
On Thu, 17 Mar 2016 19:38:54 +0100 Bernhard Nortmann wrote: > From: Lourens Rozema > > Tested-by: Bernhard Nortmann > --- > This picks up a long-standing pull request from the github repo that seemingly > noone cared to take forward to the mailing list. The one-line change looks > sane, > an

Re: [linux-sunxi] [PATCH sunxi-tools] fel: Add release USB interface to allow proper operation on Mac OS X.

2016-03-20 Thread Bernhard Nortmann
Thanks! Commited and closed PR accordingly. Regards, B,. Nortmann -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For m

Re: [linux-sunxi] Re: [U-Boot] [PATCH] sunxi: Add support for Cubietruck Plus

2016-03-20 Thread Hans de Goede
hI, On 19-03-16 23:43, Dennis Gilmore wrote: Hans, What is the status of this patch? I added this to my sunxi-wip tree (including a fix for the build error) a couple of days ago. I will send a pull-req for various u-boot sunxi patch soonish and then it will hit mainline. Regards, Hans D

[linux-sunxi] [PATCH v4 01/13] pinctrl: sunxi: Add A83T R_PIO controller

2016-03-20 Thread Vishnu Patekar
The A83T has R_PIO pin controller, it's same as A23, execpt A83T interrupt bit is 6th and A83T has one extra pin PL12. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai Acked-by: Rob Herring --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + drivers/pinctrl/sunxi/Kconfig

Re: [linux-sunxi] sun4i audio updates

2016-03-20 Thread Peter Korsgaard
> "Code" == Code Kipper writes: Hi, >> You can easily build a kernel with an initramfs including alsa with >> Buildroot. Have a look at configs/cubieboard2_defconfig as a starting >> point or ssvb's orangepipc limatester setup: >> >> https://github.com/ssvb/buildroot/commit/86f9ef02f636

[linux-sunxi] Re: [PATCH sunxi-tools 6/7] fel: Add "readl" and "writel" commands

2016-03-20 Thread Siarhei Siamashka
On Sat, 19 Mar 2016 18:29:40 +0100 Bernhard Nortmann wrote: > Am 17.03.2016 um 13:55 schrieb Bernhard Nortmann: > > > > I can confirm/reproduce this behaviour on my A20 when accessing the > > SID register. Interesting enough, the bytes that actually do get read > > (i.e. end up != 0) are "corre

[linux-sunxi] Re: [PATCH sunxi-tools v5] fel: support selection of specific USB bus and device number

2016-03-20 Thread Siarhei Siamashka
On Sun, 20 Mar 2016 14:03:24 +0100 Bernhard Nortmann wrote: > Am 20.03.2016 um 13:53 schrieb Siarhei Siamashka: > > Thanks, also adding an extra > > > >|| busnum < 0 || devnum < 0 > > > > check here would make it perfect. > > > > If the user tries to provide negative numbers in th

[linux-sunxi] Re: [PATCH sunxi-tools v5] fel: support selection of specific USB bus and device number

2016-03-20 Thread Bernhard Nortmann
Thanks! Committed to sunxi-tools/master. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https:/

[linux-sunxi] Re: [PATCH sunxi-tools 6/7] fel: Add "readl" and "writel" commands

2016-03-20 Thread Bernhard Nortmann
One thing that came to my mind while playing around with this: Should we add something like this to the commit message? "Caveat: Use these commands with caution! Errors during execution of the scratch buffer code, e.g. attempts to access an invalid memory location, might crash the FEL; requiring

[linux-sunxi] Re: [PATCH sunxi-tools 6/7] fel: Add "readl" and "writel" commands

2016-03-20 Thread Siarhei Siamashka
On Sun, 20 Mar 2016 15:18:10 +0100 Bernhard Nortmann wrote: > One thing that came to my mind while playing around with this: Should we > add something like this to the commit message? > > "Caveat: Use these commands with caution! Errors during execution of > the scratch buffer code, e.g. attemp

[linux-sunxi] Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)

2016-03-20 Thread Andreas Färber
Am 16.03.2016 um 13:09 schrieb Robin Murphy: > On 16/03/16 11:39, Marc Zyngier wrote: >> On 16/03/16 11:19, Bert Lindner wrote: >>> Hopefully this is the correct place and way to report this. The main discussion is on netdev list actually, CC'ed. >>> For the board sun7i-a20-olinuxino-lime2, there

[linux-sunxi] Re: [PATCH v4 01/13] pinctrl: sunxi: Add A83T R_PIO controller

2016-03-20 Thread Linus Walleij
On Wed, Mar 16, 2016 at 5:04 PM, Vishnu Patekar wrote: > The A83T has R_PIO pin controller, it's same as A23, execpt A83T > interrupt bit is 6th and A83T has one extra pin PL12. > > Signed-off-by: Vishnu Patekar > Acked-by: Chen-Yu Tsai > Acked-by: Rob Herring I think I already merged this?

[linux-sunxi] Re: [PATCH sunxi-tools 6/7] fel: Add "readl" and "writel" commands

2016-03-20 Thread Bernhard Nortmann
Hi Siarhei! Am 20.03.2016 um 15:49 schrieb Siarhei Siamashka: This patch is just unsafe if pushed alone, that's why it implicitly depends on the other "fel: Move the temporary scratch buffer under the IRQ stack" patch. I see. My impression was that while "unclean" on its own, it's still funct

[linux-sunxi] [PATCH 1/8] ARM: dts: sun8i: Add mmc2_8bit_pins to sun8i-h3.dtsi

2016-03-20 Thread Hans de Goede
Add a pinctrl node for mmc2 in 8 bits mode on H3 SoCs. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-h3.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index dadb7f6..d1be2f5 100644 --- a/arch/arm/b

[linux-sunxi] [PATCH 0/8] ARM: dts: sun8i: Orangepi Plus dts improvements

2016-03-20 Thread Hans de Goede
Hi Maxime and Chen-Yu, Here is a series with various improvements for the Orangepi Plus dts. Some (most) of these patches have been submitted before, esp. the USB ones have multiple revisions before. But I lost count of their version, so I'm posting this as a "new" set. About the USB patches, the

[linux-sunxi] [PATCH 2/8] ARM: dts: sun8i: Add support for H3 usb clocks

2016-03-20 Thread Hans de Goede
From: Reinder de Haan Add a node describing the usb-clks found on the H3. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-h3.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i

[linux-sunxi] [PATCH 3/8] ARM: dts: sun8i: Add usbphy and usb host controller nodes

2016-03-20 Thread Hans de Goede
From: Reinder de Haan Add nodes describing the H3's usbphy and usb host controller nodes. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-h3.dtsi | 101 1 file changed, 101 insertions(+) diff --git a/arch/arm/bo

[linux-sunxi] [PATCH 5/8] ARM: dts: sun8i: Enable IR receiver on Orangepi Plus boards

2016-03-20 Thread Hans de Goede
Enable the ir receiver found on the orangepi plus board. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts index 1cb6

[linux-sunxi] [PATCH 8/8] ARM: dts: sun8i: Add eMMC dt node on Orangepi Plus boards

2016-03-20 Thread Hans de Goede
The Orangepi Plus has a 16GB eMMC, the vcc, the lack of pull-ups and the use of the hw-reset pin have all been verified with the board schematic. With this dts node for mmc2, the eMMC runs at the following ios settings: clock: 5200 Hz vdd:21 (3.3 ~ 3.4 V) bus mode: 2

[linux-sunxi] [PATCH 6/8] ARM: dts: sun8i: Add leds and switches on Orangepi Plus boards

2016-03-20 Thread Hans de Goede
From: Krzysztof Adamski OrangePi Plus board has two leds - green ("pwr") and red ("status") and two switches ("sw4" and "sw2"). This patch describes them in devicetree. Signed-off-by: Krzysztof Adamski Signed-off-by: Hans de Goede --- Changes in v6 (hdegoede): -Merge leds and r_leds nodes into

[linux-sunxi] [PATCH 4/8] ARM: dts: sun8i: Enable USB host controllers on Orangepi Plus boards

2016-03-20 Thread Hans de Goede
From: Jens Kuske Enable the 2 USB host controllers used on the Orange Pi Plus and add the necessary regulators. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede Signed-off-by: Jens Kuske --- arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 44 1 file cha

[linux-sunxi] [PATCH 7/8] ARM: dts: sun8i: Add wifi dt node on Orangepi Plus boards

2016-03-20 Thread Hans de Goede
The Orangepi Plus and Orangepi Plus 2 have a realtek rtl8189etv sdio wifi chip. This commit adds a device-tree node to power it up, so that the mmc subsys can scan it, and enables the mmc controller which is connected to it. Note that this just makes the wifi controller show up as a sdio device. I

[linux-sunxi] Re: [PATCH 0/8] ARM: dts: sun8i: Orangepi Plus dts improvements

2016-03-20 Thread Chen-Yu Tsai
Hi, On Mon, Mar 21, 2016 at 12:00 AM, Hans de Goede wrote: > Hi Maxime and Chen-Yu, > > Here is a series with various improvements for the Orangepi Plus dts. > Some (most) of these patches have been submitted before, esp. the USB > ones have multiple revisions before. But I lost count of their ve

[linux-sunxi] [PATCH] fel: Minor fixes

2016-03-20 Thread Bernhard Nortmann
- Do a clean shutdown / exit(0) after printing usage help, instead of continuing execution. This avoids the "ERROR: Allwinner USB FEL device not found!" when doing a plain ./sunxi-fel without any arguments. - Convert C++ style comments for uniform coding style. Signed-off-by: Bernhard Nortma

Re: [linux-sunxi] Re: [PATCH 0/8] ARM: dts: sun8i: Orangepi Plus dts improvements

2016-03-20 Thread Hans de Goede
Hi, On 20-03-16 17:05, Chen-Yu Tsai wrote: Hi, On Mon, Mar 21, 2016 at 12:00 AM, Hans de Goede wrote: Hi Maxime and Chen-Yu, Here is a series with various improvements for the Orangepi Plus dts. Some (most) of these patches have been submitted before, esp. the USB ones have multiple revision

[linux-sunxi] [PATCH v7] ARM: dts: sun8i: Add leds and switches on Orangepi Plus boards

2016-03-20 Thread Hans de Goede
From: Krzysztof Adamski OrangePi Plus board has two leds - green ("pwr") and red ("status") and two switches ("sw4" and "sw2"). This patch describes them in devicetree. Signed-off-by: Krzysztof Adamski Signed-off-by: Hans de Goede --- Changes in v6 (hdegoede): -Merge leds and r_leds nodes into