Jump to content

csirke

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. My problem was solved, when I decreased the max spi frequency to 1000000. So my final dts is here: What this will cause on transfer speed, I don't know. //This devicetree overlay is used for mcp2515 CAN HAT. /dts-v1/; /plugin/; / { compatible = "rockchip,rockpi","rockchip,rk3399"; fragment@0 { target = <&pinctrl>; __overlay__ { mcp2515_pins { mcp2515_int_pin: mcp2515_int_pin { rockchip,pins = <4 29 0 &pcfg_pull_none>; }; }; }; }; fragment@1 { target-path = "/"; __overlay__ { can_mcp2515_osc: can-mcp2515-osc { compatible = "fixed-clock"; clock-frequency = <16000000>; #clock-cells = <0>; }; }; }; fragment@2 { target = <&spi1>; __overlay__ { status = "okay"; max-freq = <1000000>; #address-cells = <1>; #size-cells = <0>; can_mcp2515: can-mcp2515@0 { status = "okay"; compatible = "microchip,mcp2515"; reg = <0>; interrupt-parent = <&gpio4>; interrupts = <29 2>; spi-max-frequency = <1000000>; clocks = <&can_mcp2515_osc>; vdd-supply = <&vcc3v3_sys>; xceiver-supply = <&vcc3v3_sys>; pinctrl-names = "default"; pinctrl-0 = <&mcp2515_int_pin>; }; }; }; }; spi1-mcp2515-can0-overlay.dts
  2. I have the same issue. After I added an additional label in fragment@0 (I am using different pins): fragment@0 { target = <&pinctrl>; __overlay__ { mcp2515 { mcp2515_int_pin: mcp2515_int_pin { rockchip,pins = <4 29 0 &pcfg_pull_none>; }; }; }; }; it can boot without problem. But the behaviour is still the same, only a few CAN messages can be send.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines