diff options
author | Jakub Luzny <jakub@luzny.cz> | 2020-07-17 11:43:08 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-08-10 11:10:11 +0100 |
commit | 2a9af51efed2ba7d751b3fbdc0143f865d83c893 (patch) | |
tree | 49fc16564b515e2c8e49846236331af2ce40f439 | |
parent | c2cbafe78f6d97cd74f2604cac7066cf2e7861bd (diff) | |
download | meta-raspberrypi-2a9af51efed2ba7d751b3fbdc0143f865d83c893.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.md | 20 |
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 | ||
253 | See: <https://openlabs.co/OSHW/Raspberry-Pi-802.15.4-radio> | 253 | See: <https://openlabs.co/OSHW/Raspberry-Pi-802.15.4-radio> |
254 | 254 | ||
255 | ## Enable CAN with Pican2 | 255 | ## Enable CAN |
256 | 256 | ||
257 | In order to use Pican2 CAN module, set the following variables: | 257 | In 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 | ||
262 | See: <http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html> | 262 | In case of dual CAN module (e.g. PiCAN2 Duo), set following variables instead: |
263 | 263 | ||
264 | In 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 | ||
269 | See: <http://skpang.co.uk/catalog/pican2-duo-canbus-board-for-raspberry-pi-23-p-1480.html> | 267 | Some 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 | |||
271 | Tested 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 | ||