.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * at91sam9g20ek_common.dtsi - Device Tree file for Atmel at91sam9g20ek board |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
---|
5 | | - * |
---|
6 | | - * Licensed under GPLv2. |
---|
7 | 6 | */ |
---|
8 | 7 | #include "at91sam9g20.dtsi" |
---|
| 8 | +#include <dt-bindings/input/input.h> |
---|
9 | 9 | |
---|
10 | 10 | / { |
---|
11 | 11 | |
---|
.. | .. |
---|
14 | 14 | stdout-path = "serial0:115200n8"; |
---|
15 | 15 | }; |
---|
16 | 16 | |
---|
17 | | - memory { |
---|
| 17 | + memory@20000000 { |
---|
18 | 18 | reg = <0x20000000 0x4000000>; |
---|
19 | 19 | }; |
---|
20 | 20 | |
---|
.. | .. |
---|
37 | 37 | <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC1 periph B */ |
---|
38 | 38 | }; |
---|
39 | 39 | |
---|
| 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 | + }; |
---|
40 | 47 | }; |
---|
41 | 48 | |
---|
42 | 49 | mmc0_slot1 { |
---|
.. | .. |
---|
84 | 91 | }; |
---|
85 | 92 | |
---|
86 | 93 | usb1: gadget@fffa4000 { |
---|
| 94 | + pinctrl-0 = <&pinctrl_usb1_vbus_gpio>; |
---|
| 95 | + pinctrl-names = "default"; |
---|
87 | 96 | atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; |
---|
88 | 97 | status = "okay"; |
---|
89 | 98 | }; |
---|
.. | .. |
---|
94 | 103 | &pinctrl_mmc0_clk |
---|
95 | 104 | &pinctrl_mmc0_slot1_cmd_dat0 |
---|
96 | 105 | &pinctrl_mmc0_slot1_dat1_3>; |
---|
| 106 | + pinctrl-names = "default"; |
---|
97 | 107 | status = "okay"; |
---|
98 | 108 | slot@1 { |
---|
99 | 109 | reg = <1>; |
---|
.. | .. |
---|
218 | 228 | wm8731: wm8731@1b { |
---|
219 | 229 | compatible = "wm8731"; |
---|
220 | 230 | 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>; |
---|
221 | 237 | }; |
---|
222 | 238 | }; |
---|
223 | 239 | |
---|
.. | .. |
---|
234 | 250 | btn4 { |
---|
235 | 251 | label = "Button 4"; |
---|
236 | 252 | gpios = <&pioA 31 GPIO_ACTIVE_LOW>; |
---|
237 | | - linux,code = <0x104>; |
---|
| 253 | + linux,code = <KEY_PROG1>; |
---|
238 | 254 | wakeup-source; |
---|
239 | 255 | }; |
---|
240 | 256 | }; |
---|