0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Copyright (C) 2016 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
0004 */
0005
0006 #include "socfpga_cyclone5.dtsi"
0007 #include <dt-bindings/gpio/gpio.h>
0008 #include <dt-bindings/input/input.h>
0009
0010 / {
0011 model = "Altera SOCFPGA Cyclone V SoC Macnica Sodia board";
0012 compatible = "macnica,sodia", "altr,socfpga-cyclone5", "altr,socfpga";
0013
0014 chosen {
0015 bootargs = "earlyprintk";
0016 stdout-path = "serial0:115200n8";
0017 };
0018
0019 memory@0 {
0020 name = "memory";
0021 device_type = "memory";
0022 reg = <0x0 0x40000000>;
0023 };
0024
0025 aliases {
0026 ethernet0 = &gmac1;
0027 };
0028
0029 regulator_3_3v: regulator {
0030 compatible = "regulator-fixed";
0031 regulator-name = "3.3V";
0032 regulator-min-microvolt = <3300000>;
0033 regulator-max-microvolt = <3300000>;
0034 };
0035
0036 leds: gpio-leds {
0037 compatible = "gpio-leds";
0038
0039 hps_led0 {
0040 label = "hps:green:led0";
0041 gpios = <&portb 12 GPIO_ACTIVE_LOW>;
0042 };
0043
0044 hps_led1 {
0045 label = "hps:green:led1";
0046 gpios = <&portb 13 GPIO_ACTIVE_LOW>;
0047 };
0048
0049 hps_led2 {
0050 label = "hps:green:led2";
0051 gpios = <&portb 14 GPIO_ACTIVE_LOW>;
0052 };
0053
0054 hps_led3 {
0055 label = "hps:green:led3";
0056 gpios = <&portb 15 GPIO_ACTIVE_LOW>;
0057 };
0058 };
0059 };
0060
0061 &gmac1 {
0062 status = "okay";
0063 phy-mode = "rgmii";
0064 phy = <&phy0>;
0065
0066 mdio0 {
0067 #address-cells = <1>;
0068 #size-cells = <0>;
0069 phy0: ethernet-phy@0 {
0070 reg = <0>;
0071 rxd0-skew-ps = <0>;
0072 rxd1-skew-ps = <0>;
0073 rxd2-skew-ps = <0>;
0074 rxd3-skew-ps = <0>;
0075 rxdv-skew-ps = <0>;
0076 rxc-skew-ps = <3000>;
0077 txen-skew-ps = <0>;
0078 txc-skew-ps = <3000>;
0079 };
0080 };
0081 };
0082
0083 &gpio1 {
0084 status = "okay";
0085 };
0086
0087 &i2c0 {
0088 status = "okay";
0089
0090 eeprom@51 {
0091 compatible = "atmel,24c32";
0092 reg = <0x51>;
0093 pagesize = <32>;
0094 };
0095
0096 rtc@68 {
0097 compatible = "dallas,ds1339";
0098 reg = <0x68>;
0099 };
0100 };
0101
0102 &mmc0 {
0103 cd-gpios = <&portb 18 0>;
0104 vmmc-supply = <®ulator_3_3v>;
0105 vqmmc-supply = <®ulator_3_3v>;
0106 status = "okay";
0107 };
0108
0109 &usb1 {
0110 status = "okay";
0111 };
0112
0113 &qspi {
0114 status = "okay";
0115
0116 flash0: flash@0 {
0117 #address-cells = <1>;
0118 #size-cells = <1>;
0119 compatible = "micron,n25q512a", "jedec,spi-nor";
0120 reg = <0>;
0121 spi-max-frequency = <100000000>;
0122
0123 m25p,fast-read;
0124 cdns,page-size = <256>;
0125 cdns,block-size = <16>;
0126 cdns,read-delay = <4>;
0127 cdns,tshsl-ns = <50>;
0128 cdns,tsd2d-ns = <50>;
0129 cdns,tchsh-ns = <4>;
0130 cdns,tslch-ns = <4>;
0131 };
0132 };