From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pw0-f51.google.com (mail-pw0-f51.google.com [209.85.160.51]) by ozlabs.org (Postfix) with ESMTP id ABC62B70C0 for ; Wed, 21 Jul 2010 12:38:03 +1000 (EST) Received: by pwi6 with SMTP id 6so3108671pwi.38 for ; Tue, 20 Jul 2010 19:38:01 -0700 (PDT) Date: Wed, 21 Jul 2010 10:37:58 +0800 From: "hacklu" To: "Grant Likely" Subject: one more question about dts Message-ID: <201007211037566748594@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====003_Dragon410238872313_=====" Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --=====003_Dragon410238872313_===== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit my board is mpc8247,and i write it's dts by imitating mpc8272's dts how can i set the localbus address? localbus@f0010100 { compatible = "fsl,mpc8272-localbus", "fsl,pq2-localbus"; #address-cells = <2>; #size-cells = <1>; reg = ; ranges = < 0 0 70000000 1000000 #my flash1 1 0 71000000 1000000 #my flash2 2 ? ??????? ??????? #how to set it for board-control? 3 ? ???? ???? # how to set it for pci_pic >; .... board-control@2,0 { reg = <1 0 20>; compatible = "fsl,mpc8272ads-bcsr"; }; PCI_PIC: interrupt-controller@3,0 { compatible = "fsl,mpc8272ads-pci-pic", "fsl,pq2ads-pci-pic"; #interrupt-cells = <1>; interrupt-controller; reg = <3 0 8>; interrupt-parent = <&PIC>; interrupts = <14 8>; }; thanks for answering~ 2010-07-21 hacklu --=====003_Dragon410238872313_===== Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
my board is mpc8247,and i write it's dts by   imitating mpc8272's dts
 
how can i set the localbus address?
 
localbus@f0010100 {
                compatible = "fsl,mpc8272-localbus",
                             "fsl,pq2-localbus";
                #address-cells = <2>;
                #size-cells = <1>;
                reg = <f0010100 40>;
                ranges = <
                                 0 0 70000000 1000000  #my flash1
                                 1 0 71000000 1000000  #my flash2
                                 2 ?  ???????    ???????   #how to set it for board-control?
 3  ?  ????        ????        # how to set it for pci_pic                       >;
 
....
 board-control@2,0 {
                        reg = <1 0 20>;
                        compatible = "fsl,mpc8272ads-bcsr";
                };
                PCI_PIC: interrupt-controller@3,0 {
                        compatible = "fsl,mpc8272ads-pci-pic",
                                     "fsl,pq2ads-pci-pic";
                        #interrupt-cells = <1>;
                        interrupt-controller;
                        reg = <3 0 8>;
                        interrupt-parent = <&PIC>;
                        interrupts = <14 8>;
                };
 
thanks for answering~
2010-07-21

hacklu
--=====003_Dragon410238872313_=====--