Ocp is on-chip peripheral.
Uart 3 physical address is 0x4802 0000 (TI manual).
So the mapping address is matched to /tty/ttyS2 (it is actually linked to ttyO2. Please Refer to the below command )
Uart 5 physical address is 0x4806 6000 matched to
ttyS4. (it is actually linked to ttyO4. Please Refer to the below command)
Etc.
I hope it is helpful.
debian@beaglebone:/sys/class/tty$ ls -al | grep ttyS
lrwxrwxrwx 1 root root 0 Mar 12 23:01 ttyS0 -> ../../devices/platform/44000000.ocp/4806a000.serial/tty/ttyS0
lrwxrwxrwx 1 root root 0 Mar 12 23:01 ttyS1 -> ../../devices/platform/44000000.ocp/48422000.serial/tty/ttyS1
lrwxrwxrwx 1 root root 0 Mar 12 23:01 ttyS2 -> ../../devices/platform/44000000.ocp/48020000.serial/tty/ttyS2
lrwxrwxrwx 1 root root 0 Mar 12 23:01 ttyS3 -> ../../devices/platform/44000000.ocp/4ae2b000.serial/tty/ttyS3
lrwxrwxrwx 1 root root 0 Mar 12 23:01 ttyS4 -> ../../devices/platform/4400.ocp/48066000.serial/tty/ttyS4
lrwxrwxrwx 1 root root 0 Mar 12 23:01 ttyS5 -> ../../devices/platform/44000000.ocp/48068000.serial/tty/ttyS5
P9.22b 240 fast rx up 1 uart 2 rxd serial@48020000 (uart3)
pin 240 (PIN240) 4a0037c0 00060001 pinctrl-single ( instead of 00000001)
UART3 TX was working without any pull up or pull down.
P9_21,
MUX_MODE1 ) // P9.21 uart3_txd
pin 241 (PIN241) 4a0037c4 00000001 pinctrl-single
To activate uart3, please add the following code into *.dts file and compile to *.dtb.
Also please modify the am572*ai.dts file by deactivating the shared pins.
&uart3 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart3_pins>;
};
&dra7_pmx_core {
uart3_pins: uart3 {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD( P9_21, MUX_MODE1 ) // P9.21 uart3_txd
DRA7XX_CORE_IOPAD( P9_22b, PIN_INPUT_PULLUP | MUX_MODE1) // P9.22b uart3_rxd
DRA7XX_CORE_IOPAD( P9_22a, MUX_MODE15) // P9.22a driver_off //shared-pin
>;
};
};
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c77fd7a6-4177-4a4c-9f20-cca67e254fb5%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c77fd7a6-4177-4a4c-9f20-cca67e254fb5%40googlegroups.com.