linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM64: juno: add NOR flash to device tree
@ 2015-10-15 10:20 Linus Walleij
  2015-10-15 11:58 ` Liviu Dudau
  2015-10-15 15:30 ` Sudeep Holla
  0 siblings, 2 replies; 33+ messages in thread
From: Linus Walleij @ 2015-10-15 10:20 UTC (permalink / raw)
  To: linux-arm-kernel

The Juno motherboard has a NOR flash on the motherboard, enable
this to be accessed with the CFI flash driver. Results after
enabling MTD, MTD_CFI, MTD_PHYSMAP, MTD_PHYSMAP_OF,
MTD_CFI_INTELEXT:

8000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank.
Manufacturer ID 0x000089 Chip ID 0x008919
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x40000,blocks=255
erase region 1: offset=0x3fc0000,size=0x10000,blocks=4

Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
ARM SoC folks: please apply this directly for -next if
people are OK with it, as I have no other Juno patches
pending for now.
---
 arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi
index 637e046f0e36..c7c99a42e2e9 100644
--- a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi
@@ -103,6 +103,14 @@
 				};
 			};
 
+			flash at 0,00000000 {
+				/* 2 * 32MiB NOR Flash memory mounted on CS0 */
+				compatible = "arm,vexpress-flash", "cfi-flash";
+				linux,part-probe = "afs";
+				reg = <0 0x00000000 0x04000000>;
+				bank-width = <4>;
+			};
+
 			ethernet at 2,00000000 {
 				compatible = "smsc,lan9118", "smsc,lan9115";
 				reg = <2 0x00000000 0x10000>;
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2015-11-16 12:45 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 10:20 [PATCH] ARM64: juno: add NOR flash to device tree Linus Walleij
2015-10-15 11:58 ` Liviu Dudau
2015-10-15 15:20   ` Arnd Bergmann
2015-10-18  9:22   ` Linus Walleij
2015-10-15 15:30 ` Sudeep Holla
2015-10-18  9:25   ` Linus Walleij
2015-10-19 10:17     ` Sudeep Holla
2015-10-19 10:29       ` Mark Rutland
2015-10-19 11:19         ` Linus Walleij
2015-10-19 11:27           ` Leif Lindholm
2015-10-19 21:50             ` Linus Walleij
2015-10-19 11:39           ` Mark Rutland
2015-10-19 14:40             ` Ard Biesheuvel
2015-10-19 21:58               ` Linus Walleij
2015-10-20 14:13                 ` Ard Biesheuvel
2015-10-19 21:55             ` Linus Walleij
2015-10-20 11:20               ` Leif Lindholm
     [not found]                 ` <CAD0U-hKZM-A2N_Lpnzwkt0WmAi+kRR=UOEE4Vr2M-iTo9ikkOg@mail.gmail.com>
2015-10-27 11:55                   ` Linus Walleij
2015-10-27 12:01                     ` Sudeep Holla
2015-10-27 12:22                       ` Linus Walleij
2015-10-27 12:33                         ` Sudeep Holla
2015-10-27 21:41                           ` Linus Walleij
2015-10-27 12:33                         ` Mark Rutland
2015-10-27 12:41                           ` Sudeep Holla
2015-10-27 21:43                           ` Linus Walleij
2015-10-27 13:20                     ` Ryan Harkin
2015-10-19 11:20         ` Leif Lindholm
2015-10-21 11:18           ` Ryan Harkin
2015-10-26  8:41             ` [PATCH] arm64/efi: register UEFI runtime mmio regions as iomem resources Ard Biesheuvel
2015-10-27 12:08               ` Linus Walleij
2015-10-27 12:31                 ` Ard Biesheuvel
2015-11-16 12:45                   ` Ard Biesheuvel
2015-10-27 11:59             ` [PATCH] ARM64: juno: add NOR flash to device tree Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).