rk3326-linux.dtsi里面有这样的节点描述,如下:
chosen {
bootargs = "earlycon=uart8250,mmio32,0xff160000 swiotlb=1 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootwait";
};
px30.dtsi 里面有对uart2这样的描述:
uart2: serial@ff160000 {
compatible = "rockchip,px30-uart", "snps,dw-apb-uart";
reg = <0x0 0xff160000 0x0 0x100>;
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
clock-names = "baudclk", "apb_pclk";
reg-shift = <2>;
reg-io-width = <4>;
dmas = <&dmac 4>, <&dmac 5>;
pinctrl-names = "default";
pinctrl-0 = <&uart2m0_xfer>;
status = "disabled";
};
chosen节点里面的0xff160000 和uart2节点里面的uart2: serial@ff160000(ff160000)对应;(这个口是不能随意定的,不是说想用uart1做为调试串口就将uart1的地址对应上去,这个在rkbin的里面是指定了的)
|