summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Luzny <jakub@luzny.cz>2020-07-17 11:43:08 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2020-07-29 11:52:09 +0100
commiteaf4a5f17e6adb50d7115a5eb995b0b5674d6b02 (patch)
tree433618cb9a2cedb664d50073f9b094a84a196362
parent603f3891fee84520a5ab00645512fc08f21d2c04 (diff)
downloadmeta-raspberrypi-eaf4a5f17e6adb50d7115a5eb995b0b5674d6b02.tar.gz
docs/extra-build-config.md: Document CAN_OSCILLATOR variable
Add instructions how to use CAN_OSCILLATOR variable and declare support for the Waveshare RS485 CAN HAT. Signed-off-by: Jakub Luzny <jakub@luzny.cz>
-rw-r--r--docs/extra-build-config.md20
1 files changed, 13 insertions, 7 deletions
diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
index 641dc0a..a8c662a 100644
--- a/docs/extra-build-config.md
+++ b/docs/extra-build-config.md
@@ -252,21 +252,27 @@ When using device tree kernels, set this variable to enable the 802.15.4 hat:
252 252
253See: <https://openlabs.co/OSHW/Raspberry-Pi-802.15.4-radio> 253See: <https://openlabs.co/OSHW/Raspberry-Pi-802.15.4-radio>
254 254
255## Enable CAN with Pican2 255## Enable CAN
256 256
257In order to use Pican2 CAN module, set the following variables: 257In order to use CAN with an MCP2515-based module, set the following variables:
258 258
259 ENABLE_SPI_BUS = "1" 259 ENABLE_SPI_BUS = "1"
260 ENABLE_CAN = "1" 260 ENABLE_CAN = "1"
261 261
262See: <http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html> 262In case of dual CAN module (e.g. PiCAN2 Duo), set following variables instead:
263 263
264In order to use Pican2 Duo CAN module, set the following variables: 264 ENABLE_SPI_BUS = "1"
265
266 ENABLE_SPI_BUS = "1"
267 ENABLE_DUAL_CAN = "1" 265 ENABLE_DUAL_CAN = "1"
268 266
269See: <http://skpang.co.uk/catalog/pican2-duo-canbus-board-for-raspberry-pi-23-p-1480.html> 267Some modules may require setting the frequency of the crystal oscillator used on the particular board. The frequency is usually marked on the package of the crystal. By default, it is set to 16 MHz. To change that to 8 MHz, the following variable also has to be set:
268
269 CAN_OSCILLATOR="8000000"
270
271Tested modules:
272
273* PiCAN2 (16 MHz crystal): <http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html>
274* WaveShare RS485 CAN HAT (8 MHz or 12 MHz crystal): <https://www.waveshare.com/rs485-can-hat.htm>
275* PiCAN2 Duo (16 MHz crystal): <http://skpang.co.uk/catalog/pican2-duo-canbus-board-for-raspberry-pi-23-p-1480.html>
270 276
271## Enable infrared 277## Enable infrared
272 278