.. | .. |
---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR X11) |
---|
1 | 2 | /* |
---|
2 | | - * Copyright (C) 2015 Marek Vasut <marex@denx.de> |
---|
3 | | - * |
---|
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 |
---|
7 | | - * whole. |
---|
8 | | - * |
---|
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. |
---|
13 | | - * |
---|
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. |
---|
18 | | - * |
---|
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, |
---|
22 | | - * MA 02110-1301 USA |
---|
23 | | - * |
---|
24 | | - * Or, alternatively, |
---|
25 | | - * |
---|
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 |
---|
33 | | - * conditions: |
---|
34 | | - * |
---|
35 | | - * The above copyright notice and this permission notice shall be |
---|
36 | | - * included in all copies or substantial portions of the Software. |
---|
37 | | - * |
---|
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. |
---|
| 3 | + * Copyright (C) 2015 Marek Vasut <marex@denx.de> |
---|
46 | 4 | */ |
---|
47 | 5 | |
---|
48 | 6 | #include "socfpga_cyclone5.dtsi" |
---|
.. | .. |
---|
54 | 12 | compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga"; |
---|
55 | 13 | |
---|
56 | 14 | chosen { |
---|
57 | | - bootargs = "console=ttyS0,115200"; |
---|
| 15 | + bootargs = "earlyprintk"; |
---|
| 16 | + stdout-path = "serial0:115200n8"; |
---|
58 | 17 | }; |
---|
59 | 18 | |
---|
60 | 19 | memory@0 { |
---|
.. | .. |
---|
77 | 36 | |
---|
78 | 37 | hps_temp0 { |
---|
79 | 38 | label = "BTN_0"; /* TEMP_OS */ |
---|
80 | | - gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPIO60 */ |
---|
| 39 | + gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPI5 */ |
---|
81 | 40 | linux,code = <BTN_0>; |
---|
82 | 41 | }; |
---|
83 | 42 | |
---|
84 | 43 | hps_hkey0 { |
---|
85 | | - label = "BTN_1"; /* DIS_PWR */ |
---|
86 | | - gpios = <&portc 19 GPIO_ACTIVE_LOW>; /* HPS_GPIO61 */ |
---|
| 44 | + label = "GP_SWITCH"; /* GP_SWITCH */ |
---|
| 45 | + gpios = <&portc 19 GPIO_ACTIVE_LOW>; /* HPS_GPI6 */ |
---|
87 | 46 | linux,code = <BTN_1>; |
---|
88 | 47 | }; |
---|
89 | 48 | |
---|
90 | 49 | hps_hkey1 { |
---|
91 | | - label = "hps_hkey1"; /* POWER_DOWN */ |
---|
92 | | - gpios = <&portc 20 GPIO_ACTIVE_LOW>; /* HPS_GPIO62 */ |
---|
| 50 | + label = "RESET_SWITCH"; /* RESET_SWITCH */ |
---|
| 51 | + gpios = <&portc 20 GPIO_ACTIVE_LOW>; /* HPS_GPI7 */ |
---|
| 52 | + linux,code = <BTN_2>; |
---|
| 53 | + }; |
---|
| 54 | + |
---|
| 55 | + hps_hkey2 { |
---|
| 56 | + label = "POWER_DOWN"; /* POWER_DOWN */ |
---|
| 57 | + gpios = <&portc 4 GPIO_ACTIVE_LOW>; /* HPS_GPIO62 */ |
---|
93 | 58 | linux,code = <KEY_POWER>; |
---|
| 59 | + }; |
---|
| 60 | + |
---|
| 61 | + hps_hkey3 { |
---|
| 62 | + label = "SENSE"; /* SENSE */ |
---|
| 63 | + gpios = <&porta 9 GPIO_ACTIVE_LOW>; /* HPS_GPIO9 */ |
---|
| 64 | + linux,code = <BTN_3>; |
---|
94 | 65 | }; |
---|
95 | 66 | }; |
---|
96 | 67 | |
---|
.. | .. |
---|
125 | 96 | rxd1-skew-ps = <0>; |
---|
126 | 97 | rxd2-skew-ps = <0>; |
---|
127 | 98 | rxd3-skew-ps = <0>; |
---|
| 99 | + txd0-skew-ps = <0>; |
---|
| 100 | + txd1-skew-ps = <0>; |
---|
| 101 | + txd2-skew-ps = <0>; |
---|
| 102 | + txd3-skew-ps = <0>; |
---|
128 | 103 | txen-skew-ps = <0>; |
---|
129 | | - txc-skew-ps = <2600>; |
---|
| 104 | + txc-skew-ps = <1860>; |
---|
130 | 105 | rxdv-skew-ps = <0>; |
---|
131 | | - rxc-skew-ps = <2000>; |
---|
| 106 | + rxc-skew-ps = <1860>; |
---|
132 | 107 | }; |
---|
133 | 108 | }; |
---|
134 | 109 | }; |
---|