This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED][OP2] SPI device MCP2515 spidev
#3
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:


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>;
What do you think?
Reply


Messages In This Thread
RE: [OP2] SPI device MCP2515 spidev - by Max1947 - 2020-01-13, 11:09 AM
RE: [OP2] SPI device MCP2515 spidev - by glowntiger - 2020-01-14, 09:20 AM
RE: [OP2] SPI device MCP2515 spidev - by Sailoog - 2020-01-14, 08:29 PM
RE: [OP2] SPI device MCP2515 spidev - by Max1947 - 2020-01-22, 12:54 PM
RE: [OP2] SPI device MCP2515 spidev - by Max1947 - 2020-01-25, 03:16 PM
RE: [OP2] SPI device MCP2515 spidev - by Sailoog - 2020-01-31, 06:09 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)