Hi All
In my customized am335x board, it is required load dcan1 as "can0" in user space, and dcan0 as "can1". Their DTS are in am33xx.dtsi as follows:
dcan0: can@481cc000 {
compatible = "ti,am3352-d_can";
ti,hwmods = "d_can0";
reg = <0x481cc000 0x2000>;
clocks = <&dcan0_fck>;
clock-names = "fck";
syscon-raminit = <&scm_conf 0x644 0>;
interrupts = <52>;
status = "disabled";
};
dcan1: can@481d0000 {
compatible = "ti,am3352-d_can";
ti,hwmods = "d_can1";
reg = <0x481d0000 0x2000>;
clocks = <&dcan1_fck>;
clock-names = "fck";
syscon-raminit = <&scm_conf 0x644 1>;
interrupts = <55>;
status = "disabled";
};
I have tried to use aliases to change the order, which doesn't work. It seems that the index in interface name depends on the loading order, that is the first loading for "can0", and the second for "can1", and so on. Are there any way which can change the index in d_can driver? Thanks for any comments about this issue.
BR
Cheng Shi
Emtronix