1/* 2 * Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk> 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_keyestudio_can_bus_ks0411: can@0 { 12 compatible = "microchip,mcp2515"; 13 spi-max-frequency = <1000000>; 14 int-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */ 15 status = "okay"; 16 reg = <0x0>; 17 osc-freq = <16000000>; 18 19 can-transceiver { 20 max-bitrate = <1000000>; 21 }; 22 }; 23}; 24 25/ { 26 chosen { 27 zephyr,canbus = &mcp2515_keyestudio_can_bus_ks0411; 28 }; 29}; 30