From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by ozlabs.org (Postfix) with ESMTP id 95794DDDE4 for ; Fri, 16 Nov 2007 02:43:39 +1100 (EST) Received: by nz-out-0506.google.com with SMTP id i1so535929nzh for ; Thu, 15 Nov 2007 07:43:38 -0800 (PST) Message-ID: Date: Thu, 15 Nov 2007 08:43:22 -0700 From: "Alan Bennett" Sender: alan@akb.net To: "Scott Wood" , linuxppc-dev@ozlabs.org Subject: kernel update on mpc8248 muram definition? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5890_4994317.1195141402170" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_5890_4994317.1195141402170 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello; While working on i2c support, I've decided to update to a new kernel. In the process of doing this, I'm not sure I've properly configured the MURAM node to my device tree (i.e. serial is broken again). Also, does this, in any way, change the way I offset the early debug transmit descriptor address? I tried looking at your cpm tree on git.buserror.net, but it seems you've taken it down? -Alan soc@e0000000 { #address-cells = <1>; #size-cells = <1>; device_type = "soc"; compatible = "fsl,mpc8248", "fsl,pq2-soc"; ranges = <00000000 e0000000 00053000>; // Temporary -- will go away once kernel uses ranges for get_immrbase(). reg = ; cpm@119c0 { #address-cells = <1>; #size-cells = <1>; compatible = "fsl,mpc8248-cpm", "fsl,cpm2"; reg = <119c0 30>; ranges; muram@0 { #address-cells = <1>; #size-cells = <1>; ranges = <0 0 10000>; data@0 { compatible = "fsl,cpm-muram-data"; reg = <0 2000 9800 800>; }; }; brg@119f0 { compatible = "fsl,mpc8272-brg", "fsl,cpm2-brg", "fsl,cpm-brg"; reg = <119f0 10 115f0 10>; }; /* Monitor port/SMC1 */ serial@11a80 { device_type = "serial"; compatible = "fsl,mpc8248-smc-uart", "fsl,cpm2-smc-uart"; reg = <11a80 20 0 40>; interrupts = <4 8>; interrupt-parent = <&PIC>; fsl,cpm-brg = <7>; fsl,cpm-command = <1d000000>; }; /* "Serial" port/SCC1 */ serial@11a00 { device_type = "serial"; compatible = "fsl,mpc8248-scc-uart", "fsl,cpm2-scc-uart"; reg = <11a00 20 8000 100>; interrupts = <28 8>; interrupt-parent = <&PIC>; fsl,cpm-brg = <1>; fsl,cpm-command = <00800000>; }; /* "Serial" port/SCC4 */ serial@11a60 { device_type = "serial"; compatible = "fsl,mpc8248-scc-uart", "fsl,cpm2-scc-uart"; reg = <11a60 20 8300 100>; interrupts = <2B 8>; interrupt-parent = <&PIC>; fsl,cpm-brg = <4>; fsl,cpm-command = <0CE00000>; }; ethernet@11300 { device_type = "network"; compatible = "fsl,mpc8248-fcc-enet", "fsl,cpm2-fcc-enet"; reg = <11300 20 8400 100 11390 1>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <20 8>; interrupt-parent = <&PIC>; phy-handle = <&PHY0>; linux,network-index = <0>; fsl,cpm-command = <12000300>; }; ethernet@11320 { device_type = "network"; compatible = "fsl,mpc8248-fcc-enet", "fsl,cpm2-fcc-enet"; reg = <11320 20 8500 100 113b0 1>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <21 8>; interrupt-parent = <&PIC>; phy-handle = <&PHY1>; linux,network-index = <1>; fsl,cpm-command = <16200300>; }; usb@11b60 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,mpc8248-usb", "fsl,cpm2-usb"; reg = <11b60 18 8b00 100>; interrupt-parent = <&PIC>; interrupts = ; fsl,cpm-command = <2e600000>; }; i2c@11860 { compatible = "fsl,mpc8248-i2c", "fsl,cpm2-i2c", "fsl,cpm-i2c"; reg = <11860 20 3c80 30>; interrupts = <1>; interrupt-parent = <&PIC>; fsl,cpm-command = <0010>; }; }; ------=_Part_5890_4994317.1195141402170 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello;
 
  While working on i2c support, I've decided to update to a new kernel.  In the process of doing this, I'm not sure I've properly configured the MURAM node to my device tree (i.e. serial is broken again).  Also, does this, in any way, change the way I offset the early debug transmit descriptor address?

  I tried looking at your cpm tree on git.buserror.net, but it seems you've taken it down?

-Alan

soc@e0000000 {
        #address-cells = <1>;
        #size-cells = <1>;
        device_type = "soc";
        compatible = "fsl,mpc8248", "fsl,pq2-soc";
        ranges = <00000000 e0000000 00053000>;

        // Temporary -- will go away once kernel uses ranges for get_immrbase().
        reg = <e0000000 00053000>;

        cpm@119c0 {
            #address-cells = <1>;
            #size-cells = <1>;
            compatible = "fsl,mpc8248-cpm", "fsl,cpm2";
                        reg = <119c0 30>;
            ranges;

            muram@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                ranges = <0 0 10000>;

                data@0 {
                    compatible = "fsl,cpm-muram-data";
                    reg = <0 2000 9800 800>;
                };
            };

            brg@119f0 {
                compatible = "fsl,mpc8272-brg",
                         "fsl,cpm2-brg",
                                             "fsl,cpm-brg";
                reg = <119f0 10 115f0 10>;
            };
            /* Monitor port/SMC1 */
            serial@11a80 {
                device_type = "serial";
                compatible = "fsl,mpc8248-smc-uart",
                                             "fsl,cpm2-smc-uart";
                reg = <11a80 20 0 40>;
                interrupts = <4 8>;
                interrupt-parent = <&PIC>;
                fsl,cpm-brg = <7>;
                fsl,cpm-command = <1d000000>;
            };
            /* "Serial" port/SCC1 */
            serial@11a00 {
                device_type = "serial";
                compatible = "fsl,mpc8248-scc-uart",
                                             "fsl,cpm2-scc-uart";
                reg = <11a00 20 8000 100>;
                interrupts = <28 8>;
                interrupt-parent = <&PIC>;
                fsl,cpm-brg = <1>;
                fsl,cpm-command = <00800000>;
                       };
                       /* "Serial" port/SCC4 */
                       serial@11a60 {
                device_type = "serial";
                compatible = "fsl,mpc8248-scc-uart",
                                             "fsl,cpm2-scc-uart";
                reg = <11a60 20 8300 100>;
                interrupts = <2B 8>;
                interrupt-parent = <&PIC>;
                fsl,cpm-brg = <4>;
                fsl,cpm-command = <0CE00000>;
                       };

                       ethernet@11300 {
                               device_type = "network";
                               compatible = "fsl,mpc8248-fcc-enet",
                                            "fsl,cpm2-fcc-enet";
                               reg = <11300 20 8400 100 11390 1>;
                               local-mac-address = [ 00 00 00 00 00 00 ];
                               interrupts = <20 8>;
                               interrupt-parent = <&PIC>;
                               phy-handle = <&PHY0>;
                               linux,network-index = <0>;
                               fsl,cpm-command = <12000300>;
                       };

                       ethernet@11320 {
                               device_type = "network";
                               compatible = "fsl,mpc8248-fcc-enet",
                                            "fsl,cpm2-fcc-enet";
                               reg = <11320 20 8500 100 113b0 1>;
                               local-mac-address = [ 00 00 00 00 00 00 ];
                               interrupts = <21 8>;
                               interrupt-parent = <&PIC>;
                               phy-handle = <&PHY1>;
                               linux,network-index = <1>;
                               fsl,cpm-command = <16200300>;
                       };

                       usb@11b60 {
                               #address-cells = <1>;
                               #size-cells = <0>;
                               compatible = "fsl,mpc8248-usb",
                                            "fsl,cpm2-usb";
                               reg = <11b60 18 8b00 100>;
                               interrupt-parent = <&PIC>;
                               interrupts = <b 8>;
                               fsl,cpm-command = <2e600000>;
                       };
               i2c@11860 {  
                   compatible = "fsl,mpc8248-i2c",
                        "fsl,cpm2-i2c",
                        "fsl,cpm-i2c";
                   reg = <11860 20 3c80 30>;
                     interrupts = <1>;
                   interrupt-parent = <&PIC>;
                   fsl,cpm-command = <0010>;
               };

               };

------=_Part_5890_4994317.1195141402170--