1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+ 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2013 Steffen Trumtrar <s.trumtrar@pengutronix.de> 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot#include "socfpga_cyclone5.dtsi" 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot/ { 9*f126890aSEmmanuel Vadot model = "Terasic SoCkit"; 10*f126890aSEmmanuel Vadot compatible = "terasic,socfpga-cyclone5-sockit", "altr,socfpga-cyclone5", "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 33*f126890aSEmmanuel Vadot hps_led0 { 34*f126890aSEmmanuel Vadot label = "hps:blue:led0"; 35*f126890aSEmmanuel Vadot gpios = <&portb 24 0>; /* HPS_GPIO53 */ 36*f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 37*f126890aSEmmanuel Vadot }; 38*f126890aSEmmanuel Vadot 39*f126890aSEmmanuel Vadot hps_led1 { 40*f126890aSEmmanuel Vadot label = "hps:blue:led1"; 41*f126890aSEmmanuel Vadot gpios = <&portb 25 0>; /* HPS_GPIO54 */ 42*f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 43*f126890aSEmmanuel Vadot }; 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot hps_led2 { 46*f126890aSEmmanuel Vadot label = "hps:blue:led2"; 47*f126890aSEmmanuel Vadot gpios = <&portb 26 0>; /* HPS_GPIO55 */ 48*f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 49*f126890aSEmmanuel Vadot }; 50*f126890aSEmmanuel Vadot 51*f126890aSEmmanuel Vadot hps_led3 { 52*f126890aSEmmanuel Vadot label = "hps:blue:led3"; 53*f126890aSEmmanuel Vadot gpios = <&portb 27 0>; /* HPS_GPIO56 */ 54*f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot }; 57*f126890aSEmmanuel Vadot 58*f126890aSEmmanuel Vadot gpio-keys { 59*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot hps_sw0 { 62*f126890aSEmmanuel Vadot label = "hps_sw0"; 63*f126890aSEmmanuel Vadot gpios = <&portc 20 0>; /* HPS_GPI7 */ 64*f126890aSEmmanuel Vadot linux,input-type = <5>; /* EV_SW */ 65*f126890aSEmmanuel Vadot linux,code = <0x0>; /* SW_LID */ 66*f126890aSEmmanuel Vadot }; 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot hps_sw1 { 69*f126890aSEmmanuel Vadot label = "hps_sw1"; 70*f126890aSEmmanuel Vadot gpios = <&portc 19 0>; /* HPS_GPI6 */ 71*f126890aSEmmanuel Vadot linux,input-type = <5>; /* EV_SW */ 72*f126890aSEmmanuel Vadot linux,code = <0x5>; /* SW_DOCK */ 73*f126890aSEmmanuel Vadot }; 74*f126890aSEmmanuel Vadot 75*f126890aSEmmanuel Vadot hps_sw2 { 76*f126890aSEmmanuel Vadot label = "hps_sw2"; 77*f126890aSEmmanuel Vadot gpios = <&portc 18 0>; /* HPS_GPI5 */ 78*f126890aSEmmanuel Vadot linux,input-type = <5>; /* EV_SW */ 79*f126890aSEmmanuel Vadot linux,code = <0xa>; /* SW_KEYPAD_SLIDE */ 80*f126890aSEmmanuel Vadot }; 81*f126890aSEmmanuel Vadot 82*f126890aSEmmanuel Vadot hps_sw3 { 83*f126890aSEmmanuel Vadot label = "hps_sw3"; 84*f126890aSEmmanuel Vadot gpios = <&portc 17 0>; /* HPS_GPI4 */ 85*f126890aSEmmanuel Vadot linux,input-type = <5>; /* EV_SW */ 86*f126890aSEmmanuel Vadot linux,code = <0xc>; /* SW_ROTATE_LOCK */ 87*f126890aSEmmanuel Vadot }; 88*f126890aSEmmanuel Vadot 89*f126890aSEmmanuel Vadot hps_hkey0 { 90*f126890aSEmmanuel Vadot label = "hps_hkey0"; 91*f126890aSEmmanuel Vadot gpios = <&portc 21 1>; /* HPS_GPI8 */ 92*f126890aSEmmanuel Vadot linux,code = <187>; /* KEY_F17 */ 93*f126890aSEmmanuel Vadot }; 94*f126890aSEmmanuel Vadot 95*f126890aSEmmanuel Vadot hps_hkey1 { 96*f126890aSEmmanuel Vadot label = "hps_hkey1"; 97*f126890aSEmmanuel Vadot gpios = <&portc 22 1>; /* HPS_GPI9 */ 98*f126890aSEmmanuel Vadot linux,code = <188>; /* KEY_F18 */ 99*f126890aSEmmanuel Vadot }; 100*f126890aSEmmanuel Vadot 101*f126890aSEmmanuel Vadot hps_hkey2 { 102*f126890aSEmmanuel Vadot label = "hps_hkey2"; 103*f126890aSEmmanuel Vadot gpios = <&portc 23 1>; /* HPS_GPI10 */ 104*f126890aSEmmanuel Vadot linux,code = <189>; /* KEY_F19 */ 105*f126890aSEmmanuel Vadot }; 106*f126890aSEmmanuel Vadot 107*f126890aSEmmanuel Vadot hps_hkey3 { 108*f126890aSEmmanuel Vadot label = "hps_hkey3"; 109*f126890aSEmmanuel Vadot gpios = <&portc 24 1>; /* HPS_GPI11 */ 110*f126890aSEmmanuel Vadot linux,code = <190>; /* KEY_F20 */ 111*f126890aSEmmanuel Vadot }; 112*f126890aSEmmanuel Vadot }; 113*f126890aSEmmanuel Vadot 114*f126890aSEmmanuel Vadot regulator_3_3v: regulator { 115*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 116*f126890aSEmmanuel Vadot regulator-name = "VCC3P3"; 117*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 118*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 119*f126890aSEmmanuel Vadot }; 120*f126890aSEmmanuel Vadot}; 121*f126890aSEmmanuel Vadot 122*f126890aSEmmanuel Vadot&gmac1 { 123*f126890aSEmmanuel Vadot status = "okay"; 124*f126890aSEmmanuel Vadot phy-mode = "rgmii"; 125*f126890aSEmmanuel Vadot 126*f126890aSEmmanuel Vadot rxd0-skew-ps = <0>; 127*f126890aSEmmanuel Vadot rxd1-skew-ps = <0>; 128*f126890aSEmmanuel Vadot rxd2-skew-ps = <0>; 129*f126890aSEmmanuel Vadot rxd3-skew-ps = <0>; 130*f126890aSEmmanuel Vadot txen-skew-ps = <0>; 131*f126890aSEmmanuel Vadot txc-skew-ps = <2600>; 132*f126890aSEmmanuel Vadot rxdv-skew-ps = <0>; 133*f126890aSEmmanuel Vadot rxc-skew-ps = <2000>; 134*f126890aSEmmanuel Vadot}; 135*f126890aSEmmanuel Vadot 136*f126890aSEmmanuel Vadot&gpio0 { /* GPIO 0..29 */ 137*f126890aSEmmanuel Vadot status = "okay"; 138*f126890aSEmmanuel Vadot}; 139*f126890aSEmmanuel Vadot 140*f126890aSEmmanuel Vadot&gpio1 { /* GPIO 30..57 */ 141*f126890aSEmmanuel Vadot status = "okay"; 142*f126890aSEmmanuel Vadot}; 143*f126890aSEmmanuel Vadot 144*f126890aSEmmanuel Vadot&gpio2 { /* GPIO 58..66 (HLGPI 0..13 at offset 13) */ 145*f126890aSEmmanuel Vadot status = "okay"; 146*f126890aSEmmanuel Vadot}; 147*f126890aSEmmanuel Vadot 148*f126890aSEmmanuel Vadot&i2c1 { 149*f126890aSEmmanuel Vadot status = "okay"; 150*f126890aSEmmanuel Vadot 151*f126890aSEmmanuel Vadot accel1: accelerometer@53 { 152*f126890aSEmmanuel Vadot compatible = "adi,adxl345"; 153*f126890aSEmmanuel Vadot reg = <0x53>; 154*f126890aSEmmanuel Vadot 155*f126890aSEmmanuel Vadot interrupt-parent = <&portc>; 156*f126890aSEmmanuel Vadot interrupts = <3 2>; 157*f126890aSEmmanuel Vadot }; 158*f126890aSEmmanuel Vadot}; 159*f126890aSEmmanuel Vadot 160*f126890aSEmmanuel Vadot&mmc0 { 161*f126890aSEmmanuel Vadot vmmc-supply = <®ulator_3_3v>; 162*f126890aSEmmanuel Vadot vqmmc-supply = <®ulator_3_3v>; 163*f126890aSEmmanuel Vadot status = "okay"; 164*f126890aSEmmanuel Vadot}; 165*f126890aSEmmanuel Vadot 166*f126890aSEmmanuel Vadot&qspi { 167*f126890aSEmmanuel Vadot status = "okay"; 168*f126890aSEmmanuel Vadot 169*f126890aSEmmanuel Vadot flash: flash@0 { 170*f126890aSEmmanuel Vadot #address-cells = <1>; 171*f126890aSEmmanuel Vadot #size-cells = <1>; 172*f126890aSEmmanuel Vadot compatible = "micron,mt25qu02g", "jedec,spi-nor"; 173*f126890aSEmmanuel Vadot reg = <0>; 174*f126890aSEmmanuel Vadot spi-max-frequency = <100000000>; 175*f126890aSEmmanuel Vadot 176*f126890aSEmmanuel Vadot m25p,fast-read; 177*f126890aSEmmanuel Vadot cdns,read-delay = <4>; 178*f126890aSEmmanuel Vadot cdns,tshsl-ns = <50>; 179*f126890aSEmmanuel Vadot cdns,tsd2d-ns = <50>; 180*f126890aSEmmanuel Vadot cdns,tchsh-ns = <4>; 181*f126890aSEmmanuel Vadot cdns,tslch-ns = <4>; 182*f126890aSEmmanuel Vadot }; 183*f126890aSEmmanuel Vadot}; 184*f126890aSEmmanuel Vadot 185*f126890aSEmmanuel Vadot&usb1 { 186*f126890aSEmmanuel Vadot status = "okay"; 187*f126890aSEmmanuel Vadot}; 188