1/* 2 * Copyright (c) 2019 Karsten Koenig 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&arduino_spi { 8 status = "okay"; 9 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ 10 11 mcp2515_dfrobot_can_bus_v2_0: can@0 { 12 compatible = "microchip,mcp2515"; 13 spi-max-frequency = <1000000>; 14 int-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>; /* D2 */ 15 status = "okay"; 16 reg = <0x0>; 17 osc-freq = <16000000>; 18 19 can-transceiver { 20 min-bitrate = <60000>; 21 max-bitrate = <1000000>; 22 }; 23 }; 24}; 25 26/ { 27 chosen { 28 zephyr,canbus = &mcp2515_dfrobot_can_bus_v2_0; 29 }; 30}; 31