* [MPC8272ADS]Can not configure the ttyCPM0
@ 2009-03-13 13:38 Jean-Michel Hautbois
2009-03-13 14:00 ` Laurent Pinchart
0 siblings, 1 reply; 4+ messages in thread
From: Jean-Michel Hautbois @ 2009-03-13 13:38 UTC (permalink / raw)
To: linuxppc-dev
Hi all !
I am currently facing a big problem on my MPC8272ADS development board.
I have tried to use the /dev/ttyCPM1 port in order to send data over
the serial cable to another device.
This is just not working but nothing is sent, my DTR signal is down:
> cat /proc/tty/driver/ttyCPM
0: uart:CPM UART mmio:0xF0011A00 irq:40 tx:296 rx:0 RTS|CTS|DTR|DSR|CD
1: uart:CPM UART mmio:0xF0011A60 irq:43 tx:0 rx:0 CTS|DSR|CD
So, I have tried to use the serial port /dev/ttyCPM0. It is
successfully sending out my bytes, but I can't configure it !!
When I am trying to use the tcsetattr() function, I don't have any
error, but the signal is always the same (no effect, if you prefer).
I have tried to disable the kernel console output, but it is not
working, either...
Can anyone help me ?
Thanks in advance !
Best Regards,
JM
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [MPC8272ADS]Can not configure the ttyCPM0 2009-03-13 13:38 [MPC8272ADS]Can not configure the ttyCPM0 Jean-Michel Hautbois @ 2009-03-13 14:00 ` Laurent Pinchart 2009-03-13 14:20 ` Jean-Michel Hautbois 0 siblings, 1 reply; 4+ messages in thread From: Laurent Pinchart @ 2009-03-13 14:00 UTC (permalink / raw) To: linuxppc-dev; +Cc: Jean-Michel Hautbois [-- Attachment #1: Type: text/plain, Size: 1406 bytes --] Hi Jean-Michel, On Friday 13 March 2009 14:38:55 Jean-Michel Hautbois wrote: > Hi all ! > > I am currently facing a big problem on my MPC8272ADS development board. > I have tried to use the /dev/ttyCPM1 port in order to send data over > the serial cable to another device. > > This is just not working but nothing is sent, my DTR signal is down: > > cat /proc/tty/driver/ttyCPM > > 0: uart:CPM UART mmio:0xF0011A00 irq:40 tx:296 rx:0 RTS|CTS|DTR|DSR|CD > 1: uart:CPM UART mmio:0xF0011A60 irq:43 tx:0 rx:0 CTS|DSR|CD > > So, I have tried to use the serial port /dev/ttyCPM0. It is > successfully sending out my bytes, but I can't configure it !! > When I am trying to use the tcsetattr() function, I don't have any > error, but the signal is always the same (no effect, if you prefer). > > I have tried to disable the kernel console output, but it is not > working, either... Support for the modem control lines has been added in v2.6.27-rc2. You will need to declare the modem control lines in your device tree. See Documentation/powerpc/dts-bindings/fsl/cpm_qe/serial.txt for more information. Please note that hardware flow control is not supported by the CPM UART driver yet. Best regards, -- Laurent Pinchart CSE Semaphore Belgium Waterloo Office Park Building M Dreve Richelle, 161 B-1410 Waterloo Belgium T +32 (2) 387 42 59 F +32 (2) 387 42 75 [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [MPC8272ADS]Can not configure the ttyCPM0 2009-03-13 14:00 ` Laurent Pinchart @ 2009-03-13 14:20 ` Jean-Michel Hautbois 2009-03-13 14:38 ` Laurent Pinchart 0 siblings, 1 reply; 4+ messages in thread From: Jean-Michel Hautbois @ 2009-03-13 14:20 UTC (permalink / raw) To: Laurent Pinchart; +Cc: linuxppc-dev 2009/3/13 Laurent Pinchart <laurentp@cse-semaphore.com>: > Hi Jean-Michel, > > Support for the modem control lines has been added in v2.6.27-rc2. You will > need to declare the modem control lines in your device tree. See > Documentation/powerpc/dts-bindings/fsl/cpm_qe/serial.txt for more information. > > Please note that hardware flow control is not supported by the CPM UART driver > yet. > OK, this is not easy, to modify... My DTS already contains a configuration for the CPM1 port... serial@11a00 { device_type = "serial"; compatible = "fsl,mpc8272-scc-uart", "fsl,cpm2-scc-uart"; reg = <0x11a00 0x20 0x8000 0x100>; interrupts = <40 8>; interrupt-parent = <&PIC>; fsl,cpm-brg = <1>; fsl,cpm-command = <0x800000>; }; serial@11a60 { device_type = "serial"; compatible = "fsl,mpc8272-scc-uart", "fsl,cpm2-scc-uart"; reg = <0x11a60 0x20 0x8300 0x100>; interrupts = <43 8>; interrupt-parent = <&PIC>; fsl,cpm-brg = <4>; fsl,cpm-command = <0xce0000>; }; I can't see what I have to do... This is not obvious ;). JM ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [MPC8272ADS]Can not configure the ttyCPM0 2009-03-13 14:20 ` Jean-Michel Hautbois @ 2009-03-13 14:38 ` Laurent Pinchart 0 siblings, 0 replies; 4+ messages in thread From: Laurent Pinchart @ 2009-03-13 14:38 UTC (permalink / raw) To: Jean-Michel Hautbois; +Cc: linuxppc-dev [-- Attachment #1: Type: text/plain, Size: 2658 bytes --] Hi Jean-Michel, On Friday 13 March 2009 15:20:24 Jean-Michel Hautbois wrote: > 2009/3/13 Laurent Pinchart <laurentp@cse-semaphore.com>: > > Support for the modem control lines has been added in v2.6.27-rc2. You > > will need to declare the modem control lines in your device tree. See > > Documentation/powerpc/dts-bindings/fsl/cpm_qe/serial.txt for more > > information. > > > > Please note that hardware flow control is not supported by the CPM UART > > driver yet. > > OK, this is not easy, to modify... > My DTS already contains a configuration for the CPM1 port... > > serial@11a00 { > device_type = "serial"; > compatible = "fsl,mpc8272-scc-uart", > "fsl,cpm2-scc-uart"; > reg = <0x11a00 0x20 0x8000 0x100>; > interrupts = <40 8>; > interrupt-parent = <&PIC>; > fsl,cpm-brg = <1>; > fsl,cpm-command = <0x800000>; > }; > > serial@11a60 { > device_type = "serial"; > compatible = "fsl,mpc8272-scc-uart", > "fsl,cpm2-scc-uart"; > reg = <0x11a60 0x20 0x8300 0x100>; > interrupts = <43 8>; > interrupt-parent = <&PIC>; > fsl,cpm-brg = <4>; > fsl,cpm-command = <0xce0000>; > }; > > I can't see what I have to do... > This is not obvious ;). Here are excerpts of my device tree for an MPC8248 based platform. You need to declare GPIO controllers for the pins used by modem control lines cpm2_pio_c: gpio_controller@10d40 { compatible = "fsl,mpc8248-pario-bank", "fsl,cpm2-pario-bank"; reg = <0x10d40 0x14>; #gpio-cells = <2>; gpio-controller; }; cpm2_pio_d: gpio_controller@10d60 { compatible = "fsl,mpc8248-pario-bank", "fsl,cpm2-pario-bank"; reg = <0x10d60 0x14>; #gpio-cells = <2>; gpio-controller; }; and add the GPIO mapping in your serial port controller nodes gpios = <&cpm2_pio_c 15 0 /* CTS */ &cpm2_pio_d 29 0 /* RTS */ &cpm2_pio_c 14 0 /* DCD */ 0 /* DSR */ &cpm2_pio_d 20 0 /* DTR */ &cpm2_pio_c 8 0 /* RI */ >; Don't forget to configure the pins (direction, special purpose, ...) in your board-specific code. -- Laurent Pinchart CSE Semaphore Belgium Waterloo Office Park Building M Dreve Richelle, 161 B-1410 Waterloo Belgium T +32 (2) 387 42 59 F +32 (2) 387 42 75 [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-13 14:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-03-13 13:38 [MPC8272ADS]Can not configure the ttyCPM0 Jean-Michel Hautbois 2009-03-13 14:00 ` Laurent Pinchart 2009-03-13 14:20 ` Jean-Michel Hautbois 2009-03-13 14:38 ` Laurent Pinchart
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).