// SPDX-License-Identifier: GPL-2.0-only /* * Device-tree overlay for MCP251x CAN Controller * * Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. * */ /dts-v1/; /plugin/; #include #include / { fragment@2 { target = <&pinmux>; __overlay__ { hdr40_pinmux: header-40pin-pinmux { pin37 { nvidia,pins = HDR40_PIN37; nvidia,function = "spi2"; nvidia,pull = ; nvidia,tristate = ; nvidia,enable-input = ; }; pin22 { nvidia,pins = HDR40_PIN22; nvidia,function = "spi2"; nvidia,pull = ; nvidia,tristate = ; nvidia,enable-input = ; }; pin13 { nvidia,pins = HDR40_PIN13; nvidia,function = "spi2"; nvidia,pull = ; nvidia,tristate = ; nvidia,enable-input = ; }; pin18 { nvidia,pins = HDR40_PIN18; nvidia,function = "spi2"; nvidia,pull = ; nvidia,tristate = ; nvidia,enable-input = ; }; pin16 { nvidia,pins = HDR40_PIN16; nvidia,function = "spi2"; nvidia,pull = ; nvidia,tristate = ; nvidia,enable-input = ; }; }; }; }; fragment@3 { target = <&hdr40_spi2>; __overlay__ { spi@0 { compatible = "microchip,mcp2515"; reg = <0x0>; spi-max-frequency = <10000000>; nvidia,enable-hw-based-cs; nvidia,rx-clk-tap-delay = <0x7>; clocks = <&can_clock>; interrupt-parent = <&gpio>; interrupts = ; controller-data { nvidia,cs-setup-clk-count = <0x1e>; nvidia,cs-hold-clk-count = <0x1e>; nvidia,rx-clk-tap-delay = <0x1f>; nvidia,tx-clk-tap-delay = <0x0>; }; }; }; }; };