1# Common fields for CAN controllers 2 3include: base.yaml 4 5properties: 6 bus-speed: 7 type: int 8 deprecated: true 9 description: | 10 Deprecated. This property has been renamed to bitrate. 11 12 Initial bitrate in bit/s. If this is unset, the initial bitrate is set to 13 CONFIG_CAN_DEFAULT_BITRATE. 14 bitrate: 15 type: int 16 description: | 17 Initial bitrate in bit/s. If this is unset, the initial bitrate is set to 18 CONFIG_CAN_DEFAULT_BITRATE. 19 sample-point: 20 type: int 21 description: | 22 Initial sample point in per mille (e.g. 875 equals 87.5%). 23 24 If this is unset (or if it is set to 0), the initial sample point will default to 75.0% for 25 bitrates over 800 kbit/s, 80.0% for bitrates over 500 kbit/s, and 87.5% for all other 26 bitrates. 27 phys: 28 type: phandle 29 description: | 30 Actively controlled CAN transceiver. 31 32 Example: 33 transceiver0: can-phy0 { 34 compatible = "nxp,tja1040", "can-transceiver-gpio"; 35 standby-gpios = <gpioa 0 GPIO_ACTIVE_HIGH>; 36 max-bitrate = <1000000>; 37 #phy-cells = <0>; 38 }; 39 40 &can0 { 41 status = "okay"; 42 43 phys = <&transceiver0>; 44 }; 45 46child-binding: 47 description: | 48 Passive CAN transceiver. The child node must be named "can-transceiver". 49 50 Example: 51 &can0 { 52 status = "okay"; 53 54 can-transceiver { 55 max-bitrate = <1000000>; 56 }; 57 }; 58 59 properties: 60 min-bitrate: 61 type: int 62 description: | 63 The minimum bitrate supported by the CAN transceiver in bits/s. 64 65 max-bitrate: 66 type: int 67 required: true 68 description: | 69 The maximum bitrate supported by the CAN transceiver in bits/s. 70