]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/socfpga_cyclone5_sodia.dts
Merge tag 'gvt-next-2018-09-04' of https://github.com/intel/gvt-linux into drm-intel...
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / socfpga_cyclone5_sodia.dts
CommitLineData
73c7d420
NI
1/*
2 * Copyright (C) 2016 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "socfpga_cyclone5.dtsi"
19#include <dt-bindings/gpio/gpio.h>
20#include <dt-bindings/input/input.h>
21
22/ {
23 model = "Altera SOCFPGA Cyclone V SoC Macnica Sodia board";
d1da6635 24 compatible = "macnica,sodia", "altr,socfpga-cyclone5", "altr,socfpga";
73c7d420
NI
25
26 chosen {
27 bootargs = "earlyprintk";
28 stdout-path = "serial0:115200n8";
29 };
30
332ddfab 31 memory@0 {
73c7d420
NI
32 name = "memory";
33 device_type = "memory";
34 reg = <0x0 0x40000000>;
35 };
36
37 aliases {
38 ethernet0 = &gmac1;
39 };
40
41 regulator_3_3v: 3-3-v-regulator {
42 compatible = "regulator-fixed";
43 regulator-name = "3.3V";
44 regulator-min-microvolt = <3300000>;
45 regulator-max-microvolt = <3300000>;
46 };
47
48 leds: gpio-leds {
49 compatible = "gpio-leds";
50
51 hps_led0 {
52 label = "hps:green:led0";
53 gpios = <&portb 12 GPIO_ACTIVE_LOW>;
54 };
55
56 hps_led1 {
57 label = "hps:green:led1";
58 gpios = <&portb 13 GPIO_ACTIVE_LOW>;
59 };
60
61 hps_led2 {
62 label = "hps:green:led2";
63 gpios = <&portb 14 GPIO_ACTIVE_LOW>;
64 };
65
66 hps_led3 {
67 label = "hps:green:led3";
68 gpios = <&portb 15 GPIO_ACTIVE_LOW>;
69 };
70 };
71};
72
73&gmac1 {
74 status = "okay";
75 phy-mode = "rgmii";
76 phy = <&phy0>;
77
78 mdio0 {
79 #address-cells = <1>;
80 #size-cells = <0>;
81 phy0: ethernet-phy@0 {
82 reg = <0>;
83 rxd0-skew-ps = <0>;
84 rxd1-skew-ps = <0>;
85 rxd2-skew-ps = <0>;
86 rxd3-skew-ps = <0>;
87 rxdv-skew-ps = <0>;
88 rxc-skew-ps = <3000>;
89 txen-skew-ps = <0>;
90 txc-skew-ps = <3000>;
91 };
92 };
93};
94
95&gpio1 {
96 status = "okay";
97};
98
99&i2c0 {
100 status = "okay";
101
102 eeprom@51 {
103 compatible = "atmel,24c32";
104 reg = <0x51>;
105 pagesize = <32>;
106 };
107
108 rtc@68 {
109 compatible = "dallas,ds1339";
110 reg = <0x68>;
111 };
112};
113
114&mmc0 {
115 cd-gpios = <&portb 18 0>;
116 vmmc-supply = <&regulator_3_3v>;
117 vqmmc-supply = <&regulator_3_3v>;
118 status = "okay";
119};
120
121&usb1 {
122 status = "okay";
123};
b5990280
NI
124
125&qspi {
126 status = "okay";
127
128 flash0: n25q512a@0 {
129 #address-cells = <1>;
130 #size-cells = <1>;
131 compatible = "n25q512a";
132 reg = <0>;
133 spi-max-frequency = <100000000>;
134
135 m25p,fast-read;
136 cdns,page-size = <256>;
137 cdns,block-size = <16>;
138 cdns,read-delay = <4>;
139 cdns,tshsl-ns = <50>;
140 cdns,tsd2d-ns = <50>;
141 cdns,tchsh-ns = <4>;
142 cdns,tslch-ns = <4>;
143 };
144};