forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/at91-kizbox.dts
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
34 *
45 * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
56 * 2014-2015 Gaƫl PORTAY <g.portay@overkiz.com>
6
- *
7
- * Licensed under GPLv2 or later.
87 */
98 /dts-v1/;
109 #include "at91sam9g20.dtsi"
....@@ -19,92 +18,13 @@
1918 stdout-path = &dbgu;
2019 };
2120
22
- memory {
21
+ memory@20000000 {
2322 reg = <0x20000000 0x2000000>;
2423 };
2524
2625 clocks {
2726 main_xtal {
2827 clock-frequency = <18432000>;
29
- };
30
- };
31
-
32
- ahb {
33
- apb {
34
- tcb0: timer@fffa0000 {
35
- timer@0 {
36
- compatible = "atmel,tcb-timer";
37
- reg = <0>, <1>;
38
- };
39
-
40
- timer@2 {
41
- compatible = "atmel,tcb-timer";
42
- reg = <2>;
43
- };
44
- };
45
-
46
- macb0: ethernet@fffc4000 {
47
- phy-mode = "mii";
48
- pinctrl-0 = <&pinctrl_macb_rmii
49
- &pinctrl_macb_rmii_mii_alt>;
50
- status = "okay";
51
- };
52
-
53
- usart3: serial@fffd0000 {
54
- status = "okay";
55
- };
56
-
57
- dbgu: serial@fffff200 {
58
- status = "okay";
59
- };
60
-
61
- watchdog@fffffd40 {
62
- timeout-sec = <15>;
63
- atmel,max-heartbeat-sec = <16>;
64
- atmel,min-heartbeat-sec = <0>;
65
- status = "okay";
66
- };
67
- };
68
-
69
- usb0: ohci@500000 {
70
- num-ports = <1>;
71
- status = "okay";
72
- };
73
-
74
- ebi: ebi@10000000 {
75
- status = "okay";
76
-
77
- nand_controller: nand-controller {
78
- status = "okay";
79
- pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
80
- pinctrl-names = "default";
81
-
82
- nand@3 {
83
- reg = <0x3 0x0 0x800000>;
84
- rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
85
- cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
86
- nand-bus-width = <8>;
87
- nand-ecc-mode = "soft";
88
- nand-on-flash-bbt;
89
- label = "atmel_nand";
90
-
91
- partitions {
92
- compatible = "fixed-partitions";
93
- #address-cells = <1>;
94
- #size-cells = <1>;
95
-
96
- bootstrap@0 {
97
- label = "bootstrap";
98
- reg = <0x0 0x20000>;
99
- };
100
-
101
- ubi@20000 {
102
- label = "ubi";
103
- reg = <0x20000 0x7fe0000>;
104
- };
105
- };
106
- };
107
- };
10828 };
10929 };
11030
....@@ -125,15 +45,6 @@
12545 gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
12646 linux,code = <0x101>;
12747 wakeup-source;
128
- };
129
- };
130
-
131
- i2c-gpio-0 {
132
- status = "okay";
133
-
134
- rtc: pcf8563@51 {
135
- compatible = "nxp,pcf8563";
136
- reg = <0x51>;
13748 };
13849 };
13950
....@@ -180,3 +91,87 @@
18091 &pinctrl_tcb1_tiob0>;
18192 };
18293 };
94
+
95
+&tcb0 {
96
+ timer@0 {
97
+ compatible = "atmel,tcb-timer";
98
+ reg = <0>, <1>;
99
+ };
100
+
101
+ timer@2 {
102
+ compatible = "atmel,tcb-timer";
103
+ reg = <2>;
104
+ };
105
+};
106
+
107
+&ebi {
108
+ status = "okay";
109
+};
110
+
111
+&nand_controller {
112
+ status = "okay";
113
+ pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
114
+ pinctrl-names = "default";
115
+
116
+ nand@3 {
117
+ reg = <0x3 0x0 0x800000>;
118
+ rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
119
+ cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
120
+ nand-bus-width = <8>;
121
+ nand-ecc-mode = "soft";
122
+ nand-on-flash-bbt;
123
+ label = "atmel_nand";
124
+
125
+ partitions {
126
+ compatible = "fixed-partitions";
127
+ #address-cells = <1>;
128
+ #size-cells = <1>;
129
+
130
+ bootstrap@0 {
131
+ label = "bootstrap";
132
+ reg = <0x0 0x20000>;
133
+ };
134
+
135
+ ubi@20000 {
136
+ label = "ubi";
137
+ reg = <0x20000 0x7fe0000>;
138
+ };
139
+ };
140
+ };
141
+};
142
+
143
+&macb0 {
144
+ phy-mode = "mii";
145
+ pinctrl-0 = <&pinctrl_macb_rmii
146
+ &pinctrl_macb_rmii_mii_alt>;
147
+ status = "okay";
148
+};
149
+
150
+&usart3 {
151
+ status = "okay";
152
+};
153
+
154
+&dbgu {
155
+ status = "okay";
156
+};
157
+
158
+&watchdog {
159
+ timeout-sec = <15>;
160
+ atmel,max-heartbeat-sec = <16>;
161
+ atmel,min-heartbeat-sec = <0>;
162
+ status = "okay";
163
+};
164
+
165
+&usb0 {
166
+ num-ports = <1>;
167
+ status = "okay";
168
+};
169
+
170
+&i2c_gpio0 {
171
+ status = "okay";
172
+
173
+ rtc: pcf8563@51 {
174
+ compatible = "nxp,pcf8563";
175
+ reg = <0x51>;
176
+ };
177
+};