1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR X11) 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2015 Marek Vasut <marex@denx.de> 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot#include "socfpga_cyclone5.dtsi" 7*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 8*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 9*f126890aSEmmanuel Vadot 10*f126890aSEmmanuel Vadot/ { 11*f126890aSEmmanuel Vadot model = "samtec VIN|ING FPGA"; 12*f126890aSEmmanuel Vadot compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga"; 13*f126890aSEmmanuel Vadot 14*f126890aSEmmanuel Vadot chosen { 15*f126890aSEmmanuel Vadot bootargs = "earlyprintk"; 16*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 17*f126890aSEmmanuel Vadot }; 18*f126890aSEmmanuel Vadot 19*f126890aSEmmanuel Vadot memory@0 { 20*f126890aSEmmanuel Vadot name = "memory"; 21*f126890aSEmmanuel Vadot device_type = "memory"; 22*f126890aSEmmanuel Vadot reg = <0x0 0x40000000>; /* 1GB */ 23*f126890aSEmmanuel Vadot }; 24*f126890aSEmmanuel Vadot 25*f126890aSEmmanuel Vadot aliases { 26*f126890aSEmmanuel Vadot /* 27*f126890aSEmmanuel Vadot * This allow the ethaddr uboot environment variable contents 28*f126890aSEmmanuel Vadot * to be added to the gmac1 device tree blob. 29*f126890aSEmmanuel Vadot */ 30*f126890aSEmmanuel Vadot ethernet0 = &gmac1; 31*f126890aSEmmanuel Vadot ethernet1 = &gmac0; 32*f126890aSEmmanuel Vadot }; 33*f126890aSEmmanuel Vadot 34*f126890aSEmmanuel Vadot gpio-keys { 35*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 36*f126890aSEmmanuel Vadot 37*f126890aSEmmanuel Vadot hps_temp0 { 38*f126890aSEmmanuel Vadot label = "BTN_0"; /* TEMP_OS */ 39*f126890aSEmmanuel Vadot gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPI5 */ 40*f126890aSEmmanuel Vadot linux,code = <BTN_0>; 41*f126890aSEmmanuel Vadot }; 42*f126890aSEmmanuel Vadot 43*f126890aSEmmanuel Vadot hps_hkey0 { 44*f126890aSEmmanuel Vadot label = "GP_SWITCH"; /* GP_SWITCH */ 45*f126890aSEmmanuel Vadot gpios = <&portc 19 GPIO_ACTIVE_LOW>; /* HPS_GPI6 */ 46*f126890aSEmmanuel Vadot linux,code = <BTN_1>; 47*f126890aSEmmanuel Vadot }; 48*f126890aSEmmanuel Vadot 49*f126890aSEmmanuel Vadot hps_hkey1 { 50*f126890aSEmmanuel Vadot label = "RESET_SWITCH"; /* RESET_SWITCH */ 51*f126890aSEmmanuel Vadot gpios = <&portc 20 GPIO_ACTIVE_LOW>; /* HPS_GPI7 */ 52*f126890aSEmmanuel Vadot linux,code = <BTN_2>; 53*f126890aSEmmanuel Vadot }; 54*f126890aSEmmanuel Vadot 55*f126890aSEmmanuel Vadot hps_hkey2 { 56*f126890aSEmmanuel Vadot label = "POWER_DOWN"; /* POWER_DOWN */ 57*f126890aSEmmanuel Vadot gpios = <&portc 4 GPIO_ACTIVE_LOW>; /* HPS_GPIO62 */ 58*f126890aSEmmanuel Vadot linux,code = <KEY_POWER>; 59*f126890aSEmmanuel Vadot }; 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot hps_hkey3 { 62*f126890aSEmmanuel Vadot label = "SENSE"; /* SENSE */ 63*f126890aSEmmanuel Vadot gpios = <&porta 9 GPIO_ACTIVE_LOW>; /* HPS_GPIO9 */ 64*f126890aSEmmanuel Vadot linux,code = <BTN_3>; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot }; 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot regulator-usb-nrst { 69*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 70*f126890aSEmmanuel Vadot regulator-name = "usb_nrst"; 71*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 72*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 73*f126890aSEmmanuel Vadot gpio = <&portb 5 GPIO_ACTIVE_HIGH>; 74*f126890aSEmmanuel Vadot startup-delay-us = <70000>; 75*f126890aSEmmanuel Vadot enable-active-high; 76*f126890aSEmmanuel Vadot regulator-always-on; 77*f126890aSEmmanuel Vadot }; 78*f126890aSEmmanuel Vadot}; 79*f126890aSEmmanuel Vadot 80*f126890aSEmmanuel Vadot&gmac1 { 81*f126890aSEmmanuel Vadot status = "okay"; 82*f126890aSEmmanuel Vadot phy-mode = "rgmii"; 83*f126890aSEmmanuel Vadot phy-handle = <&phy1>; 84*f126890aSEmmanuel Vadot 85*f126890aSEmmanuel Vadot snps,reset-gpio = <&porta 0 GPIO_ACTIVE_LOW>; 86*f126890aSEmmanuel Vadot snps,reset-active-low; 87*f126890aSEmmanuel Vadot snps,reset-delays-us = <10000 10000 10000>; 88*f126890aSEmmanuel Vadot 89*f126890aSEmmanuel Vadot mdio0 { 90*f126890aSEmmanuel Vadot #address-cells = <1>; 91*f126890aSEmmanuel Vadot #size-cells = <0>; 92*f126890aSEmmanuel Vadot compatible = "snps,dwmac-mdio"; 93*f126890aSEmmanuel Vadot phy1: ethernet-phy@1 { 94*f126890aSEmmanuel Vadot reg = <1>; 95*f126890aSEmmanuel Vadot rxd0-skew-ps = <0>; 96*f126890aSEmmanuel Vadot rxd1-skew-ps = <0>; 97*f126890aSEmmanuel Vadot rxd2-skew-ps = <0>; 98*f126890aSEmmanuel Vadot rxd3-skew-ps = <0>; 99*f126890aSEmmanuel Vadot txd0-skew-ps = <0>; 100*f126890aSEmmanuel Vadot txd1-skew-ps = <0>; 101*f126890aSEmmanuel Vadot txd2-skew-ps = <0>; 102*f126890aSEmmanuel Vadot txd3-skew-ps = <0>; 103*f126890aSEmmanuel Vadot txen-skew-ps = <0>; 104*f126890aSEmmanuel Vadot txc-skew-ps = <1860>; 105*f126890aSEmmanuel Vadot rxdv-skew-ps = <0>; 106*f126890aSEmmanuel Vadot rxc-skew-ps = <1860>; 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot }; 109*f126890aSEmmanuel Vadot}; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot&gpio0 { /* GPIO 0..29 */ 112*f126890aSEmmanuel Vadot status = "okay"; 113*f126890aSEmmanuel Vadot}; 114*f126890aSEmmanuel Vadot 115*f126890aSEmmanuel Vadot&gpio1 { /* GPIO 30..57 */ 116*f126890aSEmmanuel Vadot status = "okay"; 117*f126890aSEmmanuel Vadot}; 118*f126890aSEmmanuel Vadot 119*f126890aSEmmanuel Vadot&gpio2 { /* GPIO 58..66 (HLGPI 0..13 at offset 13) */ 120*f126890aSEmmanuel Vadot status = "okay"; 121*f126890aSEmmanuel Vadot}; 122*f126890aSEmmanuel Vadot 123*f126890aSEmmanuel Vadot&i2c0 { 124*f126890aSEmmanuel Vadot status = "okay"; 125*f126890aSEmmanuel Vadot 126*f126890aSEmmanuel Vadot gpio: pca9557@1f { 127*f126890aSEmmanuel Vadot compatible = "nxp,pca9557"; 128*f126890aSEmmanuel Vadot reg = <0x1f>; 129*f126890aSEmmanuel Vadot gpio-controller; 130*f126890aSEmmanuel Vadot #gpio-cells = <2>; 131*f126890aSEmmanuel Vadot }; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot temp: lm75@48 { 134*f126890aSEmmanuel Vadot compatible = "lm75"; 135*f126890aSEmmanuel Vadot reg = <0x48>; 136*f126890aSEmmanuel Vadot }; 137*f126890aSEmmanuel Vadot 138*f126890aSEmmanuel Vadot at24@50 { 139*f126890aSEmmanuel Vadot compatible = "atmel,24c01"; 140*f126890aSEmmanuel Vadot pagesize = <8>; 141*f126890aSEmmanuel Vadot reg = <0x50>; 142*f126890aSEmmanuel Vadot }; 143*f126890aSEmmanuel Vadot 144*f126890aSEmmanuel Vadot i2c-mux@70 { 145*f126890aSEmmanuel Vadot compatible = "nxp,pca9548"; 146*f126890aSEmmanuel Vadot #address-cells = <1>; 147*f126890aSEmmanuel Vadot #size-cells = <0>; 148*f126890aSEmmanuel Vadot reg = <0x70>; 149*f126890aSEmmanuel Vadot 150*f126890aSEmmanuel Vadot i2c@0 { 151*f126890aSEmmanuel Vadot #address-cells = <1>; 152*f126890aSEmmanuel Vadot #size-cells = <0>; 153*f126890aSEmmanuel Vadot reg = <0>; 154*f126890aSEmmanuel Vadot }; 155*f126890aSEmmanuel Vadot 156*f126890aSEmmanuel Vadot i2c@1 { 157*f126890aSEmmanuel Vadot #address-cells = <1>; 158*f126890aSEmmanuel Vadot #size-cells = <0>; 159*f126890aSEmmanuel Vadot reg = <1>; 160*f126890aSEmmanuel Vadot }; 161*f126890aSEmmanuel Vadot 162*f126890aSEmmanuel Vadot i2c@2 { 163*f126890aSEmmanuel Vadot #address-cells = <1>; 164*f126890aSEmmanuel Vadot #size-cells = <0>; 165*f126890aSEmmanuel Vadot reg = <2>; 166*f126890aSEmmanuel Vadot }; 167*f126890aSEmmanuel Vadot 168*f126890aSEmmanuel Vadot i2c@3 { 169*f126890aSEmmanuel Vadot #address-cells = <1>; 170*f126890aSEmmanuel Vadot #size-cells = <0>; 171*f126890aSEmmanuel Vadot reg = <3>; 172*f126890aSEmmanuel Vadot }; 173*f126890aSEmmanuel Vadot 174*f126890aSEmmanuel Vadot i2c@4 { 175*f126890aSEmmanuel Vadot #address-cells = <1>; 176*f126890aSEmmanuel Vadot #size-cells = <0>; 177*f126890aSEmmanuel Vadot reg = <4>; 178*f126890aSEmmanuel Vadot }; 179*f126890aSEmmanuel Vadot 180*f126890aSEmmanuel Vadot i2c@5 { 181*f126890aSEmmanuel Vadot #address-cells = <1>; 182*f126890aSEmmanuel Vadot #size-cells = <0>; 183*f126890aSEmmanuel Vadot reg = <5>; 184*f126890aSEmmanuel Vadot }; 185*f126890aSEmmanuel Vadot 186*f126890aSEmmanuel Vadot i2c@6 { /* Backplane EEPROM */ 187*f126890aSEmmanuel Vadot #address-cells = <1>; 188*f126890aSEmmanuel Vadot #size-cells = <0>; 189*f126890aSEmmanuel Vadot reg = <6>; 190*f126890aSEmmanuel Vadot eeprom@51 { 191*f126890aSEmmanuel Vadot compatible = "atmel,24c01"; 192*f126890aSEmmanuel Vadot pagesize = <8>; 193*f126890aSEmmanuel Vadot reg = <0x51>; 194*f126890aSEmmanuel Vadot }; 195*f126890aSEmmanuel Vadot }; 196*f126890aSEmmanuel Vadot 197*f126890aSEmmanuel Vadot i2c@7 { /* Power board EEPROM */ 198*f126890aSEmmanuel Vadot #address-cells = <1>; 199*f126890aSEmmanuel Vadot #size-cells = <0>; 200*f126890aSEmmanuel Vadot reg = <7>; 201*f126890aSEmmanuel Vadot eeprom@51 { 202*f126890aSEmmanuel Vadot compatible = "atmel,24c01"; 203*f126890aSEmmanuel Vadot pagesize = <8>; 204*f126890aSEmmanuel Vadot reg = <0x51>; 205*f126890aSEmmanuel Vadot }; 206*f126890aSEmmanuel Vadot }; 207*f126890aSEmmanuel Vadot }; 208*f126890aSEmmanuel Vadot}; 209*f126890aSEmmanuel Vadot 210*f126890aSEmmanuel Vadot&i2c1 { 211*f126890aSEmmanuel Vadot status = "okay"; 212*f126890aSEmmanuel Vadot clock-frequency = <100000>; 213*f126890aSEmmanuel Vadot 214*f126890aSEmmanuel Vadot at24@50 { 215*f126890aSEmmanuel Vadot compatible = "atmel,24c02"; 216*f126890aSEmmanuel Vadot pagesize = <8>; 217*f126890aSEmmanuel Vadot reg = <0x50>; 218*f126890aSEmmanuel Vadot }; 219*f126890aSEmmanuel Vadot}; 220*f126890aSEmmanuel Vadot 221*f126890aSEmmanuel Vadot&qspi { 222*f126890aSEmmanuel Vadot status = "okay"; 223*f126890aSEmmanuel Vadot 224*f126890aSEmmanuel Vadot flash@0 { 225*f126890aSEmmanuel Vadot #address-cells = <1>; 226*f126890aSEmmanuel Vadot #size-cells = <1>; 227*f126890aSEmmanuel Vadot compatible = "micron,n25q128", "jedec,spi-nor"; 228*f126890aSEmmanuel Vadot reg = <0>; /* chip select */ 229*f126890aSEmmanuel Vadot spi-max-frequency = <100000000>; 230*f126890aSEmmanuel Vadot m25p,fast-read; 231*f126890aSEmmanuel Vadot 232*f126890aSEmmanuel Vadot cdns,read-delay = <4>; 233*f126890aSEmmanuel Vadot cdns,tshsl-ns = <50>; 234*f126890aSEmmanuel Vadot cdns,tsd2d-ns = <50>; 235*f126890aSEmmanuel Vadot cdns,tchsh-ns = <4>; 236*f126890aSEmmanuel Vadot cdns,tslch-ns = <4>; 237*f126890aSEmmanuel Vadot }; 238*f126890aSEmmanuel Vadot 239*f126890aSEmmanuel Vadot flash@1 { 240*f126890aSEmmanuel Vadot #address-cells = <1>; 241*f126890aSEmmanuel Vadot #size-cells = <1>; 242*f126890aSEmmanuel Vadot compatible = "micron,mt25qu02g", "jedec,spi-nor"; 243*f126890aSEmmanuel Vadot reg = <1>; /* chip select */ 244*f126890aSEmmanuel Vadot spi-max-frequency = <100000000>; 245*f126890aSEmmanuel Vadot m25p,fast-read; 246*f126890aSEmmanuel Vadot 247*f126890aSEmmanuel Vadot cdns,read-delay = <4>; 248*f126890aSEmmanuel Vadot cdns,tshsl-ns = <50>; 249*f126890aSEmmanuel Vadot cdns,tsd2d-ns = <50>; 250*f126890aSEmmanuel Vadot cdns,tchsh-ns = <4>; 251*f126890aSEmmanuel Vadot cdns,tslch-ns = <4>; 252*f126890aSEmmanuel Vadot }; 253*f126890aSEmmanuel Vadot}; 254*f126890aSEmmanuel Vadot 255*f126890aSEmmanuel Vadot&usb0 { 256*f126890aSEmmanuel Vadot dr_mode = "host"; 257*f126890aSEmmanuel Vadot status = "okay"; 258*f126890aSEmmanuel Vadot}; 259*f126890aSEmmanuel Vadot 260*f126890aSEmmanuel Vadot&usb1 { 261*f126890aSEmmanuel Vadot dr_mode = "peripheral"; 262*f126890aSEmmanuel Vadot status = "okay"; 263*f126890aSEmmanuel Vadot}; 264