From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-fx0-f11.google.com (mail-fx0-f11.google.com [209.85.220.11]) by ozlabs.org (Postfix) with ESMTP id A8558DDDDC for ; Thu, 12 Feb 2009 20:31:56 +1100 (EST) Received: by fxm4 with SMTP id 4so2570527fxm.9 for ; Thu, 12 Feb 2009 01:31:54 -0800 (PST) MIME-Version: 1.0 Date: Thu, 12 Feb 2009 10:23:42 +0100 Message-ID: <8cad0aa0902120123p27cfe32fg6bf08d458178c937@mail.gmail.com> Subject: [MPC8272ADS]Problem adding flash partitions inside the device tree From: Jean-Michel Hautbois To: linuxppc-dev@ozlabs.org Content-Type: multipart/alternative; boundary=001636c5c0c1c55c810462b546ff List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --001636c5c0c1c55c810462b546ff Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi everybody ! I am currently trying to add the support of partitions for the Flash chip on my MPC8272ADS board (the chips are Sharp LH28F016SCT-L90). I have added this part: flash@0,0 { compatible = "jedec-flash"; reg = <0x0 0x0 0x2000000>; bank-width = <4>; device-width = <1>; partition@ff800000 { label = "kernel"; reg = <0xff800000 0x00400000>; read-only; }; partition@ffc00000 { label = "user"; reg = <0xffc00000 0x00300000>; }; partition@fff00000 { label = "u-boot"; reg = <0xfff00000 0x00100000>; read-only; }; }; But when I am compiling, I have these warnings: Warning (reg_format): "reg" property in /localbus@f0010100/flash@0 ,0/partition@ff800000 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) Warning (reg_format): "reg" property in /localbus@f0010100/flash@0 ,0/partition@ffc00000 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) Warning (reg_format): "reg" property in /localbus@f0010100/flash@0 ,0/partition@fff00000 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) Warning (avoid_default_addr_size): Relying on default #address-cells value for /localbus@f0010100/flash@0,0/partition@ff800000 Warning (avoid_default_addr_size): Relying on default #size-cells value for /localbus@f0010100/flash@0,0/partition@ff800000 Warning (avoid_default_addr_size): Relying on default #address-cells value for /localbus@f0010100/flash@0,0/partition@ffc00000 Warning (avoid_default_addr_size): Relying on default #size-cells value for /localbus@f0010100/flash@0,0/partition@ffc00000 Warning (avoid_default_addr_size): Relying on default #address-cells value for /localbus@f0010100/flash@0,0/partition@fff00000 Warning (avoid_default_addr_size): Relying on default #size-cells value for /localbus@f0010100/flash@0,0/partition@fff00000 Can anyone help me ? I can't understand what the "address-cells" is. Thanks in advance ! Best Regards. JM --001636c5c0c1c55c810462b546ff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi everybody !
I am currently trying to add the support of partitions fo= r the Flash chip on my MPC8272ADS board (the chips are Sharp LH28F016SCT-L9= 0).

I have added this part:

flash@0,0 {
   =             &nb= sp;        compatible =3D "jedec-fl= ash";
            &nb= sp;           reg =3D <= ;0x0 0x0 0x2000000>;
        =             &nb= sp;   bank-width =3D <4>;
     =             &nb= sp;      device-width =3D <1>;

 =             &nb= sp;          partition@ff80000= 0 {
           &n= bsp;            = ;        label =3D "kernel";             &nb= sp;            =        reg =3D <0xff800000 0x00400000>;=
            = ;            &n= bsp;       read-only;
   &n= bsp;            = ;        };
    &= nbsp;           &nbs= p;       partition@ffc00000 {
  =             &nb= sp;            =      label =3D "user";
            &nb= sp;            =        reg =3D <0xffc00000 0x00300000>;=
            = ;            };
&= nbsp;           &nbs= p;           partition@ff= f00000 {
          &nb= sp;            =          label =3D "u-boot&quo= t;;
           &n= bsp;            = ;        reg =3D <0xfff00000 0x001000= 00>;
            &nb= sp;            =        read-only;
    =             &nb= sp;       };
     = ;           };

But= when I am compiling, I have these warnings:
Warning (reg_format): "= ;reg" property in /localbus@f0010100/flash@0,0/partition@ff800000 has = invalid length (8 bytes) (#address-cells =3D=3D 2, #size-cells =3D=3D 1) Warning (reg_format): "reg" property in /localbus@f0010100/flash@= 0,0/partition@ffc00000 has invalid length (8 bytes) (#address-cells =3D=3D = 2, #size-cells =3D=3D 1)
Warning (reg_format): "reg" property = in /localbus@f0010100/flash@0,0/partition@fff00000 has invalid length (8 by= tes) (#address-cells =3D=3D 2, #size-cells =3D=3D 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value = for /localbus@f0010100/flash@0,0/partition@ff800000
Warning (avoid_defau= lt_addr_size): Relying on default #size-cells value for /localbus@f0010100/= flash@0,0/partition@ff800000
Warning (avoid_default_addr_size): Relying on default #address-cells value = for /localbus@f0010100/flash@0,0/partition@ffc00000
Warning (avoid_defau= lt_addr_size): Relying on default #size-cells value for /localbus@f0010100/= flash@0,0/partition@ffc00000
Warning (avoid_default_addr_size): Relying on default #address-cells value = for /localbus@f0010100/flash@0,0/partition@fff00000
Warning (avoid_defau= lt_addr_size): Relying on default #size-cells value for /localbus@f0010100/= flash@0,0/partition@fff00000


Can anyone help me ?
I can't understand what the "addre= ss-cells" is.

Thanks in advance !
Best Regards.
JM
--001636c5c0c1c55c810462b546ff--