lonelyhero Posted 14 hours ago Posted 14 hours ago Armbianmonitor: https://paste.armbian.com/egisahatud Hi ! I was trying to use SPI communication with Banana Pi M2 Pro. I am currently using Armbian 26.5.1 and I realized that I cannot find spidev from /boot/dev/ . I tried loading all dtbo files from armbian-config but still I can't get SPI. Is there something that I haven't check yet? 0 Quote
kris777 Posted 45 minutes ago Posted 45 minutes ago (edited) maybe an entry in the file: /boot/armbianEnv.txt entry / edition: overlays=meson-sm1-jethome-jethub-j200-spi reboot If this doesn't work, you have to ask e.g. AI / Gemini if you are not a programmer... That's what he suggested to me, but will it work? ................... sudo apt update && sudo apt install -y device-tree-compiler nano bpi-spidev.dts Edit and add entry: ............... /dts-v1/; /plugin/; / { compatible = "amlogic,sm1"; fragment@0 { target = <&spifc>; __ some_status__ { status = "okay"; }; }; fragment@1 { target-path = "/soc/spi@14000"; __overlay__ { status = "okay"; #address-cells = <1>; #size-cells = <0>; spidev@0 { compatible = "rohm,dh2228fv"; reg = <0>; spi-max-frequency = <10000000>; status = "okay"; }; }; }; }; ................. save Ctrl+X ...enter compile: sudo dtc -@ -I dts -O dtb -o /boot/dtb/amlogic/overlay/meson-bpi-spidev.dtbo bpi-spidev.dts edit: sudo nano /boot/armbianEnv.txt entry: overlays=meson-bpi-spidev sudo reboot Check: ls /dev/spi* but these are just suggestions, I don't know if it will work for you? Edited 34 minutes ago by kris777 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.