aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/tegra20-trimslice.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/tegra20-trimslice.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/tegra20-trimslice.dts')
-rw-r--r--arch/arm/boot/dts/tegra20-trimslice.dts19
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/arm/boot/dts/tegra20-trimslice.dts b/arch/arm/boot/dts/tegra20-trimslice.dts
index d2966b2788c4..4257ab44fe84 100644
--- a/arch/arm/boot/dts/tegra20-trimslice.dts
+++ b/arch/arm/boot/dts/tegra20-trimslice.dts
@@ -18,7 +18,8 @@
18 pll-supply = <&hdmi_pll_reg>; 18 pll-supply = <&hdmi_pll_reg>;
19 19
20 nvidia,ddc-i2c-bus = <&hdmi_ddc>; 20 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
21 nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ 21 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7)
22 GPIO_ACTIVE_HIGH>;
22 }; 23 };
23 }; 24 };
24 25
@@ -311,7 +312,7 @@
311 312
312 usb@c5000000 { 313 usb@c5000000 {
313 status = "okay"; 314 status = "okay";
314 nvidia,vbus-gpio = <&gpio 170 0>; /* gpio PV2 */ 315 nvidia,vbus-gpio = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
315 }; 316 };
316 317
317 usb-phy@c5000000 { 318 usb-phy@c5000000 {
@@ -321,12 +322,14 @@
321 322
322 usb@c5004000 { 323 usb@c5004000 {
323 status = "okay"; 324 status = "okay";
324 nvidia,phy-reset-gpio = <&gpio 168 1>; /* gpio PV0, active low */ 325 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 0)
326 GPIO_ACTIVE_LOW>;
325 }; 327 };
326 328
327 usb-phy@c5004000 { 329 usb-phy@c5004000 {
328 status = "okay"; 330 status = "okay";
329 nvidia,phy-reset-gpio = <&gpio 168 1>; /* gpio PV0, active low */ 331 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 0)
332 GPIO_ACTIVE_LOW>;
330 }; 333 };
331 334
332 usb@c5008000 { 335 usb@c5008000 {
@@ -344,8 +347,8 @@
344 347
345 sdhci@c8000600 { 348 sdhci@c8000600 {
346 status = "okay"; 349 status = "okay";
347 cd-gpios = <&gpio 121 1>; /* gpio PP1 */ 350 cd-gpios = <&gpio TEGRA_GPIO(P, 1) GPIO_ACTIVE_LOW>;
348 wp-gpios = <&gpio 122 0>; /* gpio PP2 */ 351 wp-gpios = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
349 bus-width = <4>; 352 bus-width = <4>;
350 }; 353 };
351 354
@@ -367,7 +370,7 @@
367 370
368 power { 371 power {
369 label = "Power"; 372 label = "Power";
370 gpios = <&gpio 190 1>; /* gpio PX6, active low */ 373 gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_LOW>;
371 linux,code = <116>; /* KEY_POWER */ 374 linux,code = <116>; /* KEY_POWER */
372 gpio-key,wakeup; 375 gpio-key,wakeup;
373 }; 376 };
@@ -375,7 +378,7 @@
375 378
376 poweroff { 379 poweroff {
377 compatible = "gpio-poweroff"; 380 compatible = "gpio-poweroff";
378 gpios = <&gpio 191 1>; /* gpio PX7, active low */ 381 gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;
379 }; 382 };
380 383
381 regulators { 384 regulators {