forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
....@@ -1,48 +1,6 @@
1
+// SPDX-License-Identifier: (GPL-2.0+ OR X11)
12 /*
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>
464 */
475
486 #include "socfpga_cyclone5.dtsi"
....@@ -54,7 +12,8 @@
5412 compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";
5513
5614 chosen {
57
- bootargs = "console=ttyS0,115200";
15
+ bootargs = "earlyprintk";
16
+ stdout-path = "serial0:115200n8";
5817 };
5918
6019 memory@0 {
....@@ -77,20 +36,32 @@
7736
7837 hps_temp0 {
7938 label = "BTN_0"; /* TEMP_OS */
80
- gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPIO60 */
39
+ gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPI5 */
8140 linux,code = <BTN_0>;
8241 };
8342
8443 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 */
8746 linux,code = <BTN_1>;
8847 };
8948
9049 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 */
9358 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>;
9465 };
9566 };
9667
....@@ -125,10 +96,14 @@
12596 rxd1-skew-ps = <0>;
12697 rxd2-skew-ps = <0>;
12798 rxd3-skew-ps = <0>;
99
+ txd0-skew-ps = <0>;
100
+ txd1-skew-ps = <0>;
101
+ txd2-skew-ps = <0>;
102
+ txd3-skew-ps = <0>;
128103 txen-skew-ps = <0>;
129
- txc-skew-ps = <2600>;
104
+ txc-skew-ps = <1860>;
130105 rxdv-skew-ps = <0>;
131
- rxc-skew-ps = <2000>;
106
+ rxc-skew-ps = <1860>;
132107 };
133108 };
134109 };