linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre@microchip.com>
To: Ludovic Desroches <ludovic.desroches@microchip.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<alexandre.belloni@free-electrons.com>
Cc: <boris.brezillon@free-electrons.com>
Subject: Re: [PATCH v2] ARM: dts: at91: sama5d2_xplained: use pin macros instead of numbers
Date: Thu, 13 Jul 2017 13:56:53 +0200	[thread overview]
Message-ID: <ad99579b-d655-c748-6434-dc2330a82fe4@microchip.com> (raw)
In-Reply-To: <20170710061205.12921-1-ludovic.desroches@microchip.com>

On 10/07/2017 at 08:12, Ludovic Desroches wrote:
> Use pin macros instead of magic numbers to ease interpretation.
> 
> Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>

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

> ---
> 
> I have remove the unexpected brace removal from the first version of this patch.
> 
>  arch/arm/boot/dts/at91-sama5d2_xplained.dts | 23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
> index 2e2c3d1a1fa2..6eec8dc5143e 100644
> --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
> +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
> @@ -68,7 +68,7 @@
>  
>  	ahb {
>  		usb0: gadget@00300000 {
> -			atmel,vbus-gpio = <&pioA 31 GPIO_ACTIVE_HIGH>;
> +			atmel,vbus-gpio = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
>  			pinctrl-names = "default";
>  			pinctrl-0 = <&pinctrl_usba_vbus>;
>  			status = "okay";
> @@ -76,8 +76,8 @@
>  
>  		usb1: ohci@00400000 {
>  			num-ports = <3>;
> -			atmel,vbus-gpio = <0 /* &pioA 41 GPIO_ACTIVE_HIGH */
> -					   &pioA 42 GPIO_ACTIVE_HIGH
> +			atmel,vbus-gpio = <0 /* &pioA PIN_PB9 GPIO_ACTIVE_HIGH */
> +					   &pioA PIN_PB10 GPIO_ACTIVE_HIGH
>  					   0
>  					  >;
>  			pinctrl-names = "default";
> @@ -127,7 +127,7 @@
>  				ethernet-phy@1 {
>  					reg = <0x1>;
>  					interrupt-parent = <&pioA>;
> -					interrupts = <73 IRQ_TYPE_LEVEL_LOW>;
> +					interrupts = <PIN_PC9 IRQ_TYPE_LEVEL_LOW>;
>  				};
>  			};
>  
> @@ -160,9 +160,9 @@
>  					compatible = "active-semi,act8945a";
>  					reg = <0x5b>;
>  					active-semi,vsel-high;
> -					active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
> -					active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
> -					active-semi,irq_gpios = <&pioA 45 GPIO_ACTIVE_LOW>;
> +					active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
> +					active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
> +					active-semi,irq_gpios = <&pioA PIN_PB13 GPIO_ACTIVE_LOW>;
>  					active-semi,input-voltage-threshold-microvolt = <6600>;
>  					active-semi,precondition-timeout = <40>;
>  					active-semi,total-timeout = <3>;
> @@ -504,7 +504,7 @@
>  
>  		bp1 {
>  			label = "PB_USER";
> -			gpios = <&pioA 41 GPIO_ACTIVE_LOW>;
> +			gpios = <&pioA PIN_PB9 GPIO_ACTIVE_LOW>;
>  			linux,code = <0x104>;
>  		};
>  	};
> @@ -517,17 +517,18 @@
>  
>  		red {
>  			label = "red";
> -			gpios = <&pioA 38 GPIO_ACTIVE_LOW>;
> +			gpios = <&pioA PIN_PB6 GPIO_ACTIVE_LOW>;
>  		};
>  
> +
>  		green {
>  			label = "green";
> -			gpios = <&pioA 37 GPIO_ACTIVE_LOW>;
> +			gpios = <&pioA PIN_PB5 GPIO_ACTIVE_LOW>;
>  		};
>  
>  		blue {
>  			label = "blue";
> -			gpios = <&pioA 32 GPIO_ACTIVE_LOW>;
> +			gpios = <&pioA PIN_PB0 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "heartbeat";
>  		};
>  	};
> 


-- 
Nicolas Ferre

  reply	other threads:[~2017-07-13 11:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-07 13:56 [PATCH] ARM: dts: at91: sama5d2_xplained: use pin macros instead of numbers Ludovic Desroches
2017-07-08 23:27 ` kbuild test robot
2017-07-10  6:12   ` [PATCH v2] " Ludovic Desroches
2017-07-13 11:56     ` Nicolas Ferre [this message]
2017-07-17  9:15     ` Alexandre Belloni

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=ad99579b-d655-c748-6434-dc2330a82fe4@microchip.com \
    --to=nicolas.ferre@microchip.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ludovic.desroches@microchip.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;
as well as URLs for NNTP newsgroup(s).