Re: [U-Boot] [linux-sunxi] Re: [PATCH 14/17] sunxi: Pine64: defconfig: enable SPL FIT support

2017-03-05 Thread André Przywara
On 05/03/17 04:06, Jonathan Gray wrote: > On Fri, Mar 03, 2017 at 09:55:25AM +, Andre Przywara wrote: >> Hi, >> >> On 03/03/17 09:22, Maxime Ripard wrote: >>> On Thu, Mar 02, 2017 at 12:03:20AM +0800, Icenowy Zheng wrote: 2017???3???1??? 23:51??? Maxime Ripard ? > >>

[linux-sunxi] [PATCH v2 00/12] Add support for the audio codec on Allwinner V3s

2017-03-05 Thread Icenowy Zheng
Allwinner V3s features a audio codec with dedicated digital and analog parts, like the ones on A23/H3, but much simpler (lack of MIC2, LINE IN and MBIAS). Add support for it. In order to make the codec usable, DMA support is also added in this series; the support of Lichee Pi Zero's dock board is

[linux-sunxi] [PATCH v2 01/12] ASoC: sun8i-codec-analog: split out mic2

2017-03-05 Thread Icenowy Zheng
Allwinner V3s features an analog codec without MIC2. Split out this part, in order to prepare for the V3s analog codec. Signed-off-by: Icenowy Zheng --- sound/soc/sunxi/sun8i-codec-analog.c | 92 +--- 1 file changed, 76 insertions(+), 16 deletions(-) diff --git

[linux-sunxi] [PATCH v2 02/12] ASoC: sun8i-codec-analog: split out line in

2017-03-05 Thread Icenowy Zheng
Allwinner V3s features an analog codec without LINEIN. Split out this part, in order to prepare for the V3s analog codec. Signed-off-by: Icenowy Zheng --- sound/soc/sunxi/sun8i-codec-analog.c | 76 ++-- 1 file changed, 65 insertions(+), 11 deletions(-) diff --gi

[linux-sunxi] [PATCH v2 03/12] ASoC: sun8i-codec-analog: split out mbias

2017-03-05 Thread Icenowy Zheng
Allwinner V3s features an analog codec without MBIAS pin. Split out this part, in order to prepare for the V3s analog codec. Signed-off-by: Icenowy Zheng --- sound/soc/sunxi/sun8i-codec-analog.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --gi

[linux-sunxi] [PATCH v2 05/12] ASoC: sun4i-codec: Add support for V3s codec

2017-03-05 Thread Icenowy Zheng
The codec in the V3s is similar to the one found on the A31. One key difference is the analog path controls are routed through the PRCM block. This is supported by the sun8i-codec-analog driver, and tied into this codec driver with the audio card's aux_dev. In addition, the V3s does not have LINEI

[linux-sunxi] [PATCH v2 04/12] ASoC: sun8i-codec-analog: add support for V3s SoC

2017-03-05 Thread Icenowy Zheng
The V3s SoC features an analog codec with headphone support but without mic2 and linein. Add support for it. Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/sound/sun8i-codec-analog.txt | 1 + sound/soc/sunxi/sun8i-codec-analog.c | 9 + 2 fil

[linux-sunxi] [PATCH v2 06/12] dmaengine: sun6i: make gate bit in sun8i's DMA engines a common quirk

2017-03-05 Thread Icenowy Zheng
Originally we enable a special gate bit when the compatible indicates A23/33. But according to BSP sources and user manuals, more SoCs will need this gate bit. So make it a common quirk configured in the config struct. The BSP source also indicates that A83T will need this gate bit (there's "SUN

[linux-sunxi] [PATCH v2 07/12] dmaengine: sun6i: support V3s SoC variant

2017-03-05 Thread Icenowy Zheng
Allwinner V3s has a DMA engine similar to the ones from A31, but with fewer channels and DRQs. Add support for it. Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/dma/sun6i-dma.txt | 1 + drivers/dma/sun6i-dma.c | 13 + 2 files changed

[linux-sunxi] [PATCH v2 08/12] ARM: dts: sun8i: restore the inclusion of ccu headers in V3s DTSI

2017-03-05 Thread Icenowy Zheng
When the V3s support patchset is applied, CCU headers and V3s DTSI went into different trees, so the CCU inclusion is removed in the DTSI. Add back them. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s.dtsi | 67 1 file changed, 34 insertion

[linux-sunxi] [PATCH v2 09/12] ARM: dts: sun8i: add DMA engine in V3s DTSI

2017-03-05 Thread Icenowy Zheng
Allwinner V3s SoC features a DMA engine. Add it in the DTSI file. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index b3f8b7f9c0bb..7e0342976ba8 1

[linux-sunxi] [PATCH v2 11/12] ARM: dts: sun8i: add pinmux for V3s mmc1

2017-03-05 Thread Icenowy Zheng
Allwinner V3s SoC features 3 MMC controllers, mmc0 is used as the MicroSD slot on Lichee Pi Zero, and on Lichee Pi Zero's dock mmc1 is also soldered as a MicroSD slot. Add the pinmux for mmc1, thus we can enable the MicroSD slot on the Lichee Pi Zero dock. Signed-off-by: Icenowy Zheng --- arch/

[linux-sunxi] [PATCH v2 10/12] ARM: dts: sun8i: add audio codec support into V3s DTSI

2017-03-05 Thread Icenowy Zheng
Allwinner V3s SoC features an internal audio codec like the one in H3, and a analog codec like the one in H3/A23 (but much simpler). Add them in the DTSI file. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --gi

[linux-sunxi] [PATCH v2 12/12] ARM: dts: sun8i: add device tree for Lichee Pi Zero with Dock

2017-03-05 Thread Icenowy Zheng
Lichee Pi Zero features a dock, which adds some functions, and should be soldered with the core board of Lichee Pi Zero. Add support for the dock as a new dts, as soldering is needed to make the dock usable and there's functions enabled on the dock that is unavailable at the 2.54mm pins of the cor

[linux-sunxi] Re: [PATCH v2 03/12] ASoC: sun8i-codec-analog: split out mbias

2017-03-05 Thread Icenowy Zheng
05.03.2017, 21:38, "Icenowy Zheng" : > Allwinner V3s features an analog codec without MBIAS pin. > > Split out this part, in order to prepare for the V3s analog codec. > > Signed-off-by: Icenowy Zheng > --- >  sound/soc/sunxi/sun8i-codec-analog.c | 34 +- >  1 file

[linux-sunxi] [PATCH v7 1/6] ARM: dts: sun8i: drop skeleton.dtsi inclusion in H3 DTSI

2017-03-05 Thread Icenowy Zheng
The skeleton.dtsi file is now deprecated, and do not exist in ARM64 environment. Since we will soon reuse most part of H3 DTSI for H5, which is an ARM64 chip, drop skeleton.dtsi inclusion now. Signed-off-by: Icenowy Zheng --- New patch extracted in v7. arch/arm/boot/dts/sun8i-h3.dtsi | 2 -- 1

[linux-sunxi] [PATCH v7 0/6] Allwinner H5 and Orange Pi PC2 support

2017-03-05 Thread Icenowy Zheng
Allwinner H5 is a 64-bit SoC with a design like the 32-bit H3, and it's pin-to-pin compatible with H3. This patchset adds support for it, along with the first available board -- Orange Pi PC2. Several H5 boards by Sinovoip Banana Pi and FriendlyARM Nano Pi are coming, so we should get ready for t

[linux-sunxi] [PATCH v7 2/6] ARM: dts: sun8i: drop pinctrl-a10.h inclusion for H3 DTSI

2017-03-05 Thread Icenowy Zheng
After converting to generic pinconf binding, pinctrl-a10.h is now not used at all. Drop its inclusion for H3 DTSI. Signed-off-by: Icenowy Zheng --- New patch extracted in v7. arch/arm/boot/dts/sun8i-h3.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/ar

[linux-sunxi] [PATCH v7 4/6] arm: dts: sun8i: split Allwinner H3 .dtsi

2017-03-05 Thread Icenowy Zheng
From: Andre Przywara The new Allwinner H5 SoC is pin-compatible to the H3 SoC, but with the Cortex-A7 cores replaced by Cortex-A53 cores and the MMC controller updated. So we should really share almost the whole .dtsi. In preparation for that move the peripheral parts of the existing sun8i-h3.dts

[linux-sunxi] [PATCH v7 3/6] ARM: dts: sun8i: correct the GIC compatible in H3 to gic-400

2017-03-05 Thread Icenowy Zheng
According to the datasheets provided by Allwinner, both Allwinner H3 and H5 use GIC-400 as their interrupt controller. For better device tree reusing, correct the GIC compatible in H3 DTSI to "arm,gic-400", thus this node can be reused in H5. Signed-off-by: Icenowy Zheng --- New patch extracted

[linux-sunxi] [PATCH v7 6/6] arm64: dts: sunxi: add support for the Orange Pi PC 2 board

2017-03-05 Thread Icenowy Zheng
From: Andre Przywara The Orange Pi PC 2 is a typical single board computer using the Allwinner H5 SoC. Apart from the usual suspects it features three separately driven USB ports and a Gigabit Ethernet port. Also it has a SPI NOR flash soldered, from which the board can boot from. This enables th

[linux-sunxi] [PATCH v7 5/6] arm64: dts: allwinner: add Allwinner H5 .dtsi

2017-03-05 Thread Icenowy Zheng
From: Andre Przywara The Allwinner H5 SoC is pin-compatible to the H3 SoC, but uses Cortex-A53 cores instead. Based on the now shared base .dtsi describing the common peripherals describe the H5 specific nodes on top of that. That symlinks in the sunxi-h3-h5.dtsi from the arch/arm tree. Signed-o

Re: [linux-sunxi] [PATCH v2 01/12] ASoC: sun8i-codec-analog: split out mic2

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:36 PM, Icenowy Zheng wrote: > Allwinner V3s features an analog codec without MIC2. > > Split out this part, in order to prepare for the V3s analog codec. > > Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai -- You received this message because you are subscribed to

Re: [linux-sunxi] [PATCH v2 02/12] ASoC: sun8i-codec-analog: split out line in

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:36 PM, Icenowy Zheng wrote: > Allwinner V3s features an analog codec without LINEIN. > > Split out this part, in order to prepare for the V3s analog codec. > > Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai -- You received this message because you are subscribed

Re: [linux-sunxi] Re: [PATCH v2 03/12] ASoC: sun8i-codec-analog: split out mbias

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:49 PM, Icenowy Zheng wrote: > > > 05.03.2017, 21:38, "Icenowy Zheng" : >> Allwinner V3s features an analog codec without MBIAS pin. >> >> Split out this part, in order to prepare for the V3s analog codec. >> >> Signed-off-by: Icenowy Zheng >> --- >> sound/soc/sunxi/sun8i

[linux-sunxi] Re: [PATCH v2 06/12] dmaengine: sun6i: make gate bit in sun8i's DMA engines a common quirk

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > Originally we enable a special gate bit when the compatible indicates > A23/33. > > But according to BSP sources and user manuals, more SoCs will need this > gate bit. > > So make it a common quirk configured in the config struct. > > The BSP

Re: [linux-sunxi] [PATCH v2 04/12] ASoC: sun8i-codec-analog: add support for V3s SoC

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > The V3s SoC features an analog codec with headphone support but without > mic2 and linein. You should also make new mixer control sets, with out linein and mic2, and split out the mixer widget for V3s. Otherwise ALSA is going to export MIC2 a

Re: [linux-sunxi] [PATCH v2 07/12] dmaengine: sun6i: support V3s SoC variant

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > Allwinner V3s has a DMA engine similar to the ones from A31, but with > fewer channels and DRQs. > > Add support for it. > > Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai -- You received this message because you are subscribed to th

Re: [linux-sunxi] [PATCH v2 05/12] ASoC: sun4i-codec: Add support for V3s codec

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > The codec in the V3s is similar to the one found on the A31. One key > difference is the analog path controls are routed through the PRCM > block. This is supported by the sun8i-codec-analog driver, and tied > into this codec driver with the a

Re: [linux-sunxi] [PATCH v2 08/12] ARM: dts: sun8i: restore the inclusion of ccu headers in V3s DTSI

2017-03-05 Thread Chen-Yu Tsai
Hi, On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > When the V3s support patchset is applied, CCU headers and V3s DTSI went > into different trees, so the CCU inclusion is removed in the DTSI. > > Add back them. > > Signed-off-by: Icenowy Zheng > --- > arch/arm/boot/dts/sun8i-v3s.dtsi |

Re: [linux-sunxi] [PATCH v2 09/12] ARM: dts: sun8i: add DMA engine in V3s DTSI

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > Allwinner V3s SoC features a DMA engine. > > Add it in the DTSI file. > > Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscrib

Re: [linux-sunxi] [PATCH v2 05/12] ASoC: sun4i-codec: Add support for V3s codec

2017-03-05 Thread Chen-Yu Tsai
On Mon, Mar 6, 2017 at 12:05 PM, Chen-Yu Tsai wrote: > On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: >> The codec in the V3s is similar to the one found on the A31. One key >> difference is the analog path controls are routed through the PRCM >> block. This is supported by the sun8i-codec-

[linux-sunxi] Re: [PATCH v2 10/12] ARM: dts: sun8i: add audio codec support into V3s DTSI

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > Allwinner V3s SoC features an internal audio codec like the one in H3, > and a analog codec like the one in H3/A23 (but much simpler). > > Add them in the DTSI file. > > Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai -- You received

Re: [linux-sunxi] [PATCH v2 11/12] ARM: dts: sun8i: add pinmux for V3s mmc1

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > Allwinner V3s SoC features 3 MMC controllers, mmc0 is used as the > MicroSD slot on Lichee Pi Zero, and on Lichee Pi Zero's dock mmc1 is > also soldered as a MicroSD slot. > > Add the pinmux for mmc1, thus we can enable the MicroSD slot on the

Re: [linux-sunxi] [PATCH v2 12/12] ARM: dts: sun8i: add device tree for Lichee Pi Zero with Dock

2017-03-05 Thread Chen-Yu Tsai
On Sun, Mar 5, 2017 at 9:37 PM, Icenowy Zheng wrote: > Lichee Pi Zero features a dock, which adds some functions, and should be > soldered with the core board of Lichee Pi Zero. > > Add support for the dock as a new dts, as soldering is needed to make > the dock usable and there's functions enable