1# Copyright (c) 2023 Vestas Wind Systems A/S 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 Texas Instruments TCAN4x5x SPI CAN-FD controller. 6 7 Example: 8 &spi0 { 9 tcan4x5x: can@0 { 10 compatible = ti,tcan4x5x"; 11 reg = <0>; 12 spi-max-frequency = <18000000>; 13 clock-frequency = <40000000>; 14 device-state-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; 15 device-wake-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 16 reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; 17 int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; 18 bosch,mram-cfg = <0x0 15 15 5 5 0 10 10>; 19 sample-point = <875>; 20 sample-point-data = <875>; 21 bus-speed = <125000>; 22 bus-speed-data = <1000000>; 23 status = "okay"; 24 25 can-transceiver { 26 max-bitrate = <8000000>; 27 }; 28 }; 29 }; 30 31compatible: "ti,tcan4x5x" 32 33include: ["bosch,m_can-base.yaml", "spi-device.yaml"] 34 35properties: 36 clock-frequency: 37 type: int 38 enum: 39 - 20000000 40 - 40000000 41 required: true 42 description: | 43 TCAN4x5x oscillator clock frequency in Hz (20MHz or 40MHz). 44 45 device-state-gpios: 46 type: phandle-array 47 description: | 48 GPIO connected to the TCAN4x5x nWKRQ output. This signal is active low. 49 50 device-wake-gpios: 51 type: phandle-array 52 description: | 53 GPIO connected to the TCAN4x5x WAKE input. This signal is high-voltage, active high. 54 55 reset-gpios: 56 type: phandle-array 57 description: | 58 GPIO connected to the TCAN4x5x RST input. This signal is active high. 59 60 int-gpios: 61 type: phandle-array 62 required: true 63 description: | 64 GPIO connected to the TCAN4x5x nINT interrupt output. This signal is open-drain, active low. 65