Skip to content

Commit 1b5a78e

Browse files
oleremmarckleinebudde
authored andcommitted
dt-binding: can: mcp25xxfd: document device tree bindings
This patch adds the device-tree binding documentation for the Microchip MCP25xxFD SPI CAN controller family. Signed-off-by: Oleksij Rempel <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 728fc9f commit 1b5a78e

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/can/microchip,mcp25xxfd.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title:
8+
Microchip MCP2517FD and MCP2518FD stand-alone CAN controller device tree
9+
bindings
10+
11+
maintainers:
12+
- Marc Kleine-Budde <[email protected]>
13+
14+
properties:
15+
compatible:
16+
oneOf:
17+
- const: microchip,mcp2517fd
18+
description: for MCP2517FD
19+
- const: microchip,mcp2518fd
20+
description: for MCP2518FD
21+
- const: microchip,mcp25xxfd
22+
description: to autodetect chip variant
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts-extended:
28+
maxItems: 1
29+
30+
clocks:
31+
maxItems: 1
32+
33+
vdd-supply:
34+
description: Regulator that powers the CAN controller.
35+
maxItems: 1
36+
37+
xceiver-supply:
38+
description: Regulator that powers the CAN transceiver.
39+
maxItems: 1
40+
41+
microchip,rx-int-gpios:
42+
description:
43+
GPIO phandle of GPIO connected to to INT1 pin of the MCP25XXFD, which
44+
signals a pending RX interrupt.
45+
maxItems: 1
46+
47+
spi-max-frequency:
48+
description:
49+
Must be half or less of "clocks" frequency.
50+
maximum: 20000000
51+
52+
required:
53+
- compatible
54+
- reg
55+
- interrupts-extended
56+
- clocks
57+
58+
examples:
59+
- |
60+
#include <dt-bindings/gpio/gpio.h>
61+
#include <dt-bindings/interrupt-controller/irq.h>
62+
63+
spi0 {
64+
#address-cells = <1>;
65+
#size-cells = <0>;
66+
67+
can@0 {
68+
compatible = "microchip,mcp25xxfd";
69+
reg = <0>;
70+
clocks = <&can0_osc>;
71+
pinctrl-names = "default";
72+
pinctrl-0 = <&can0_pins>;
73+
spi-max-frequency = <20000000>;
74+
interrupts-extended = <&gpio 13 IRQ_TYPE_LEVEL_LOW>;
75+
microchip,rx-int-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
76+
vdd-supply = <&reg5v0>;
77+
xceiver-supply = <&reg5v0>;
78+
};
79+
};

0 commit comments

Comments
 (0)