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