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