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