Go to advanced search

by ivanch10
Sat Nov 05, 2016 9:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: Optional interfaces (I2C, I2S, SPI) and Device Tree
Replies: 128
Views: 137139

Re: Optional interfaces (I2C, I2S, SPI) and Device Tree

Thanks PhilE! You do help me to understand a lot about overlay. :)
by ivanch10
Fri Nov 04, 2016 4:53 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: Optional interfaces (I2C, I2S, SPI) and Device Tree
Replies: 128
Views: 137139

Re: Optional interfaces (I2C, I2S, SPI) and Device Tree

Thanks PhilE!! The mcp2515-can2 worked. :D :D Now i got another problem. I can set CAN speed to 500kHz but It seems I can't set it to 1MHz. How can I solve it? pi@raspberrypi:~ $ sudo ip link set up can0 type can bitrate 1000000; RTNETLINK answers: Numerical argument out of domain dmesg pi@raspberry...
by ivanch10
Thu Nov 03, 2016 12:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: Optional interfaces (I2C, I2S, SPI) and Device Tree
Replies: 128
Views: 137139

Re: Optional interfaces (I2C, I2S, SPI) and Device Tree

It seems there still have some problems. Here is the result. /* * Device tree overlay for mcp251x/can2 on spi0.2 */ /dts-v1/; /plugin/; / { compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709"; /* disable spi-dev for spi0.2 */ fragment@0 { target = <&spi0>; __overlay__ { statu...
by ivanch10
Thu Nov 03, 2016 10:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: Optional interfaces (I2C, I2S, SPI) and Device Tree
Replies: 128
Views: 137139

Re: Optional interfaces (I2C, I2S, SPI) and Device Tree

I am a beginner. I am trying to connect 3 set of MCP2515 (SPI-CAN). There are only 2 mcp2515-can overlays, which are mcp2515-can0 and mcp2515-can1. Anyone knows how to add 1 more mcp2515-can overlay? I have tried to modified the mcp2515-can0-overlay.dts to be mcp2515-can2-overlay.dts. But it doesn't...

Go to advanced search