From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo-p05-ob.rzone.de (mo-p05-ob.rzone.de [81.169.146.181]) by ozlabs.org (Postfix) with ESMTP id ED566DDED1 for ; Mon, 23 Mar 2009 21:51:16 +1100 (EST) From: Stefan Roese To: linuxppc-dev@ozlabs.org, "devicetree-discuss list" Subject: physmap_of and partitions (mtd concat support) Date: Mon, 23 Mar 2009 11:51:10 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <200903231151.10373.sr@denx.de> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I just noticed that physmap_of can't handle multiple devices of different type described in one device node. For example the Intel P30 48F4400 (64MByte) consists internally of 2 non-identical NOR chips. So a "simple" flash@0,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash"; reg = <0 0 0x04000000>; bank-width = <2>; device-width = <2>; partition@0 { label = "test-part"; reg = <0 0x04000000>; }; } is not working. It will "detect" 2 identical 32MByte chips which is wrong. Adding a 2nd flash node solves this problem: flash@0,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash"; reg = <0 0 0x02000000>; bank-width = <2>; device-width = <2>; partition@0 { label = "test-part1"; reg = <0 0x02000000>; }; } flash@1,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash"; reg = <0 0x02000000 0x02000000>; bank-width = <2>; device-width = <2>; partition@0 { label = "test-part2"; reg = <0 0x02000000>; }; } This way both chips are detected correctly. Now the real problem: How should I describe a partition in the device tree spanning over both devices (concat)?. The current physmap_of driver doesn't handle concat at all (physmap.c does). I already have some ideas on how to implement this concat support in physmap_of. But ideas about a device-tree syntax for such partitions are very welcome. Thanks. Best regards, Stefan