Quantcast
Viewing all articles
Browse latest Browse all 4921

Device Tree • Re: MTD is not recognizing SPI NOR Flash

Hi, so I took your recommendation and messed with the spi0-1cs-overlay.dts file and added a spi_nor fragment under all the fragments for the Raspberry Pi as shown below:

Code:

/dts-v1/;/plugin/;/ {compatible = "brcm,bcm2835";fragment@0 {target = <&spi0_cs_pins>;frag0: __overlay__ {brcm,pins = <8>;};};fragment@1 {target = <&spi0>;frag1: __overlay__ {cs-gpios = <&gpio 8 1>;status = "okay";};};fragment@2 {target = <&spidev1>;__overlay__ {status = "disabled";};};fragment@3 {target = <&spi0_pins>;__dormant__ {brcm,pins = <10 11>;};};spi_nor: spi_nor@0 {compatible = "jedec,spi-nor";reg = <0x0>;#address-cells = <1>;#size-cells = <1>;spi-max-frequency = <500000>;};__overrides__ {cs0_pin  = <&frag0>,"brcm,pins:0",   <&frag1>,"cs-gpios:4";no_miso = <0>,"=3";};};
But I still can't seem to get MTD to recognize the device. If there is something I am misunderstanding regarding the way I am creating the fragment or even if I am misunderstanding something, please let me know. Thanks a lot for the help!

Statistics: Posted by thelearner126 — Thu May 30, 2024 4:23 am



Viewing all articles
Browse latest Browse all 4921

Trending Articles