1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+ 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2013 Altera Corporation <www.altera.com> 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot#include "socfpga_arria5.dtsi" 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot/ { 9*f126890aSEmmanuel Vadot model = "Altera SOCFPGA Arria V SoC Development Kit"; 10*f126890aSEmmanuel Vadot compatible = "altr,socfpga-arria5-socdk", "altr,socfpga-arria5", "altr,socfpga"; 11*f126890aSEmmanuel Vadot 12*f126890aSEmmanuel Vadot chosen { 13*f126890aSEmmanuel Vadot bootargs = "earlyprintk"; 14*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 15*f126890aSEmmanuel Vadot }; 16*f126890aSEmmanuel Vadot 17*f126890aSEmmanuel Vadot memory@0 { 18*f126890aSEmmanuel Vadot name = "memory"; 19*f126890aSEmmanuel Vadot device_type = "memory"; 20*f126890aSEmmanuel Vadot reg = <0x0 0x40000000>; /* 1GB */ 21*f126890aSEmmanuel Vadot }; 22*f126890aSEmmanuel Vadot 23*f126890aSEmmanuel Vadot aliases { 24*f126890aSEmmanuel Vadot /* this allow the ethaddr uboot environmnet variable contents 25*f126890aSEmmanuel Vadot * to be added to the gmac1 device tree blob. 26*f126890aSEmmanuel Vadot */ 27*f126890aSEmmanuel Vadot ethernet0 = &gmac1; 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot leds { 31*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 32*f126890aSEmmanuel Vadot led-hps0 { 33*f126890aSEmmanuel Vadot label = "hps_led0"; 34*f126890aSEmmanuel Vadot gpios = <&porta 0 1>; 35*f126890aSEmmanuel Vadot }; 36*f126890aSEmmanuel Vadot 37*f126890aSEmmanuel Vadot led-hps1 { 38*f126890aSEmmanuel Vadot label = "hps_led1"; 39*f126890aSEmmanuel Vadot gpios = <&portb 11 1>; 40*f126890aSEmmanuel Vadot }; 41*f126890aSEmmanuel Vadot 42*f126890aSEmmanuel Vadot led-hps2 { 43*f126890aSEmmanuel Vadot label = "hps_led2"; 44*f126890aSEmmanuel Vadot gpios = <&porta 17 1>; 45*f126890aSEmmanuel Vadot }; 46*f126890aSEmmanuel Vadot 47*f126890aSEmmanuel Vadot led-hps3 { 48*f126890aSEmmanuel Vadot label = "hps_led3"; 49*f126890aSEmmanuel Vadot gpios = <&porta 18 1>; 50*f126890aSEmmanuel Vadot }; 51*f126890aSEmmanuel Vadot }; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot regulator_3_3v: regulator { 54*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 55*f126890aSEmmanuel Vadot regulator-name = "3.3V"; 56*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 57*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 58*f126890aSEmmanuel Vadot }; 59*f126890aSEmmanuel Vadot}; 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot&gmac1 { 62*f126890aSEmmanuel Vadot status = "okay"; 63*f126890aSEmmanuel Vadot phy-mode = "rgmii"; 64*f126890aSEmmanuel Vadot 65*f126890aSEmmanuel Vadot rxd0-skew-ps = <0>; 66*f126890aSEmmanuel Vadot rxd1-skew-ps = <0>; 67*f126890aSEmmanuel Vadot rxd2-skew-ps = <0>; 68*f126890aSEmmanuel Vadot rxd3-skew-ps = <0>; 69*f126890aSEmmanuel Vadot txen-skew-ps = <0>; 70*f126890aSEmmanuel Vadot txc-skew-ps = <2600>; 71*f126890aSEmmanuel Vadot rxdv-skew-ps = <0>; 72*f126890aSEmmanuel Vadot rxc-skew-ps = <2000>; 73*f126890aSEmmanuel Vadot}; 74*f126890aSEmmanuel Vadot 75*f126890aSEmmanuel Vadot&gpio0 { 76*f126890aSEmmanuel Vadot status = "okay"; 77*f126890aSEmmanuel Vadot}; 78*f126890aSEmmanuel Vadot 79*f126890aSEmmanuel Vadot&gpio1 { 80*f126890aSEmmanuel Vadot status = "okay"; 81*f126890aSEmmanuel Vadot}; 82*f126890aSEmmanuel Vadot 83*f126890aSEmmanuel Vadot&gpio2 { 84*f126890aSEmmanuel Vadot status = "okay"; 85*f126890aSEmmanuel Vadot}; 86*f126890aSEmmanuel Vadot 87*f126890aSEmmanuel Vadot&i2c0 { 88*f126890aSEmmanuel Vadot status = "okay"; 89*f126890aSEmmanuel Vadot clock-frequency = <100000>; 90*f126890aSEmmanuel Vadot 91*f126890aSEmmanuel Vadot /* 92*f126890aSEmmanuel Vadot * adjust the falling times to decrease the i2c frequency to 50Khz 93*f126890aSEmmanuel Vadot * because the LCD module does not work at the standard 100Khz 94*f126890aSEmmanuel Vadot */ 95*f126890aSEmmanuel Vadot i2c-sda-falling-time-ns = <5000>; 96*f126890aSEmmanuel Vadot i2c-scl-falling-time-ns = <5000>; 97*f126890aSEmmanuel Vadot 98*f126890aSEmmanuel Vadot eeprom@51 { 99*f126890aSEmmanuel Vadot compatible = "atmel,24c32"; 100*f126890aSEmmanuel Vadot reg = <0x51>; 101*f126890aSEmmanuel Vadot pagesize = <32>; 102*f126890aSEmmanuel Vadot }; 103*f126890aSEmmanuel Vadot 104*f126890aSEmmanuel Vadot rtc@68 { 105*f126890aSEmmanuel Vadot compatible = "dallas,ds1339"; 106*f126890aSEmmanuel Vadot reg = <0x68>; 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot}; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot&mmc0 { 111*f126890aSEmmanuel Vadot vmmc-supply = <®ulator_3_3v>; 112*f126890aSEmmanuel Vadot vqmmc-supply = <®ulator_3_3v>; 113*f126890aSEmmanuel Vadot status = "okay"; 114*f126890aSEmmanuel Vadot}; 115*f126890aSEmmanuel Vadot 116*f126890aSEmmanuel Vadot&qspi { 117*f126890aSEmmanuel Vadot status = "okay"; 118*f126890aSEmmanuel Vadot 119*f126890aSEmmanuel Vadot flash: flash@0 { 120*f126890aSEmmanuel Vadot #address-cells = <1>; 121*f126890aSEmmanuel Vadot #size-cells = <1>; 122*f126890aSEmmanuel Vadot compatible = "micron,n25q256a", "jedec,spi-nor"; 123*f126890aSEmmanuel Vadot reg = <0>; 124*f126890aSEmmanuel Vadot spi-max-frequency = <100000000>; 125*f126890aSEmmanuel Vadot 126*f126890aSEmmanuel Vadot m25p,fast-read; 127*f126890aSEmmanuel Vadot cdns,read-delay = <4>; 128*f126890aSEmmanuel Vadot cdns,tshsl-ns = <50>; 129*f126890aSEmmanuel Vadot cdns,tsd2d-ns = <50>; 130*f126890aSEmmanuel Vadot cdns,tchsh-ns = <4>; 131*f126890aSEmmanuel Vadot cdns,tslch-ns = <4>; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot partition@qspi-boot { 134*f126890aSEmmanuel Vadot /* 8MB for raw data. */ 135*f126890aSEmmanuel Vadot label = "Flash 0 Raw Data"; 136*f126890aSEmmanuel Vadot reg = <0x0 0x800000>; 137*f126890aSEmmanuel Vadot }; 138*f126890aSEmmanuel Vadot 139*f126890aSEmmanuel Vadot partition@qspi-rootfs { 140*f126890aSEmmanuel Vadot /* 120MB for jffs2 data. */ 141*f126890aSEmmanuel Vadot label = "Flash 0 jffs2 Filesystem"; 142*f126890aSEmmanuel Vadot reg = <0x800000 0x7800000>; 143*f126890aSEmmanuel Vadot }; 144*f126890aSEmmanuel Vadot }; 145*f126890aSEmmanuel Vadot}; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot&usb1 { 148*f126890aSEmmanuel Vadot status = "okay"; 149*f126890aSEmmanuel Vadot}; 150