* [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA @ 2013-01-16 13:06 Laxman Dewangan 2013-01-16 13:06 ` [PATCH 2/2] ARM: tegra: DTS: cardhu: register UARTC Laxman Dewangan 2013-01-16 17:57 ` [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA Stephen Warren 0 siblings, 2 replies; 5+ messages in thread From: Laxman Dewangan @ 2013-01-16 13:06 UTC (permalink / raw) To: linux-arm-kernel Enable high speed serial driver for tegra platform. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- arch/arm/configs/tegra_defconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index a7827fd..4c5cc08 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig @@ -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 -- 1.7.1.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ARM: tegra: DTS: cardhu: register UARTC 2013-01-16 13:06 [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA Laxman Dewangan @ 2013-01-16 13:06 ` Laxman Dewangan 2013-01-16 17:57 ` [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA Stephen Warren 1 sibling, 0 replies; 5+ messages in thread From: Laxman Dewangan @ 2013-01-16 13:06 UTC (permalink / raw) To: linux-arm-kernel 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. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- 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(-) diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi index bdb2a66..ff6b68f 100644 --- a/arch/arm/boot/dts/tegra30-cardhu.dtsi +++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi @@ -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>; -- 1.7.1.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA 2013-01-16 13:06 [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA Laxman Dewangan 2013-01-16 13:06 ` [PATCH 2/2] ARM: tegra: DTS: cardhu: register UARTC Laxman Dewangan @ 2013-01-16 17:57 ` Stephen Warren 2013-01-17 4:38 ` Laxman Dewangan 1 sibling, 1 reply; 5+ messages in thread From: Stephen Warren @ 2013-01-16 17:57 UTC (permalink / raw) To: linux-arm-kernel On 01/16/2013 06:06 AM, Laxman Dewangan wrote: > 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? ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA 2013-01-16 17:57 ` [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA Stephen Warren @ 2013-01-17 4:38 ` Laxman Dewangan 2013-01-17 16:27 ` Stephen Warren 0 siblings, 1 reply; 5+ messages in thread From: Laxman Dewangan @ 2013-01-17 4:38 UTC (permalink / raw) To: linux-arm-kernel On Wednesday 16 January 2013 11:27 PM, Stephen Warren wrote: > On 01/16/2013 06:06 AM, Laxman Dewangan wrote: >> 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. > 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA 2013-01-17 4:38 ` Laxman Dewangan @ 2013-01-17 16:27 ` Stephen Warren 0 siblings, 0 replies; 5+ messages in thread From: Stephen Warren @ 2013-01-17 16:27 UTC (permalink / raw) To: linux-arm-kernel On 01/16/2013 09:38 PM, Laxman Dewangan wrote: > On Wednesday 16 January 2013 11:27 PM, Stephen Warren wrote: >> On 01/16/2013 06:06 AM, Laxman Dewangan wrote: >>> 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. > > >> 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. 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? ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-17 16:27 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-01-16 13:06 [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA Laxman Dewangan 2013-01-16 13:06 ` [PATCH 2/2] ARM: tegra: DTS: cardhu: register UARTC Laxman Dewangan 2013-01-16 17:57 ` [PATCH 1/2] ARM: tegra: config: enable SERIAL_TEGRA Stephen Warren 2013-01-17 4:38 ` Laxman Dewangan 2013-01-17 16:27 ` Stephen Warren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).