18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * P1022 DS Device Tree Source stub (no addresses or top-level ranges) 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright 2012 Freescale Semiconductor Inc. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 78c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions are met: 88c2ecf20Sopenharmony_ci * * Redistributions of source code must retain the above copyright 98c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 108c2ecf20Sopenharmony_ci * * Redistributions in binary form must reproduce the above copyright 118c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer in the 128c2ecf20Sopenharmony_ci * documentation and/or other materials provided with the distribution. 138c2ecf20Sopenharmony_ci * * Neither the name of Freescale Semiconductor nor the 148c2ecf20Sopenharmony_ci * names of its contributors may be used to endorse or promote products 158c2ecf20Sopenharmony_ci * derived from this software without specific prior written permission. 168c2ecf20Sopenharmony_ci * 178c2ecf20Sopenharmony_ci * 188c2ecf20Sopenharmony_ci * ALTERNATIVELY, this software may be distributed under the terms of the 198c2ecf20Sopenharmony_ci * GNU General Public License ("GPL") as published by the Free Software 208c2ecf20Sopenharmony_ci * Foundation, either version 2 of that License or (at your option) any 218c2ecf20Sopenharmony_ci * later version. 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY 248c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 258c2ecf20Sopenharmony_ci * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 268c2ecf20Sopenharmony_ci * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 278c2ecf20Sopenharmony_ci * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 288c2ecf20Sopenharmony_ci * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 298c2ecf20Sopenharmony_ci * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 308c2ecf20Sopenharmony_ci * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 318c2ecf20Sopenharmony_ci * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 328c2ecf20Sopenharmony_ci * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 338c2ecf20Sopenharmony_ci */ 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci&board_lbc { 368c2ecf20Sopenharmony_ci nor@0,0 { 378c2ecf20Sopenharmony_ci #address-cells = <1>; 388c2ecf20Sopenharmony_ci #size-cells = <1>; 398c2ecf20Sopenharmony_ci compatible = "cfi-flash"; 408c2ecf20Sopenharmony_ci reg = <0x0 0x0 0x8000000>; 418c2ecf20Sopenharmony_ci bank-width = <2>; 428c2ecf20Sopenharmony_ci device-width = <1>; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci partition@0 { 458c2ecf20Sopenharmony_ci reg = <0x0 0x03000000>; 468c2ecf20Sopenharmony_ci label = "ramdisk-nor"; 478c2ecf20Sopenharmony_ci read-only; 488c2ecf20Sopenharmony_ci }; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci partition@3000000 { 518c2ecf20Sopenharmony_ci reg = <0x03000000 0x00e00000>; 528c2ecf20Sopenharmony_ci label = "diagnostic-nor"; 538c2ecf20Sopenharmony_ci read-only; 548c2ecf20Sopenharmony_ci }; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci partition@3e00000 { 578c2ecf20Sopenharmony_ci reg = <0x03e00000 0x00200000>; 588c2ecf20Sopenharmony_ci label = "dink-nor"; 598c2ecf20Sopenharmony_ci read-only; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci partition@4000000 { 638c2ecf20Sopenharmony_ci reg = <0x04000000 0x00400000>; 648c2ecf20Sopenharmony_ci label = "kernel-nor"; 658c2ecf20Sopenharmony_ci read-only; 668c2ecf20Sopenharmony_ci }; 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci partition@4400000 { 698c2ecf20Sopenharmony_ci reg = <0x04400000 0x03b00000>; 708c2ecf20Sopenharmony_ci label = "jffs2-nor"; 718c2ecf20Sopenharmony_ci }; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci partition@7f00000 { 748c2ecf20Sopenharmony_ci reg = <0x07f00000 0x00080000>; 758c2ecf20Sopenharmony_ci label = "dtb-nor"; 768c2ecf20Sopenharmony_ci read-only; 778c2ecf20Sopenharmony_ci }; 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ci partition@7f80000 { 808c2ecf20Sopenharmony_ci reg = <0x07f80000 0x00080000>; 818c2ecf20Sopenharmony_ci label = "u-boot-nor"; 828c2ecf20Sopenharmony_ci read-only; 838c2ecf20Sopenharmony_ci }; 848c2ecf20Sopenharmony_ci }; 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci nand@2,0 { 878c2ecf20Sopenharmony_ci #address-cells = <1>; 888c2ecf20Sopenharmony_ci #size-cells = <1>; 898c2ecf20Sopenharmony_ci compatible = "fsl,elbc-fcm-nand"; 908c2ecf20Sopenharmony_ci reg = <0x2 0x0 0x40000>; 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci partition@0 { 938c2ecf20Sopenharmony_ci reg = <0x0 0x02000000>; 948c2ecf20Sopenharmony_ci label = "u-boot-nand"; 958c2ecf20Sopenharmony_ci read-only; 968c2ecf20Sopenharmony_ci }; 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci partition@2000000 { 998c2ecf20Sopenharmony_ci reg = <0x02000000 0x10000000>; 1008c2ecf20Sopenharmony_ci label = "jffs2-nand"; 1018c2ecf20Sopenharmony_ci }; 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci partition@12000000 { 1048c2ecf20Sopenharmony_ci reg = <0x12000000 0x10000000>; 1058c2ecf20Sopenharmony_ci label = "ramdisk-nand"; 1068c2ecf20Sopenharmony_ci read-only; 1078c2ecf20Sopenharmony_ci }; 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ci partition@22000000 { 1108c2ecf20Sopenharmony_ci reg = <0x22000000 0x04000000>; 1118c2ecf20Sopenharmony_ci label = "kernel-nand"; 1128c2ecf20Sopenharmony_ci }; 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ci partition@26000000 { 1158c2ecf20Sopenharmony_ci reg = <0x26000000 0x01000000>; 1168c2ecf20Sopenharmony_ci label = "dtb-nand"; 1178c2ecf20Sopenharmony_ci read-only; 1188c2ecf20Sopenharmony_ci }; 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci partition@27000000 { 1218c2ecf20Sopenharmony_ci reg = <0x27000000 0x19000000>; 1228c2ecf20Sopenharmony_ci label = "reserved-nand"; 1238c2ecf20Sopenharmony_ci }; 1248c2ecf20Sopenharmony_ci }; 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ci board-control@3,0 { 1278c2ecf20Sopenharmony_ci compatible = "fsl,p1022ds-fpga", "fsl,fpga-ngpixis"; 1288c2ecf20Sopenharmony_ci reg = <3 0 0x30>; 1298c2ecf20Sopenharmony_ci interrupt-parent = <&mpic>; 1308c2ecf20Sopenharmony_ci /* 1318c2ecf20Sopenharmony_ci * IRQ8 is generated if the "EVENT" switch is pressed 1328c2ecf20Sopenharmony_ci * and PX_CTL[EVESEL] is set to 00. 1338c2ecf20Sopenharmony_ci */ 1348c2ecf20Sopenharmony_ci interrupts = <8 0 0 0>; 1358c2ecf20Sopenharmony_ci }; 1368c2ecf20Sopenharmony_ci}; 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ci&board_soc { 1398c2ecf20Sopenharmony_ci i2c@3100 { 1408c2ecf20Sopenharmony_ci wm8776:codec@1a { 1418c2ecf20Sopenharmony_ci compatible = "wlf,wm8776"; 1428c2ecf20Sopenharmony_ci reg = <0x1a>; 1438c2ecf20Sopenharmony_ci /* 1448c2ecf20Sopenharmony_ci * clock-frequency will be set by U-Boot if 1458c2ecf20Sopenharmony_ci * the clock is enabled. 1468c2ecf20Sopenharmony_ci */ 1478c2ecf20Sopenharmony_ci }; 1488c2ecf20Sopenharmony_ci rtc@68 { 1498c2ecf20Sopenharmony_ci compatible = "dallas,ds3232"; 1508c2ecf20Sopenharmony_ci reg = <0x68>; 1518c2ecf20Sopenharmony_ci interrupts = <0x1 0x1 0 0>; 1528c2ecf20Sopenharmony_ci }; 1538c2ecf20Sopenharmony_ci adt7461@4c { 1548c2ecf20Sopenharmony_ci compatible = "adi,adt7461"; 1558c2ecf20Sopenharmony_ci reg = <0x4c>; 1568c2ecf20Sopenharmony_ci }; 1578c2ecf20Sopenharmony_ci }; 1588c2ecf20Sopenharmony_ci 1598c2ecf20Sopenharmony_ci spi@7000 { 1608c2ecf20Sopenharmony_ci flash@0 { 1618c2ecf20Sopenharmony_ci #address-cells = <1>; 1628c2ecf20Sopenharmony_ci #size-cells = <1>; 1638c2ecf20Sopenharmony_ci compatible = "spansion,s25sl12801", "jedec,spi-nor"; 1648c2ecf20Sopenharmony_ci reg = <0>; 1658c2ecf20Sopenharmony_ci spi-max-frequency = <40000000>; /* input clock */ 1668c2ecf20Sopenharmony_ci 1678c2ecf20Sopenharmony_ci partition@0 { 1688c2ecf20Sopenharmony_ci label = "u-boot-spi"; 1698c2ecf20Sopenharmony_ci reg = <0x00000000 0x00100000>; 1708c2ecf20Sopenharmony_ci read-only; 1718c2ecf20Sopenharmony_ci }; 1728c2ecf20Sopenharmony_ci partition@100000 { 1738c2ecf20Sopenharmony_ci label = "kernel-spi"; 1748c2ecf20Sopenharmony_ci reg = <0x00100000 0x00500000>; 1758c2ecf20Sopenharmony_ci read-only; 1768c2ecf20Sopenharmony_ci }; 1778c2ecf20Sopenharmony_ci partition@600000 { 1788c2ecf20Sopenharmony_ci label = "dtb-spi"; 1798c2ecf20Sopenharmony_ci reg = <0x00600000 0x00100000>; 1808c2ecf20Sopenharmony_ci read-only; 1818c2ecf20Sopenharmony_ci }; 1828c2ecf20Sopenharmony_ci partition@700000 { 1838c2ecf20Sopenharmony_ci label = "file system-spi"; 1848c2ecf20Sopenharmony_ci reg = <0x00700000 0x00900000>; 1858c2ecf20Sopenharmony_ci }; 1868c2ecf20Sopenharmony_ci }; 1878c2ecf20Sopenharmony_ci }; 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci ssi@15000 { 1908c2ecf20Sopenharmony_ci fsl,mode = "i2s-slave"; 1918c2ecf20Sopenharmony_ci codec-handle = <&wm8776>; 1928c2ecf20Sopenharmony_ci fsl,ssi-asynchronous; 1938c2ecf20Sopenharmony_ci }; 1948c2ecf20Sopenharmony_ci 1958c2ecf20Sopenharmony_ci usb@22000 { 1968c2ecf20Sopenharmony_ci phy_type = "ulpi"; 1978c2ecf20Sopenharmony_ci }; 1988c2ecf20Sopenharmony_ci 1998c2ecf20Sopenharmony_ci usb@23000 { 2008c2ecf20Sopenharmony_ci status = "disabled"; 2018c2ecf20Sopenharmony_ci }; 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ci mdio@24000 { 2048c2ecf20Sopenharmony_ci phy0: ethernet-phy@0 { 2058c2ecf20Sopenharmony_ci interrupts = <3 1 0 0>; 2068c2ecf20Sopenharmony_ci reg = <0x1>; 2078c2ecf20Sopenharmony_ci }; 2088c2ecf20Sopenharmony_ci phy1: ethernet-phy@1 { 2098c2ecf20Sopenharmony_ci interrupts = <9 1 0 0>; 2108c2ecf20Sopenharmony_ci reg = <0x2>; 2118c2ecf20Sopenharmony_ci }; 2128c2ecf20Sopenharmony_ci tbi-phy@2 { 2138c2ecf20Sopenharmony_ci device_type = "tbi-phy"; 2148c2ecf20Sopenharmony_ci reg = <0x2>; 2158c2ecf20Sopenharmony_ci }; 2168c2ecf20Sopenharmony_ci }; 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci ptp_clock@b0e00 { 2198c2ecf20Sopenharmony_ci compatible = "fsl,etsec-ptp"; 2208c2ecf20Sopenharmony_ci reg = <0xb0e00 0xb0>; 2218c2ecf20Sopenharmony_ci interrupts = <68 2 0 0 69 2 0 0>; 2228c2ecf20Sopenharmony_ci fsl,tclk-period = <5>; 2238c2ecf20Sopenharmony_ci fsl,tmr-prsc = <2>; 2248c2ecf20Sopenharmony_ci fsl,tmr-add = <0xc01ebd3d>; 2258c2ecf20Sopenharmony_ci fsl,tmr-fiper1 = <999999995>; 2268c2ecf20Sopenharmony_ci fsl,tmr-fiper2 = <99990>; 2278c2ecf20Sopenharmony_ci fsl,max-adj = <266499999>; 2288c2ecf20Sopenharmony_ci }; 2298c2ecf20Sopenharmony_ci 2308c2ecf20Sopenharmony_ci ethernet@b0000 { 2318c2ecf20Sopenharmony_ci phy-handle = <&phy0>; 2328c2ecf20Sopenharmony_ci phy-connection-type = "rgmii-id"; 2338c2ecf20Sopenharmony_ci }; 2348c2ecf20Sopenharmony_ci 2358c2ecf20Sopenharmony_ci ethernet@b1000 { 2368c2ecf20Sopenharmony_ci phy-handle = <&phy1>; 2378c2ecf20Sopenharmony_ci phy-connection-type = "rgmii-id"; 2388c2ecf20Sopenharmony_ci }; 2398c2ecf20Sopenharmony_ci}; 240