We finnaly find how to manage this.
I tried to boot with sun5i-a10s-olinuxino-micro.dtb in place of sun4i-a10-olinuxion-lime.dtb , because uart2 was defined in that file, but that doesn't work. So I picked those part in sun5i :
uart2@0 {
allwinner,pins = "PC18", "PC19";
allwinner,function = "uart2";
allwinner,drive = <0x0>;
allwinner,pull = <0x0>;
linux,phandle = <0x24>;
phandle = <0x24>;
};
...
serial@01c28800 {
compatible = "snps,dw-apb-uart";
reg = <0x1c28800 0x400>;
interrupts = <0x3>;
reg-shift = <0x2>;
reg-io-width = <0x4>;
clocks = <0x22 0x12>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x24>;
};
and put it in sun4i with the correct modifications to match with the other definitions :
uart2@0 {
allwinner,pins = "PI18", "PI19";
allwinner,function = "uart2";
allwinner,drive = <0x0>;
allwinner,pull = <0x0>;
linux,phandle = <0x30>;
phandle = <0x30>;
};
...
serial@01c28800 {
compatible = "snps,dw-apb-uart";
reg = <0x1c28800 0x400>;
interrupts = <0x3>;
reg-shift = <0x2>;
reg-io-width = <0x4>;
clocks = <0x28 0x12>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x30>;
};
And it works fine !
Thank you for your help on that problem,
Nathanaël.