1dc37374bSHongtao Jia/* 2dc37374bSHongtao Jia * P2020 RDB Device Tree Source 3dc37374bSHongtao Jia * 4dc37374bSHongtao Jia * Copyright 2009-2012 Freescale Semiconductor Inc. 5dc37374bSHongtao Jia * 6dc37374bSHongtao Jia * This program is free software; you can redistribute it and/or modify it 7dc37374bSHongtao Jia * under the terms of the GNU General Public License as published by the 8dc37374bSHongtao Jia * Free Software Foundation; either version 2 of the License, or (at your 9dc37374bSHongtao Jia * option) any later version. 10dc37374bSHongtao Jia */ 11dc37374bSHongtao Jia 12dc37374bSHongtao Jia/include/ "p2020si-pre.dtsi" 13dc37374bSHongtao Jia 14dc37374bSHongtao Jia/ { 15dc37374bSHongtao Jia model = "fsl,P2020RDB"; 16dc37374bSHongtao Jia compatible = "fsl,P2020RDB"; 17dc37374bSHongtao Jia 18dc37374bSHongtao Jia aliases { 19dc37374bSHongtao Jia ethernet0 = &enet0; 20dc37374bSHongtao Jia ethernet1 = &enet1; 21dc37374bSHongtao Jia ethernet2 = &enet2; 22dc37374bSHongtao Jia serial0 = &serial0; 23dc37374bSHongtao Jia serial1 = &serial1; 24dc37374bSHongtao Jia pci0 = &pci0; 25dc37374bSHongtao Jia pci1 = &pci1; 26dc37374bSHongtao Jia }; 27dc37374bSHongtao Jia 28dc37374bSHongtao Jia memory { 29dc37374bSHongtao Jia device_type = "memory"; 30dc37374bSHongtao Jia }; 31dc37374bSHongtao Jia 32dc37374bSHongtao Jia lbc: localbus@ffe05000 { 33dc37374bSHongtao Jia reg = <0 0xffe05000 0 0x1000>; 34dc37374bSHongtao Jia 35dc37374bSHongtao Jia /* NOR and NAND Flashes */ 36dc37374bSHongtao Jia ranges = <0x0 0x0 0x0 0xef000000 0x01000000 37dc37374bSHongtao Jia 0x1 0x0 0x0 0xffa00000 0x00040000 38dc37374bSHongtao Jia 0x2 0x0 0x0 0xffb00000 0x00020000>; 39dc37374bSHongtao Jia 40dc37374bSHongtao Jia nor@0,0 { 41dc37374bSHongtao Jia #address-cells = <1>; 42dc37374bSHongtao Jia #size-cells = <1>; 43dc37374bSHongtao Jia compatible = "cfi-flash"; 44dc37374bSHongtao Jia reg = <0x0 0x0 0x1000000>; 45dc37374bSHongtao Jia bank-width = <2>; 46dc37374bSHongtao Jia device-width = <1>; 47dc37374bSHongtao Jia 48dc37374bSHongtao Jia partition@0 { 49dc37374bSHongtao Jia /* This location must not be altered */ 50dc37374bSHongtao Jia /* 256KB for Vitesse 7385 Switch firmware */ 51dc37374bSHongtao Jia reg = <0x0 0x00040000>; 52dc37374bSHongtao Jia label = "NOR (RO) Vitesse-7385 Firmware"; 53dc37374bSHongtao Jia read-only; 54dc37374bSHongtao Jia }; 55dc37374bSHongtao Jia 56dc37374bSHongtao Jia partition@40000 { 57dc37374bSHongtao Jia /* 256KB for DTB Image */ 58dc37374bSHongtao Jia reg = <0x00040000 0x00040000>; 59dc37374bSHongtao Jia label = "NOR (RO) DTB Image"; 60dc37374bSHongtao Jia read-only; 61dc37374bSHongtao Jia }; 62dc37374bSHongtao Jia 63dc37374bSHongtao Jia partition@80000 { 64dc37374bSHongtao Jia /* 3.5 MB for Linux Kernel Image */ 65dc37374bSHongtao Jia reg = <0x00080000 0x00380000>; 66dc37374bSHongtao Jia label = "NOR (RO) Linux Kernel Image"; 67dc37374bSHongtao Jia read-only; 68dc37374bSHongtao Jia }; 69dc37374bSHongtao Jia 70dc37374bSHongtao Jia partition@400000 { 71dc37374bSHongtao Jia /* 11MB for JFFS2 based Root file System */ 72dc37374bSHongtao Jia reg = <0x00400000 0x00b00000>; 73dc37374bSHongtao Jia label = "NOR (RW) JFFS2 Root File System"; 74dc37374bSHongtao Jia }; 75dc37374bSHongtao Jia 76dc37374bSHongtao Jia partition@f00000 { 77dc37374bSHongtao Jia /* This location must not be altered */ 78dc37374bSHongtao Jia /* 512KB for u-boot Bootloader Image */ 79dc37374bSHongtao Jia /* 512KB for u-boot Environment Variables */ 80dc37374bSHongtao Jia reg = <0x00f00000 0x00100000>; 81dc37374bSHongtao Jia label = "NOR (RO) U-Boot Image"; 82dc37374bSHongtao Jia read-only; 83dc37374bSHongtao Jia }; 84dc37374bSHongtao Jia }; 85dc37374bSHongtao Jia 86dc37374bSHongtao Jia nand@1,0 { 87dc37374bSHongtao Jia #address-cells = <1>; 88dc37374bSHongtao Jia #size-cells = <1>; 89dc37374bSHongtao Jia compatible = "fsl,p2020-fcm-nand", 90dc37374bSHongtao Jia "fsl,elbc-fcm-nand"; 91dc37374bSHongtao Jia reg = <0x1 0x0 0x40000>; 92dc37374bSHongtao Jia 93dc37374bSHongtao Jia partition@0 { 94dc37374bSHongtao Jia /* This location must not be altered */ 95dc37374bSHongtao Jia /* 1MB for u-boot Bootloader Image */ 96dc37374bSHongtao Jia reg = <0x0 0x00100000>; 97dc37374bSHongtao Jia label = "NAND (RO) U-Boot Image"; 98dc37374bSHongtao Jia read-only; 99dc37374bSHongtao Jia }; 100dc37374bSHongtao Jia 101dc37374bSHongtao Jia partition@100000 { 102dc37374bSHongtao Jia /* 1MB for DTB Image */ 103dc37374bSHongtao Jia reg = <0x00100000 0x00100000>; 104dc37374bSHongtao Jia label = "NAND (RO) DTB Image"; 105dc37374bSHongtao Jia read-only; 106dc37374bSHongtao Jia }; 107dc37374bSHongtao Jia 108dc37374bSHongtao Jia partition@200000 { 109dc37374bSHongtao Jia /* 4MB for Linux Kernel Image */ 110dc37374bSHongtao Jia reg = <0x00200000 0x00400000>; 111dc37374bSHongtao Jia label = "NAND (RO) Linux Kernel Image"; 112dc37374bSHongtao Jia read-only; 113dc37374bSHongtao Jia }; 114dc37374bSHongtao Jia 115dc37374bSHongtao Jia partition@600000 { 116dc37374bSHongtao Jia /* 4MB for Compressed Root file System Image */ 117dc37374bSHongtao Jia reg = <0x00600000 0x00400000>; 118dc37374bSHongtao Jia label = "NAND (RO) Compressed RFS Image"; 119dc37374bSHongtao Jia read-only; 120dc37374bSHongtao Jia }; 121dc37374bSHongtao Jia 122dc37374bSHongtao Jia partition@a00000 { 123dc37374bSHongtao Jia /* 7MB for JFFS2 based Root file System */ 124dc37374bSHongtao Jia reg = <0x00a00000 0x00700000>; 125dc37374bSHongtao Jia label = "NAND (RW) JFFS2 Root File System"; 126dc37374bSHongtao Jia }; 127dc37374bSHongtao Jia 128dc37374bSHongtao Jia partition@1100000 { 129dc37374bSHongtao Jia /* 15MB for JFFS2 based Root file System */ 130dc37374bSHongtao Jia reg = <0x01100000 0x00f00000>; 131dc37374bSHongtao Jia label = "NAND (RW) Writable User area"; 132dc37374bSHongtao Jia }; 133dc37374bSHongtao Jia }; 134dc37374bSHongtao Jia 135dc37374bSHongtao Jia L2switch@2,0 { 136dc37374bSHongtao Jia #address-cells = <1>; 137dc37374bSHongtao Jia #size-cells = <1>; 138dc37374bSHongtao Jia compatible = "vitesse-7385"; 139dc37374bSHongtao Jia reg = <0x2 0x0 0x20000>; 140dc37374bSHongtao Jia }; 141dc37374bSHongtao Jia 142dc37374bSHongtao Jia }; 143dc37374bSHongtao Jia 144dc37374bSHongtao Jia soc: soc@ffe00000 { 145dc37374bSHongtao Jia ranges = <0x0 0x0 0xffe00000 0x100000>; 146dc37374bSHongtao Jia 147dc37374bSHongtao Jia i2c@3000 { 148dc37374bSHongtao Jia rtc@68 { 149dc37374bSHongtao Jia compatible = "dallas,ds1339"; 150dc37374bSHongtao Jia reg = <0x68>; 151dc37374bSHongtao Jia }; 152dc37374bSHongtao Jia }; 153dc37374bSHongtao Jia 154dc37374bSHongtao Jia spi@7000 { 155dc37374bSHongtao Jia flash@0 { 156dc37374bSHongtao Jia #address-cells = <1>; 157dc37374bSHongtao Jia #size-cells = <1>; 158dc37374bSHongtao Jia compatible = "spansion,s25sl12801"; 159dc37374bSHongtao Jia reg = <0>; 160dc37374bSHongtao Jia spi-max-frequency = <40000000>; 161dc37374bSHongtao Jia 162dc37374bSHongtao Jia partition@0 { 163dc37374bSHongtao Jia /* 512KB for u-boot Bootloader Image */ 164dc37374bSHongtao Jia reg = <0x0 0x00080000>; 165dc37374bSHongtao Jia label = "SPI (RO) U-Boot Image"; 166dc37374bSHongtao Jia read-only; 167dc37374bSHongtao Jia }; 168dc37374bSHongtao Jia 169dc37374bSHongtao Jia partition@80000 { 170dc37374bSHongtao Jia /* 512KB for DTB Image */ 171dc37374bSHongtao Jia reg = <0x00080000 0x00080000>; 172dc37374bSHongtao Jia label = "SPI (RO) DTB Image"; 173dc37374bSHongtao Jia read-only; 174dc37374bSHongtao Jia }; 175dc37374bSHongtao Jia 176dc37374bSHongtao Jia partition@100000 { 177dc37374bSHongtao Jia /* 4MB for Linux Kernel Image */ 178dc37374bSHongtao Jia reg = <0x00100000 0x00400000>; 179dc37374bSHongtao Jia label = "SPI (RO) Linux Kernel Image"; 180dc37374bSHongtao Jia read-only; 181dc37374bSHongtao Jia }; 182dc37374bSHongtao Jia 183dc37374bSHongtao Jia partition@500000 { 184dc37374bSHongtao Jia /* 4MB for Compressed RFS Image */ 185dc37374bSHongtao Jia reg = <0x00500000 0x00400000>; 186dc37374bSHongtao Jia label = "SPI (RO) Compressed RFS Image"; 187dc37374bSHongtao Jia read-only; 188dc37374bSHongtao Jia }; 189dc37374bSHongtao Jia 190dc37374bSHongtao Jia partition@900000 { 191dc37374bSHongtao Jia /* 7MB for JFFS2 based RFS */ 192dc37374bSHongtao Jia reg = <0x00900000 0x00700000>; 193dc37374bSHongtao Jia label = "SPI (RW) JFFS2 RFS"; 194dc37374bSHongtao Jia }; 195dc37374bSHongtao Jia }; 196dc37374bSHongtao Jia }; 197dc37374bSHongtao Jia 198dc37374bSHongtao Jia usb@22000 { 199dc37374bSHongtao Jia phy_type = "ulpi"; 200dc37374bSHongtao Jia dr_mode = "host"; 201dc37374bSHongtao Jia }; 202dc37374bSHongtao Jia 203dc37374bSHongtao Jia mdio@24520 { 204dc37374bSHongtao Jia phy0: ethernet-phy@0 { 205dc37374bSHongtao Jia interrupts = <3 1 0 0>; 206dc37374bSHongtao Jia reg = <0x0>; 207dc37374bSHongtao Jia }; 208dc37374bSHongtao Jia phy1: ethernet-phy@1 { 209dc37374bSHongtao Jia interrupts = <3 1 0 0>; 210dc37374bSHongtao Jia reg = <0x1>; 211dc37374bSHongtao Jia }; 212dc37374bSHongtao Jia tbi-phy@2 { 213dc37374bSHongtao Jia device_type = "tbi-phy"; 214dc37374bSHongtao Jia reg = <0x2>; 215dc37374bSHongtao Jia }; 216dc37374bSHongtao Jia }; 217dc37374bSHongtao Jia 218dc37374bSHongtao Jia mdio@25520 { 219dc37374bSHongtao Jia tbi0: tbi-phy@11 { 220dc37374bSHongtao Jia reg = <0x11>; 221dc37374bSHongtao Jia device_type = "tbi-phy"; 222dc37374bSHongtao Jia }; 223dc37374bSHongtao Jia }; 224dc37374bSHongtao Jia 225dc37374bSHongtao Jia mdio@26520 { 226dc37374bSHongtao Jia status = "disabled"; 227dc37374bSHongtao Jia }; 228dc37374bSHongtao Jia 229dc37374bSHongtao Jia ptp_clock@24e00 { 230dc37374bSHongtao Jia fsl,tclk-period = <5>; 231dc37374bSHongtao Jia fsl,tmr-prsc = <200>; 232dc37374bSHongtao Jia fsl,tmr-add = <0xCCCCCCCD>; 233dc37374bSHongtao Jia fsl,tmr-fiper1 = <0x3B9AC9FB>; 234dc37374bSHongtao Jia fsl,tmr-fiper2 = <0x0001869B>; 235dc37374bSHongtao Jia fsl,max-adj = <249999999>; 236dc37374bSHongtao Jia }; 237dc37374bSHongtao Jia 238dc37374bSHongtao Jia enet0: ethernet@24000 { 239dc37374bSHongtao Jia fixed-link = <1 1 1000 0 0>; 240dc37374bSHongtao Jia phy-connection-type = "rgmii-id"; 241dc37374bSHongtao Jia }; 242dc37374bSHongtao Jia 243dc37374bSHongtao Jia enet1: ethernet@25000 { 244dc37374bSHongtao Jia tbi-handle = <&tbi0>; 245dc37374bSHongtao Jia phy-handle = <&phy0>; 246dc37374bSHongtao Jia phy-connection-type = "sgmii"; 247dc37374bSHongtao Jia }; 248dc37374bSHongtao Jia 249dc37374bSHongtao Jia enet2: ethernet@26000 { 250dc37374bSHongtao Jia phy-handle = <&phy1>; 251dc37374bSHongtao Jia phy-connection-type = "rgmii-id"; 252dc37374bSHongtao Jia }; 253dc37374bSHongtao Jia }; 254dc37374bSHongtao Jia 255dc37374bSHongtao Jia pci0: pcie@ffe08000 { 256dc37374bSHongtao Jia reg = <0 0xffe08000 0 0x1000>; 257dc37374bSHongtao Jia status = "disabled"; 258dc37374bSHongtao Jia }; 259dc37374bSHongtao Jia 260dc37374bSHongtao Jia pci1: pcie@ffe09000 { 261dc37374bSHongtao Jia reg = <0 0xffe09000 0 0x1000>; 262dc37374bSHongtao Jia ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 263dc37374bSHongtao Jia 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; 264dc37374bSHongtao Jia pcie@0 { 265dc37374bSHongtao Jia ranges = <0x2000000 0x0 0xa0000000 266dc37374bSHongtao Jia 0x2000000 0x0 0xa0000000 267dc37374bSHongtao Jia 0x0 0x20000000 268dc37374bSHongtao Jia 269dc37374bSHongtao Jia 0x1000000 0x0 0x0 270dc37374bSHongtao Jia 0x1000000 0x0 0x0 271dc37374bSHongtao Jia 0x0 0x100000>; 272dc37374bSHongtao Jia }; 273dc37374bSHongtao Jia }; 274dc37374bSHongtao Jia 275dc37374bSHongtao Jia pci2: pcie@ffe0a000 { 276dc37374bSHongtao Jia reg = <0 0xffe0a000 0 0x1000>; 277dc37374bSHongtao Jia ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 278dc37374bSHongtao Jia 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; 279dc37374bSHongtao Jia pcie@0 { 280dc37374bSHongtao Jia ranges = <0x2000000 0x0 0x80000000 281dc37374bSHongtao Jia 0x2000000 0x0 0x80000000 282dc37374bSHongtao Jia 0x0 0x20000000 283dc37374bSHongtao Jia 284dc37374bSHongtao Jia 0x1000000 0x0 0x0 285dc37374bSHongtao Jia 0x1000000 0x0 0x0 286dc37374bSHongtao Jia 0x0 0x100000>; 287dc37374bSHongtao Jia }; 288dc37374bSHongtao Jia }; 289dc37374bSHongtao Jia}; 290dc37374bSHongtao Jia 291dc37374bSHongtao Jia/include/ "p2020si-post.dtsi" 292