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 bus-speed = <125000>; 19 sample-point = <875>; 20 21 can-transceiver { 22 max-bitrate = <1000000>; 23 }; 24 }; 25}; 26 27/ { 28 chosen { 29 zephyr,canbus = &mcp2515_dfrobot_can_bus_v2_0; 30 }; 31}; 32