1/* 2 * Copyright (c) 2023 Vestas Wind Systems A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/gpio/gpio.h> 8 9/ { 10 chosen { 11 zephyr,canbus = &tcan4x5x_tcan4550evm; 12 }; 13}; 14 15&arduino_spi { 16 status = "okay"; 17 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ 18 19 tcan4x5x_tcan4550evm: can@0 { 20 compatible = "ti,tcan4x5x"; 21 reg = <0>; 22 /* reduced spi-max-frequency to accommodate flywire connections */ 23 spi-max-frequency = <2000000>; 24 status = "okay"; 25 clock-frequency = <40000000>; 26 device-state-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>; /* D6 */ 27 device-wake-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>; /* D7 */ 28 reset-gpios = <&arduino_header 14 GPIO_ACTIVE_HIGH>; /* D8 */ 29 int-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */ 30 bosch,mram-cfg = <0x0 15 15 7 7 0 10 10>; 31 sample-point = <875>; 32 sample-point-data = <875>; 33 bus-speed = <125000>; 34 bus-speed-data = <1000000>; 35 status = "okay"; 36 37 can-transceiver { 38 max-bitrate = <8000000>; 39 }; 40 }; 41}; 42