]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/at91sam9g20ek_common.dtsi
ARM: at91: dt: at91sam9: add mmc pinctrl support
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / at91sam9g20ek_common.dtsi
CommitLineData
5cb4e735
JCPV
1/*
2 * at91sam9g20ek_common.dtsi - Device Tree file for Atmel at91sam9g20ek board
3 *
4 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5 *
6 * Licensed under GPLv2.
7 */
8/include/ "at91sam9g20.dtsi"
9
10/ {
11
12 chosen {
13 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
14 };
15
16 memory {
17 reg = <0x20000000 0x4000000>;
18 };
19
20 clocks {
21 #address-cells = <1>;
22 #size-cells = <1>;
23 ranges;
24
25 main_clock: clock@0 {
26 compatible = "atmel,osc", "fixed-clock";
27 clock-frequency = <18432000>;
28 };
29 };
30
31 ahb {
32 apb {
33 dbgu: serial@fffff200 {
34 status = "okay";
35 };
36
37 usart0: serial@fffb0000 {
0cdc7e8e 38 pinctrl-0 =
9e3129e9 39 <&pinctrl_usart0
c58c0c5a
JCPV
40 &pinctrl_usart0_rts
41 &pinctrl_usart0_cts
9e3129e9
JCPV
42 &pinctrl_usart0_dtr_dsr
43 &pinctrl_usart0_dcd
44 &pinctrl_usart0_ri>;
5cb4e735
JCPV
45 status = "okay";
46 };
47
48 usart1: serial@fffb4000 {
49 status = "okay";
50 };
51
52 macb0: ethernet@fffc4000 {
53 phy-mode = "rmii";
54 status = "okay";
55 };
56
57 usb1: gadget@fffa4000 {
58 atmel,vbus-gpio = <&pioC 5 0>;
59 status = "okay";
60 };
4134a455
LD
61
62 mmc0: mmc@fffa8000 {
63 status = "okay";
64 slot@1 {
65 reg = <1>;
66 bus-width = <4>;
67 cd-gpios = <&pioC 9 0>;
68 };
69 };
5cb4e735
JCPV
70 };
71
72 nand0: nand@40000000 {
73 nand-bus-width = <8>;
74 nand-ecc-mode = "soft";
75 nand-on-flash-bbt;
76 status = "okay";
77
78 at91bootstrap@0 {
79 label = "at91bootstrap";
80 reg = <0x0 0x20000>;
81 };
82
83 barebox@20000 {
84 label = "barebox";
85 reg = <0x20000 0x40000>;
86 };
87
88 bareboxenv@60000 {
89 label = "bareboxenv";
90 reg = <0x60000 0x20000>;
91 };
92
93 bareboxenv2@80000 {
94 label = "bareboxenv2";
95 reg = <0x80000 0x20000>;
96 };
97
98 oftree@80000 {
99 label = "oftree";
100 reg = <0xa0000 0x20000>;
101 };
102
103 kernel@a0000 {
104 label = "kernel";
105 reg = <0xc0000 0x400000>;
106 };
107
108 rootfs@4a0000 {
109 label = "rootfs";
110 reg = <0x4c0000 0x7800000>;
111 };
112
113 data@7ca0000 {
114 label = "data";
115 reg = <0x7cc0000 0x8340000>;
116 };
117 };
118
119 usb0: ohci@00500000 {
120 num-ports = <2>;
121 status = "okay";
122 };
123 };
124
125 i2c@0 {
126 status = "okay";
127
128 24c512@50 {
129 compatible = "24c512";
130 reg = <0x50>;
131 };
132
133 wm8731@1b {
134 compatible = "wm8731";
135 reg = <0x1b>;
136 };
137 };
138
139 gpio_keys {
140 compatible = "gpio-keys";
141 #address-cells = <1>;
142 #size-cells = <0>;
143
144 btn3 {
b6edfbea 145 label = "Button 3";
5cb4e735
JCPV
146 gpios = <&pioA 30 1>;
147 linux,code = <0x103>;
148 gpio-key,wakeup;
149 };
150
151 btn4 {
b6edfbea 152 label = "Button 4";
5cb4e735
JCPV
153 gpios = <&pioA 31 1>;
154 linux,code = <0x104>;
155 gpio-key,wakeup;
156 };
157 };
158};