[RFC PATCHv4 2/6] arm: TI-Nspire device trees

2013-05-25 Thread Daniel Tang
Include device trees for the TI-Nspire.

Signed-off-by: Daniel Tang 
---
 .../devicetree/bindings/vendor-prefixes.txt|   1 +
 arch/arm/boot/dts/Makefile |   3 +
 arch/arm/boot/dts/nspire-classic.dtsi  |  74 +
 arch/arm/boot/dts/nspire-clp.dts   |  45 ++
 arch/arm/boot/dts/nspire-cx.dts| 112 +
 arch/arm/boot/dts/nspire-tp.dts|  44 ++
 arch/arm/boot/dts/nspire.dtsi  | 175 +
 7 files changed, 454 insertions(+)
 create mode 100644 arch/arm/boot/dts/nspire-classic.dtsi
 create mode 100644 arch/arm/boot/dts/nspire-clp.dts
 create mode 100644 arch/arm/boot/dts/nspire-cx.dts
 create mode 100644 arch/arm/boot/dts/nspire-tp.dts
 create mode 100644 arch/arm/boot/dts/nspire.dtsi

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt 
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 6931c43..b27b057 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -31,6 +31,7 @@ idt   Integrated Device Technologies, Inc.
 imgImagination Technologies Ltd.
 intercontrol   Inter Control Group
 linux  Linux-specific binding
+lsiLSI Corp. (LSI Logic)
 marvellMarvell Technology Group Ltd.
 maxim  Maxim Integrated Products
 mosaixtech Mosaix Technologies, Inc.
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b9f7121..5677d6c 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -135,6 +135,9 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
imx28-sps1.dtb \
imx28-tx28.dtb
 dtb-$(CONFIG_ARCH_NOMADIK) += ste-nomadik-s8815.dtb
+dtb-$(CONFIG_ARCH_NSPIRE) += nspire-cx.dtb \
+   nspire-tp.dtb \
+   nspire-clp.dtb
 dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
omap3430-sdp.dtb \
omap3-beagle.dtb \
diff --git a/arch/arm/boot/dts/nspire-classic.dtsi 
b/arch/arm/boot/dts/nspire-classic.dtsi
new file mode 100644
index 000..9565199
--- /dev/null
+++ b/arch/arm/boot/dts/nspire-classic.dtsi
@@ -0,0 +1,74 @@
+/*
+ *  linux/arch/arm/boot/nspire-classic.dts
+ *
+ *  Copyright (C) 2013 Daniel Tang 
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2, as
+ * published by the Free Software Foundation.
+ *
+ */
+
+/include/ "nspire.dtsi"
+
+ {
+   lcd-type = "classic";
+};
+
+_timer {
+   /* compatible = "lsi,zevio-timer"; */
+   reg = <0x9001 0x1000>, <0x900A0010 0x8>;
+};
+
+ {
+   compatible = "ns16550";
+   reg-shift = <2>;
+   reg-io-width = <4>;
+   clocks = <_pclk>;
+   no-loopback-test;
+};
+
+ {
+   /* compatible = "lsi,zevio-timer"; */
+   reg = <0x900C 0x1000>, <0x900A0018 0x8>;
+};
+
+ {
+   compatible = "lsi,zevio-timer";
+   reg = <0x900D 0x1000>, <0x900A0020 0x8>;
+};
+
+ {
+   active-low;
+
+};
+
+_clk {
+   compatible = "lsi,nspire-classic-clock";
+};
+
+_clk {
+   compatible = "lsi,nspire-classic-ahb-divider";
+};
+
+/ {
+   memory {
+   device_type = "memory";
+   reg = <0x1000 0x200>; /* 32 MB */
+   };
+
+   ahb {
+   #address-cells = <1>;
+   #size-cells = <1>;
+
+   intc: interrupt-controller@DC00 {
+   compatible = "lsi,zevio-intc";
+   interrupt-controller;
+   reg = <0xDC00 0x1000>;
+   #interrupt-cells = <1>;
+   };
+   };
+   chosen {
+   bootargs = "debug earlyprintk console=tty0 
console=ttyS0,115200n8 root=/dev/ram0";
+   };
+};
diff --git a/arch/arm/boot/dts/nspire-clp.dts b/arch/arm/boot/dts/nspire-clp.dts
new file mode 100644
index 000..3f9c8af
--- /dev/null
+++ b/arch/arm/boot/dts/nspire-clp.dts
@@ -0,0 +1,45 @@
+/*
+ *  linux/arch/arm/boot/nspire-clp.dts
+ *
+ *  Copyright (C) 2013 Daniel Tang 
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2, as
+ * published by the Free Software Foundation.
+ *
+ */
+/dts-v1/;
+
+/include/ "nspire-classic.dtsi"
+
+ {
+   keymap = <
+   0x001c  0x0001001c  0x00020039
+   0x0004002c  0x00050034  0x00060015
+   0x0007000b  0x0008002d  0x0133
+   0x0101004e  0x01020011  0x01030004
+   0x0104002f  0x01050003  0x01060016
+   0x01070002  0x01080014  0x0262
+   0x0201000c  0x0202001f  0x02030007
+   0x02040013  0x02050006  0x02060010
+   0x02070005  0x02080019  0x0327
+   0x03010037  0x03020018  0x0303000a
+   0x03040031  0x03050009  0x03060032
+   0x03070008  0x03080026  0x0428
+   0x04010035  

[RFC PATCHv4 2/6] arm: TI-Nspire device trees

2013-05-25 Thread Daniel Tang
Include device trees for the TI-Nspire.

Signed-off-by: Daniel Tang dt.ta...@gmail.com
---
 .../devicetree/bindings/vendor-prefixes.txt|   1 +
 arch/arm/boot/dts/Makefile |   3 +
 arch/arm/boot/dts/nspire-classic.dtsi  |  74 +
 arch/arm/boot/dts/nspire-clp.dts   |  45 ++
 arch/arm/boot/dts/nspire-cx.dts| 112 +
 arch/arm/boot/dts/nspire-tp.dts|  44 ++
 arch/arm/boot/dts/nspire.dtsi  | 175 +
 7 files changed, 454 insertions(+)
 create mode 100644 arch/arm/boot/dts/nspire-classic.dtsi
 create mode 100644 arch/arm/boot/dts/nspire-clp.dts
 create mode 100644 arch/arm/boot/dts/nspire-cx.dts
 create mode 100644 arch/arm/boot/dts/nspire-tp.dts
 create mode 100644 arch/arm/boot/dts/nspire.dtsi

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt 
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 6931c43..b27b057 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -31,6 +31,7 @@ idt   Integrated Device Technologies, Inc.
 imgImagination Technologies Ltd.
 intercontrol   Inter Control Group
 linux  Linux-specific binding
+lsiLSI Corp. (LSI Logic)
 marvellMarvell Technology Group Ltd.
 maxim  Maxim Integrated Products
 mosaixtech Mosaix Technologies, Inc.
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b9f7121..5677d6c 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -135,6 +135,9 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
imx28-sps1.dtb \
imx28-tx28.dtb
 dtb-$(CONFIG_ARCH_NOMADIK) += ste-nomadik-s8815.dtb
+dtb-$(CONFIG_ARCH_NSPIRE) += nspire-cx.dtb \
+   nspire-tp.dtb \
+   nspire-clp.dtb
 dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
omap3430-sdp.dtb \
omap3-beagle.dtb \
diff --git a/arch/arm/boot/dts/nspire-classic.dtsi 
b/arch/arm/boot/dts/nspire-classic.dtsi
new file mode 100644
index 000..9565199
--- /dev/null
+++ b/arch/arm/boot/dts/nspire-classic.dtsi
@@ -0,0 +1,74 @@
+/*
+ *  linux/arch/arm/boot/nspire-classic.dts
+ *
+ *  Copyright (C) 2013 Daniel Tang tan...@tangrs.id.au
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2, as
+ * published by the Free Software Foundation.
+ *
+ */
+
+/include/ nspire.dtsi
+
+lcd {
+   lcd-type = classic;
+};
+
+fast_timer {
+   /* compatible = lsi,zevio-timer; */
+   reg = 0x9001 0x1000, 0x900A0010 0x8;
+};
+
+uart {
+   compatible = ns16550;
+   reg-shift = 2;
+   reg-io-width = 4;
+   clocks = apb_pclk;
+   no-loopback-test;
+};
+
+timer0 {
+   /* compatible = lsi,zevio-timer; */
+   reg = 0x900C 0x1000, 0x900A0018 0x8;
+};
+
+timer1 {
+   compatible = lsi,zevio-timer;
+   reg = 0x900D 0x1000, 0x900A0020 0x8;
+};
+
+keypad {
+   active-low;
+
+};
+
+base_clk {
+   compatible = lsi,nspire-classic-clock;
+};
+
+ahb_clk {
+   compatible = lsi,nspire-classic-ahb-divider;
+};
+
+/ {
+   memory {
+   device_type = memory;
+   reg = 0x1000 0x200; /* 32 MB */
+   };
+
+   ahb {
+   #address-cells = 1;
+   #size-cells = 1;
+
+   intc: interrupt-controller@DC00 {
+   compatible = lsi,zevio-intc;
+   interrupt-controller;
+   reg = 0xDC00 0x1000;
+   #interrupt-cells = 1;
+   };
+   };
+   chosen {
+   bootargs = debug earlyprintk console=tty0 
console=ttyS0,115200n8 root=/dev/ram0;
+   };
+};
diff --git a/arch/arm/boot/dts/nspire-clp.dts b/arch/arm/boot/dts/nspire-clp.dts
new file mode 100644
index 000..3f9c8af
--- /dev/null
+++ b/arch/arm/boot/dts/nspire-clp.dts
@@ -0,0 +1,45 @@
+/*
+ *  linux/arch/arm/boot/nspire-clp.dts
+ *
+ *  Copyright (C) 2013 Daniel Tang tan...@tangrs.id.au
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2, as
+ * published by the Free Software Foundation.
+ *
+ */
+/dts-v1/;
+
+/include/ nspire-classic.dtsi
+
+keypad {
+   keymap = 
+   0x001c  0x0001001c  0x00020039
+   0x0004002c  0x00050034  0x00060015
+   0x0007000b  0x0008002d  0x0133
+   0x0101004e  0x01020011  0x01030004
+   0x0104002f  0x01050003  0x01060016
+   0x01070002  0x01080014  0x0262
+   0x0201000c  0x0202001f  0x02030007
+   0x02040013  0x02050006  0x02060010
+   0x02070005  0x02080019  0x0327
+   0x03010037  0x03020018  0x0303000a
+   0x03040031  0x03050009  0x03060032
+   0x03070008