linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2 1/9] drivers: pinctrl: add driver for Allwinner H5 SoC
       [not found] ` <20170126154859.55855-2-icenowy@aosc.xyz>
@ 2017-01-27 15:51   ` Maxime Ripard
  2017-01-30 15:13   ` Linus Walleij
  1 sibling, 0 replies; 10+ messages in thread
From: Maxime Ripard @ 2017-01-27 15:51 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Chen-Yu Tsai, Linus Walleij, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, linux-clk, devicetree,
	linux-arm-kernel, linux-kernel, linux-gpio, dmaengine,
	alsa-devel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

On Thu, Jan 26, 2017 at 11:48:51PM +0800, Icenowy Zheng wrote:
> Based on the Allwinner H5 datasheet and the pinctrl driver of the
> backward-compatible H3 this introduces the pin multiplex assignments for
> the H5 SoC.
> 
> H5 introduced some more pin functions (e.g. three more groups of TS
> pins, and one more groups of SIM pins) than H3.
> 
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 3/9] clk: sunxi-ng: add support for Allwinner H5 SoC
       [not found] ` <20170126154859.55855-4-icenowy@aosc.xyz>
@ 2017-01-27 15:53   ` Maxime Ripard
  0 siblings, 0 replies; 10+ messages in thread
From: Maxime Ripard @ 2017-01-27 15:53 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Chen-Yu Tsai, Linus Walleij, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, linux-clk, devicetree,
	linux-arm-kernel, linux-kernel, linux-gpio, dmaengine,
	alsa-devel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 1790 bytes --]

On Thu, Jan 26, 2017 at 11:48:53PM +0800, Icenowy Zheng wrote:
> Allwinner H5 is a SoC that features a CCU like H3, but with MMC phase
> clocks removed (for new MMC controller) and a new bus gate/reset
> imported.
> 
> Add support for it.
> 
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
> ---
> A giant rewrite since v1.
> It now do not use a dedicated driver for H5, but altered the CCU driver
> of H3 to support H5.
> 
>  .../devicetree/bindings/clock/sunxi-ccu.txt        |   1 +
>  drivers/clk/sunxi-ng/Kconfig                       |   6 +-
>  drivers/clk/sunxi-ng/Makefile                      |   2 +-
>  .../sunxi-ng/{ccu-sun8i-h3.c => ccu-sunxi-h3-h5.c} | 179 ++++++++++++++++++---
>  .../sunxi-ng/{ccu-sun8i-h3.h => ccu-sunxi-h3-h5.h} |  15 +-
>  include/dt-bindings/clock/sun8i-h3-ccu.h           | 146 +----------------
>  include/dt-bindings/clock/sunxi-h3-h5-ccu.h        | 148 +++++++++++++++++
>  include/dt-bindings/reset/sun8i-h3-ccu.h           | 104 +-----------
>  include/dt-bindings/reset/sunxi-h3-h5-ccu.h        | 106 ++++++++++++
>  9 files changed, 431 insertions(+), 276 deletions(-)
>  rename drivers/clk/sunxi-ng/{ccu-sun8i-h3.c => ccu-sunxi-h3-h5.c} (80%)
>  rename drivers/clk/sunxi-ng/{ccu-sun8i-h3.h => ccu-sunxi-h3-h5.h} (82%)
>  mode change 100644 => 120000 include/dt-bindings/clock/sun8i-h3-ccu.h
>  create mode 100644 include/dt-bindings/clock/sunxi-h3-h5-ccu.h
>  mode change 100644 => 120000 include/dt-bindings/reset/sun8i-h3-ccu.h
>  create mode 100644 include/dt-bindings/reset/sunxi-h3-h5-ccu.h

Please do that in two patches. One to rename the existing driver, one
to support the H5.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 4/9] arm: dts: sun8i: split Allwinner H3 .dtsi
       [not found] ` <20170126154859.55855-5-icenowy@aosc.xyz>
@ 2017-01-27 15:55   ` Maxime Ripard
  0 siblings, 0 replies; 10+ messages in thread
From: Maxime Ripard @ 2017-01-27 15:55 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Chen-Yu Tsai, Linus Walleij, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, linux-clk, devicetree,
	linux-arm-kernel, linux-kernel, linux-gpio, dmaengine,
	alsa-devel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

On Thu, Jan 26, 2017 at 11:48:54PM +0800, Icenowy Zheng wrote:
> -		mmc0: mmc@01c0f000 {
> +		mmc@01c0f000 {

There's no point in removing the labels, and you can even use the
label-based syntax to reference them, instead of using the path.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 6/9] arm64: dts: allwinner: add Allwinner H5 .dtsi
       [not found] ` <20170126154859.55855-7-icenowy@aosc.xyz>
@ 2017-01-27 15:58   ` Maxime Ripard
  0 siblings, 0 replies; 10+ messages in thread
From: Maxime Ripard @ 2017-01-27 15:58 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Chen-Yu Tsai, Linus Walleij, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, linux-clk, devicetree,
	linux-arm-kernel, linux-kernel, linux-gpio, dmaengine,
	alsa-devel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

On Thu, Jan 26, 2017 at 11:48:56PM +0800, Icenowy Zheng wrote:
> +		mmc@01c0f000 {

Please use a label based syntax here too.

> +			compatible = "allwinner,sun50i-a64-mmc",
> +				     "allwinner,sun5i-a13-mmc";

The compatibility with the A13 has never been true, and the compatible
should be "allwinner,sun50i-h5-mmc", "allwinner,sun50i-a64-mmc".

> +			clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
> +			clock-names = "ahb", "mmc";
> +		};
> +
> +		mmc@01c10000 {
> +			compatible = "allwinner,sun50i-a64-mmc",
> +				     "allwinner,sun5i-a13-mmc";
> +			clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
> +			clock-names = "ahb", "mmc";
> +		};
> +
> +		mmc@01c11000 {
> +			compatible = "allwinner,sun50i-a64-mmc",

And this is very likely to use the emmc compatible.

> +				     "allwinner,sun5i-a13-mmc";
> +			clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
> +			clock-names = "ahb", "mmc";
> +		};
> +
> +		clock@01c20000 {
> +			compatible = "allwinner,sun50i-h5-ccu",
> +				     "allwinner,sun8i-h3-ccu";
> +		};

If it doesn't have the same clocks, it's not compatible with the H3.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 7/9] dmaengine: sun6i: allow build on ARM64 platforms (sun50i)
       [not found] ` <20170126154859.55855-8-icenowy@aosc.xyz>
@ 2017-01-27 15:59   ` Maxime Ripard
  2017-01-28 12:47   ` [linux-sunxi] " Chen-Yu Tsai
  1 sibling, 0 replies; 10+ messages in thread
From: Maxime Ripard @ 2017-01-27 15:59 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Chen-Yu Tsai, Linus Walleij, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, linux-clk, devicetree,
	linux-arm-kernel, linux-kernel, linux-gpio, dmaengine,
	alsa-devel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

On Thu, Jan 26, 2017 at 11:48:57PM +0800, Icenowy Zheng wrote:
> As 64-bot Allwinner H5 SoC has the same DMA engine with H3, the DMA
> driver should be allowed to be built for ARM64, in order to make it work on H5.
> 
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 8/9] ASoC: sunxi: allow the analog codec driver to be built on ARM64
       [not found] ` <20170126154859.55855-9-icenowy@aosc.xyz>
@ 2017-01-27 20:05   ` Maxime Ripard
  2017-01-28 12:46     ` Chen-Yu Tsai
  2017-02-08 18:34   ` Applied "ASoC: sunxi: allow the analog codec driver to be built on ARM64" to the asoc tree Mark Brown
  1 sibling, 1 reply; 10+ messages in thread
From: Maxime Ripard @ 2017-01-27 20:05 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Chen-Yu Tsai, Linus Walleij, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, linux-clk, devicetree,
	linux-arm-kernel, linux-kernel, linux-gpio, dmaengine,
	alsa-devel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

On Thu, Jan 26, 2017 at 11:48:58PM +0800, Icenowy Zheng wrote:
> As the 64-bit Allwinner H5 SoC has the same analog codec part (also the
> same digital part) as H3, enable the driver to be built on ARM64
> Allwinner platform, so that it can be used on H5.
> 
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 8/9] ASoC: sunxi: allow the analog codec driver to be built on ARM64
  2017-01-27 20:05   ` [PATCH v2 8/9] ASoC: sunxi: allow the analog codec driver to be built on ARM64 Maxime Ripard
@ 2017-01-28 12:46     ` Chen-Yu Tsai
  0 siblings, 0 replies; 10+ messages in thread
From: Chen-Yu Tsai @ 2017-01-28 12:46 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Icenowy Zheng, Chen-Yu Tsai, Linus Walleij, Vinod Koul,
	Mark Brown, Jaroslav Kysela, Andre Przywara, linux-clk,
	devicetree, linux-arm-kernel, linux-kernel, linux-gpio,
	dmaengine, Linux-ALSA, linux-sunxi

On Sat, Jan 28, 2017 at 4:05 AM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> On Thu, Jan 26, 2017 at 11:48:58PM +0800, Icenowy Zheng wrote:
>> As the 64-bit Allwinner H5 SoC has the same analog codec part (also the
>> same digital part) as H3, enable the driver to be built on ARM64
>> Allwinner platform, so that it can be used on H5.
>>
>> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
>
> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Acked-by: Chen-Yu Tsai <wens@csie.org>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [linux-sunxi] [PATCH v2 7/9] dmaengine: sun6i: allow build on ARM64 platforms (sun50i)
       [not found] ` <20170126154859.55855-8-icenowy@aosc.xyz>
  2017-01-27 15:59   ` [PATCH v2 7/9] dmaengine: sun6i: allow build on ARM64 platforms (sun50i) Maxime Ripard
@ 2017-01-28 12:47   ` Chen-Yu Tsai
  1 sibling, 0 replies; 10+ messages in thread
From: Chen-Yu Tsai @ 2017-01-28 12:47 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Maxime Ripard, Chen-Yu Tsai, Linus Walleij, Vinod Koul,
	Mark Brown, Jaroslav Kysela, Andre Przywara, linux-clk,
	devicetree, linux-arm-kernel, linux-kernel, linux-gpio,
	dmaengine, Linux-ALSA, linux-sunxi

On Thu, Jan 26, 2017 at 11:48 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:
> As 64-bot Allwinner H5 SoC has the same DMA engine with H3, the DMA

        ^^^ typo

Otherwise,

Acked-by: Chen-Yu Tsai <wens@csie.org>

> driver should be allowed to be built for ARM64, in order to make it work on H5.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
> ---
> New patch in v2, as H3 codec support is added between v1 and v2.
>
>  drivers/dma/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
> index 0d6a96ee9fc7..d01d59812cf3 100644
> --- a/drivers/dma/Kconfig
> +++ b/drivers/dma/Kconfig
> @@ -157,7 +157,7 @@ config DMA_SUN4I
>
>  config DMA_SUN6I
>         tristate "Allwinner A31 SoCs DMA support"
> -       depends on MACH_SUN6I || MACH_SUN8I || COMPILE_TEST
> +       depends on MACH_SUN6I || MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
>         depends on RESET_CONTROLLER
>         select DMA_ENGINE
>         select DMA_VIRTUAL_CHANNELS
> --
> 2.11.0
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 1/9] drivers: pinctrl: add driver for Allwinner H5 SoC
       [not found] ` <20170126154859.55855-2-icenowy@aosc.xyz>
  2017-01-27 15:51   ` [PATCH v2 1/9] drivers: pinctrl: add driver for Allwinner H5 SoC Maxime Ripard
@ 2017-01-30 15:13   ` Linus Walleij
  1 sibling, 0 replies; 10+ messages in thread
From: Linus Walleij @ 2017-01-30 15:13 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Maxime Ripard, Chen-Yu Tsai, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, linux-clk, devicetree,
	linux-arm-kernel, linux-kernel, linux-gpio, dmaengine,
	alsa-devel, linux-sunxi

On Thu, Jan 26, 2017 at 4:48 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:

> Based on the Allwinner H5 datasheet and the pinctrl driver of the
> backward-compatible H3 this introduces the pin multiplex assignments for
> the H5 SoC.
>
> H5 introduced some more pin functions (e.g. three more groups of TS
> pins, and one more groups of SIM pins) than H3.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
> ---
> Changes in v2:
> - Fixed interrupt banks. (There's one more GPIO banks (PF) that can do
>   interrupt handling on H5)

Patch applied with Maxime's ACK.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Applied "ASoC: sunxi: allow the analog codec driver to be built on ARM64" to the asoc tree
       [not found] ` <20170126154859.55855-9-icenowy@aosc.xyz>
  2017-01-27 20:05   ` [PATCH v2 8/9] ASoC: sunxi: allow the analog codec driver to be built on ARM64 Maxime Ripard
@ 2017-02-08 18:34   ` Mark Brown
  1 sibling, 0 replies; 10+ messages in thread
From: Mark Brown @ 2017-02-08 18:34 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Maxime Ripard, Chen-Yu Tsai, Mark Brown, Maxime Ripard,
	Chen-Yu Tsai, Linus Walleij, Vinod Koul, Mark Brown,
	Jaroslav Kysela, Andre Przywara, devicetree, alsa-devel,
	linux-kernel, linux-gpio, linux-sunxi, dmaengine, linux-clk,
	linux-arm-kernel, alsa-devel

The patch

   ASoC: sunxi: allow the analog codec driver to be built on ARM64

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From e5028a259733ec2324893cb481023ed6cf7e9723 Mon Sep 17 00:00:00 2001
From: Icenowy Zheng <icenowy@aosc.xyz>
Date: Wed, 8 Feb 2017 02:30:40 +0800
Subject: [PATCH] ASoC: sunxi: allow the analog codec driver to be built on
 ARM64

As the 64-bit Allwinner H5 SoC has the same analog codec part (also the
same digital part) as H3, enable the driver to be built on ARM64
Allwinner platform, so that it can be used on H5.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/sunxi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sunxi/Kconfig b/sound/soc/sunxi/Kconfig
index 13a8267f17c7..22408bc2d6ec 100644
--- a/sound/soc/sunxi/Kconfig
+++ b/sound/soc/sunxi/Kconfig
@@ -22,7 +22,7 @@ config SND_SUN8I_CODEC
 
 config SND_SUN8I_CODEC_ANALOG
 	tristate "Allwinner sun8i Codec Analog Controls Support"
-	depends on MACH_SUN8I || COMPILE_TEST
+	depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
 	select REGMAP
 	help
 	  Say Y or M if you want to add support for the analog controls for
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-02-08 18:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20170126154859.55855-1-icenowy@aosc.xyz>
     [not found] ` <20170126154859.55855-2-icenowy@aosc.xyz>
2017-01-27 15:51   ` [PATCH v2 1/9] drivers: pinctrl: add driver for Allwinner H5 SoC Maxime Ripard
2017-01-30 15:13   ` Linus Walleij
     [not found] ` <20170126154859.55855-4-icenowy@aosc.xyz>
2017-01-27 15:53   ` [PATCH v2 3/9] clk: sunxi-ng: add support " Maxime Ripard
     [not found] ` <20170126154859.55855-5-icenowy@aosc.xyz>
2017-01-27 15:55   ` [PATCH v2 4/9] arm: dts: sun8i: split Allwinner H3 .dtsi Maxime Ripard
     [not found] ` <20170126154859.55855-7-icenowy@aosc.xyz>
2017-01-27 15:58   ` [PATCH v2 6/9] arm64: dts: allwinner: add Allwinner H5 .dtsi Maxime Ripard
     [not found] ` <20170126154859.55855-8-icenowy@aosc.xyz>
2017-01-27 15:59   ` [PATCH v2 7/9] dmaengine: sun6i: allow build on ARM64 platforms (sun50i) Maxime Ripard
2017-01-28 12:47   ` [linux-sunxi] " Chen-Yu Tsai
     [not found] ` <20170126154859.55855-9-icenowy@aosc.xyz>
2017-01-27 20:05   ` [PATCH v2 8/9] ASoC: sunxi: allow the analog codec driver to be built on ARM64 Maxime Ripard
2017-01-28 12:46     ` Chen-Yu Tsai
2017-02-08 18:34   ` Applied "ASoC: sunxi: allow the analog codec driver to be built on ARM64" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).