Jump to content

rockynewenthusiast

Members
  • Posts

    4
  • Joined

  • Last visited

  1. The overlay I am trying to apply now looks like this: /dts-v1/; /plugin/; / { compatible = "rockchip,rk3399"; fragment@0 { target-path = "/spi@ff1d0000"; __overlay__ { #address-cells = <1>; #size-cells = <0>; cs-gpios = <0>, <0x16 0x1d 0x00>; status = "okay"; spidev@0 { compatible = "rockchip,spidev"; reg = <0>; status = "okay"; spi-max-frequency = < 0x989680 >; }; spidev@1 { compatible = "rockchip, spidev"; status = "okay"; reg = <1>; spi-max-frequency = <10000000>; }; spiflash@0 { compatible = "jedec,spi-nor"; reg = < 0x00 >; spi-max-frequency = < 0x989680 >; status = "disabled"; }; }; }; }; Can you please point help out figuring what I did not get right ?
  2. I'm trying to use the default overlay which is build with the armbian images. In my case if I understand correctly the overlays will be taken from the patch: https://github.com/armbian/build/blob/master/patch/kernel/archive/rockchip64-5.10/general-rockchip-overlays.patch (Line 359) arch/arm64/boot/dts/rockchip/overlay/rockchip-spi-spidev.dts and modify it with the changes @Marko Buršič made in order to get the spidev1.1 working. The overlay framework is new to me, I was hoping not to have to go so deep into the embedded configurations.
  3. with the "linux-image-edge-rockchip64 5.15.5" the spidev overlay does not work at all (no spidev device in /dev) on my rock pi 4b+. So I guess my only option is to rebuild with the current kernel (5.10.63)
  4. Hello, thank you for figuring out how to add the CS-gpio. I saw a recent work here https://patchwork.kernel.org/project/spi-devel-general/patch/20210621104848.19539-1-jon.lin@rock-chips.com/ which seems to go in the same direction. Do you think it has the same functionality as your patch? Is there a way to find a precompiled kernel with your patch or I need to compile it myself? I have a windows workstation with Hyper-V enabled which apparently does not let me install a VirtualBox and the compile.sh script does not seem to like WSL2. So I wanted to ask before diving into this.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines