1dc37374bSHongtao Jia/* 2dc37374bSHongtao Jia * P1025 RDB Device Tree Source stub (no addresses or top-level ranges) 3dc37374bSHongtao Jia * 4dc37374bSHongtao Jia * Copyright 2011 Freescale Semiconductor Inc. 5dc37374bSHongtao Jia * 6dc37374bSHongtao Jia * Redistribution and use in source and binary forms, with or without 7dc37374bSHongtao Jia * modification, are permitted provided that the following conditions are met: 8dc37374bSHongtao Jia * * Redistributions of source code must retain the above copyright 9dc37374bSHongtao Jia * notice, this list of conditions and the following disclaimer. 10dc37374bSHongtao Jia * * Redistributions in binary form must reproduce the above copyright 11dc37374bSHongtao Jia * notice, this list of conditions and the following disclaimer in the 12dc37374bSHongtao Jia * documentation and/or other materials provided with the distribution. 13dc37374bSHongtao Jia * * Neither the name of Freescale Semiconductor nor the 14dc37374bSHongtao Jia * names of its contributors may be used to endorse or promote products 15dc37374bSHongtao Jia * derived from this software without specific prior written permission. 16dc37374bSHongtao Jia * 17dc37374bSHongtao Jia * 18dc37374bSHongtao Jia * ALTERNATIVELY, this software may be distributed under the terms of the 19dc37374bSHongtao Jia * GNU General Public License ("GPL") as published by the Free Software 20dc37374bSHongtao Jia * Foundation, either version 2 of that License or (at your option) any 21dc37374bSHongtao Jia * later version. 22dc37374bSHongtao Jia * 23dc37374bSHongtao Jia * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 24dc37374bSHongtao Jia * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25dc37374bSHongtao Jia * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26dc37374bSHongtao Jia * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 27dc37374bSHongtao Jia * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28dc37374bSHongtao Jia * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29dc37374bSHongtao Jia * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30dc37374bSHongtao Jia * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31dc37374bSHongtao Jia * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32dc37374bSHongtao Jia * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33dc37374bSHongtao Jia */ 34dc37374bSHongtao Jia 35dc37374bSHongtao Jia&lbc { 36dc37374bSHongtao Jia nor@0,0 { 37dc37374bSHongtao Jia #address-cells = <1>; 38dc37374bSHongtao Jia #size-cells = <1>; 39dc37374bSHongtao Jia compatible = "cfi-flash"; 40dc37374bSHongtao Jia reg = <0x0 0x0 0x1000000>; 41dc37374bSHongtao Jia bank-width = <2>; 42dc37374bSHongtao Jia device-width = <1>; 43dc37374bSHongtao Jia 44dc37374bSHongtao Jia partition@0 { 45dc37374bSHongtao Jia /* This location must not be altered */ 46dc37374bSHongtao Jia /* 256KB for Vitesse 7385 Switch firmware */ 47dc37374bSHongtao Jia reg = <0x0 0x00040000>; 48dc37374bSHongtao Jia label = "NOR Vitesse-7385 Firmware"; 49dc37374bSHongtao Jia read-only; 50dc37374bSHongtao Jia }; 51dc37374bSHongtao Jia 52dc37374bSHongtao Jia partition@40000 { 53dc37374bSHongtao Jia /* 256KB for DTB Image */ 54dc37374bSHongtao Jia reg = <0x00040000 0x00040000>; 55dc37374bSHongtao Jia label = "NOR DTB Image"; 56dc37374bSHongtao Jia }; 57dc37374bSHongtao Jia 58dc37374bSHongtao Jia partition@80000 { 59dc37374bSHongtao Jia /* 3.5 MB for Linux Kernel Image */ 60dc37374bSHongtao Jia reg = <0x00080000 0x00380000>; 61dc37374bSHongtao Jia label = "NOR Linux Kernel Image"; 62dc37374bSHongtao Jia }; 63dc37374bSHongtao Jia 64dc37374bSHongtao Jia partition@400000 { 65dc37374bSHongtao Jia /* 11MB for JFFS2 based Root file System */ 66dc37374bSHongtao Jia reg = <0x00400000 0x00b00000>; 67dc37374bSHongtao Jia label = "NOR JFFS2 Root File System"; 68dc37374bSHongtao Jia }; 69dc37374bSHongtao Jia 70dc37374bSHongtao Jia partition@f00000 { 71dc37374bSHongtao Jia /* This location must not be altered */ 72dc37374bSHongtao Jia /* 512KB for u-boot Bootloader Image */ 73dc37374bSHongtao Jia /* 512KB for u-boot Environment Variables */ 74dc37374bSHongtao Jia reg = <0x00f00000 0x00100000>; 75dc37374bSHongtao Jia label = "NOR U-Boot Image"; 76dc37374bSHongtao Jia read-only; 77dc37374bSHongtao Jia }; 78dc37374bSHongtao Jia }; 79dc37374bSHongtao Jia 80dc37374bSHongtao Jia nand@1,0 { 81dc37374bSHongtao Jia #address-cells = <1>; 82dc37374bSHongtao Jia #size-cells = <1>; 83dc37374bSHongtao Jia compatible = "fsl,p1025-fcm-nand", 84dc37374bSHongtao Jia "fsl,elbc-fcm-nand"; 85dc37374bSHongtao Jia reg = <0x1 0x0 0x40000>; 86dc37374bSHongtao Jia 87dc37374bSHongtao Jia partition@0 { 88dc37374bSHongtao Jia /* This location must not be altered */ 89dc37374bSHongtao Jia /* 1MB for u-boot Bootloader Image */ 90dc37374bSHongtao Jia reg = <0x0 0x00100000>; 91dc37374bSHongtao Jia label = "NAND U-Boot Image"; 92dc37374bSHongtao Jia read-only; 93dc37374bSHongtao Jia }; 94dc37374bSHongtao Jia 95dc37374bSHongtao Jia partition@100000 { 96dc37374bSHongtao Jia /* 1MB for DTB Image */ 97dc37374bSHongtao Jia reg = <0x00100000 0x00100000>; 98dc37374bSHongtao Jia label = "NAND DTB Image"; 99dc37374bSHongtao Jia }; 100dc37374bSHongtao Jia 101dc37374bSHongtao Jia partition@200000 { 102dc37374bSHongtao Jia /* 4MB for Linux Kernel Image */ 103dc37374bSHongtao Jia reg = <0x00200000 0x00400000>; 104dc37374bSHongtao Jia label = "NAND Linux Kernel Image"; 105dc37374bSHongtao Jia }; 106dc37374bSHongtao Jia 107dc37374bSHongtao Jia partition@600000 { 108dc37374bSHongtao Jia /* 4MB for Compressed Root file System Image */ 109dc37374bSHongtao Jia reg = <0x00600000 0x00400000>; 110dc37374bSHongtao Jia label = "NAND Compressed RFS Image"; 111dc37374bSHongtao Jia }; 112dc37374bSHongtao Jia 113dc37374bSHongtao Jia partition@a00000 { 114dc37374bSHongtao Jia /* 7MB for JFFS2 based Root file System */ 115dc37374bSHongtao Jia reg = <0x00a00000 0x00700000>; 116dc37374bSHongtao Jia label = "NAND JFFS2 Root File System"; 117dc37374bSHongtao Jia }; 118dc37374bSHongtao Jia 119dc37374bSHongtao Jia partition@1100000 { 120dc37374bSHongtao Jia /* 15MB for JFFS2 based Root file System */ 121dc37374bSHongtao Jia reg = <0x01100000 0x00f00000>; 122dc37374bSHongtao Jia label = "NAND Writable User area"; 123dc37374bSHongtao Jia }; 124dc37374bSHongtao Jia }; 125dc37374bSHongtao Jia 126dc37374bSHongtao Jia}; 127dc37374bSHongtao Jia 128dc37374bSHongtao Jia&soc { 129dc37374bSHongtao Jia i2c@3000 { 130dc37374bSHongtao Jia rtc@68 { 131dc37374bSHongtao Jia compatible = "dallas,ds1339"; 132dc37374bSHongtao Jia reg = <0x68>; 133dc37374bSHongtao Jia }; 134dc37374bSHongtao Jia }; 135dc37374bSHongtao Jia 136dc37374bSHongtao Jia spi@7000 { 137dc37374bSHongtao Jia flash@0 { 138dc37374bSHongtao Jia #address-cells = <1>; 139dc37374bSHongtao Jia #size-cells = <1>; 140dc37374bSHongtao Jia compatible = "spansion,s25sl12801"; 141dc37374bSHongtao Jia reg = <0>; 142dc37374bSHongtao Jia spi-max-frequency = <40000000>; /* input clock */ 143dc37374bSHongtao Jia 144dc37374bSHongtao Jia partition@u-boot { 145dc37374bSHongtao Jia /* 512KB for u-boot Bootloader Image */ 146dc37374bSHongtao Jia reg = <0x0 0x00080000>; 147dc37374bSHongtao Jia label = "u-boot"; 148dc37374bSHongtao Jia read-only; 149dc37374bSHongtao Jia }; 150dc37374bSHongtao Jia 151dc37374bSHongtao Jia partition@dtb { 152dc37374bSHongtao Jia /* 512KB for DTB Image */ 153dc37374bSHongtao Jia reg = <0x00080000 0x00080000>; 154dc37374bSHongtao Jia label = "dtb"; 155dc37374bSHongtao Jia }; 156dc37374bSHongtao Jia 157dc37374bSHongtao Jia partition@kernel { 158dc37374bSHongtao Jia /* 4MB for Linux Kernel Image */ 159dc37374bSHongtao Jia reg = <0x00100000 0x00400000>; 160dc37374bSHongtao Jia label = "kernel"; 161dc37374bSHongtao Jia }; 162dc37374bSHongtao Jia 163dc37374bSHongtao Jia partition@fs { 164dc37374bSHongtao Jia /* 4MB for Compressed RFS Image */ 165dc37374bSHongtao Jia reg = <0x00500000 0x00400000>; 166dc37374bSHongtao Jia label = "file system"; 167dc37374bSHongtao Jia }; 168dc37374bSHongtao Jia 169dc37374bSHongtao Jia partition@jffs-fs { 170dc37374bSHongtao Jia /* 7MB for JFFS2 based RFS */ 171dc37374bSHongtao Jia reg = <0x00900000 0x00700000>; 172dc37374bSHongtao Jia label = "file system jffs2"; 173dc37374bSHongtao Jia }; 174dc37374bSHongtao Jia }; 175dc37374bSHongtao Jia }; 176dc37374bSHongtao Jia 177dc37374bSHongtao Jia usb@22000 { 178dc37374bSHongtao Jia phy_type = "ulpi"; 179dc37374bSHongtao Jia }; 180dc37374bSHongtao Jia 181dc37374bSHongtao Jia /* USB2 is shared with localbus, so it must be disabled 182dc37374bSHongtao Jia by default. We can't put 'status = "disabled";' here 183dc37374bSHongtao Jia since U-Boot doesn't clear the status property when 184dc37374bSHongtao Jia it enables USB2. OTOH, U-Boot does create a new node 185dc37374bSHongtao Jia when there isn't any. So, just comment it out. 186dc37374bSHongtao Jia usb@23000 { 187dc37374bSHongtao Jia phy_type = "ulpi"; 188dc37374bSHongtao Jia }; 189dc37374bSHongtao Jia */ 190dc37374bSHongtao Jia 191dc37374bSHongtao Jia mdio@24000 { 192dc37374bSHongtao Jia phy0: ethernet-phy@0 { 193dc37374bSHongtao Jia interrupt-parent = <&mpic>; 194dc37374bSHongtao Jia interrupts = <3 1>; 195dc37374bSHongtao Jia reg = <0x0>; 196dc37374bSHongtao Jia }; 197dc37374bSHongtao Jia 198dc37374bSHongtao Jia phy1: ethernet-phy@1 { 199dc37374bSHongtao Jia interrupt-parent = <&mpic>; 200dc37374bSHongtao Jia interrupts = <2 1>; 201dc37374bSHongtao Jia reg = <0x1>; 202dc37374bSHongtao Jia }; 203dc37374bSHongtao Jia 204dc37374bSHongtao Jia tbi0: tbi-phy@11 { 205dc37374bSHongtao Jia reg = <0x11>; 206dc37374bSHongtao Jia device_type = "tbi-phy"; 207dc37374bSHongtao Jia }; 208dc37374bSHongtao Jia }; 209dc37374bSHongtao Jia 210dc37374bSHongtao Jia mdio@25000 { 211dc37374bSHongtao Jia tbi1: tbi-phy@11 { 212dc37374bSHongtao Jia reg = <0x11>; 213dc37374bSHongtao Jia device_type = "tbi-phy"; 214dc37374bSHongtao Jia }; 215dc37374bSHongtao Jia }; 216dc37374bSHongtao Jia 217dc37374bSHongtao Jia mdio@26000 { 218dc37374bSHongtao Jia tbi2: tbi-phy@11 { 219dc37374bSHongtao Jia reg = <0x11>; 220dc37374bSHongtao Jia device_type = "tbi-phy"; 221dc37374bSHongtao Jia }; 222dc37374bSHongtao Jia }; 223dc37374bSHongtao Jia 224dc37374bSHongtao Jia enet0: ethernet@b0000 { 225dc37374bSHongtao Jia fixed-link = <1 1 1000 0 0>; 226dc37374bSHongtao Jia phy-connection-type = "rgmii-id"; 227dc37374bSHongtao Jia 228dc37374bSHongtao Jia }; 229dc37374bSHongtao Jia 230dc37374bSHongtao Jia enet1: ethernet@b1000 { 231dc37374bSHongtao Jia phy-handle = <&phy0>; 232dc37374bSHongtao Jia tbi-handle = <&tbi1>; 233dc37374bSHongtao Jia phy-connection-type = "sgmii"; 234dc37374bSHongtao Jia }; 235dc37374bSHongtao Jia 236dc37374bSHongtao Jia enet2: ethernet@b2000 { 237dc37374bSHongtao Jia phy-handle = <&phy1>; 238dc37374bSHongtao Jia phy-connection-type = "rgmii-id"; 239dc37374bSHongtao Jia }; 240dc37374bSHongtao Jia 241dc37374bSHongtao Jia par_io@e0100 { 242dc37374bSHongtao Jia #address-cells = <1>; 243dc37374bSHongtao Jia #size-cells = <1>; 244dc37374bSHongtao Jia reg = <0xe0100 0x60>; 245dc37374bSHongtao Jia ranges = <0x0 0xe0100 0x60>; 246dc37374bSHongtao Jia device_type = "par_io"; 247dc37374bSHongtao Jia num-ports = <3>; 248dc37374bSHongtao Jia pio1: ucc_pin@01 { 249dc37374bSHongtao Jia pio-map = < 250dc37374bSHongtao Jia /* port pin dir open_drain assignment has_irq */ 251dc37374bSHongtao Jia 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */ 252dc37374bSHongtao Jia 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */ 253dc37374bSHongtao Jia 0x0 0x17 0x2 0x0 0x2 0x0 /* CLK12 */ 254dc37374bSHongtao Jia 0x0 0x18 0x2 0x0 0x1 0x0 /* CLK9 */ 255dc37374bSHongtao Jia 0x0 0x7 0x1 0x0 0x2 0x0 /* ENET1_TXD0_SER1_TXD0 */ 256dc37374bSHongtao Jia 0x0 0x9 0x1 0x0 0x2 0x0 /* ENET1_TXD1_SER1_TXD1 */ 257dc37374bSHongtao Jia 0x0 0xb 0x1 0x0 0x2 0x0 /* ENET1_TXD2_SER1_TXD2 */ 258dc37374bSHongtao Jia 0x0 0xc 0x1 0x0 0x2 0x0 /* ENET1_TXD3_SER1_TXD3 */ 259dc37374bSHongtao Jia 0x0 0x6 0x2 0x0 0x2 0x0 /* ENET1_RXD0_SER1_RXD0 */ 260dc37374bSHongtao Jia 0x0 0xa 0x2 0x0 0x2 0x0 /* ENET1_RXD1_SER1_RXD1 */ 261dc37374bSHongtao Jia 0x0 0xe 0x2 0x0 0x2 0x0 /* ENET1_RXD2_SER1_RXD2 */ 262dc37374bSHongtao Jia 0x0 0xf 0x2 0x0 0x2 0x0 /* ENET1_RXD3_SER1_RXD3 */ 263dc37374bSHongtao Jia 0x0 0x5 0x1 0x0 0x2 0x0 /* ENET1_TX_EN_SER1_RTS_B */ 264dc37374bSHongtao Jia 0x0 0xd 0x1 0x0 0x2 0x0 /* ENET1_TX_ER */ 265dc37374bSHongtao Jia 0x0 0x4 0x2 0x0 0x2 0x0 /* ENET1_RX_DV_SER1_CTS_B */ 266dc37374bSHongtao Jia 0x0 0x8 0x2 0x0 0x2 0x0 /* ENET1_RX_ER_SER1_CD_B */ 267dc37374bSHongtao Jia 0x0 0x11 0x2 0x0 0x2 0x0 /* ENET1_CRS */ 268dc37374bSHongtao Jia 0x0 0x10 0x2 0x0 0x2 0x0>; /* ENET1_COL */ 269dc37374bSHongtao Jia }; 270dc37374bSHongtao Jia 271dc37374bSHongtao Jia pio2: ucc_pin@02 { 272dc37374bSHongtao Jia pio-map = < 273dc37374bSHongtao Jia /* port pin dir open_drain assignment has_irq */ 274dc37374bSHongtao Jia 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */ 275dc37374bSHongtao Jia 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */ 276dc37374bSHongtao Jia 0x1 0xb 0x2 0x0 0x1 0x0 /* CLK13 */ 277dc37374bSHongtao Jia 0x1 0x7 0x1 0x0 0x2 0x0 /* ENET5_TXD0_SER5_TXD0 */ 278dc37374bSHongtao Jia 0x1 0xa 0x1 0x0 0x2 0x0 /* ENET5_TXD1_SER5_TXD1 */ 279dc37374bSHongtao Jia 0x1 0x6 0x2 0x0 0x2 0x0 /* ENET5_RXD0_SER5_RXD0 */ 280dc37374bSHongtao Jia 0x1 0x9 0x2 0x0 0x2 0x0 /* ENET5_RXD1_SER5_RXD1 */ 281dc37374bSHongtao Jia 0x1 0x5 0x1 0x0 0x2 0x0 /* ENET5_TX_EN_SER5_RTS_B */ 282dc37374bSHongtao Jia 0x1 0x4 0x2 0x0 0x2 0x0 /* ENET5_RX_DV_SER5_CTS_B */ 283dc37374bSHongtao Jia 0x1 0x8 0x2 0x0 0x2 0x0>; /* ENET5_RX_ER_SER5_CD_B */ 284dc37374bSHongtao Jia }; 285dc37374bSHongtao Jia 286dc37374bSHongtao Jia pio3: ucc_pin@03 { 287dc37374bSHongtao Jia pio-map = < 288dc37374bSHongtao Jia /* port pin dir open_drain assignment has_irq */ 289dc37374bSHongtao Jia 0x0 0x16 0x2 0x0 0x2 0x0 /* SER7_CD_B*/ 290dc37374bSHongtao Jia 0x0 0x12 0x2 0x0 0x2 0x0 /* SER7_CTS_B*/ 291dc37374bSHongtao Jia 0x0 0x13 0x1 0x0 0x2 0x0 /* SER7_RTS_B*/ 292dc37374bSHongtao Jia 0x0 0x14 0x2 0x0 0x2 0x0 /* SER7_RXD0*/ 293dc37374bSHongtao Jia 0x0 0x15 0x1 0x0 0x2 0x0>; /* SER7_TXD0*/ 294dc37374bSHongtao Jia }; 295dc37374bSHongtao Jia 296dc37374bSHongtao Jia pio4: ucc_pin@04 { 297dc37374bSHongtao Jia pio-map = < 298dc37374bSHongtao Jia /* port pin dir open_drain assignment has_irq */ 299dc37374bSHongtao Jia 0x1 0x0 0x2 0x0 0x2 0x0 /* SER3_CD_B*/ 300dc37374bSHongtao Jia 0x0 0x1c 0x2 0x0 0x2 0x0 /* SER3_CTS_B*/ 301dc37374bSHongtao Jia 0x0 0x1d 0x1 0x0 0x2 0x0 /* SER3_RTS_B*/ 302dc37374bSHongtao Jia 0x0 0x1e 0x2 0x0 0x2 0x0 /* SER3_RXD0*/ 303dc37374bSHongtao Jia 0x0 0x1f 0x1 0x0 0x2 0x0>; /* SER3_TXD0*/ 304dc37374bSHongtao Jia }; 305dc37374bSHongtao Jia }; 306dc37374bSHongtao Jia}; 307dc37374bSHongtao Jia 308dc37374bSHongtao Jia&qe { 309dc37374bSHongtao Jia serial2: ucc@2600 { 310dc37374bSHongtao Jia device_type = "serial"; 311dc37374bSHongtao Jia compatible = "ucc_uart"; 312dc37374bSHongtao Jia port-number = <0>; 313dc37374bSHongtao Jia rx-clock-name = "brg6"; 314dc37374bSHongtao Jia tx-clock-name = "brg6"; 315dc37374bSHongtao Jia pio-handle = <&pio3>; 316dc37374bSHongtao Jia }; 317dc37374bSHongtao Jia 318dc37374bSHongtao Jia serial3: ucc@2200 { 319dc37374bSHongtao Jia device_type = "serial"; 320dc37374bSHongtao Jia compatible = "ucc_uart"; 321dc37374bSHongtao Jia port-number = <1>; 322dc37374bSHongtao Jia rx-clock-name = "brg2"; 323dc37374bSHongtao Jia tx-clock-name = "brg2"; 324dc37374bSHongtao Jia pio-handle = <&pio4>; 325dc37374bSHongtao Jia }; 326dc37374bSHongtao Jia}; 327