Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * P1022 DS Device Tree Source stub (no addresses or top-level ranges)
0003  *
0004  * Copyright 2012 Freescale Semiconductor Inc.
0005  *
0006  * Redistribution and use in source and binary forms, with or without
0007  * modification, are permitted provided that the following conditions are met:
0008  *     * Redistributions of source code must retain the above copyright
0009  *       notice, this list of conditions and the following disclaimer.
0010  *     * Redistributions in binary form must reproduce the above copyright
0011  *       notice, this list of conditions and the following disclaimer in the
0012  *       documentation and/or other materials provided with the distribution.
0013  *     * Neither the name of Freescale Semiconductor nor the
0014  *       names of its contributors may be used to endorse or promote products
0015  *       derived from this software without specific prior written permission.
0016  *
0017  *
0018  * ALTERNATIVELY, this software may be distributed under the terms of the
0019  * GNU General Public License ("GPL") as published by the Free Software
0020  * Foundation, either version 2 of that License or (at your option) any
0021  * later version.
0022  *
0023  * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY
0024  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0025  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0026  * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
0027  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
0028  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
0029  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
0030  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0031  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
0032  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0033  */
0034 
0035 &board_lbc {
0036         nor@0,0 {
0037                 #address-cells = <1>;
0038                 #size-cells = <1>;
0039                 compatible = "cfi-flash";
0040                 reg = <0x0 0x0 0x8000000>;
0041                 bank-width = <2>;
0042                 device-width = <1>;
0043 
0044                 partition@0 {
0045                         reg = <0x0 0x03000000>;
0046                         label = "ramdisk-nor";
0047                         read-only;
0048                 };
0049 
0050                 partition@3000000 {
0051                         reg = <0x03000000 0x00e00000>;
0052                         label = "diagnostic-nor";
0053                         read-only;
0054                 };
0055 
0056                 partition@3e00000 {
0057                         reg = <0x03e00000 0x00200000>;
0058                         label = "dink-nor";
0059                         read-only;
0060                 };
0061 
0062                 partition@4000000 {
0063                         reg = <0x04000000 0x00400000>;
0064                         label = "kernel-nor";
0065                         read-only;
0066                 };
0067 
0068                 partition@4400000 {
0069                         reg = <0x04400000 0x03b00000>;
0070                         label = "jffs2-nor";
0071                 };
0072 
0073                 partition@7f00000 {
0074                         reg = <0x07f00000 0x00080000>;
0075                         label = "dtb-nor";
0076                         read-only;
0077                 };
0078 
0079                 partition@7f80000 {
0080                         reg = <0x07f80000 0x00080000>;
0081                         label = "u-boot-nor";
0082                         read-only;
0083                 };
0084         };
0085 
0086         nand@2,0 {
0087                 #address-cells = <1>;
0088                 #size-cells = <1>;
0089                 compatible = "fsl,elbc-fcm-nand";
0090                 reg = <0x2 0x0 0x40000>;
0091 
0092                 partition@0 {
0093                         reg = <0x0 0x02000000>;
0094                         label = "u-boot-nand";
0095                         read-only;
0096                 };
0097 
0098                 partition@2000000 {
0099                         reg = <0x02000000 0x10000000>;
0100                         label = "jffs2-nand";
0101                 };
0102 
0103                 partition@12000000 {
0104                         reg = <0x12000000 0x10000000>;
0105                         label = "ramdisk-nand";
0106                         read-only;
0107                 };
0108 
0109                 partition@22000000 {
0110                         reg = <0x22000000 0x04000000>;
0111                         label = "kernel-nand";
0112                 };
0113 
0114                 partition@26000000 {
0115                         reg = <0x26000000 0x01000000>;
0116                         label = "dtb-nand";
0117                         read-only;
0118                 };
0119 
0120                 partition@27000000 {
0121                         reg = <0x27000000 0x19000000>;
0122                         label = "reserved-nand";
0123                 };
0124         };
0125 
0126         board-control@3,0 {
0127                 compatible = "fsl,p1022ds-fpga", "fsl,fpga-ngpixis";
0128                 reg = <3 0 0x30>;
0129                 interrupt-parent = <&mpic>;
0130                 /*
0131                  * IRQ8 is generated if the "EVENT" switch is pressed
0132                  * and PX_CTL[EVESEL] is set to 00.
0133                  */
0134                 interrupts = <8 0 0 0>;
0135         };
0136 };
0137 
0138 &board_soc {
0139         i2c@3100 {
0140                 wm8776:codec@1a {
0141                         compatible = "wlf,wm8776";
0142                         reg = <0x1a>;
0143                         /*
0144                          * clock-frequency will be set by U-Boot if
0145                          * the clock is enabled.
0146                          */
0147                 };
0148                 rtc@68 {
0149                         compatible = "dallas,ds3232";
0150                         reg = <0x68>;
0151                         interrupts = <0x1 0x1 0 0>;
0152                 };
0153                 adt7461@4c {
0154                         compatible = "adi,adt7461";
0155                         reg = <0x4c>;
0156                 };
0157         };
0158 
0159         spi@7000 {
0160                 flash@0 {
0161                         #address-cells = <1>;
0162                         #size-cells = <1>;
0163                         compatible = "spansion,s25sl12801", "jedec,spi-nor";
0164                         reg = <0>;
0165                         spi-max-frequency = <40000000>; /* input clock */
0166 
0167                         partition@0 {
0168                                 label = "u-boot-spi";
0169                                 reg = <0x00000000 0x00100000>;
0170                                 read-only;
0171                         };
0172                         partition@100000 {
0173                                 label = "kernel-spi";
0174                                 reg = <0x00100000 0x00500000>;
0175                                 read-only;
0176                         };
0177                         partition@600000 {
0178                                 label = "dtb-spi";
0179                                 reg = <0x00600000 0x00100000>;
0180                                 read-only;
0181                         };
0182                         partition@700000 {
0183                                 label = "file system-spi";
0184                                 reg = <0x00700000 0x00900000>;
0185                         };
0186                 };
0187         };
0188 
0189         ssi@15000 {
0190                 fsl,mode = "i2s-slave";
0191                 codec-handle = <&wm8776>;
0192                 fsl,ssi-asynchronous;
0193         };
0194 
0195         usb@22000 {
0196                 phy_type = "ulpi";
0197         };
0198 
0199         usb@23000 {
0200                 status = "disabled";
0201         };
0202 
0203         mdio@24000 {
0204                 phy0: ethernet-phy@0 {
0205                         interrupts = <3 1 0 0>;
0206                         reg = <0x1>;
0207                 };
0208                 phy1: ethernet-phy@1 {
0209                         interrupts = <9 1 0 0>;
0210                         reg = <0x2>;
0211                 };
0212                 tbi-phy@2 {
0213                         device_type = "tbi-phy";
0214                         reg = <0x2>;
0215                 };
0216         };
0217 
0218         ptp_clock@b0e00 {
0219                 compatible = "fsl,etsec-ptp";
0220                 reg = <0xb0e00 0xb0>;
0221                 interrupts = <68 2 0 0 69 2 0 0>;
0222                 fsl,tclk-period = <5>;
0223                 fsl,tmr-prsc    = <2>;
0224                 fsl,tmr-add     = <0xc01ebd3d>;
0225                 fsl,tmr-fiper1  = <999999995>;
0226                 fsl,tmr-fiper2  = <99990>;
0227                 fsl,max-adj     = <266499999>;
0228         };
0229 
0230         ethernet@b0000 {
0231                 phy-handle = <&phy0>;
0232                 phy-connection-type = "rgmii-id";
0233         };
0234 
0235         ethernet@b1000 {
0236                 phy-handle = <&phy1>;
0237                 phy-connection-type = "rgmii-id";
0238         };
0239 };