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

2016-03-21 Thread Hans de Goede
Hi, On 21-03-16 08:59, Maxime Ripard wrote: Hi, On Sun, Mar 20, 2016 at 07:55:02PM +0100, Hans de Goede wrote: 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

[linux-sunxi] [PATCH] musb: sunxi-glue: Fix sunxi-musb driver not auto-loading

2016-03-21 Thread Hans de Goede
Add a missing MODULE_DEVICE_TABLE() line which was causing the sunxi-musb glue to not auto-load when build as a module. Signed-off-by: Hans de Goede --- drivers/usb/musb/sunxi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb/sunxi.c

[linux-sunxi] [PATCH sunxi-tools v2 0/2] fel: Minor fixes

2016-03-21 Thread Bernhard Nortmann
Changes in v2: - Rebased to current master - Added some formatting adjustments - Added a second patch that simplifies hexdump() Bernhard Nortmann (2): fel: Minor fixes fel: Simplify hexdump() single character output, using putchar() fel.c | 43 --- 1

[linux-sunxi] [PATCH sunxi-tools v2 2/2] fel: Simplify hexdump() single character output, using putchar()

2016-03-21 Thread Bernhard Nortmann
Signed-off-by: Bernhard Nortmann --- fel.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fel.c b/fel.c index 616cd05..da006ac 100644 --- a/fel.c +++ b/fel.c @@ -322,16 +322,14 @@ void hexdump(void *data, uint32_t offset, size_t size)

[linux-sunxi] [PATCH sunxi-tools v2 1/2] fel: Minor fixes

2016-03-21 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 a uniform coding style. - Some small formatting

[linux-sunxi][PATCH v3 5/8] ARM: dts: sun4i: Add the SPDIF block to the A10

2016-03-21 Thread codekipper
From: Marcus Cooper Add the SPDIF transceiver controller block to the A10 dtsi. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun4i-a10.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi

[linux-sunxi][PATCH v3 8/8] ARM: dts: sun7i: Add SPDIF to the Itead Ibox

2016-03-21 Thread codekipper
From: Marcus Cooper Enable the S/PDIF transmitter that is present on the Itead Ibox. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun7i-a20-itead-ibox.dts | 24 1 file changed, 24 insertions(+) diff --git

[linux-sunxi][PATCH v3 1/8] ARM: dts :sunxi: Add SPDIF TX pin to the A10

2016-03-21 Thread codekipper
From: Marcus Cooper Add the SPDIF TX pin to the A10 dtsi. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun4i-a10.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi

[linux-sunxi][PATCH v3 3/8] ARM: dts: sun4i: Add the SPDIF clk to the A10

2016-03-21 Thread codekipper
From: Marcus Cooper Add the SPDIF clock to the A10 dtsi. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun4i-a10.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi

[linux-sunxi][PATCH v3 2/8] ARM: dts :sun7i: Add SPDIF TX pin to the A20

2016-03-21 Thread codekipper
From: Marcus Cooper Add the SPDIF TX pin to the A20 dtsi. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun7i-a20.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi

[linux-sunxi][PATCH v3 6/8] ARM: dts: sun7i: Add the SPDIF block to the A20

2016-03-21 Thread codekipper
From: Marcus Cooper Add the SPDIF transceiver controller block to the A20 dtsi. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun7i-a20.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi

[linux-sunxi][PATCH v3 0/8] ARM: sunxi: Add SPDIF playback support

2016-03-21 Thread codekipper
From: Marcus Cooper Hi All, now that the sun4i-spdif driver has made it into linux-next then this patch series completes what is needed to have SPDIF working on both A10 and A20 devices. Enjoy, CK --- Changes since v2: - Split the patches up, added and removed some

Re: [linux-sunxi] [PATCH 1/2] fel: only read MMU control registers if MMU is enabled

2016-03-21 Thread Jens Kuske
On 21/03/16 19:22, Siarhei Siamashka wrote: > On Mon, 21 Mar 2016 14:24:14 +0100 > Jens Kuske wrote: > >> This workaround is necessary for A80, which sometimes >> fails at reading DACR. >> >> Signed-off-by: Jens Kuske >> --- >> fel.c | 9 + >>

Re: [linux-sunxi] [PATCH 2/2] fel: add fel spl support for Allwinner A80

2016-03-21 Thread Siarhei Siamashka
On Mon, 21 Mar 2016 14:24:15 +0100 Jens Kuske wrote: > The A80 has the V bit in SCTLR set to 0 because of the BROM > being at 0x now, so the SCTLR check has to be relaxed. > > Signed-off-by: Jens Kuske Thanks! > --- > fel.c | 21

Re: [linux-sunxi][PATCH v2 1/5] clk: sunxi: mod1 clock should modify it's parent

2016-03-21 Thread Maxime Ripard
On Mon, Mar 21, 2016 at 05:10:38PM +0100, codekip...@gmail.com wrote: > From: Andrea Venturi > > add CLK_SET_RATE_PARENT to modify the rate on clk upstream > > Signed-off-by: Marcus Cooper Applied, thanks Maxime -- Maxime Ripard, Free

Re: [linux-sunxi] [PATCH 1/2] fel: only read MMU control registers if MMU is enabled

2016-03-21 Thread Siarhei Siamashka
On Mon, 21 Mar 2016 14:24:14 +0100 Jens Kuske wrote: > This workaround is necessary for A80, which sometimes > fails at reading DACR. > > Signed-off-by: Jens Kuske > --- > fel.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > >

Re: [linux-sunxi][PATCH v2 4/5] ARM: dts: sun4i: Add SPDIF to the Mele A1000

2016-03-21 Thread Maxime Ripard
On Mon, Mar 21, 2016 at 05:10:41PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Enable the S/PDIF transmitter that is present on the A1000. > > Signed-off-by: Marcus Cooper > --- > arch/arm/boot/dts/sun4i-a10-a1000.dts | 23

Re: [linux-sunxi][PATCH v2 2/5] ARM: dts :sunxi: Add SPDIF pins to A10 and A20

2016-03-21 Thread Maxime Ripard
On Mon, Mar 21, 2016 at 05:10:39PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Add the SPDIF pins to the A10 and A20 dtsi. > > Signed-off-by: Marcus Cooper > --- > arch/arm/boot/dts/sun4i-a10.dtsi | 21 + >

Re: [linux-sunxi][PATCH v2 3/5] ARM: dts: sunxi: Add the SPDIF to the A10 and A20

2016-03-21 Thread Maxime Ripard
On Mon, Mar 21, 2016 at 05:10:40PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Add the SPDIF transceiver controller and clock to the A10 and > A20 dtsi. > > Signed-off-by: Marcus Cooper > > --- > arch/arm/boot/dts/sun4i-a10.dtsi |

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-21 Thread Mark Brown
On Mon, Mar 21, 2016 at 07:06:05PM +0100, Maxime Ripard wrote: > I don't think you should focus too much on alsamixer, there's other > tools to modify the configuration. The expectation is that most users will use something like UCM and only system integrators will see the full control set in

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-21 Thread Maxime Ripard
On Sat, Mar 19, 2016 at 05:51:24PM +0100, Danny Milosavljevic wrote: > Hi Maxime, > > > IIRC, in order to have shared controls, you just needed to share the > > controls structure. > > Yeah. I did this and it actually works in a way, but in doesn't do all that I > want. > > There are two

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-21 Thread Maxime Ripard
On Sat, Mar 19, 2016 at 05:13:36PM +0100, Danny Milosavljevic wrote: > Hi Mark, > > my question is whether it's possible to group together the left and > right channel into one selem, and also if it's possible to reuse > volumes then. For example: > > For sun4i-codec Mic there's right now: > -

[linux-sunxi][PATCH v2 5/5] ARM: dts: sun7i: Add SPDIF to Itead Ibox

2016-03-21 Thread codekipper
From: Marcus Cooper Enable the S/PDIF transmitter that is present on the Itead Ibox. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun7i-a20-itead-ibox.dts | 24 1 file changed, 24 insertions(+) diff --git

[linux-sunxi][PATCH v2 4/5] ARM: dts: sun4i: Add SPDIF to the Mele A1000

2016-03-21 Thread codekipper
From: Marcus Cooper Enable the S/PDIF transmitter that is present on the A1000. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun4i-a10-a1000.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git

[linux-sunxi][PATCH v2 1/5] clk: sunxi: mod1 clock should modify it's parent

2016-03-21 Thread codekipper
From: Andrea Venturi add CLK_SET_RATE_PARENT to modify the rate on clk upstream Signed-off-by: Marcus Cooper --- drivers/clk/sunxi/clk-a10-mod1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi][PATCH v2 3/5] ARM: dts: sunxi: Add the SPDIF to the A10 and A20

2016-03-21 Thread codekipper
From: Marcus Cooper Add the SPDIF transceiver controller and clock to the A10 and A20 dtsi. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun4i-a10.dtsi | 24 arch/arm/boot/dts/sun7i-a20.dtsi | 24

[linux-sunxi][PATCH v2 2/5] ARM: dts :sunxi: Add SPDIF pins to A10 and A20

2016-03-21 Thread codekipper
From: Marcus Cooper Add the SPDIF pins to the A10 and A20 dtsi. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun4i-a10.dtsi | 21 + arch/arm/boot/dts/sun7i-a20.dtsi | 21 + 2 files changed, 42

[linux-sunxi][PATCH v2 0/5] ARM: sunxi: Add SPDIF playback support

2016-03-21 Thread codekipper
From: Marcus Cooper Hi All, now that the sun4i-spdif driver has made it into linux-next then this patch series completes what is needed to have SPDIF working on both A10 and A20 devices. Enjoy, CK --- Changes since v1: - Added defines to the dma properties and changed

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-21 Thread Mark Brown
On Sat, Mar 19, 2016 at 05:13:36PM +0100, Danny Milosavljevic wrote: > Hi Mark, > my question is whether it's possible to group together the left and right > channel into one selem, and also if it's possible to reuse volumes then. For > example: Please fix your mail client to word wrap within

[linux-sunxi] [PATCH 1/2] fel: only read MMU control registers if MMU is enabled

2016-03-21 Thread Jens Kuske
This workaround is necessary for A80, which sometimes fails at reading DACR. Signed-off-by: Jens Kuske --- fel.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fel.c b/fel.c index a905ad5..ba58105 100644 --- a/fel.c +++ b/fel.c @@ -767,10

[linux-sunxi] [PATCH 2/2] fel: add fel spl support for Allwinner A80

2016-03-21 Thread Jens Kuske
The A80 has the V bit in SCTLR set to 0 because of the BROM being at 0x now, so the SCTLR check has to be relaxed. Signed-off-by: Jens Kuske --- fel.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/fel.c b/fel.c index

Re: [linux-sunxi] About A83T/H3 EMAC Driver Separation

2016-03-21 Thread Hans de Goede
Hi, On 21-03-16 12:49, Chen-Yu Tsai wrote: Hi, I've been looking at the new EMAC driver and help cleaning up the platform related (probe/remove/DT) bits. The new hardware has the same glue layer like we had with earlier SoCs with the GMAC. So for the A83T we could just re-use the clock driver

[linux-sunxi] Re: [PATCH 2/4] mfd: axp20x: Add AXP209 GPIO driver to the mfd

2016-03-21 Thread Lee Jones
On Wed, 09 Mar 2016, Maxime Ripard wrote: > Now that we have a GPIO driver for the AXP209, we can add it to our MFD. > > Signed-off-by: Maxime Ripard > --- > drivers/mfd/axp20x.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks. > diff --git

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

2016-03-21 Thread Siarhei Siamashka
On Sun, 20 Mar 2016 16:09:40 +0100 Bernhard Nortmann wrote: > 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

Re: [linux-sunxi] Re: Latest U-boot branch not booting on Hummingbird A31

2016-03-21 Thread Chen-Yu Tsai
Hi, On Mon, Mar 21, 2016 at 6:18 PM, Hans de Goede wrote: > Hi, > > > On 21-03-16 11:06, Chen-Yu Tsai wrote: >> >> Hi, >> >> On Mon, Mar 21, 2016 at 5:57 PM, Hans de Goede >> wrote: >>> >>> HI, >>> >>> >>> On 21-03-16 10:49, wens Tsai wrote:

Re: [linux-sunxi] Re: Latest U-boot branch not booting on Hummingbird A31

2016-03-21 Thread Hans de Goede
Hi, On 21-03-16 11:06, Chen-Yu Tsai wrote: Hi, On Mon, Mar 21, 2016 at 5:57 PM, Hans de Goede wrote: HI, On 21-03-16 10:49, wens Tsai wrote: Hi Hans, I updated U-boot on my boards to your latest sunxi-wip branch: f965340 ("sunxi: Enable support for the eMMC

[linux-sunxi] Re: Latest U-boot branch not booting on Hummingbird A31

2016-03-21 Thread Chen-Yu Tsai
Hi, On Mon, Mar 21, 2016 at 5:57 PM, Hans de Goede wrote: > HI, > > > On 21-03-16 10:49, wens Tsai wrote: >> >> Hi Hans, >> >> I updated U-boot on my boards to your latest sunxi-wip branch: >> >> f965340 ("sunxi: Enable support for the eMMC found on the orangepi >>

[linux-sunxi] Re: Latest U-boot branch not booting on Hummingbird A31

2016-03-21 Thread Hans de Goede
HI, On 21-03-16 10:49, wens Tsai wrote: Hi Hans, I updated U-boot on my boards to your latest sunxi-wip branch: f965340 ("sunxi: Enable support for the eMMC found on the orangepi plus") My Hummingbird A31 fails to boot after this. See log: HELLO! BOOT0 is starting! boot0 version :

[linux-sunxi] Latest U-boot branch not booting on Hummingbird A31

2016-03-21 Thread wens Tsai
Hi Hans, I updated U-boot on my boards to your latest sunxi-wip branch: f965340 ("sunxi: Enable support for the eMMC found on the orangepi plus") My Hummingbird A31 fails to boot after this. See log: HELLO! BOOT0 is starting! boot0 version : 3.0.0 reg_addr 0x01f00100 =0x reg_addr

[linux-sunxi] Re: [PATCH] clk: sunxi: Add CSI (camera's Sensors Interface) module clock driver for sun[457]i

2016-03-21 Thread Maxime Ripard
Hi Yassin, On Thu, Mar 17, 2016 at 07:43:42PM +1100, yassinjaf...@gmail.com wrote: > From: Yassin Jaffer > > This patch adds a composite clock type consisting of > a clock gate, mux, configurable dividers, and a reset control. > > Signed-off-by: Yassin Jaffer

[linux-sunxi] Re: [PATCH] clk: sunxi: Add CSI (camera's Sensors Interface) module clock driver for sun[457]i

2016-03-21 Thread Rob Herring
On Thu, Mar 17, 2016 at 07:43:42PM +1100, yassinjaf...@gmail.com wrote: > From: Yassin Jaffer > > This patch adds a composite clock type consisting of > a clock gate, mux, configurable dividers, and a reset control. > > Signed-off-by: Yassin Jaffer

[linux-sunxi] Re: How to use socketcan in android application layer

2016-03-21 Thread mr . vijayshelke
On Wednesday, December 18, 2013 at 2:46:27 PM UTC+5:30, Peter Chen wrote: > hey, guys. > I'v finished sunxi CAN drive in the socketcan mode.And I write a C program > proved it works.I can send and receive packet correctlly. > Since I'm not an android app developer, I wonder how can I write a demo

[linux-sunxi] [PATCH] sunxi: Add defconfig for Sinlinx SinA31s

2016-03-21 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,

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

2016-03-21 Thread Maxime Ripard
On Sun, Mar 20, 2016 at 05:00:28PM +0100, 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

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

2016-03-21 Thread Maxime Ripard
Hi, On Sun, Mar 20, 2016 at 07:55:02PM +0100, Hans de Goede wrote: > 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

[linux-sunxi] Re: [PATCH] ARM: dts: Add dts file for Dserve DSRV9703C tablet

2016-03-21 Thread Maxime Ripard
On Sat, Mar 19, 2016 at 11:18:59PM +0800, Chen-Yu Tsai wrote: > On Sat, Mar 19, 2016 at 3:53 PM, Hans de Goede wrote: > > The Dserve DSRV9703C is a 9.7" A10 tablet with a 1024x768 ips LCD, > > 1G RAM, 4GB flash, a Focaltech FT5406EE8 touchscreen and rtl8188ctv wifi. > > > >

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun6i: Add serial0 alias and stdout-path to a31s-primo81.dts

2016-03-21 Thread Maxime Ripard
On Sat, Mar 19, 2016 at 10:13:47AM +0100, Hans de Goede wrote: > Hi, > > On 18-03-16 18:48, Maxime Ripard wrote: > >On Thu, Mar 17, 2016 at 02:28:03PM +0800, Chen-Yu Tsai wrote: > >>On Wed, Mar 16, 2016 at 10:19 PM, Hans de Goede wrote: > >>>u-boot uses the kernel as the