forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/at91sam9g20ek_common.dtsi
....@@ -1,11 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * at91sam9g20ek_common.dtsi - Device Tree file for Atmel at91sam9g20ek board
34 *
45 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5
- *
6
- * Licensed under GPLv2.
76 */
87 #include "at91sam9g20.dtsi"
8
+#include <dt-bindings/input/input.h>
99
1010 / {
1111
....@@ -14,7 +14,7 @@
1414 stdout-path = "serial0:115200n8";
1515 };
1616
17
- memory {
17
+ memory@20000000 {
1818 reg = <0x20000000 0x4000000>;
1919 };
2020
....@@ -37,6 +37,13 @@
3737 <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC1 periph B */
3838 };
3939
40
+ };
41
+
42
+ usb1 {
43
+ pinctrl_usb1_vbus_gpio: usb1_vbus_gpio {
44
+ atmel,pins =
45
+ <AT91_PIOC 5 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PC5 GPIO */
46
+ };
4047 };
4148
4249 mmc0_slot1 {
....@@ -84,6 +91,8 @@
8491 };
8592
8693 usb1: gadget@fffa4000 {
94
+ pinctrl-0 = <&pinctrl_usb1_vbus_gpio>;
95
+ pinctrl-names = "default";
8796 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
8897 status = "okay";
8998 };
....@@ -94,6 +103,7 @@
94103 &pinctrl_mmc0_clk
95104 &pinctrl_mmc0_slot1_cmd_dat0
96105 &pinctrl_mmc0_slot1_dat1_3>;
106
+ pinctrl-names = "default";
97107 status = "okay";
98108 slot@1 {
99109 reg = <1>;
....@@ -218,6 +228,12 @@
218228 wm8731: wm8731@1b {
219229 compatible = "wm8731";
220230 reg = <0x1b>;
231
+
232
+ /* PCK0 at 12MHz */
233
+ clocks = <&pmc PMC_TYPE_SYSTEM 8>;
234
+ clock-names = "mclk";
235
+ assigned-clocks = <&pmc PMC_TYPE_SYSTEM 8>;
236
+ assigned-clock-rates = <12000000>;
221237 };
222238 };
223239
....@@ -234,7 +250,7 @@
234250 btn4 {
235251 label = "Button 4";
236252 gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
237
- linux,code = <0x104>;
253
+ linux,code = <KEY_PROG1>;
238254 wakeup-source;
239255 };
240256 };