DSP

Enable UART Serial on AM572x

2019-07-13 14:46发布

Enable UART Serial on AM572x

Download kernel

ti-processor-sdk-linux-am57xx-evm-05.01.00.11

Modify DTS

ti-processor-sdk-linux-am57xx-evm-05.01.00.11/board-support/linux-4.14.67+gitAUTOINC+d315a9bb00-gd315a9bb00/arch/arm/boot/dts/am572x-idk.dts
Add the following of contents: myuart10_pins_default: myuart10_pins_default { pinctrl-single,pins = < /*DRA7XX_CORE_IOPAD(0x3558, PIN_OUTPUT | MUX_MODE14)*/ /*gpio3_29*/ /*DRA7XX_CORE_IOPAD(0x3688, PIN_INPUT_PULLUP | MUX_MODE3) //DRA7XX_CORE_IOPAD(0x368C, PIN_OUTPUT | MUX_MODE3)*/ /*uart10_txd*/ DRA7XX_CORE_IOPAD(0x3570, (PIN_INPUT_PULLUP | MUX_MODE8)) /* vin2a_d2.uart10_rxd */ DRA7XX_CORE_IOPAD(0x3574, (PIN_OUTPUT_PULLUP | MUX_MODE8)) /* vin2a_d3.uart10_txd */ >; }; &uart10 { pinctrl-names = "default"; pinctrl-0 = <&myuart10_pins_default>; /*======================================= rts-gpio=<&gpio3 29 GPIO_ACTIVE_HIGH>; // rs485-rts-active-high; // rs485-rts-delay = <1 1>; */ /*Enable RS-485*/ /* linux,rs485-enabled-at-boot-time; =========================================== */ status = "okay"; };

Make kernel

make ARCH=arm CROSS_COMPILE=${CC} am572x-idk.dtb

Boring thing

date timedatectl list-timezones sudo timedatectl set-timezone Asia/Hong_Kong