xref: /linux/Documentation/devicetree/bindings/net/can/microchip,mcp2510.yaml (revision 9410645520e9b820069761f3450ef6661418e279)
1*09328600SFrank Li# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*09328600SFrank Li%YAML 1.2
3*09328600SFrank Li---
4*09328600SFrank Li$id: http://devicetree.org/schemas/can/microchip,mcp2510.yaml#
5*09328600SFrank Li$schema: http://devicetree.org/meta-schemas/core.yaml#
6*09328600SFrank Li
7*09328600SFrank Lititle: Microchip MCP251X stand-alone CAN controller
8*09328600SFrank Li
9*09328600SFrank Limaintainers:
10*09328600SFrank Li  - Marc Kleine-Budde <mkl@pengutronix.de>
11*09328600SFrank Li
12*09328600SFrank Liproperties:
13*09328600SFrank Li  compatible:
14*09328600SFrank Li    enum:
15*09328600SFrank Li      - microchip,mcp2510
16*09328600SFrank Li      - microchip,mcp2515
17*09328600SFrank Li      - microchip,mcp25625
18*09328600SFrank Li
19*09328600SFrank Li  reg:
20*09328600SFrank Li    maxItems: 1
21*09328600SFrank Li
22*09328600SFrank Li  clocks:
23*09328600SFrank Li    maxItems: 1
24*09328600SFrank Li
25*09328600SFrank Li  interrupts:
26*09328600SFrank Li    maxItems: 1
27*09328600SFrank Li
28*09328600SFrank Li  vdd-supply:
29*09328600SFrank Li    description: Regulator that powers the CAN controller.
30*09328600SFrank Li
31*09328600SFrank Li  xceiver-supply:
32*09328600SFrank Li    description: Regulator that powers the CAN transceiver.
33*09328600SFrank Li
34*09328600SFrank Li  gpio-controller: true
35*09328600SFrank Li
36*09328600SFrank Li  "#gpio-cells":
37*09328600SFrank Li    const: 2
38*09328600SFrank Li
39*09328600SFrank Lirequired:
40*09328600SFrank Li  - compatible
41*09328600SFrank Li  - reg
42*09328600SFrank Li  - clocks
43*09328600SFrank Li  - interrupts
44*09328600SFrank Li
45*09328600SFrank LiallOf:
46*09328600SFrank Li  - $ref: /schemas/spi/spi-peripheral-props.yaml#
47*09328600SFrank Li
48*09328600SFrank LiunevaluatedProperties: false
49*09328600SFrank Li
50*09328600SFrank Liexamples:
51*09328600SFrank Li  - |
52*09328600SFrank Li    #include <dt-bindings/interrupt-controller/irq.h>
53*09328600SFrank Li
54*09328600SFrank Li    spi {
55*09328600SFrank Li        #address-cells = <1>;
56*09328600SFrank Li        #size-cells = <0>;
57*09328600SFrank Li
58*09328600SFrank Li        can@1 {
59*09328600SFrank Li             compatible = "microchip,mcp2515";
60*09328600SFrank Li             reg = <1>;
61*09328600SFrank Li             clocks = <&clk24m>;
62*09328600SFrank Li             interrupt-parent = <&gpio4>;
63*09328600SFrank Li             interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
64*09328600SFrank Li             vdd-supply = <&reg5v0>;
65*09328600SFrank Li             xceiver-supply = <&reg5v0>;
66*09328600SFrank Li             gpio-controller;
67*09328600SFrank Li             #gpio-cells = <2>;
68*09328600SFrank Li        };
69*09328600SFrank Li    };
70*09328600SFrank Li
71