我已近在am57xx-beagke-x15-common.dtsi中添加了UART相关信息,如下图:
&uart1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins_default>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins_default>;
interrupts-extended = <&crossbar_mpu GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
<&dra7_pmx_core 0x3f0>;
};
<&dra7_pmx_core 0x3f0>;
};
uart2_pins_default: uart2_pins_default {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x37f0, (PIN_INPUT_PULLUP | MUX_MODE4)) /* uart2_rxd.uart2_rxd */
DRA7XX_CORE_IOPAD(0x37f4, (PIN_INPUT_PULLUP | MUX_MODE4)) /* uart2_txd.uart2_txd */
>;
};
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x37f0, (PIN_INPUT_PULLUP | MUX_MODE4)) /* uart2_rxd.uart2_rxd */
DRA7XX_CORE_IOPAD(0x37f4, (PIN_INPUT_PULLUP | MUX_MODE4)) /* uart2_txd.uart2_txd */
>;
};
但还是无法使用,是不是还需要设置其他
Shine:
把&uart1 改成&uart2试试。
jin xin:
回复 Shine:
改了还是不行,通过读取ox4a0037f4,读出数据为,0x00060004,也就是uart2处于休眠状态,那么设备树如何更改,才能唤醒uart2
Shine:
回复 jin xin:
看一下是不是在uboot里让uart2休眠了?