]> Pileus Git - ~andy/linux/commitdiff
ARM: dts: Add basic Nokia N8X0 support
authorTony Lindgren <tony@atomide.com>
Mon, 25 Nov 2013 23:15:24 +0000 (15:15 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 25 Nov 2013 23:15:24 +0000 (15:15 -0800)
Add minimal device tree support for n8x0 boards so we
can make omap2 device tree only. Note that we still need
to initialize various platform data quirks to keep
things working until n8x0 drivers support device tree.

Here's a rough todo list for the people using n8x0:

1. Update menelaus for device tree and set up
   regulators at least for the MMC driver

2. Remove the MMC regulator platform data callback
   by using the Menlaus regulators directly in the
   driver passed from the .dts file

3. Update GPMC connected devices for onenand and
   tusb6010 for device tree

We're planning to remove all legacy platform data
for mach-omap2 over next few merge cycles, so if
people are still using n8x0, please fix the issues
above.

Cc: devicetree@vger.kernel.org
Cc: "BenoƮt Cousson" <bcousson@baylibre.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/omap2420-n800.dts [new file with mode: 0644]
arch/arm/boot/dts/omap2420-n810-wimax.dts [new file with mode: 0644]
arch/arm/boot/dts/omap2420-n810.dts [new file with mode: 0644]
arch/arm/boot/dts/omap2420-n8x0-common.dtsi [new file with mode: 0644]

index 73022b113cd16c4133ac2a9da142ca146c6b218a..de37094ff3f267dfe80fc668fe0aa551a8a7ccd4 100644 (file)
@@ -174,6 +174,9 @@ dtb-$(CONFIG_ARCH_NSPIRE) += nspire-cx.dtb \
        nspire-clp.dtb
 dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
        omap2430-sdp.dtb \
+       omap2420-n800.dtb \
+       omap2420-n810.dtb \
+       omap2420-n810-wimax.dtb \
        omap3430-sdp.dtb \
        omap3-beagle.dtb \
        omap3-devkit8000.dtb \
diff --git a/arch/arm/boot/dts/omap2420-n800.dts b/arch/arm/boot/dts/omap2420-n800.dts
new file mode 100644 (file)
index 0000000..d8c1b42
--- /dev/null
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+#include "omap2420-n8x0-common.dtsi"
+
+/ {
+       model = "Nokia N800";
+       compatible = "nokia,n800", "nokia,n8x0", "ti,omap2420", "ti,omap2";
+};
diff --git a/arch/arm/boot/dts/omap2420-n810-wimax.dts b/arch/arm/boot/dts/omap2420-n810-wimax.dts
new file mode 100644 (file)
index 0000000..6b25b03
--- /dev/null
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+#include "omap2420-n8x0-common.dtsi"
+
+/ {
+       model = "Nokia N810 WiMax";
+       compatible = "nokia,n810-wimax", "nokia,n8x0", "ti,omap2420", "ti,omap2";
+};
diff --git a/arch/arm/boot/dts/omap2420-n810.dts b/arch/arm/boot/dts/omap2420-n810.dts
new file mode 100644 (file)
index 0000000..21baec1
--- /dev/null
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+#include "omap2420-n8x0-common.dtsi"
+
+/ {
+       model = "Nokia N810";
+       compatible = "nokia,n810", "nokia,n8x0", "ti,omap2420", "ti,omap2";
+};
diff --git a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi
new file mode 100644 (file)
index 0000000..c539693
--- /dev/null
@@ -0,0 +1,34 @@
+#include "omap2420.dtsi"
+
+/ {
+       memory {
+               device_type = "memory";
+               reg = <0x80000000 0x8000000>; /* 128 MB */
+       };
+
+       ocp {
+               i2c@0 {
+                       compatible = "i2c-cbus-gpio";
+                       gpios = <&gpio3 2 0 /* gpio66 clk */
+                                &gpio3 1 0 /* gpio65 dat */
+                                &gpio3 0 0 /* gpio64 sel */
+                               >;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       retu_mfd: retu@1 {
+                               compatible = "retu-mfd";
+                               interrupt-parent = <&gpio4>;
+                               interrupts = <12 IRQ_TYPE_EDGE_RISING>;
+                               reg = <0x1>;
+                       };
+               };
+       };
+};
+
+&i2c1 {
+       clock-frequency = <400000>;
+};
+
+&i2c2 {
+       clock-frequency = <400000>;
+};