summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/tegra20-tec.dts
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-02-13 01:25:15 +0100
committerStephen Warren <swarren@nvidia.com>2013-05-29 00:13:49 +0200
commit3325f1bcd03a0472aa1839732fb46f3c1f010205 (patch)
treed3dfad9b8eea0238cc9735a8e617cc5f0fab2c99 /arch/arm/boot/dts/tegra20-tec.dts
parentARM: tegra: create a DT header defining GPIO IDs (diff)
downloadlinux-3325f1bcd03a0472aa1839732fb46f3c1f010205.tar.xz
linux-3325f1bcd03a0472aa1839732fb46f3c1f010205.zip
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-tec.dts')
-rw-r--r--arch/arm/boot/dts/tegra20-tec.dts7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/tegra20-tec.dts b/arch/arm/boot/dts/tegra20-tec.dts
index 9a2a6a45aedd..db58bb7ff9e5 100644
--- a/arch/arm/boot/dts/tegra20-tec.dts
+++ b/arch/arm/boot/dts/tegra20-tec.dts
@@ -17,7 +17,7 @@
compatible = "wlf,wm8903";
reg = <0x1a>;
interrupt-parent = <&gpio>;
- interrupts = <187 0x04>;
+ interrupts = <TEGRA_GPIO(X, 3) 0x04>;
gpio-controller;
#gpio-cells = <2>;
@@ -50,8 +50,9 @@
nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,audio-codec = <&wm8903>;
- nvidia,spkr-en-gpios = <&wm8903 2 0>;
- nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
+ nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
+ nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
+ GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>;
clock-names = "pll_a", "pll_a_out0", "mclk";