All of lore.kernel.org
 help / color / mirror / Atom feed
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] DTS at91sam9x5cm: add 1-wire chip on CM board
Date: Thu, 21 Mar 2013 16:06:02 +0100	[thread overview]
Message-ID: <514B21DA.1010901@atmel.com> (raw)
In-Reply-To: <1363778620-5213-1-git-send-email-richard.genoud@gmail.com>

On 03/20/2013 12:23 PM, Richard Genoud :
> This add the 1-wire chip present on the CM board to the DTS.
> As the pin is also used by leds, tt's disabled by default.
> If the board really wants it, it can be enabled in the board DTS.
> 
> Signed-off-by: Richard Genoud <richard.genoud@gmail.com>

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

And pushed to at91-3.10-dt branch.

Thanks,

> ---
>  arch/arm/boot/dts/at91sam9x5cm.dtsi |   20 ++++++++++++++++++++
>  1 files changed, 20 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/at91sam9x5cm.dtsi b/arch/arm/boot/dts/at91sam9x5cm.dtsi
> index 4027ac7..347a74a 100644
> --- a/arch/arm/boot/dts/at91sam9x5cm.dtsi
> +++ b/arch/arm/boot/dts/at91sam9x5cm.dtsi
> @@ -24,6 +24,16 @@
>  	};
>  
>  	ahb {
> +		apb {
> +			pinctrl at fffff400 {
> +				1wire_cm {
> +					pinctrl_1wire_cm: 1wire_cm-0 {
> +						atmel,pins = <1 18 0x0 0x2>; /* PB18 multidrive, conflicts with led */
> +					};
> +				};
> +			};
> +		};
> +
>  		nand0: nand at 40000000 {
>  			nand-bus-width = <8>;
>  			nand-ecc-mode = "hw";
> @@ -74,4 +84,14 @@
>  			gpios = <&pioD 21 0>;
>  		};
>  	};
> +
> +	1wire_cm {
> +		compatible = "w1-gpio";
> +		gpios = <&pioB 18 0>;
> +		linux,open-drain;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_1wire_cm>;
> +		status = "okay";
> +	};
> +
>  };
> 


-- 
Nicolas Ferre

WARNING: multiple messages have this Message-ID (diff)
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Richard Genoud <richard.genoud@gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] DTS at91sam9x5cm: add 1-wire chip on CM board
Date: Thu, 21 Mar 2013 16:06:02 +0100	[thread overview]
Message-ID: <514B21DA.1010901@atmel.com> (raw)
In-Reply-To: <1363778620-5213-1-git-send-email-richard.genoud@gmail.com>

On 03/20/2013 12:23 PM, Richard Genoud :
> This add the 1-wire chip present on the CM board to the DTS.
> As the pin is also used by leds, tt's disabled by default.
> If the board really wants it, it can be enabled in the board DTS.
> 
> Signed-off-by: Richard Genoud <richard.genoud@gmail.com>

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

And pushed to at91-3.10-dt branch.

Thanks,

> ---
>  arch/arm/boot/dts/at91sam9x5cm.dtsi |   20 ++++++++++++++++++++
>  1 files changed, 20 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/at91sam9x5cm.dtsi b/arch/arm/boot/dts/at91sam9x5cm.dtsi
> index 4027ac7..347a74a 100644
> --- a/arch/arm/boot/dts/at91sam9x5cm.dtsi
> +++ b/arch/arm/boot/dts/at91sam9x5cm.dtsi
> @@ -24,6 +24,16 @@
>  	};
>  
>  	ahb {
> +		apb {
> +			pinctrl@fffff400 {
> +				1wire_cm {
> +					pinctrl_1wire_cm: 1wire_cm-0 {
> +						atmel,pins = <1 18 0x0 0x2>; /* PB18 multidrive, conflicts with led */
> +					};
> +				};
> +			};
> +		};
> +
>  		nand0: nand@40000000 {
>  			nand-bus-width = <8>;
>  			nand-ecc-mode = "hw";
> @@ -74,4 +84,14 @@
>  			gpios = <&pioD 21 0>;
>  		};
>  	};
> +
> +	1wire_cm {
> +		compatible = "w1-gpio";
> +		gpios = <&pioB 18 0>;
> +		linux,open-drain;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_1wire_cm>;
> +		status = "okay";
> +	};
> +
>  };
> 


-- 
Nicolas Ferre

  reply	other threads:[~2013-03-21 15:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20 11:23 [PATCH] DTS at91sam9x5cm: add 1-wire chip on CM board Richard Genoud
2013-03-20 11:23 ` Richard Genoud
2013-03-21 15:06 ` Nicolas Ferre [this message]
2013-03-21 15:06   ` Nicolas Ferre

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=514B21DA.1010901@atmel.com \
    --to=nicolas.ferre@atmel.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.