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 DA1CCDDDDF for ; Thu, 12 Feb 2009 22:11:11 +1100 (EST) Received: by fxm4 with SMTP id 4so2759443fxm.9 for ; Thu, 12 Feb 2009 03:11:09 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <49940265.1020700@vastech.co.za> References: <8cad0aa0902120123p27cfe32fg6bf08d458178c937@mail.gmail.com> <49940265.1020700@vastech.co.za> Date: Thu, 12 Feb 2009 12:10:58 +0100 Message-ID: <8cad0aa0902120310g44a3bf3cla4ffa94ea9bf5dc6@mail.gmail.com> Subject: Re: [MPC8272ADS]Problem adding flash partitions inside the device tree From: Jean-Michel Hautbois To: Pieter Content-Type: multipart/alternative; boundary=001636c5b1fa64dd530462b6c67f Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --001636c5b1fa64dd530462b6c67f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/2/12 Pieter > Jean-Michel Hautbois wrote: > > Warning (reg_format): "reg" property in > > /localbus@f0010100/flash@0,0/partition@ff800000 has invalid length (8 > > JM > You are missing some definitions, The #address-cells and #size-cells = <1>; > tis is a snippet of teh dts i defined for my board. > > flash@0,0 { > #address-cells = <1>; > #size-cells = <1>; > compatible = "cfi-flash"; > reg = <0x0 0x0 0x08000000>; > bank-width = <4>; > device-width = <1>; > > /* set flash partition to correspond tu mtd parts in > u-boot*/ > /* 0xf8000000 */ > partition@0x0 { > label = "factory-image"; > reg = <0x00000000 0x01000000>; > }; > /* 0xf9000000 */ > partition@0x01000000 { > label = "app-image-1"; > reg = <0x01000000 0x01000000>; > }; > cheers pieter > Hi do have these definitions, at a higher level: localbus@f0010100 { compatible = "fsl,mpc8272-localbus", "fsl,pq2-localbus"; #address-cells = <2>; #size-cells = <1>; reg = <0xf0010100 0x40>; ranges = <0x0 0x0 0xfe000000 0x2000000 0x1 0x0 0xf4500000 0x8000 0x3 0x0 0xf8200000 0x8000>; flash@0,0 { etc. Regards, JM --001636c5b1fa64dd530462b6c67f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2009/2/12 Pieter <phenning@vastech.co.za= >
Jean-Michel Hautbois wrote:
> Warning (reg_format): "reg" property in
> /localbus@f0010100/flash@0,0/partition@ff800000 has invalid length (8<= br>
> JM
You are missing some definitions, The #ad= dress-cells and #size-cells =3D <1>;
tis is a snippet of teh dts i defined for my board.

       flash@0,0 {
           #address-cells =3D <1>;
           #size-cells =3D <1>;
           compatible =3D "cfi-flash&qu= ot;;
           reg =3D <0x0 0x0 0x08000000>= ;;
           bank-width =3D <4>;            device-width =3D <1>;

           /* set flash partition to c= orrespond tu mtd parts in
u-boot*/
           /*     0xf8000000 */            partition@0x0 {
               label =3D "fac= tory-image";
               reg =3D <0x00000= 000 0x01000000>;
           };
           /*     0xf9000000 */            partition@0x01000000 {
               label =3D "app= -image-1";
               reg =3D <0x01000= 000 0x01000000>;
           };
cheers pieter

Hi do have these definitions, at a= higher level:
 localbus@f0010100 {
    &nbs= p;           compatible = =3D "fsl,mpc8272-localbus",
     &nbs= p;            &= nbsp;          "fsl,pq2-l= ocalbus";
            &nb= sp;   #address-cells =3D <2>;
    &n= bsp;           #size-cell= s =3D <1>;
         &= nbsp;      reg =3D <0xf0010100 0x40>;
            &n= bsp;   ranges =3D <0x0 0x0 0xfe000000 0x2000000
  = ;            &n= bsp;           0x1 0x0 0x= f4500000 0x8000
            &nb= sp;            = 0x3 0x0 0xf8200000 0x8000>;

      =           flash@0,0 {
etc.<= br>

Regards,
JM
--001636c5b1fa64dd530462b6c67f--