aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/tegra30-beaver.dts
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-02-12 19:25:15 -0500
committerStephen Warren <swarren@nvidia.com>2013-05-28 18:13:49 -0400
commit3325f1bcd03a0472aa1839732fb46f3c1f010205 (patch)
treed3dfad9b8eea0238cc9735a8e617cc5f0fab2c99 /arch/arm/boot/dts/tegra30-beaver.dts
parent9798e47ff232c48b3c25b9a6b9395b505e389475 (diff)
ARM: tegra: convert device tree files to use GPIO defines
Use TEGRA_GPIO() macro to name all GPIOs referenced by GPIO properties, and some interrupts properties. Use standard GPIO flag defines too. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/boot/dts/tegra30-beaver.dts')
-rw-r--r--arch/arm/boot/dts/tegra30-beaver.dts24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/boot/dts/tegra30-beaver.dts b/arch/arm/boot/dts/tegra30-beaver.dts
index e86c2805dcb6..40b0bd700b41 100644
--- a/arch/arm/boot/dts/tegra30-beaver.dts
+++ b/arch/arm/boot/dts/tegra30-beaver.dts
@@ -264,9 +264,9 @@
264 264
265 sdhci@78000000 { 265 sdhci@78000000 {
266 status = "okay"; 266 status = "okay";
267 cd-gpios = <&gpio 69 1>; /* gpio PI5 */ 267 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
268 wp-gpios = <&gpio 155 0>; /* gpio PT3 */ 268 wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
269 power-gpios = <&gpio 31 0>; /* gpio PD7 */ 269 power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
270 bus-width = <4>; 270 bus-width = <4>;
271 }; 271 };
272 272
@@ -312,7 +312,7 @@
312 regulator-boot-on; 312 regulator-boot-on;
313 regulator-always-on; 313 regulator-always-on;
314 enable-active-high; 314 enable-active-high;
315 gpio = <&pmic 0 0>; /* PMIC TPS65911 GPIO0 */ 315 gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
316 }; 316 };
317 317
318 ddr_reg: regulator@2 { 318 ddr_reg: regulator@2 {
@@ -324,7 +324,7 @@
324 regulator-always-on; 324 regulator-always-on;
325 regulator-boot-on; 325 regulator-boot-on;
326 enable-active-high; 326 enable-active-high;
327 gpio = <&pmic 7 0>; /* PMIC TPS65911 GPIO7 */ 327 gpio = <&pmic 7 GPIO_ACTIVE_HIGH>;
328 vin-supply = <&vdd_5v_in_reg>; 328 vin-supply = <&vdd_5v_in_reg>;
329 }; 329 };
330 330
@@ -337,7 +337,7 @@
337 regulator-always-on; 337 regulator-always-on;
338 regulator-boot-on; 338 regulator-boot-on;
339 enable-active-high; 339 enable-active-high;
340 gpio = <&gpio 30 0>; /* gpio PD6 */ 340 gpio = <&gpio TEGRA_GPIO(D, 6) GPIO_ACTIVE_HIGH>;
341 vin-supply = <&vdd_5v_in_reg>; 341 vin-supply = <&vdd_5v_in_reg>;
342 }; 342 };
343 343
@@ -348,7 +348,7 @@
348 regulator-min-microvolt = <5000000>; 348 regulator-min-microvolt = <5000000>;
349 regulator-max-microvolt = <5000000>; 349 regulator-max-microvolt = <5000000>;
350 enable-active-high; 350 enable-active-high;
351 gpio = <&gpio 68 0>; /* GPIO PI4 */ 351 gpio = <&gpio TEGRA_GPIO(I, 4) GPIO_ACTIVE_HIGH>;
352 gpio-open-drain; 352 gpio-open-drain;
353 vin-supply = <&vdd_5v_in_reg>; 353 vin-supply = <&vdd_5v_in_reg>;
354 }; 354 };
@@ -360,7 +360,7 @@
360 regulator-min-microvolt = <5000000>; 360 regulator-min-microvolt = <5000000>;
361 regulator-max-microvolt = <5000000>; 361 regulator-max-microvolt = <5000000>;
362 enable-active-high; 362 enable-active-high;
363 gpio = <&gpio 63 0>; /* GPIO PH7 */ 363 gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
364 gpio-open-drain; 364 gpio-open-drain;
365 vin-supply = <&vdd_5v_in_reg>; 365 vin-supply = <&vdd_5v_in_reg>;
366 }; 366 };
@@ -374,7 +374,7 @@
374 regulator-always-on; 374 regulator-always-on;
375 regulator-boot-on; 375 regulator-boot-on;
376 enable-active-high; 376 enable-active-high;
377 gpio = <&pmic 6 0>; /* PMIC TPS65911 GPIO6 */ 377 gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
378 vin-supply = <&vdd_5v_in_reg>; 378 vin-supply = <&vdd_5v_in_reg>;
379 }; 379 };
380 380
@@ -387,7 +387,7 @@
387 regulator-always-on; 387 regulator-always-on;
388 regulator-boot-on; 388 regulator-boot-on;
389 enable-active-high; 389 enable-active-high;
390 gpio = <&gpio 95 0>; /* gpio PL7 */ 390 gpio = <&gpio TEGRA_GPIO(L, 7) GPIO_ACTIVE_HIGH>;
391 vin-supply = <&sys_3v3_reg>; 391 vin-supply = <&sys_3v3_reg>;
392 }; 392 };
393 }; 393 };
@@ -397,11 +397,11 @@
397 397
398 gpled1 { 398 gpled1 {
399 label = "LED1"; /* CR5A1 (blue) */ 399 label = "LED1"; /* CR5A1 (blue) */
400 gpios = <&gpio 89 0>; /* gpio PL1 */ 400 gpios = <&gpio TEGRA_GPIO(L, 1) GPIO_ACTIVE_HIGH>;
401 }; 401 };
402 gpled2 { 402 gpled2 {
403 label = "LED2"; /* CR4A2 (green) */ 403 label = "LED2"; /* CR4A2 (green) */
404 gpios = <&gpio 88 0>; /* gpio PL0 */ 404 gpios = <&gpio TEGRA_GPIO(L, 0) GPIO_ACTIVE_HIGH>;
405 }; 405 };
406 }; 406 };
407}; 407};