Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Device Tree Source for PIKA Warp
0003  *
0004  * Copyright (c) 2008-2009 PIKA Technologies
0005  *   Sean MacLennan <smaclennan@pikatech.com>
0006  *
0007  * This file is licensed under the terms of the GNU General Public
0008  * License version 2.  This program is licensed "as is" without
0009  * any warranty of any kind, whether express or implied.
0010  */
0011 
0012 /dts-v1/;
0013 
0014 / {
0015         #address-cells = <2>;
0016         #size-cells = <1>;
0017         model = "pika,warp";
0018         compatible = "pika,warp";
0019         dcr-parent = <&{/cpus/cpu@0}>;
0020 
0021         aliases {
0022                 ethernet0 = &EMAC0;
0023                 serial0 = &UART0;
0024         };
0025 
0026         cpus {
0027                 #address-cells = <1>;
0028                 #size-cells = <0>;
0029 
0030                 cpu@0 {
0031                         device_type = "cpu";
0032                         model = "PowerPC,440EP";
0033                         reg = <0x00000000>;
0034                         clock-frequency = <0>; /* Filled in by zImage */
0035                         timebase-frequency = <0>; /* Filled in by zImage */
0036                         i-cache-line-size = <32>;
0037                         d-cache-line-size = <32>;
0038                         i-cache-size = <32768>;
0039                         d-cache-size = <32768>;
0040                         dcr-controller;
0041                         dcr-access-method = "native";
0042                 };
0043         };
0044 
0045         memory {
0046                 device_type = "memory";
0047                 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */
0048         };
0049 
0050         UIC0: interrupt-controller0 {
0051                 compatible = "ibm,uic-440ep","ibm,uic";
0052                 interrupt-controller;
0053                 cell-index = <0>;
0054                 dcr-reg = <0x0c0 0x009>;
0055                 #address-cells = <0>;
0056                 #size-cells = <0>;
0057                 #interrupt-cells = <2>;
0058         };
0059 
0060         UIC1: interrupt-controller1 {
0061                 compatible = "ibm,uic-440ep","ibm,uic";
0062                 interrupt-controller;
0063                 cell-index = <1>;
0064                 dcr-reg = <0x0d0 0x009>;
0065                 #address-cells = <0>;
0066                 #size-cells = <0>;
0067                 #interrupt-cells = <2>;
0068                 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
0069                 interrupt-parent = <&UIC0>;
0070         };
0071 
0072         SDR0: sdr {
0073                 compatible = "ibm,sdr-440ep";
0074                 dcr-reg = <0x00e 0x002>;
0075         };
0076 
0077         CPR0: cpr {
0078                 compatible = "ibm,cpr-440ep";
0079                 dcr-reg = <0x00c 0x002>;
0080         };
0081 
0082         plb {
0083                 compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
0084                 #address-cells = <2>;
0085                 #size-cells = <1>;
0086                 ranges;
0087                 clock-frequency = <0>; /* Filled in by zImage */
0088 
0089                 SDRAM0: sdram {
0090                         compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
0091                         dcr-reg = <0x010 0x002>;
0092                 };
0093 
0094                 DMA0: dma {
0095                         compatible = "ibm,dma-440ep", "ibm,dma-440gp";
0096                         dcr-reg = <0x100 0x027>;
0097                 };
0098 
0099                 MAL0: mcmal {
0100                         compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
0101                         dcr-reg = <0x180 0x062>;
0102                         num-tx-chans = <4>;
0103                         num-rx-chans = <2>;
0104                         interrupt-parent = <&MAL0>;
0105                         interrupts = <0x0 0x1 0x2 0x3 0x4>;
0106                         #interrupt-cells = <1>;
0107                         #address-cells = <0>;
0108                         #size-cells = <0>;
0109                         interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
0110                                         /*RXEOB*/ 0x1 &UIC0 0xb 0x4
0111                                         /*SERR*/  0x2 &UIC1 0x0 0x4
0112                                         /*TXDE*/  0x3 &UIC1 0x1 0x4
0113                                         /*RXDE*/  0x4 &UIC1 0x2 0x4>;
0114                 };
0115 
0116                 POB0: opb {
0117                         compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
0118                         #address-cells = <1>;
0119                         #size-cells = <1>;
0120                         ranges = <0x00000000 0x00000000 0x00000000 0x80000000
0121                                   0x80000000 0x00000000 0x80000000 0x80000000>;
0122                         interrupt-parent = <&UIC1>;
0123                         interrupts = <0x7 0x4>;
0124                         clock-frequency = <0>; /* Filled in by zImage */
0125 
0126                         EBC0: ebc {
0127                                 compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
0128                                 dcr-reg = <0x012 0x002>;
0129                                 #address-cells = <2>;
0130                                 #size-cells = <1>;
0131                                 clock-frequency = <0>; /* Filled in by zImage */
0132                                 interrupts = <0x5 0x1>;
0133                                 interrupt-parent = <&UIC1>;
0134 
0135                                 fpga@2,0 {
0136                                         compatible = "pika,fpga";
0137                                         reg = <0x00000002 0x00000000 0x00001000>;
0138                                         interrupts = <0x18 0x8>;
0139                                         interrupt-parent = <&UIC0>;
0140                                 };
0141 
0142                                 fpga@2,2000 {
0143                                         compatible = "pika,fpga-sgl";
0144                                         reg = <0x00000002 0x00002000 0x00000200>;
0145                                 };
0146 
0147                                 fpga@2,4000 {
0148                                         compatible = "pika,fpga-sd";
0149                                         reg = <0x00000002 0x00004000 0x00004000>;
0150                                 };
0151 
0152                                 nor@0,0 {
0153                                         compatible = "amd,s29gl032a", "cfi-flash";
0154                                         bank-width = <2>;
0155                                         reg = <0x00000000 0x00000000 0x00400000>;
0156                                         #address-cells = <1>;
0157                                         #size-cells = <1>;
0158 
0159                                         partition@0 {
0160                                                 label = "splash";
0161                                                 reg = <0x00000000 0x00010000>;
0162                                         };
0163                                         partition@300000 {
0164                                                 label = "fpga";
0165                                                 reg = <0x0300000 0x00040000>;
0166                                         };
0167                                         partition@340000 {
0168                                                 label = "env";
0169                                                 reg = <0x0340000 0x00040000>;
0170                                         };
0171                                         partition@380000 {
0172                                                 label = "u-boot";
0173                                                 reg = <0x0380000 0x00080000>;
0174                                         };
0175                                 };
0176 
0177                                 ndfc@1,0 {
0178                                         compatible = "ibm,ndfc";
0179                                         reg = <0x00000001 0x00000000 0x00002000>;
0180                                         ccr = <0x00001000>;
0181                                         bank-settings = <0x80002222>;
0182                                         #address-cells = <1>;
0183                                         #size-cells = <1>;
0184 
0185                                         nand {
0186                                                 #address-cells = <1>;
0187                                                 #size-cells = <1>;
0188 
0189                                                 partition@0 {
0190                                                         label = "kernel";
0191                                                         reg = <0x00000000 0x00200000>;
0192                                                 };
0193                                                 partition@200000 {
0194                                                         label = "root";
0195                                                         reg = <0x00200000 0x03E00000>;
0196                                                 };
0197                                                 partition@40000000 {
0198                                                         label = "persistent";
0199                                                         reg = <0x04000000 0x04000000>;
0200                                                 };
0201                                                 partition@80000000 {
0202                                                         label = "persistent1";
0203                                                         reg = <0x08000000 0x04000000>;
0204                                                 };
0205                                                 partition@C0000000 {
0206                                                         label = "persistent2";
0207                                                         reg = <0x0C000000 0x04000000>;
0208                                                 };
0209                                         };
0210                                 };
0211                         };
0212 
0213                         UART0: serial@ef600300 {
0214                                 device_type = "serial";
0215                                 compatible = "ns16550";
0216                                 reg = <0xef600300 0x00000008>;
0217                                 virtual-reg = <0xef600300>;
0218                                 clock-frequency = <0>; /* Filled in by zImage */
0219                                 current-speed = <115200>;
0220                                 interrupt-parent = <&UIC0>;
0221                                 interrupts = <0x0 0x4>;
0222                         };
0223 
0224                         IIC0: i2c@ef600700 {
0225                                 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
0226                                 reg = <0xef600700 0x00000014>;
0227                                 interrupt-parent = <&UIC0>;
0228                                 interrupts = <0x2 0x4>;
0229                                 #address-cells = <1>;
0230                                 #size-cells = <0>;
0231 
0232                                 ad7414@4a {
0233                                         compatible = "adi,ad7414";
0234                                         reg = <0x4a>;
0235                                         interrupts = <0x19 0x8>;
0236                                         interrupt-parent = <&UIC0>;
0237                                 };
0238 
0239                                 /* This will create 52 and 53 */
0240                                 at24@52 {
0241                                         compatible = "atmel,24c04";
0242                                         reg = <0x52>;
0243                                 };
0244                         };
0245 
0246                         GPIO0: gpio@ef600b00 {
0247                                 compatible = "ibm,ppc4xx-gpio";
0248                                 reg = <0xef600b00 0x00000048>;
0249                                 #gpio-cells = <2>;
0250                                 gpio-controller;
0251                         };
0252 
0253                         GPIO1: gpio@ef600c00 {
0254                                 compatible = "ibm,ppc4xx-gpio";
0255                                 reg = <0xef600c00 0x00000048>;
0256                                 #gpio-cells = <2>;
0257                                 gpio-controller;
0258                         };
0259 
0260                         power-leds {
0261                                 compatible = "gpio-leds";
0262                                 green {
0263                                         gpios = <&GPIO1 0 0>;
0264                                         default-state = "keep";
0265                                 };
0266                                 red {
0267                                         gpios = <&GPIO1 1 0>;
0268                                         default-state = "keep";
0269                                 };
0270                         };
0271 
0272                         ZMII0: emac-zmii@ef600d00 {
0273                                 compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
0274                                 reg = <0xef600d00 0x0000000c>;
0275                         };
0276 
0277                         EMAC0: ethernet@ef600e00 {
0278                                 device_type = "network";
0279                                 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
0280                                 interrupt-parent = <&UIC1>;
0281                                 interrupts = <0x1c 0x4 0x1d 0x4>;
0282                                 reg = <0xef600e00 0x00000070>;
0283                                 local-mac-address = [000000000000];
0284                                 mal-device = <&MAL0>;
0285                                 mal-tx-channel = <0 1>;
0286                                 mal-rx-channel = <0>;
0287                                 cell-index = <0>;
0288                                 max-frame-size = <1500>;
0289                                 rx-fifo-size = <4096>;
0290                                 tx-fifo-size = <2048>;
0291                                 phy-mode = "rmii";
0292                                 phy-map = <0x00000000>;
0293                                 zmii-device = <&ZMII0>;
0294                                 zmii-channel = <0>;
0295                         };
0296 
0297                         usb@ef601000 {
0298                                 compatible = "ohci-be";
0299                                 reg = <0xef601000 0x00000080>;
0300                                 interrupts = <0x8 0x1 0x9 0x1>;
0301                                 interrupt-parent = < &UIC1 >;
0302                         };
0303                 };
0304         };
0305 
0306         chosen {
0307                 stdout-path = "/plb/opb/serial@ef600300";
0308         };
0309 };