Jump to content

Recommended Posts

Posted (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 by kris777

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines