nrf5340 and mcp2515 configure with SPIM4 problem -nrf5340 board_overlay configuration

 
nrf5340 board_overlay configuration
&spi4 {
    compatible =  "nordic,nrf-spim";
    status = "okay";
    sck-pin = <8>;
    mosi-pin = <9>;
    miso-pin = <10>;
    cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
    miso-pull-down;

    can1: mcp2515@0
    {
        compatible = "microchip,mcp2515";
        spi-max-frequency = <8000000>;
        int-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>; /* D2 */
        status = "okay";
        label = "CAN_1";
        reg = <0x0>;
        osc-freq = <16000000>;
        bus-speed = <500000>;
        sjw = <1>;
        prop-seg = <2>;
        phase-seg1 = <7>;
        phase-seg2 = <6>;
        #address-cells = <1>;
        #size-cells = <0>;
    };
};
please give any suggestion. 
Parents Reply Children
Related