Hello,
We have our own HW design using am3352 and we got linux 4.14.67 from TI SDK.
Regarding spi interface, we have different dtb files because we have different HW options. For example, we can have different CAN options connected to the same spi, so different drivers need to be loaded.
&spi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&can3_pins>;
ti,pindir-d0-out-d1-in;
can@3 {
compatible = "microchip,mcp2518fd";
reg = <0>;
spi-max-frequency = <12000000>; // 12 MHz
interrupt-parent = <&gpio0>;//interrupt on port 0
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;//port 0-28
clocks = <&mcp2518_clock>;
};
};
or
&spi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&can3_pins>;
ti,pindir-d0-out-d1-in;
can@3 {
compatible = "microchip,mcp2515";
reg = <0>;
spi-max-frequency = <12000000>; // 12 MHz
interrupt-parent = <&gpio0>;//interrupt on port 0
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;//port 0-28
clocks = <&mcp2515_clock>;
};
};
In order to make it simpler while loading final FW, we would like to have only one dtb file. Do you know if it is possible to have both possibilities in the same dtb file?
It it is not possible in one dtb file, do you know any other way to do it?
Best regards and thank you
Angel