mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Cooper <jason@lakedaemon.net>
To: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Russell King <linux@arm.linux.org.uk>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-kernel@vger.kernel.org,
	Gregory CLEMENT <gregory.clement@free-electrons.com>,
	Axel Lin <axel.lin@ingics.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/4] ARM: Dove: Convert to DT GPIO and pinctrl
Date: Fri, 23 Nov 2012 21:39:42 -0500	[thread overview]
Message-ID: <20121124023942.GO15800@titan.lakedaemon.net> (raw)
In-Reply-To: <1353317996-20841-4-git-send-email-sebastian.hesselbarth@gmail.com>

On Mon, Nov 19, 2012 at 10:39:55AM +0100, Sebastian Hesselbarth wrote:
> Following the ongoing conversion of Orion SoCs to DT, make use of
> gpio and pinctrl drivers through DT. The main dtsi for Dove is prepared
> to allow board specific descriptors to make use of pinctrl muxing.
> 
> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> ---
> Cc: Russell King <linux@arm.linux.org.uk>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
> Cc: Axel Lin <axel.lin@ingics.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> ---
>  arch/arm/Kconfig            |    2 ++
>  arch/arm/boot/dts/dove.dtsi |   20 +++++++++++++++++---
>  2 files changed, 19 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index d5a28da..bb9a85d 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -539,6 +539,8 @@ config ARCH_DOVE
>  	select CPU_V7
>  	select GENERIC_CLOCKEVENTS
>  	select MIGHT_HAVE_PCI
> +	select PINCTRL
> +	select PINCTRL_DOVE
>  	select PLAT_ORION_LEGACY
>  	select USB_ARCH_HAS_EHCI
>  	help
> diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi
> index 8c8ab62..c457480 100644
> --- a/arch/arm/boot/dts/dove.dtsi
> +++ b/arch/arm/boot/dts/dove.dtsi
> @@ -4,6 +4,12 @@
>  	compatible = "marvell,dove";
>  	model = "Marvell Armada 88AP510 SoC";
>  
> +	aliases {
> +		gpio0 = &gpio0;
> +		gpio1 = &gpio1;
> +		gpio2 = &gpio2;
> +	};
> +
>  	soc@f1000000 {
>  		compatible = "simple-bus";
>  		#address-cells = <1>;
> @@ -85,7 +91,8 @@
>  			#gpio-cells = <2>;
>  			gpio-controller;
>  			reg = <0xd0400 0x20>;
> -			ngpio = <32>;
> +			ngpios = <32>;
> +			interrupt-controller;
>  			interrupts = <12>, <13>, <14>, <60>;
>  		};
>  
> @@ -94,7 +101,8 @@
>  			#gpio-cells = <2>;
>  			gpio-controller;
>  			reg = <0xd0420 0x20>;
> -			ngpio = <32>;
> +			ngpios = <32>;
> +			interrupt-controller;
>  			interrupts = <61>;
>  		};
>  
> @@ -103,7 +111,13 @@
>  			#gpio-cells = <2>;
>  			gpio-controller;
>  			reg = <0xe8400 0x0c>;
> -			ngpio = <8>;
> +			ngpios = <8>;
> +		};
> +
> +		pinctrl: pinctrl@d0200 {
> +			compatible = "marvell,dove-pinctrl";
> +			reg = <0xd0200 0x10>;
> +			clocks = <&gate_clk 22>;

The above line broke the dtbs build target for dove_defconfig.  I have
removed it.  Please let me know if that is not the correct answer.  This
was the only occurence of 'clk' in arch/arm/boot/dts/dove* .

thx,

Jason.

>  		};
>  
>  		spi0: spi@10600 {
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2012-11-24  2:39 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19  9:39 [PATCH 0/4] Dove pinctrl fixes and DT enabling Sebastian Hesselbarth
2012-11-19  9:39 ` [PATCH 1/4] pinctrl: mvebu: fix iomem pointer for dove pinctrl Sebastian Hesselbarth
2012-11-19  9:48   ` Thomas Petazzoni
2012-11-21 10:00   ` Linus Walleij
2012-11-19  9:39 ` [PATCH 2/4] pinctrl: mvebu: Fix dove_audio1_ctrl_set function Sebastian Hesselbarth
2012-11-21 10:00   ` Linus Walleij
2012-11-19  9:39 ` [PATCH 3/4] ARM: Dove: Convert to DT GPIO and pinctrl Sebastian Hesselbarth
2012-11-24  2:39   ` Jason Cooper [this message]
2012-11-24  7:02     ` Thomas Petazzoni
2012-11-24 15:00       ` Jason Cooper
2012-11-24 18:10         ` Thomas Petazzoni
2012-11-24 18:59           ` Jason Cooper
2012-11-25 10:51             ` Sebastian Hesselbarth
2012-11-25 15:28               ` Jason Cooper
2012-11-26  9:18                 ` [PATCH 1/2] ARM: Dove: Add pinctrl clock to DT Sebastian Hesselbarth
2012-11-26  9:20                   ` [PATCH 2/2] pinctrl: mvebu: make pdma clock on dove mandatory Sebastian Hesselbarth
2012-11-26  9:30                     ` Baruch Siach
2012-11-26 19:16                   ` [PATCH v2 1/2] ARM: Dove: Add pinctrl clock to DT Sebastian Hesselbarth
2012-11-26 19:16                     ` [PATCH v2 2/2] pinctrl: mvebu: make pdma clock on dove mandatory Sebastian Hesselbarth
2013-01-07 16:20                     ` [PATCH v2 1/2] ARM: Dove: Add pinctrl clock to DT Jason Cooper
2012-12-01 17:07                   ` [PATCH " Linus Walleij
2012-12-01 18:13                     ` Jason Cooper
2012-12-01 18:15                       ` Sebastian Hesselbarth
2012-12-01 18:21                         ` Jason Cooper
2012-11-19  9:39 ` [PATCH 4/4] ARM: Dove: Add CuBox pinhog for led Sebastian Hesselbarth
2012-11-21  9:59 ` [PATCH 0/4] Dove pinctrl fixes and DT enabling Linus Walleij
2012-11-21 10:20   ` Sebastian Hesselbarth
2012-11-21 14:45     ` Linus Walleij
2012-11-21 14:59       ` Thomas Petazzoni
2012-11-21 15:52       ` Jason Cooper
2012-11-23  7:49         ` Linus Walleij
2012-11-23 14:13           ` Jason Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121124023942.GO15800@titan.lakedaemon.net \
    --to=jason@lakedaemon.net \
    --cc=andrew@lunn.ch \
    --cc=axel.lin@ingics.com \
    --cc=gregory.clement@free-electrons.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=thomas.petazzoni@free-electrons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®