hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/imx6qdl-gw552x.dtsi
....@@ -1,15 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2014 Gateworks Corporation
3
- *
4
- * The code contained herein is licensed under the GNU General Public
5
- * License. You may obtain a copy of the GNU General Public License
6
- * Version 2 or later at the following locations:
7
- *
8
- * http://www.opensource.org/licenses/gpl-license.html
9
- * http://www.gnu.org/copyleft/gpl.html
104 */
115
126 #include <dt-bindings/gpio/gpio.h>
7
+#include <dt-bindings/input/linux-event-codes.h>
8
+#include <dt-bindings/interrupt-controller/irq.h>
139
1410 / {
1511 /* these are used by bootloader for disabling nodes */
....@@ -24,6 +20,53 @@
2420
2521 chosen {
2622 bootargs = "console=ttymxc1,115200";
23
+ };
24
+
25
+ gpio-keys {
26
+ compatible = "gpio-keys";
27
+ #address-cells = <1>;
28
+ #size-cells = <0>;
29
+
30
+ user-pb {
31
+ label = "user_pb";
32
+ gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
33
+ linux,code = <BTN_0>;
34
+ };
35
+
36
+ user-pb1x {
37
+ label = "user_pb1x";
38
+ linux,code = <BTN_1>;
39
+ interrupt-parent = <&gsc>;
40
+ interrupts = <0>;
41
+ };
42
+
43
+ key-erased {
44
+ label = "key-erased";
45
+ linux,code = <BTN_2>;
46
+ interrupt-parent = <&gsc>;
47
+ interrupts = <1>;
48
+ };
49
+
50
+ eeprom-wp {
51
+ label = "eeprom_wp";
52
+ linux,code = <BTN_3>;
53
+ interrupt-parent = <&gsc>;
54
+ interrupts = <2>;
55
+ };
56
+
57
+ tamper {
58
+ label = "tamper";
59
+ linux,code = <BTN_4>;
60
+ interrupt-parent = <&gsc>;
61
+ interrupts = <5>;
62
+ };
63
+
64
+ switch-hold {
65
+ label = "switch_hold";
66
+ linux,code = <BTN_5>;
67
+ interrupt-parent = <&gsc>;
68
+ interrupts = <7>;
69
+ };
2770 };
2871
2972 leds {
....@@ -52,6 +95,7 @@
5295 };
5396
5497 memory@10000000 {
98
+ device_type = "memory";
5599 reg = <0x10000000 0x20000000>;
56100 };
57101
....@@ -97,6 +141,103 @@
97141 pinctrl-0 = <&pinctrl_i2c1>;
98142 status = "okay";
99143
144
+ gsc: gsc@20 {
145
+ compatible = "gw,gsc";
146
+ reg = <0x20>;
147
+ interrupt-parent = <&gpio1>;
148
+ interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
149
+ interrupt-controller;
150
+ #interrupt-cells = <1>;
151
+ #size-cells = <0>;
152
+
153
+ adc {
154
+ compatible = "gw,gsc-adc";
155
+ #address-cells = <1>;
156
+ #size-cells = <0>;
157
+
158
+ channel@0 {
159
+ gw,mode = <0>;
160
+ reg = <0x00>;
161
+ label = "temp";
162
+ };
163
+
164
+ channel@2 {
165
+ gw,mode = <1>;
166
+ reg = <0x02>;
167
+ label = "vdd_vin";
168
+ };
169
+
170
+ channel@5 {
171
+ gw,mode = <1>;
172
+ reg = <0x05>;
173
+ label = "vdd_3p3";
174
+ };
175
+
176
+ channel@8 {
177
+ gw,mode = <1>;
178
+ reg = <0x08>;
179
+ label = "vdd_bat";
180
+ };
181
+
182
+ channel@b {
183
+ gw,mode = <1>;
184
+ reg = <0x0b>;
185
+ label = "vdd_5p0";
186
+ };
187
+
188
+ channel@e {
189
+ gw,mode = <1>;
190
+ reg = <0xe>;
191
+ label = "vdd_arm";
192
+ };
193
+
194
+ channel@11 {
195
+ gw,mode = <1>;
196
+ reg = <0x11>;
197
+ label = "vdd_soc";
198
+ };
199
+
200
+ channel@14 {
201
+ gw,mode = <1>;
202
+ reg = <0x14>;
203
+ label = "vdd_3p0";
204
+ };
205
+
206
+ channel@17 {
207
+ gw,mode = <1>;
208
+ reg = <0x17>;
209
+ label = "vdd_1p5";
210
+ };
211
+
212
+ channel@1d {
213
+ gw,mode = <1>;
214
+ reg = <0x1d>;
215
+ label = "vdd_1p8";
216
+ };
217
+
218
+ channel@20 {
219
+ gw,mode = <1>;
220
+ reg = <0x20>;
221
+ label = "vdd_1p0";
222
+ };
223
+
224
+ channel@23 {
225
+ gw,mode = <1>;
226
+ reg = <0x23>;
227
+ label = "vdd_2p5";
228
+ };
229
+ };
230
+ };
231
+
232
+ gsc_gpio: gpio@23 {
233
+ compatible = "nxp,pca9555";
234
+ reg = <0x23>;
235
+ gpio-controller;
236
+ #gpio-cells = <2>;
237
+ interrupt-parent = <&gsc>;
238
+ interrupts = <4>;
239
+ };
240
+
100241 eeprom1: eeprom@50 {
101242 compatible = "atmel,24c02";
102243 reg = <0x50>;
....@@ -119,13 +260,6 @@
119260 compatible = "atmel,24c02";
120261 reg = <0x53>;
121262 pagesize = <16>;
122
- };
123
-
124
- gpio: pca9555@23 {
125
- compatible = "nxp,pca9555";
126
- reg = <0x23>;
127
- gpio-controller;
128
- #gpio-cells = <2>;
129263 };
130264
131265 rtc: ds1672@68 {
....@@ -263,6 +397,14 @@
263397 status = "okay";
264398 };
265399
400
+&usbotg {
401
+ vbus-supply = <&reg_5p0v>;
402
+ pinctrl-names = "default";
403
+ pinctrl-0 = <&pinctrl_usbotg>;
404
+ disable-over-current;
405
+ status = "okay";
406
+};
407
+
266408 &wdog1 {
267409 pinctrl-names = "default";
268410 pinctrl-0 = <&pinctrl_wdog>;
....@@ -302,6 +444,7 @@
302444 fsl,pins = <
303445 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
304446 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
447
+ MX6QDL_PAD_GPIO_4__GPIO1_IO04 0xb0b1
305448 >;
306449 };
307450
....@@ -364,6 +507,12 @@
364507 >;
365508 };
366509
510
+ pinctrl_usbotg: usbotggrp {
511
+ fsl,pins = <
512
+ MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x13059
513
+ >;
514
+ };
515
+
367516 pinctrl_wdog: wdoggrp {
368517 fsl,pins = <
369518 MX6QDL_PAD_DISP0_DAT8__WDOG1_B 0x1b0b0