Commit 2f384801 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Rob Herring
Browse files

dt-bindinsg: net: can: Convert can-transceiver to json-schema



Convert can-transceiver property to json-schema

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 90aeca87
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
Generic CAN transceiver Device Tree binding
------------------------------

CAN transceiver typically limits the max speed in standard CAN and CAN FD
modes. Typically these limitations are static and the transceivers themselves
provide no way to detect this limitation at runtime. For this situation,
the "can-transceiver" node can be used.

Required Properties:
 max-bitrate:	a positive non 0 value that determines the max
		speed that CAN/CAN-FD can run. Any other value
		will be ignored.

Examples:

Based on Texas Instrument's TCAN1042HGV CAN Transceiver

m_can0 {
	....
	can-transceiver {
		max-bitrate = <5000000>;
	};
	...
};
+18 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/can/can-transceiver.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: CAN transceiver Bindings

description: CAN transceiver generic properties bindings

maintainers:
  - Rob Herring <robh@kernel.org>

properties:
  max-bitrate:
    $ref: /schemas/types.yaml#/definitions/uint32
    description: a positive non 0 value that determines the max speed that CAN/CAN-FD can run.
    minimum: 1