Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Convert can-transceiver property to json-schema

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Benjamin Gaignard and committed by
Rob Herring
2f384801 90aeca87

+18 -24
-24
Documentation/devicetree/bindings/net/can/can-transceiver.txt
··· 1 - Generic CAN transceiver Device Tree binding 2 - ------------------------------ 3 - 4 - CAN transceiver typically limits the max speed in standard CAN and CAN FD 5 - modes. Typically these limitations are static and the transceivers themselves 6 - provide no way to detect this limitation at runtime. For this situation, 7 - the "can-transceiver" node can be used. 8 - 9 - Required Properties: 10 - max-bitrate: a positive non 0 value that determines the max 11 - speed that CAN/CAN-FD can run. Any other value 12 - will be ignored. 13 - 14 - Examples: 15 - 16 - Based on Texas Instrument's TCAN1042HGV CAN Transceiver 17 - 18 - m_can0 { 19 - .... 20 - can-transceiver { 21 - max-bitrate = <5000000>; 22 - }; 23 - ... 24 - };
+18
Documentation/devicetree/bindings/net/can/can-transceiver.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/can/can-transceiver.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: CAN transceiver Bindings 8 + 9 + description: CAN transceiver generic properties bindings 10 + 11 + maintainers: 12 + - Rob Herring <robh@kernel.org> 13 + 14 + properties: 15 + max-bitrate: 16 + $ref: /schemas/types.yaml#/definitions/uint32 17 + description: a positive non 0 value that determines the max speed that CAN/CAN-FD can run. 18 + minimum: 1