-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Adding driver M25P80 to bcmrpi_config #1781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Enabling those options causes two modules to be built: spi-nor.ko (19kB) and m25p80.ko (13kB). There are no @popcornmix Are you happy for me to proceed? |
Okay. |
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
Those options are now enabled in rpi-4.4.y, rpi-4.9.y and rpi-4.10.y, and will be included in future builds. |
Thank you very much! |
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
kernel: config: More USB config options for bcm2709_defconfig See: raspberrypi/linux#1805 kernel: config: Add CONFIG_MD_M25P80 and CONFIG_MD_SPI_NOR See: raspberrypi/linux#1781 kernel: BCM270X_DT: Enable UART0 on CM3 kernel: BCM270X_DT: Add spi0-cs overlay kernel: Revert bcm2835-i2s: Changes for allowing asymmetric sample formats See: raspberrypi/linux#1783
kernel: config: More USB config options for bcm2709_defconfig See: raspberrypi/linux#1805 kernel: config: Add CONFIG_MD_M25P80 and CONFIG_MD_SPI_NOR See: raspberrypi/linux#1781 kernel: BCM270X_DT: Enable UART0 on CM3 kernel: BCM270X_DT: Add spi0-cs overlay kernel: Revert bcm2835-i2s: Changes for allowing asymmetric sample formats See: raspberrypi/linux#1783
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
Hello @Naegolus, Do you have working overlay (dts) file for m25p80? Thanks. |
Hello @meerd, Best regards |
Hello @Naegolus! Thanks for your reply. I have w25q128 connected to my board (based on compute module) and I have been trying to integrate it with raspberry pi. Electrically, w25q128 is OK but for some reason the kernel does not recognize it. (no console logs regarding spi2, mtd drivers ` / {
}; |
After many unsuccessful attempts, it is working now! I am aiming to add this to the kernel repository after a few improvements. For now, the example needs to be used with spi2-1cs overlay. dtoverlay=spi2-1cs,cs0_spidev=disabled `/dts-v1/; / {
};` |
See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
Sorry for bringing this thread up from the dead, but it just got me excited to see that someone has already worked on attaching M25P80 class of devices to raspberry pi. @meerd Were you able to finalize the DTS and is it ready for mainlining? Thanks! |
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1691407 See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> (cherry picked from commit 17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17) Signed-off-by: Paolo Pisati <[email protected]> Acked-by: Colin King <[email protected]> Acked-by: Stefan Bader <[email protected]> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1691407 See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> (cherry picked from commit 17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17) Signed-off-by: Paolo Pisati <[email protected]> Acked-by: Colin King <[email protected]> Acked-by: Stefan Bader <[email protected]> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
See: #1781 Signed-off-by: Phil Elwell <[email protected]>
commit 856f413 Author: Phil Elwell <[email protected]> Date: Tue Jan 17 14:39:39 2017 +0000 config: Add CONFIG_MD_M25P80 and CONFIG_MD_SPI_NOR See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> Gbp-Pq: Topic rpi Gbp-Pq: Name rpi_1126_856f413c4544f81f38cf21af6537cbea94d0729e.patch
BugLink: https://bugs.launchpad.net/bugs/1691407 See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> (cherry picked from commit 17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17) Signed-off-by: Paolo Pisati <[email protected]> Acked-by: Colin King <[email protected]> Acked-by: Stefan Bader <[email protected]> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
See: raspberrypi#1781 Signed-off-by: Phil Elwell <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1691407 See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> (cherry picked from commit 17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17) Signed-off-by: Paolo Pisati <[email protected]> Acked-by: Colin King <[email protected]> Acked-by: Stefan Bader <[email protected]> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1691407 See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> (cherry picked from commit 17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17) Signed-off-by: Paolo Pisati <[email protected]> Acked-by: Colin King <[email protected]> Acked-by: Stefan Bader <[email protected]> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1691407 See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> (cherry picked from commit 17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17) Signed-off-by: Paolo Pisati <[email protected]> Acked-by: Colin King <[email protected]> Acked-by: Stefan Bader <[email protected]> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
commit 7a4dcb5 Author: Phil Elwell <[email protected]> Date: Tue Jan 17 14:39:39 2017 +0000 config: Add CONFIG_MD_M25P80 and CONFIG_MD_SPI_NOR See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> Gbp-Pq: Topic rpi Gbp-Pq: Name rpi_1125_7a4dcb58285ee46d97ab4b47027eb50124929934.patch
BugLink: https://bugs.launchpad.net/bugs/1691407 See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> (cherry picked from commit 17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17) Signed-off-by: Paolo Pisati <[email protected]> Acked-by: Colin King <[email protected]> Acked-by: Stefan Bader <[email protected]> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
commit 7a4dcb5 Author: Phil Elwell <[email protected]> Date: Tue Jan 17 14:39:39 2017 +0000 config: Add CONFIG_MD_M25P80 and CONFIG_MD_SPI_NOR See: raspberrypi/linux#1781 Signed-off-by: Phil Elwell <[email protected]> Gbp-Pq: Topic rpi Gbp-Pq: Name rpi_1125_7a4dcb58285ee46d97ab4b47027eb50124929934.patch
Hello,
we (a little open source hardware startup) would like to add an existing driver in the bcmrpi_config.
Motivation:
Our first product is an extension board for the Raspberry Pi Zero and Raspberry Pi A+.
The extension board adds an ethernet interface (driver situation ok) and optionally connects the Raspberry Pi with a FPGA Board which has a M25P80 compatible SPI flash on it. If the M25P80 driver is activated the FPGA can be programmed via the flash tools from the package mtd_utils.
The users of our extension board should be able to install it by just adding a device tree overlay. Unfortunately the needed M25P80 driver isn't included in the official Raspbian image.
Specific changes:
--- a/arch/arm/configs/bcmrpi_defconfig
+++ b/arch/arm/configs/bcmrpi_defconfig
@@ -400,7 +400,10 @@ CONFIG_DMA_CMA=y
CONFIG_CMA_SIZE_MBYTES=5
CONFIG_MTD=m
CONFIG_MTD_BLOCK=m
+CONFIG_MTD_M25P80=m
CONFIG_MTD_NAND=m
+CONFIG_MTD_SPI_NOR=m
+# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
CONFIG_MTD_UBI=m
CONFIG_OF_CONFIGFS=y
CONFIG_ZRAM=m
May we activate this?
Joe
The text was updated successfully, but these errors were encountered: