Hi,
I am trying to get SPI3 working on the Edge+Captain. I am using Ubuntu server 18.04.5 kernel 4.4.194 originally built with Fenix.
I have added this to the rk3399-khadas-captain-linux.dts device tree:
[ 2.576890] rockchip-spi ff350000.spi: Failed to request TX DMA channel
[ 2.577498] rockchip-spi ff350000.spi: Failed to request RX DMA channel
[ 2.578099] rockchip-spi ff350000.spi: no high_speed pinctrl state
[ 2.578835] rockchip-spi ff350000.spi: registered master spi32766 (dynamic)
[ 2.578967] spi spi32766.0: setup mode 0, 8 bits/w, 1000000 Hz max --> 0
[ 2.579286] rockchip-spi ff350000.spi: registered child spi32766.0
[ 2.965892] rockchip-pinctrl pinctrl: pin gpio1-18 already requested by ff350000.spi; cannot claim for 4-001b
[ 150.284407] rockchip-spi ff350000.spi: cr0 0x42c01, div 98
/dev/spidev32766.0 shows up (is there a reason its not spidev3.0?) but when I write to it nothing shows up on the logic analyzer.
Is there something I am missing?
I remember that at that time, I couldn’t grasp the waveform with the oscilloscope, and then I used another method to catch it, that is, read and write 1000 times continuously. You can try this method.
i am also facing issue on khadas edge-v
how to interface the spidev and mcp2515 module in spi ?
which dts file i have to change ?
please help me for this issue.
I am trying to get SPI3 working on the Edge-V
I have added this to the rk3399-khadas-captain-linux.dts device tree
&spi3 {
status = "okay";
spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <1000000>;
reg = <0>;
status = "okay";
};
};
Is there something I am missing?
please consider my issue and provide any solution for this.
It does come up in dmesg and starts talking over the SPI bus but doesn’t finish initialization. I think my problem is the interrupt controller so something similar to the above might work for you swapping out the interrupt-parent and interrupts lines.
Will have some time soon to test that chip out more but if you get it working post what you figured out.