This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4378: Processors forum

Part Number: AM4378
Other Parts Discussed in Thread: AM4372

Hello Bin Liu,

continue to part of mikundan related to, AM4378: Using the Hardware UART peripheral of the PRU-ICSS /dev/ttyS6 integrated and working on pruss1_uart ,  we have added &pruss0_uart  second PRU-ICSS uart ,try to open /dev/ttyS7 its giving the error "termios.error: (5, 'Input/output error'') " please check the dts we have added.

pruss0_uart_pins: pruss0_uart_pins {
pinctrl-single,pins = <
AM4372_IOPAD(0x958, PIN_INPUT | MUX_MODE5) /* (T21) spi0_d1.pr0_uart0_rxd */
AM4372_IOPAD(0x95c, PIN_OUTPUT | MUX_MODE5) /* (T20) spi0_cs0.pr0_uart0_txd */
>;
};

pruss1_uart_pins: pruss1_uart_pins {
pinctrl-single,pins = <
AM4372_IOPAD(0x980, PIN_INPUT | MUX_MODE5) /* nvn (K21) uart1_rxd.pr1_uart0_rxd */
AM4372_IOPAD(0x984, PIN_OUTPUT | MUX_MODE5) /* nvn (L21) uart1_txd.pr1_uart0_txd */
>;
};

&pruss0_uart {
prus = <&pru0_0>; /* nvn was &pru0 */
ti,pru-interrupt-map = <0 6 2 2>;
pinctrl-names = "default";
pinctrl-0 = <&pruss0_uart_pins>;
rts-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
linux,rs485-enabled-at-boot-time;
status = "okay";

};

/* nvn am335x-evmsk.dts */
&pruss1_uart {
prus = <&pru1_0>; /* nvn was &pru0 */
ti,pru-interrupt-map = <0 6 2 2>;
pinctrl-names = "default";
rts-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
linux,rs485-enabled-at-boot-time;
pinctrl-0 = <&pruss1_uart_pins>;
status = "okay";
};

we have added in arch/arm/boot/dts/am4372.dtsi in below 

pruss0_uart: serial@28000 {
compatible = "ti,pruss-uart";
reg = <0x28000 0x38>;
clocks = <&dpll_per_m2_ck>;
interrupt-parent = <&pruss0_intc>;
interrupts = <6>;
status = "disabled";
};

pruss1_uart: serial@28000 {
compatible = "ti,pruss-uart";
reg = <0x28000 0x38>;
clocks = <&dpll_per_m2_ck>;
interrupt-parent = <&pruss1_intc>; /* nvn was pruss_intc */
interrupts = <6>;
status = "disabled";
};

Please suggest the suitable solution to work towards the /dev/ttyS7 &pruss0_uart

Best,

-Ashok