[PATCH v2 2/5] ARM: dts: OMAP2+: use existing constants for GPIOs

Tony Lindgren tony at atomide.com
Fri May 24 04:47:28 EST 2013


* Florian Vaussard <florian.vaussard at epfl.ch> [130523 08:42]:
> --- a/arch/arm/boot/dts/omap3-beagle-xm.dts
> +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts
> @@ -29,13 +29,13 @@
>  
>  		heartbeat {
>  			label = "beagleboard::usr0";
> -			gpios = <&gpio5 22 0>; /* 150 -> D6 LED */
> +			gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
>  			linux,default-trigger = "heartbeat";
>  		};
>  
>  		mmc {
>  			label = "beagleboard::usr1";
> -			gpios = <&gpio5 21 0>; /* 149 -> D7 LED */
> +			gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
>  			linux,default-trigger = "mmc0";
>  		};
>  	};

Great yeah this is the way to go instead of the fixed numbering.
Thanks for doing this.

Regards,

Tony


More information about the devicetree-discuss mailing list