16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/net/can/microchip,mcp251xfd.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: 86be33864SEmmanuel Vadot Microchip MCP2517FD and MCP2518FD stand-alone CAN controller device tree 96be33864SEmmanuel Vadot bindings 106be33864SEmmanuel Vadot 116be33864SEmmanuel Vadotmaintainers: 126be33864SEmmanuel Vadot - Marc Kleine-Budde <mkl@pengutronix.de> 136be33864SEmmanuel Vadot 14*c9ccf3a3SEmmanuel VadotallOf: 15*c9ccf3a3SEmmanuel Vadot - $ref: can-controller.yaml# 16*c9ccf3a3SEmmanuel Vadot 176be33864SEmmanuel Vadotproperties: 186be33864SEmmanuel Vadot compatible: 196be33864SEmmanuel Vadot oneOf: 206be33864SEmmanuel Vadot - const: microchip,mcp2517fd 216be33864SEmmanuel Vadot description: for MCP2517FD 226be33864SEmmanuel Vadot - const: microchip,mcp2518fd 236be33864SEmmanuel Vadot description: for MCP2518FD 246be33864SEmmanuel Vadot - const: microchip,mcp251xfd 256be33864SEmmanuel Vadot description: to autodetect chip variant 266be33864SEmmanuel Vadot 276be33864SEmmanuel Vadot reg: 286be33864SEmmanuel Vadot maxItems: 1 296be33864SEmmanuel Vadot 306be33864SEmmanuel Vadot interrupts: 316be33864SEmmanuel Vadot maxItems: 1 326be33864SEmmanuel Vadot 336be33864SEmmanuel Vadot clocks: 346be33864SEmmanuel Vadot maxItems: 1 356be33864SEmmanuel Vadot 366be33864SEmmanuel Vadot vdd-supply: 376be33864SEmmanuel Vadot description: Regulator that powers the CAN controller. 386be33864SEmmanuel Vadot 396be33864SEmmanuel Vadot xceiver-supply: 406be33864SEmmanuel Vadot description: Regulator that powers the CAN transceiver. 416be33864SEmmanuel Vadot 426be33864SEmmanuel Vadot microchip,rx-int-gpios: 436be33864SEmmanuel Vadot description: 446be33864SEmmanuel Vadot GPIO phandle of GPIO connected to to INT1 pin of the MCP251XFD, which 456be33864SEmmanuel Vadot signals a pending RX interrupt. 466be33864SEmmanuel Vadot maxItems: 1 476be33864SEmmanuel Vadot 486be33864SEmmanuel Vadot spi-max-frequency: 496be33864SEmmanuel Vadot description: 506be33864SEmmanuel Vadot Must be half or less of "clocks" frequency. 516be33864SEmmanuel Vadot maximum: 20000000 526be33864SEmmanuel Vadot 536be33864SEmmanuel Vadotrequired: 546be33864SEmmanuel Vadot - compatible 556be33864SEmmanuel Vadot - reg 566be33864SEmmanuel Vadot - interrupts 576be33864SEmmanuel Vadot - clocks 586be33864SEmmanuel Vadot 596be33864SEmmanuel VadotadditionalProperties: false 606be33864SEmmanuel Vadot 616be33864SEmmanuel Vadotexamples: 626be33864SEmmanuel Vadot - | 636be33864SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 646be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 656be33864SEmmanuel Vadot 666be33864SEmmanuel Vadot spi0 { 676be33864SEmmanuel Vadot #address-cells = <1>; 686be33864SEmmanuel Vadot #size-cells = <0>; 696be33864SEmmanuel Vadot 706be33864SEmmanuel Vadot can@0 { 716be33864SEmmanuel Vadot compatible = "microchip,mcp251xfd"; 726be33864SEmmanuel Vadot reg = <0>; 736be33864SEmmanuel Vadot clocks = <&can0_osc>; 746be33864SEmmanuel Vadot pinctrl-names = "default"; 756be33864SEmmanuel Vadot pinctrl-0 = <&can0_pins>; 766be33864SEmmanuel Vadot spi-max-frequency = <20000000>; 776be33864SEmmanuel Vadot interrupts-extended = <&gpio 13 IRQ_TYPE_LEVEL_LOW>; 786be33864SEmmanuel Vadot microchip,rx-int-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; 796be33864SEmmanuel Vadot vdd-supply = <®5v0>; 806be33864SEmmanuel Vadot xceiver-supply = <®5v0>; 816be33864SEmmanuel Vadot }; 826be33864SEmmanuel Vadot }; 83