12e36db14SWarner Losh/*- 22e36db14SWarner Losh * Copyright (c) 2017 Ruslan Bukin <br@bsdpad.com> 32e36db14SWarner Losh * All rights reserved. 42e36db14SWarner Losh * 52e36db14SWarner Losh * This software was developed by SRI International and the University of 62e36db14SWarner Losh * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 72e36db14SWarner Losh * ("CTSRD"), as part of the DARPA CRASH research programme. 82e36db14SWarner Losh * 92e36db14SWarner Losh * Redistribution and use in source and binary forms, with or without 102e36db14SWarner Losh * modification, are permitted provided that the following conditions 112e36db14SWarner Losh * are met: 122e36db14SWarner Losh * 1. Redistributions of source code must retain the above copyright 132e36db14SWarner Losh * notice, this list of conditions and the following disclaimer. 142e36db14SWarner Losh * 2. Redistributions in binary form must reproduce the above copyright 152e36db14SWarner Losh * notice, this list of conditions and the following disclaimer in the 162e36db14SWarner Losh * documentation and/or other materials provided with the distribution. 172e36db14SWarner Losh * 182e36db14SWarner Losh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 192e36db14SWarner Losh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 202e36db14SWarner Losh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 212e36db14SWarner Losh * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 222e36db14SWarner Losh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 232e36db14SWarner Losh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 242e36db14SWarner Losh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 252e36db14SWarner Losh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 262e36db14SWarner Losh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 272e36db14SWarner Losh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 282e36db14SWarner Losh * SUCH DAMAGE. 292e36db14SWarner Losh */ 302e36db14SWarner Losh 312e36db14SWarner Losh/dts-v1/; 322e36db14SWarner Losh#include "socfpga_arria10_socdk.dtsi" 332e36db14SWarner Losh 342e36db14SWarner Losh/ { 352e36db14SWarner Losh model = "Altera SOCFPGA Arria 10"; 362e36db14SWarner Losh compatible = "altr,socfpga-arria10", "altr,socfpga"; 372e36db14SWarner Losh 382e36db14SWarner Losh /* Reserve first page for secondary CPU trampoline code */ 392e36db14SWarner Losh memreserve = < 0x00000000 0x1000 >; 402e36db14SWarner Losh 412e36db14SWarner Losh soc { 422e36db14SWarner Losh /* Local timer */ 432e36db14SWarner Losh timer@ffffc600 { 442e36db14SWarner Losh clock-frequency = <200000000>; 452e36db14SWarner Losh }; 462e36db14SWarner Losh 472e36db14SWarner Losh /* Global timer */ 482e36db14SWarner Losh global_timer: timer@ffffc200 { 492e36db14SWarner Losh compatible = "arm,cortex-a9-global-timer"; 502e36db14SWarner Losh reg = <0xffffc200 0x20>; 512e36db14SWarner Losh interrupts = <1 11 0x301>; 522e36db14SWarner Losh clock-frequency = <200000000>; 532e36db14SWarner Losh }; 542e36db14SWarner Losh }; 552e36db14SWarner Losh 562e36db14SWarner Losh chosen { 572e36db14SWarner Losh stdin = "serial1"; 582e36db14SWarner Losh stdout = "serial1"; 592e36db14SWarner Losh }; 602e36db14SWarner Losh}; 612e36db14SWarner Losh 622e36db14SWarner Losh&uart1 { 632e36db14SWarner Losh clock-frequency = < 50000000 >; 642e36db14SWarner Losh}; 652e36db14SWarner Losh 662e36db14SWarner Losh&mmc { 672e36db14SWarner Losh status = "okay"; 682e36db14SWarner Losh num-slots = <1>; 692e36db14SWarner Losh cap-sd-highspeed; 702e36db14SWarner Losh broken-cd; 712e36db14SWarner Losh bus-width = <4>; 722e36db14SWarner Losh bus-frequency = <200000000>; 732e36db14SWarner Losh}; 742e36db14SWarner Losh 752e36db14SWarner Losh&i2c1 { 762e36db14SWarner Losh lcd@28 { 772e36db14SWarner Losh compatible = "newhaven,nhd-0216k3z-nsw-bbw"; 782e36db14SWarner Losh reg = <0x28>; 792e36db14SWarner Losh }; 802e36db14SWarner Losh}; 812e36db14SWarner Losh 822e36db14SWarner Losh&usb0 { 832e36db14SWarner Losh dr_mode = "host"; 842e36db14SWarner Losh}; 85*05439eb5SRuslan Bukin 86*05439eb5SRuslan Bukin&qspi { 87*05439eb5SRuslan Bukin status = "okay"; 88*05439eb5SRuslan Bukin 89*05439eb5SRuslan Bukin dmas = <&pdma 24>, <&pdma 25>; 90*05439eb5SRuslan Bukin dma-names = "tx", "rx"; 91*05439eb5SRuslan Bukin 92*05439eb5SRuslan Bukin flash0: n25q00@0 { 93*05439eb5SRuslan Bukin #address-cells = <1>; 94*05439eb5SRuslan Bukin #size-cells = <1>; 95*05439eb5SRuslan Bukin compatible = "n25q00aa"; 96*05439eb5SRuslan Bukin reg = <0>; 97*05439eb5SRuslan Bukin spi-max-frequency = <100000000>; 98*05439eb5SRuslan Bukin 99*05439eb5SRuslan Bukin m25p,fast-read; 100*05439eb5SRuslan Bukin cdns,page-size = <256>; 101*05439eb5SRuslan Bukin cdns,block-size = <16>; 102*05439eb5SRuslan Bukin cdns,read-delay = <4>; 103*05439eb5SRuslan Bukin cdns,tshsl-ns = <50>; 104*05439eb5SRuslan Bukin cdns,tsd2d-ns = <50>; 105*05439eb5SRuslan Bukin cdns,tchsh-ns = <4>; 106*05439eb5SRuslan Bukin cdns,tslch-ns = <4>; 107*05439eb5SRuslan Bukin 108*05439eb5SRuslan Bukin partition@qspi-boot { 109*05439eb5SRuslan Bukin label = "boot"; 110*05439eb5SRuslan Bukin reg = <0x0 0x2720000>; 111*05439eb5SRuslan Bukin }; 112*05439eb5SRuslan Bukin 113*05439eb5SRuslan Bukin partition@qspi-rootfs { 114*05439eb5SRuslan Bukin label = "rootfs"; 115*05439eb5SRuslan Bukin reg = <0x2720000 0x58E0000>; 116*05439eb5SRuslan Bukin }; 117*05439eb5SRuslan Bukin }; 118*05439eb5SRuslan Bukin}; 119