Re: [RFC PATCHv3 3/6] clk: Add TI-Nspire clock drivers

2013-05-16 Thread Daniel Tang
d-rate.c but I'm guessing it's to use the node name as the clock name unless there is a property called "clock-output-names" Cheers, Daniel Tang-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [RFC PATCHv3 3/6] clk: Add TI-Nspire clock drivers

2013-05-16 Thread Daniel Tang
it's to use the node name as the clock name unless there is a property called clock-output-names Cheers, Daniel Tang-- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [RFC PATCHv3 4/6] clocksource: Add TI-Nspire timer drivers

2013-05-14 Thread Daniel Tang
retty* good idea to use > the prescaler (I guess this is what IO_DIVIDER is) beacuse else you > will get short sleep times with CONFIG_NO_HZ_IDLE on this system, > and wake up unnecessarily often. > > The same goes for the clock event. The clock frequency is 32768Hz. Should I be scal

Re: [RFC PATCHv3 4/6] clocksource: Add TI-Nspire timer drivers

2013-05-14 Thread Daniel Tang
-integrator/integrator_ap.c for example. Yours, Linus Walleij Cheers, Daniel Tang-- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: [RFC PATCHv3 1/6] arm: Initial TI-Nspire support

2013-05-12 Thread Daniel Tang
On 12/05/2013, at 7:06 PM, Russell King - ARM Linux wrote: > On Sun, May 12, 2013 at 02:22:56PM +1000, Daniel Tang wrote: >> >> +.bpp= 8, >> +.grayscale = 1 >> +}; > > Still no capabilities in the above - how does the CLCD controller

Re: [RFC PATCHv3 1/6] arm: Initial TI-Nspire support

2013-05-12 Thread Daniel Tang
On 12/05/2013, at 7:06 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Sun, May 12, 2013 at 02:22:56PM +1000, Daniel Tang wrote: +.bpp= 8, +.grayscale = 1 +}; Still no capabilities in the above - how does the CLCD controller know which of BGR

[RFC PATCHv3 1/6] arm: Initial TI-Nspire support

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang --- arch/arm/Kconfig | 2 + arch/arm/Kconfig.debug | 16 + arch/arm/Makefile | 1 + arch/arm/include/debug/nspire.S| 28 + arch/arm/mach-nspire/Kconfig | 15 + arch/arm/mach-nspire

[RFC PATCHv3 3/6] clk: Add TI-Nspire clock drivers

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang --- drivers/clk/Makefile | 1 + drivers/clk/clk-nspire.c | 141 +++ 2 files changed, 142 insertions(+) create mode 100644 drivers/clk/clk-nspire.c diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index

[RFC PATCHv3 5/6] input: Add TI-Nspire keypad driver

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang --- drivers/input/keyboard/Kconfig | 10 ++ drivers/input/keyboard/Makefile| 1 + drivers/input/keyboard/nspire-keypad.c | 315 + 3 files changed, 326 insertions(+) create mode 100644 drivers/input/keyboard/nspire

[RFC PATCHv3 4/6] clocksource: Add TI-Nspire timer drivers

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang --- drivers/clocksource/Makefile | 1 + drivers/clocksource/nspire-classic-timer.c | 199 + 2 files changed, 200 insertions(+) create mode 100644 drivers/clocksource/nspire-classic-timer.c diff --git a/drivers/clocksource

[RFC PATCHv3 6/6] irqchip: Add TI-Nspire irqchip

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang --- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-nspire-classic.c | 177 +++ 2 files changed, 178 insertions(+) create mode 100644 drivers/irqchip/irq-nspire-classic.c diff --git a/drivers/irqchip/Makefile b

[RFC PATCHv3 2/6] arm: Add device trees for TI-Nspire

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang --- arch/arm/boot/dts/Makefile| 3 + arch/arm/boot/dts/nspire-classic.dtsi | 75 ++ arch/arm/boot/dts/nspire-clp.dts | 45 + arch/arm/boot/dts/nspire-cx.dts | 112 + arch/arm/boot/dts/nspire-tp.dts

[RFC PATCHv3 0/6] arm: Initial TI-Nspire support

2013-05-11 Thread Daniel Tang
ail, please forgive me if this turns pear shaped. Daniel Tang (6): arm: Initial TI-Nspire support arm: Add device trees for TI-Nspire clk: Add TI-Nspire clock drivers clocksource: Add TI-Nspire timer drivers input: Add TI-Nspire keypad driver irqchip: Add TI-Nspire irqchip arch/arm/Kcon

[RFC PATCHv3 0/6] arm: Initial TI-Nspire support

2013-05-11 Thread Daniel Tang
, please forgive me if this turns pear shaped. Daniel Tang (6): arm: Initial TI-Nspire support arm: Add device trees for TI-Nspire clk: Add TI-Nspire clock drivers clocksource: Add TI-Nspire timer drivers input: Add TI-Nspire keypad driver irqchip: Add TI-Nspire irqchip arch/arm/Kconfig

[RFC PATCHv3 2/6] arm: Add device trees for TI-Nspire

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/boot/dts/Makefile| 3 + arch/arm/boot/dts/nspire-classic.dtsi | 75 ++ arch/arm/boot/dts/nspire-clp.dts | 45 + arch/arm/boot/dts/nspire-cx.dts | 112 + arch/arm/boot/dts

[RFC PATCHv3 4/6] clocksource: Add TI-Nspire timer drivers

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang dt.ta...@gmail.com --- drivers/clocksource/Makefile | 1 + drivers/clocksource/nspire-classic-timer.c | 199 + 2 files changed, 200 insertions(+) create mode 100644 drivers/clocksource/nspire-classic-timer.c diff --git

[RFC PATCHv3 6/6] irqchip: Add TI-Nspire irqchip

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang dt.ta...@gmail.com --- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-nspire-classic.c | 177 +++ 2 files changed, 178 insertions(+) create mode 100644 drivers/irqchip/irq-nspire-classic.c diff --git a/drivers

[RFC PATCHv3 5/6] input: Add TI-Nspire keypad driver

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang dt.ta...@gmail.com --- drivers/input/keyboard/Kconfig | 10 ++ drivers/input/keyboard/Makefile| 1 + drivers/input/keyboard/nspire-keypad.c | 315 + 3 files changed, 326 insertions(+) create mode 100644 drivers/input

[RFC PATCHv3 1/6] arm: Initial TI-Nspire support

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/Kconfig | 2 + arch/arm/Kconfig.debug | 16 + arch/arm/Makefile | 1 + arch/arm/include/debug/nspire.S| 28 + arch/arm/mach-nspire/Kconfig | 15 + arch/arm

[RFC PATCHv3 3/6] clk: Add TI-Nspire clock drivers

2013-05-11 Thread Daniel Tang
Signed-off-by: Daniel Tang dt.ta...@gmail.com --- drivers/clk/Makefile | 1 + drivers/clk/clk-nspire.c | 141 +++ 2 files changed, 142 insertions(+) create mode 100644 drivers/clk/clk-nspire.c diff --git a/drivers/clk/Makefile b/drivers/clk

[RFC PATCH] Fix sortextable building on non-Linux systems

2013-05-02 Thread Daniel Tang
compilation on non-Linux systems. Signed-off-by: Daniel Tang --- tools/include/tools/be_byteshift.h | 34 +- tools/include/tools/le_byteshift.h | 34 +- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/tools/include/tools

[RESEND PATCH] Remove trailing whitespace in arch/arm/Makefile

2013-05-02 Thread Daniel Tang
Signed-off-by: Daniel Tang --- arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index ee4605f..479b209 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -313,7 +313,7 @@ define archhelp echo ' Image

[RESEND PATCH] Remove trailing whitespace in arch/arm/Makefile

2013-05-02 Thread Daniel Tang
Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index ee4605f..479b209 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -313,7 +313,7 @@ define archhelp echo

[RFC PATCH] Fix sortextable building on non-Linux systems

2013-05-02 Thread Daniel Tang
compilation on non-Linux systems. Signed-off-by: Daniel Tang dt.ta...@gmail.com --- tools/include/tools/be_byteshift.h | 34 +- tools/include/tools/le_byteshift.h | 34 +- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git

Re: [RFC PATCHv2 arm: initial TI-Nspire support]

2013-04-11 Thread Daniel Tang
On 11/04/2013, at 10:30 PM, Arnd Bergmann wrote: > On Thursday 11 April 2013, Daniel Tang wrote: >> This is another updated patch for Linux on TI-Nspire support. >> >> Apologies for previously posting updated patches as replies to the first >> thread. I'll send upd

[RFC PATCHv2 arm: initial TI-Nspire support]

2013-04-11 Thread Daniel Tang
/20130408.113343.585af217.en.html and v2: * Added new drivers to support the irqchip and timers on older models. * Added new device trees to support the other models. Signed-off-by: Daniel Tang --- arch/arm/Kconfig| 2 + arch/arm/Kconfig.debug | 16 ++ arch/arm

[RFC PATCHv2 arm: initial TI-Nspire support]

2013-04-11 Thread Daniel Tang
/20130408.113343.585af217.en.html and v2: * Added new drivers to support the irqchip and timers on older models. * Added new device trees to support the other models. Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/Kconfig| 2 + arch/arm/Kconfig.debug

Re: [RFC PATCHv2 arm: initial TI-Nspire support]

2013-04-11 Thread Daniel Tang
On 11/04/2013, at 10:30 PM, Arnd Bergmann a...@arndb.de wrote: On Thursday 11 April 2013, Daniel Tang wrote: This is another updated patch for Linux on TI-Nspire support. Apologies for previously posting updated patches as replies to the first thread. I'll send updated patches in new

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Daniel Tang
Hi, Thanks for your comments! They're much appreciated. Just to bring you up to speed, we decided to begin reimplementing the machine from scratch and slowly pull things in from the original patch. Arnd pointed out a lot of fundamental issues with our patch so we thought it'd be better to

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Daniel Tang
On 09/04/2013, at 5:16 AM, Fabian Vogt wrote: > The latest kernel it seems to get stuck at > console_lock() in register_framebuffer (drivers/video/fbmem.c:1655) > if the LCD-controller is enabled. (Early printk and serial console works fine) > CONFIG_NO_HZ is not activated, it works completely.

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Daniel Tang
On 09/04/2013, at 5:16 AM, Fabian Vogt fab...@ritter-vogt.de wrote: The latest kernel it seems to get stuck at console_lock() in register_framebuffer (drivers/video/fbmem.c:1655) if the LCD-controller is enabled. (Early printk and serial console works fine) CONFIG_NO_HZ is not activated, it

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Daniel Tang
Hi, Thanks for your comments! They're much appreciated. Just to bring you up to speed, we decided to begin reimplementing the machine from scratch and slowly pull things in from the original patch. Arnd pointed out a lot of fundamental issues with our patch so we thought it'd be better to

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-08 Thread Daniel Tang
to the SP804 driver. * Fix up platform selection in Kconfig. TI-NSPIRE based option was visible even when ARCH_MULTI_V4_V5 is not selected. * Added keypad driver and keymap * Support for 'make dtbs' Signed-off-by: Daniel Tang --- arch/arm/Kconfig| 2 + arch/arm

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-08 Thread Daniel Tang
to the SP804 driver. * Fix up platform selection in Kconfig. TI-NSPIRE based option was visible even when ARCH_MULTI_V4_V5 is not selected. * Added keypad driver and keymap * Support for 'make dtbs' Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/Kconfig| 2

[PATCH] Fix sortextable building on non-Linux systems

2013-04-07 Thread Daniel Tang
is a patch that fixes building on non-Linux systems. Cheers, tangrs Signed-off-by: Daniel Tang --- tools/include/tools/be_byteshift.h | 34 +- tools/include/tools/le_byteshift.h | 34 +- 2 files changed, 34 insertions(+), 34

[PATCH] Fix sortextable building on non-Linux systems

2013-04-07 Thread Daniel Tang
is a patch that fixes building on non-Linux systems. Cheers, tangrs Signed-off-by: Daniel Tang dt.ta...@gmail.com --- tools/include/tools/be_byteshift.h | 34 +- tools/include/tools/le_byteshift.h | 34 +- 2 files changed, 34

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Daniel Tang
the device tree to select the correct configuration. Signed-off-by: Daniel Tang --- arch/arm/Kconfig | 2 + arch/arm/Kconfig.debug | 16 +++ arch/arm/Makefile | 3 +- arch/arm/boot/dts/nspire-cx.dts| 89 ++ arch/arm/boot/dts

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Daniel Tang
+clk = of_clk_get_by_name(timer, NULL); >> +clk_register_clkdev(clk, timer->name, "sp804"); >> + >> +sp804_clocksource_init(base, timer->name); >> + >> +err = of_property_read_string(of_aliases, "timer1", ); >> +if (W

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Daniel Tang
something basic that boots successfully using device trees. Some comments before we continue would be greatly appreciated. Signed-off-by: Daniel Tang --- arch/arm/Kconfig| 13 ++ arch/arm/Makefile |3 +- arch/arm/boot/dt

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Daniel Tang
basic that boots successfully using device trees. Some comments before we continue would be greatly appreciated. Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/Kconfig| 13 ++ arch/arm/Makefile |3 +- arch/arm/boot/dts

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Daniel Tang
and make it a clocksource, take the next one you see and make it a clockevent? Arnd Here's an updated patch: Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/Kconfig | 2 + arch/arm/Kconfig.debug | 16 arch/arm/Makefile | 3

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Daniel Tang
the device tree to select the correct configuration. Signed-off-by: Daniel Tang dt.ta...@gmail.com --- arch/arm/Kconfig | 2 + arch/arm/Kconfig.debug | 16 +++ arch/arm/Makefile | 3 +- arch/arm/boot/dts/nspire-cx.dts| 89 ++ arch/arm

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-05 Thread Daniel Tang
Hi, First of all, thank you for your comments! On 04/04/2013, at 10:12 PM, Arnd Bergmann wrote: > For new platforms, we want to have only the absolute minimum amount of > code in arch/arm and move everything else into drivers. However, that > is only possible using device tree. It should not

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-05 Thread Daniel Tang
Hi, First of all, thank you for your comments! On 04/04/2013, at 10:12 PM, Arnd Bergmann a...@arndb.de wrote: For new platforms, we want to have only the absolute minimum amount of code in arch/arm and move everything else into drivers. However, that is only possible using device tree. It

<    1   2