2018-11-02 10:54:52 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR X11)
|
2015-12-01 17:09:52 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Marek Vasut <marex@denx.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "socfpga_cyclone5.dtsi"
|
2018-11-02 10:54:52 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2015-12-01 17:09:52 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "samtec VIN|ING FPGA";
|
2018-11-02 10:54:52 +00:00
|
|
|
compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";
|
2015-12-01 17:09:52 +00:00
|
|
|
|
|
|
|
chosen {
|
2018-11-02 10:54:52 +00:00
|
|
|
bootargs = "earlyprintk";
|
2018-08-13 19:34:33 +00:00
|
|
|
stdout-path = "serial0:115200n8";
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
memory@0 {
|
|
|
|
name = "memory";
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x40000000>; /* 1GB */
|
|
|
|
};
|
|
|
|
|
2015-12-01 17:09:52 +00:00
|
|
|
aliases {
|
2018-11-02 10:54:52 +00:00
|
|
|
/*
|
|
|
|
* This allow the ethaddr uboot environment variable contents
|
|
|
|
* to be added to the gmac1 device tree blob.
|
|
|
|
*/
|
2015-12-01 17:09:52 +00:00
|
|
|
ethernet0 = &gmac1;
|
2018-11-02 10:54:52 +00:00
|
|
|
ethernet1 = &gmac0;
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
hps_temp0 {
|
|
|
|
label = "BTN_0"; /* TEMP_OS */
|
|
|
|
gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPIO60 */
|
|
|
|
linux,code = <BTN_0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
hps_hkey0 {
|
|
|
|
label = "BTN_1"; /* DIS_PWR */
|
|
|
|
gpios = <&portc 19 GPIO_ACTIVE_LOW>; /* HPS_GPIO61 */
|
|
|
|
linux,code = <BTN_1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
hps_hkey1 {
|
|
|
|
label = "hps_hkey1"; /* POWER_DOWN */
|
|
|
|
gpios = <&portc 20 GPIO_ACTIVE_LOW>; /* HPS_GPIO62 */
|
|
|
|
linux,code = <KEY_POWER>;
|
|
|
|
};
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
regulator-usb-nrst {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "usb_nrst";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpio = <&portb 5 GPIO_ACTIVE_HIGH>;
|
|
|
|
startup-delay-us = <70000>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gmac1 {
|
|
|
|
status = "okay";
|
|
|
|
phy-mode = "rgmii";
|
2018-11-02 10:54:52 +00:00
|
|
|
phy-handle = <&phy1>;
|
|
|
|
|
|
|
|
snps,reset-gpio = <&porta 0 GPIO_ACTIVE_LOW>;
|
|
|
|
snps,reset-active-low;
|
|
|
|
snps,reset-delays-us = <10000 10000 10000>;
|
2015-12-01 17:09:52 +00:00
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
mdio0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "snps,dwmac-mdio";
|
|
|
|
phy1: ethernet-phy@1 {
|
|
|
|
reg = <1>;
|
|
|
|
rxd0-skew-ps = <0>;
|
|
|
|
rxd1-skew-ps = <0>;
|
|
|
|
rxd2-skew-ps = <0>;
|
|
|
|
rxd3-skew-ps = <0>;
|
|
|
|
txen-skew-ps = <0>;
|
2019-03-04 17:40:33 +00:00
|
|
|
txc-skew-ps = <1560>;
|
2018-11-02 10:54:52 +00:00
|
|
|
rxdv-skew-ps = <0>;
|
2019-03-04 17:40:33 +00:00
|
|
|
rxc-skew-ps = <1200>;
|
2018-11-02 10:54:52 +00:00
|
|
|
};
|
|
|
|
};
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
&gpio0 { /* GPIO 0..29 */
|
2015-12-01 17:09:52 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
&gpio1 { /* GPIO 30..57 */
|
2015-12-01 17:09:52 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
&gpio2 { /* GPIO 58..66 (HLGPI 0..13 at offset 13) */
|
2015-12-01 17:09:52 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
gpio: pca9557@1f {
|
|
|
|
compatible = "nxp,pca9557";
|
|
|
|
reg = <0x1f>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
temp: lm75@48 {
|
|
|
|
compatible = "lm75";
|
|
|
|
reg = <0x48>;
|
|
|
|
};
|
|
|
|
|
|
|
|
at24@50 {
|
|
|
|
compatible = "atmel,24c01";
|
|
|
|
pagesize = <8>;
|
|
|
|
reg = <0x50>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2cswitch@70 {
|
|
|
|
compatible = "nxp,pca9548";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x70>;
|
|
|
|
|
|
|
|
i2c@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@2 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@3 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@4 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@5 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <5>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@6 { /* Backplane EEPROM */
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <6>;
|
|
|
|
eeprom@51 {
|
|
|
|
compatible = "atmel,24c01";
|
|
|
|
pagesize = <8>;
|
|
|
|
reg = <0x51>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c@7 { /* Power board EEPROM */
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <7>;
|
|
|
|
eeprom@51 {
|
|
|
|
compatible = "atmel,24c01";
|
|
|
|
pagesize = <8>;
|
|
|
|
reg = <0x51>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c1 {
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
|
|
|
|
at24@50 {
|
|
|
|
compatible = "atmel,24c02";
|
|
|
|
pagesize = <8>;
|
|
|
|
reg = <0x50>;
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&qspi {
|
|
|
|
status = "okay";
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
n25q128@0 {
|
2015-12-01 17:09:52 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2018-11-02 10:54:52 +00:00
|
|
|
compatible = "n25q128";
|
|
|
|
reg = <0>; /* chip select */
|
|
|
|
spi-max-frequency = <100000000>;
|
2015-12-01 17:09:52 +00:00
|
|
|
m25p,fast-read;
|
2018-11-02 10:54:52 +00:00
|
|
|
|
|
|
|
cdns,page-size = <256>;
|
|
|
|
cdns,block-size = <16>;
|
|
|
|
cdns,read-delay = <4>;
|
2018-01-23 23:13:10 +00:00
|
|
|
cdns,tshsl-ns = <50>;
|
|
|
|
cdns,tsd2d-ns = <50>;
|
|
|
|
cdns,tchsh-ns = <4>;
|
|
|
|
cdns,tslch-ns = <4>;
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
n25q00@1 {
|
2015-12-01 17:09:52 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2018-11-02 10:54:52 +00:00
|
|
|
compatible = "n25q00";
|
|
|
|
reg = <1>; /* chip select */
|
|
|
|
spi-max-frequency = <100000000>;
|
2015-12-01 17:09:52 +00:00
|
|
|
m25p,fast-read;
|
2018-11-02 10:54:52 +00:00
|
|
|
|
|
|
|
cdns,page-size = <256>;
|
|
|
|
cdns,block-size = <16>;
|
|
|
|
cdns,read-delay = <4>;
|
2018-01-23 23:13:10 +00:00
|
|
|
cdns,tshsl-ns = <50>;
|
|
|
|
cdns,tsd2d-ns = <50>;
|
|
|
|
cdns,tchsh-ns = <4>;
|
|
|
|
cdns,tslch-ns = <4>;
|
2015-12-01 17:09:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0 {
|
2018-11-02 10:54:52 +00:00
|
|
|
dr_mode = "host";
|
2015-12-01 17:09:52 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1 {
|
2018-11-02 10:54:52 +00:00
|
|
|
dr_mode = "peripheral";
|
2015-12-01 17:09:52 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|