|
发表于 2020-8-13 22:05:44
只看该作者
5#
我是看了教程里面的http://wiki.t-firefly.com/zh_CN/Core-3308Y/driver.html 这个链接上的驱动开发-UART使用 点击后 跳转到了 http://wiki.t-firefly.com/zh_CN/Firefly-RK3399/driver_uart.html
参考的例子!
例如我要使能 uart0 是不是要手工 修改 kernel/arch/arm64/boot/dts/rockchip/rk3088.dtsi 中的
把status = "disabled"; 改为 status = "okay"; ????还是status = "enabled"; ???
uart0: serial@ff0a0000 {
compatible = "rockchip,rk3308-uart", "snps,dw-apb-uart";
reg = <0x0 0xff0a0000 0x0 0x100>;
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
clock-names = "baudclk", "apb_pclk";
reg-shift = <2>;
reg-io-width = <4>;
dmas = <&dmac0 4>, <&dmac0 5>;
dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
status = "disabled";
};
还有你说的设备树 配置文件是那个?是不是kernel/arch/arm64/boot/dts/rockchip/rk3088.dtsi ? |
|