2 * Copyright (C) 2015 Marek Vasut <marex@denx.de>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
48 #include "socfpga_cyclone5.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
50 #include <dt-bindings/input/input.h>
53 model = "samtec VIN|ING FPGA";
54 compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";
57 bootargs = "console=ttyS0,115200";
62 device_type = "memory";
63 reg = <0x0 0x40000000>; /* 1GB */
68 * This allow the ethaddr uboot environment variable contents
69 * to be added to the gmac1 device tree blob.
75 compatible = "gpio-leds";
78 label = "hps:green:led0"; /* ALIVE_LED_GR */
79 gpios = <&portb 19 0>; /* HPS_GPIO48 */
80 linux,default-trigger = "heartbeat";
84 label = "hps:red:led0"; /* ALIVE_LED_RD */
85 gpios = <&portb 24 0>; /* HPS_GPIO53 */
86 linux,default-trigger = "none";
90 label = "hps:green:led1"; /* LINK2HOST_LED_GR */
91 gpios = <&portb 25 0>; /* HPS_GPIO54 */
92 linux,default-trigger = "heartbeat";
96 label = "hps:red:led1"; /* LINK2HOST_LED_RD */
97 gpios = <&portc 7 0>; /* HPS_GPIO65 */
98 linux,default-trigger = "none";
103 compatible = "gpio-keys";
106 label = "BTN_0"; /* TEMP_OS */
107 gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPIO60 */
108 linux,code = <BTN_0>;
112 label = "BTN_1"; /* DIS_PWR */
113 gpios = <&portc 19 GPIO_ACTIVE_LOW>; /* HPS_GPIO61 */
114 linux,code = <BTN_1>;
118 label = "hps_hkey1"; /* POWER_DOWN */
119 gpios = <&portc 20 GPIO_ACTIVE_LOW>; /* HPS_GPIO62 */
120 linux,code = <KEY_POWER>;
125 compatible = "regulator-fixed";
126 regulator-name = "usb_nrst";
127 regulator-min-microvolt = <5000000>;
128 regulator-max-microvolt = <5000000>;
129 gpio = <&portb 5 GPIO_ACTIVE_HIGH>;
130 startup-delay-us = <70000>;
139 phy-handle = <&phy1>;
141 snps,reset-gpio = <&porta 0 GPIO_ACTIVE_LOW>;
142 snps,reset-active-low;
143 snps,reset-delays-us = <10000 10000 10000>;
146 #address-cells = <1>;
148 compatible = "snps,dwmac-mdio";
149 phy1: ethernet-phy@1 {
156 txc-skew-ps = <2600>;
158 rxc-skew-ps = <2000>;
163 &gpio0 { /* GPIO 0..29 */
167 &gpio1 { /* GPIO 30..57 */
171 &gpio2 { /* GPIO 58..66 (HLGPI 0..13 at offset 13) */
179 compatible = "nxp,pca9557";
191 compatible = "at24,24c01";
197 compatible = "nxp,pca9548";
198 #address-cells = <1>;
203 #address-cells = <1>;
207 compatible = "at,24c01";
214 #address-cells = <1>;
218 compatible = "at,24c01";
225 #address-cells = <1>;
229 compatible = "at,24c01";
236 #address-cells = <1>;
240 compatible = "at,24c01";
247 #address-cells = <1>;
251 compatible = "at,24c01";
258 #address-cells = <1>;
262 compatible = "at,24c01";
269 #address-cells = <1>;
273 compatible = "at,24c01";
280 #address-cells = <1>;
284 compatible = "at,24c01";
294 clock-frequency = <100000>;
297 compatible = "at24,24c02";
309 dr_mode = "peripheral";