diff options
author | Stephen Warren <swarren@nvidia.com> | 2013-02-12 17:25:15 -0700 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-05-28 16:13:49 -0600 |
commit | 3325f1bcd03a0472aa1839732fb46f3c1f010205 (patch) | |
tree | d3dfad9b8eea0238cc9735a8e617cc5f0fab2c99 /arch/arm/boot/dts/tegra20-tec.dts | |
parent | 9798e47ff232c48b3c25b9a6b9395b505e389475 (diff) | |
download | talos-obmc-linux-3325f1bcd03a0472aa1839732fb46f3c1f010205.tar.gz talos-obmc-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.dts | 7 |
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"; |