Re: [linux-sunxi] [PATCH] rtc-sunxi: Allow to select RTC clock source

2016-07-30 Thread Onno Kortmann
Hi Julian, hi Chen-Yu, >>> On Thu, Jul 28, 2016 at 12:58 AM, Onno Kortmann wrote: This adds a sysfs 'clock_source' attribute which can be used to query and set the clock source of the RTC, either 'internal' or 'external'. >>> >>> Shouldn't this also be a devicetree

[linux-sunxi] Re: [PATCH v3 00/13] sunxi spi fixes

2016-07-30 Thread Michal Suchanek
On 29 July 2016 at 22:22, Maxime Ripard wrote: > On Mon, Jul 25, 2016 at 10:03:14AM +0200, Michal Suchanek wrote: >> Hello, >> >> On 25 July 2016 at 09:32, Maxime Ripard >> wrote: >> > On Fri, Jun 17, 2016 at 12:34:44PM +0200,

[linux-sunxi] [PATCH v2 1/2] ASoC: sunxi: Add bindings for sun6i to SPDIF

2016-07-30 Thread codekipper
From: Marcus Cooper The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its reset is controlled via a separate reset controller. Signed-off-by: Marcus Cooper --- Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt | 3 +++

[linux-sunxi] [PATCH v2 2/2] ASoC: sunxi: compatibility for sun6i to SPDIF

2016-07-30 Thread codekipper
From: Marcus Cooper The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its reset is controlled via a separate reset controller. The DMA also complains when the maxburst is set to 4 so it's been adjusted to 8 which suites both the older and newer SoCs.

[linux-sunxi] [PATCH v2 0/2] ASoC: Extended SPDIF support to Allwinner A31 SoCs

2016-07-30 Thread codekipper
From: Marcus Cooper This patch set extends the current support of the Allwinner SPDIF transceiver to include the A31 SoC. For now just the SPDIF transmitter has been tested on the Mele I7. In order for this patch set to be functional then we require changes to the clocks

[linux-sunxi] Re: [PATCH 1/2] ASoC: sunxi: Add bindings for sun6i to SPDIF

2016-07-30 Thread Maxime Ripard
On Sat, Jul 30, 2016 at 05:34:11PM +0200, Code Kipper wrote: > On 30 July 2016 at 17:17, Maxime Ripard > wrote: > > On Sat, Jul 30, 2016 at 04:27:15PM +0200, codekip...@gmail.com wrote: > >> From: Marcus Cooper > >> > >> The A31 SoC uses

[linux-sunxi] Re: [PATCH 1/2] ASoC: sunxi: Add bindings for sun6i to SPDIF

2016-07-30 Thread Code Kipper
On 30 July 2016 at 17:17, Maxime Ripard wrote: > On Sat, Jul 30, 2016 at 04:27:15PM +0200, codekip...@gmail.com wrote: >> From: Marcus Cooper >> >> The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its >> reset is

Re: [linux-sunxi] [PATCH 2/2] ASoC: sunxi: compatibility for sun6i to SPDIF

2016-07-30 Thread Maxime Ripard
On Sun, Jul 31, 2016 at 12:40:48AM +1000, Julian Calaby wrote: > Hi Marcus, > > On Sun, Jul 31, 2016 at 12:27 AM, wrote: > > From: Marcus Cooper > > > > The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its > > reset is controlled

[linux-sunxi] Re: [PATCH 2/2] ASoC: sunxi: compatibility for sun6i to SPDIF

2016-07-30 Thread maxime.rip...@free-electrons.com
On Sat, Jul 30, 2016 at 10:52:45PM +0800, Icenowy Zheng wrote: > > + if (of_device_is_compatible(pdev->dev.of_node, > > + "allwinner,sun6i-a31-spdif")) { > > + host->rst = devm_reset_control_get_optional(>dev, NULL); > > + if (IS_ERR(host->rst) && PTR_ERR(host->rst) == -EPROBE_DEFER) { > > + ret =

[linux-sunxi] Re: [PATCH 2/2] ASoC: sunxi: compatibility for sun6i to SPDIF

2016-07-30 Thread Maxime Ripard
On Sat, Jul 30, 2016 at 04:27:16PM +0200, codekip...@gmail.com wrote: > From: Marcus Cooper > > The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its > reset is controlled via a separate reset controller. > > The DMA also complains when the maxburst is

[linux-sunxi] Re: [PATCH 1/2] ASoC: sunxi: Add bindings for sun6i to SPDIF

2016-07-30 Thread Maxime Ripard
On Sat, Jul 30, 2016 at 04:27:15PM +0200, codekip...@gmail.com wrote: > From: Marcus Cooper > > The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its > reset is controlled via a separate reset controller. > > Signed-off-by: Marcus Cooper

[linux-sunxi] Re: [PATCH] pinctrl: sun6i: add SPDIF to pin description.

2016-07-30 Thread Maxime Ripard
On Sat, Jul 30, 2016 at 04:20:22PM +0200, codekip...@gmail.com wrote: > From: Marcus Cooper > > Add the SPDIF mux functionality to the pinctrl for the Allwinner A31 > SoC. > > Signed-off-by: Marcus Cooper Acked-by: Maxime Ripard

Re: [linux-sunxi] [PATCH 2/2] ASoC: sunxi: compatibility for sun6i to SPDIF

2016-07-30 Thread Julian Calaby
Hi Marcus, On Sun, Jul 31, 2016 at 12:27 AM, wrote: > From: Marcus Cooper > > The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its > reset is controlled via a separate reset controller. > > The DMA also complains when the maxburst

[linux-sunxi] [PATCH 0/2] ASoC: Extended SPDIF support to Allwinner A31 SoCs

2016-07-30 Thread codekipper
From: Marcus Cooper This patch set extends the current support of the Allwinner SPDIF transceiver to include the A31 SoC. For now just the SPDIF transmitter has been tested on the Mele I7. In order for this patch set to be functional then we require changes to the clocks

[linux-sunxi] [PATCH 1/2] ASoC: sunxi: Add bindings for sun6i to SPDIF

2016-07-30 Thread codekipper
From: Marcus Cooper The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its reset is controlled via a separate reset controller. Signed-off-by: Marcus Cooper --- Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt | 3 +++

[linux-sunxi] [PATCH 2/2] ASoC: sunxi: compatibility for sun6i to SPDIF

2016-07-30 Thread codekipper
From: Marcus Cooper The A31 SoC uses the same SPDIF block as found in earlier SoCs, but its reset is controlled via a separate reset controller. The DMA also complains when the maxburst is set to 4 so it's been adjusted to 8 which suites both the older and newer SoCs.

[linux-sunxi] [PATCH] pinctrl: sun6i: add SPDIF to pin description.

2016-07-30 Thread codekipper
From: Marcus Cooper Add the SPDIF mux functionality to the pinctrl for the Allwinner A31 SoC. Signed-off-by: Marcus Cooper --- drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

Re: [linux-sunxi] Re: [PATCH 2/3] mmc: sunxi: Set the 'New Timing' register for 8 bits DDR transfers

2016-07-30 Thread Hans de Goede
Hi, On 29-07-16 21:17, Maxime Ripard wrote: On Thu, Jul 21, 2016 at 11:26:55AM +0200, Jean-Francois Moine wrote: On Thu, 21 Jul 2016 10:56:15 +0200 Maxime Ripard wrote: On Wed, Jul 20, 2016 at 08:16:28PM +0200, Jean-Francois Moine wrote: The 'new timing

[linux-sunxi] Re: [PATCH v2 1/5] ethernet: add sun8i-emac driver

2016-07-30 Thread Maxime Ripard
On Sat, Jul 30, 2016 at 09:30:01AM +0800, Chen-Yu Tsai wrote: > >> > > +static void sun8i_emac_unset_syscon(struct net_device *ndev) > >> > > +{ > >> > > + struct sun8i_emac_priv *priv = netdev_priv(ndev); > >> > > + u32 reg = 0; > >> > > + > >> > > + if (priv->variant == H3_EMAC) > >> > > +