2020-01-14, 09:20 AM
Hi Sailoog,
I´m not realy conform with overlays.... But what do you think:
The original raspberry overlay:
https://github.com/raspberrypi/linux/blo...verlay.dts
Here the SPI is load to 0/1:
And here the moitessier is also load to 0/1:
https://github.com/mr-rooney/moitessier-...8c1f389773
What do you think?
I´m not realy conform with overlays.... But what do you think:
The original raspberry overlay:
https://github.com/raspberrypi/linux/blo...verlay.dts
Here the SPI is load to 0/1:
Code:
/* the spi config of the can-controller itself binding everything together */
fragment@4 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
can1: mcp2515@1 {
reg = <1>;
compatible = "microchip,mcp2515";
pinctrl-names = "default";
pinctrl-0 = <&can1_pins>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio>;
interrupts = <25 0x2>;
clocks = <&can1_osc>;
And here the moitessier is also load to 0/1:
https://github.com/mr-rooney/moitessier-...8c1f389773
Code:
moitessier0: moitessier@0{
compatible = "rooco,moitessier";
#address-cells = <1>;
#size-cells = <0>;