Commit d907849e authored by Daniel Tang's avatar Daniel Tang Committed by Arnd Bergmann
Browse files

arm: Add device trees for TI-Nspire hardware



This patch adds device trees for describing the TI-Nspire hardware.

Changes between v1 and v2:
* Change "keymap" binding to the standard "linux,keymap" binding.

Signed-off-by: default avatarDaniel Tang <dt.tangr@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 7d132055
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
TI-NSPIRE calculators

Required properties:
- compatible: Compatible property value should contain "ti,nspire".
	CX models should have "ti,nspire-cx"
	Touchpad models should have "ti,nspire-tp"
	Clickpad models should have "ti,nspire-clp"

Example:

/ {
	model = "TI-NSPIRE CX";
	compatible = "ti,nspire-cx";
	...
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ idt Integrated Device Technologies, Inc.
img	Imagination Technologies Ltd.
intercontrol	Inter Control Group
linux	Linux-specific binding
lsi	LSI Corp. (LSI Logic)
marvell	Marvell Technology Group Ltd.
maxim	Maxim Integrated Products
mosaixtech	Mosaix Technologies, Inc.
+3 −0
Original line number Diff line number Diff line
@@ -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 \
+74 −0
Original line number Diff line number Diff line
/*
 *  linux/arch/arm/boot/nspire-classic.dts
 *
 *  Copyright (C) 2013 Daniel Tang <tangrs@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 = <0x90010000 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 = <0x900C0000 0x1000>, <0x900A0018 0x8>;
};

&timer1 {
	compatible = "lsi,zevio-timer";
	reg = <0x900D0000 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 = <0x10000000 0x2000000>; /* 32 MB */
	};

	ahb {
		#address-cells = <1>;
		#size-cells = <1>;

		intc: interrupt-controller@DC000000 {
			compatible = "lsi,zevio-intc";
			interrupt-controller;
			reg = <0xDC000000 0x1000>;
			#interrupt-cells = <1>;
		};
	};
	chosen {
		bootargs = "debug earlyprintk console=tty0 console=ttyS0,115200n8 root=/dev/ram0";
	};
};
+45 −0
Original line number Diff line number Diff line
/*
 *  linux/arch/arm/boot/nspire-clp.dts
 *
 *  Copyright (C) 2013 Daniel Tang <tangrs@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 {
	linux,keymap = <
	0x0000001c 	0x0001001c 	0x00020039
	0x0004002c 	0x00050034 	0x00060015
	0x0007000b 	0x0008002d 	0x01000033
	0x0101004e 	0x01020011 	0x01030004
	0x0104002f 	0x01050003 	0x01060016
	0x01070002 	0x01080014 	0x02000062
	0x0201000c 	0x0202001f 	0x02030007
	0x02040013 	0x02050006 	0x02060010
	0x02070005 	0x02080019 	0x03000027
	0x03010037 	0x03020018 	0x0303000a
	0x03040031 	0x03050009 	0x03060032
	0x03070008 	0x03080026 	0x04000028
	0x04010035 	0x04020025 	0x04040024
	0x04060017 	0x04080023 	0x05000028
	0x05020022 	0x0503001b 	0x05040021
	0x0505001a 	0x05060012 	0x0507006f
	0x05080020 	0x0509002a 	0x0601001c
	0x0602002e 	0x06030068 	0x06040030
	0x0605006d 	0x0606001e 	0x06070001
	0x0608002b 	0x0609000f 	0x07000067
	0x0702006a 	0x0704006c 	0x07060069
	0x0707000e 	0x0708001d 	0x070a000d
	>;
};

/ {
	model = "TI-NSPIRE Clickpad";
	compatible = "ti,nspire-clp";
};
Loading