ARM: tegra: config: enable SERIAL_TEGRA
Subsystems (3)
PATCH 1/2 ARM: tegra: config: enable SERIAL_TEGRA
Enable high speed serial driver for tegra platform.
--- arch/arm/configs/tegra_defconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/configs/tegra_defconfig +1 -0
@@ -112,6 +112,7 @@ CONFIG_INPUT_MPU3050=y # CONFIG_DEVKMEM is not set CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_TEGRA=y CONFIG_SERIAL_OF_PLATFORM=y # CONFIG_HW_RANDOM is not set CONFIG_I2C=y
Signature · 1 line
1.7.1.1
PATCH 2/2 ARM: tegra: DTS: cardhu: register UARTC
UARTC is used for the interfacing with bluetooth device. Register this UART channel as high speed serial channel so that it can use the APB DMA for data transfer.
---
The driver file got applied in Greg KH's tty tree. Tested in linux-next 20121229 with some more changes as linux-next-20130116 is crashing in pincontrol.
arch/arm/boot/dts/tegra30-cardhu.dtsi | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
arch/arm/boot/dts/tegra30-cardhu.dtsi +15 -0
@@ -106,6 +106,15 @@ nvidia,slew-rate-rising = <1>; nvidia,slew-rate-falling = <1>; }; + uart3_txd_pw6 { + nvidia,pins = "uart3_txd_pw6", + "uart3_cts_n_pa1", + "uart3_rts_n_pc0", + "uart3_rxd_pw7"; + nvidia,function = "uartc"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; }; };
@@ -114,6 +123,12 @@ clock-frequency = <408000000>; }; + serial at 70006200 { + compatible = "nvidia,tegra30-hsuart"; + status = "okay"; + clock-frequency = <408000000>; + }; + i2c at 7000c000 { status = "okay"; clock-frequency = <100000>;
Signature · 1 line
1.7.1.1
Quoted 1 line · Laxman Dewangan
Enable high speed serial driver for tegra platform.
Thanks, I've applied patch 1 to Tegra's for-3.9/defconfig branch and patch 2 to Tegra's for-3.9/dt branch.
Just as an FYI, the dt branch is merged into my for-next branch, and sent upstream, before the defconfig branch, so your patch order was reversed relative to that, but it's not an issue here.
Question: How do I test this; do I just fire up bluez(?) and point it at the UARTC serial port, or is there more to it?
Quoted 8 lines · Stephen Warren
Quoted 1 line · Laxman Dewangan
Enable high speed serial driver for tegra platform.
Thanks, I've applied patch 1 to Tegra's for-3.9/defconfig branch and patch 2 to Tegra's for-3.9/dt branch.
Just as an FYI, the dt branch is merged into my for-next branch, and sent upstream, before the defconfig branch, so your patch order was reversed relative to that, but it's not an issue here.
Thanks for applying it. There is no issue on the reversing the sequence.
Quoted 2 lines
Question: How do I test this; do I just fire up bluez(?) and point it at the UARTC serial port, or is there more to it?
I tested this in may pieces, not with the bluez.
I tested this in downstream with linux-next dma, this new serial driver, some hacks in the board files with bluetooth.
Then I tested this again on linux-next with some hacks in board-dt filew with invoking the driver from cardhu dts file. In this I tested driver registration, basic write is wokring or not with some register dump/interrupt, Not checked data integrity as not connected the serial sniffer. The idea is that nothing should be crash in linux-next. The basic driver code is already tested with bluetooth.
Quoted 20 lines · Laxman Dewangan
Quoted 8 lines · Stephen Warren
Quoted 1 line · Laxman Dewangan
Enable high speed serial driver for tegra platform.
Thanks, I've applied patch 1 to Tegra's for-3.9/defconfig branch and patch 2 to Tegra's for-3.9/dt branch.
Just as an FYI, the dt branch is merged into my for-next branch, and sent upstream, before the defconfig branch, so your patch order was reversed relative to that, but it's not an issue here.
Thanks for applying it. There is no issue on the reversing the sequence.
Quoted 2 lines
Question: How do I test this; do I just fire up bluez(?) and point it at the UARTC serial port, or is there more to it?
I tested this in may pieces, not with the bluez.
I tested this in downstream with linux-next dma, this new serial driver, some hacks in the board files with bluetooth.
Quoted 6 lines
Then I tested this again on linux-next with some hacks in board-dt filew with invoking the driver from cardhu dts file. In this I tested driver registration, basic write is wokring or not with some register dump/interrupt, Not checked data integrity as not connected the serial sniffer. The idea is that nothing should be crash in linux-next. The basic driver code is already tested with bluetooth.
Well, my question was more about what user-space tools/configuration/... do I need to bring up Bluetooth to test this? I assume that now both the driver and DT patches are in linux-next, I shouldn't have to touch the kernel at all to make this work?