08-08-2022, 03:59 AM
(09-18-2021, 06:09 PM)jclab-joseph Wrote: Hello,
I want to use spi0.1 on rock64 (ver 3.0).
I tried enabling rockchip-spi-spidev in armbian-config, but it didn't work. When I open the dtb, it seems that it is not for rk3328 as there is "compatible = "rockchip,rk3399"".
Where can I find the right dts?
I tired:
add num-cs into the rk3328-rock64.dts
Code:spi@ff190000 { compatible = "rockchip,rk3328-spi\0rockchip,rk3066-spi"; reg = <0x00 0xff190000 0x00 0x1000>; interrupts = <0x00 0x31 0x04>; #address-cells = <0x01>; #size-cells = <0x00>; clocks = <0x02 0x20 0x02 0xd1>; clock-names = "spiclk\0apb_pclk"; dmas = <0x12 0x08 0x12 0x09>; dma-names = "tx\0rx"; pinctrl-names = "default"; pinctrl-0 = <0x32 0x33 0x34 0x35 0xb6>; status = "okay"; phandle = <0x86>; num-cs = <2>; spiflash@0 { compatible = "jedec,spi-nor"; reg = <0x00>; spi-max-frequency = <0x2faf080>; }; };
dmesg:
[ 3.239265] rockchip-spi ff190000.spi: Failed to register controller
[ 3.239495] rockchip-spi: probe of ff190000.spi failed with error -22
Did you figure it out? I'm trying to do the same with no success.

