arm: t124: Populate tegra-gpio from device tree.
Hayden Du [Wed, 21 Aug 2013 07:58:31 +0000 (15:58 +0800)]
Bug 1352814

Change-Id: I840dbe7b2163ab413de0e02fbd23c8611d43cfa7
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/264257
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/boot/dts/tegra124-soc.dtsi
arch/arm/mach-tegra/board-ardbeg.c
arch/arm/mach-tegra/board-loki.c

index 859a9ee..75db244 100644 (file)
                spi5 = &spi5;
        };
 
+       gpio: gpio@6000d000 {
+               compatible = "nvidia,tegra124-gpio", "nvidia,tegra30-gpio";
+               reg = <0x6000d000 0x1000>;
+               interrupts = <0 32 0x04
+                               0 33 0x04
+                               0 34 0x04
+                               0 35 0x04
+                               0 55 0x04
+                               0 87 0x04
+                               0 89 0x04
+                               0 125 0x04>;
+               #gpio-cells = <2>;
+               gpio-controller;
+               #interrupt-cells = <2>;
+               interrupt-controller;
+               status = "disable";
+       };
+
        apbdma: dma@60020000 {
                compatible = "nvidia,tegra124-apbdma";
                reg = <0x60020000 0x1400>;
index bce9093..8783638 100644 (file)
@@ -1182,7 +1182,6 @@ static void __init tegra_ardbeg_dt_init(void)
        of_platform_populate(NULL,
                of_default_bus_match_table, ardbeg_auxdata_lookup,
                &platform_bus);
-       platform_device_register(&tegra_gpio_device);
 #endif
 
        tegra_ardbeg_late_init();
index cc1a1a6..3d14117 100644 (file)
@@ -936,7 +936,6 @@ static void __init tegra_loki_dt_init(void)
        of_platform_populate(NULL,
                of_default_bus_match_table, loki_auxdata_lookup,
                &platform_bus);
-       platform_device_register(&tegra_gpio_device);
 #endif
 
        tegra_loki_late_init();