Commit | Line | Data |
---|---|---|
26489729 AB |
1 | /* |
2 | * at91sam9rlek.dts - Device Tree file for Atmel at91sam9rl reference board | |
3 | * | |
4 | * Copyright (C) 2014 Alexandre Belloni <alexandre.belloni@free-electrons.com> | |
5 | * | |
6 | * Licensed under GPLv2 only | |
7 | */ | |
8 | /dts-v1/; | |
9 | #include "at91sam9rl.dtsi" | |
10 | ||
11 | / { | |
12 | model = "Atmel at91sam9rlek"; | |
13 | compatible = "atmel,at91sam9rlek", "atmel,at91sam9rl", "atmel,at91sam9"; | |
14 | ||
15 | chosen { | |
16 | bootargs = "console=ttyS0,115200 rootfstype=ubifs root=ubi0:rootfs ubi.mtd=5 rw"; | |
17 | }; | |
18 | ||
19 | memory { | |
20 | reg = <0x20000000 0x4000000>; | |
21 | }; | |
22 | ||
23 | clocks { | |
24 | #address-cells = <1>; | |
25 | #size-cells = <1>; | |
26 | ranges; | |
27 | ||
28 | main_clock: clock { | |
29 | compatible = "atmel,osc", "fixed-clock"; | |
30 | clock-frequency = <12000000>; | |
31 | }; | |
32 | }; | |
33 | ||
34 | ahb { | |
35 | nand0: nand@40000000 { | |
36 | nand-bus-width = <8>; | |
37 | nand-ecc-mode = "soft"; | |
38 | nand-on-flash-bbt = <1>; | |
39 | status = "okay"; | |
40 | ||
41 | at91bootstrap@0 { | |
42 | label = "at91bootstrap"; | |
43 | reg = <0x0 0x40000>; | |
44 | }; | |
45 | ||
46 | bootloader@40000 { | |
47 | label = "bootloader"; | |
48 | reg = <0x40000 0x80000>; | |
49 | }; | |
50 | ||
51 | bootloaderenv@c0000 { | |
52 | label = "bootloader env"; | |
53 | reg = <0xc0000 0xc0000>; | |
54 | }; | |
55 | ||
56 | dtb@180000 { | |
57 | label = "device tree"; | |
58 | reg = <0x180000 0x80000>; | |
59 | }; | |
60 | ||
61 | kernel@200000 { | |
62 | label = "kernel"; | |
63 | reg = <0x200000 0x600000>; | |
64 | }; | |
65 | ||
66 | rootfs@800000 { | |
67 | label = "rootfs"; | |
68 | reg = <0x800000 0x0f800000>; | |
69 | }; | |
70 | }; | |
71 | ||
72 | apb { | |
73 | mmc0: mmc@fffa4000 { | |
74 | pinctrl-0 = < | |
75 | &pinctrl_board_mmc0 | |
76 | &pinctrl_mmc0_clk | |
77 | &pinctrl_mmc0_slot0_cmd_dat0 | |
78 | &pinctrl_mmc0_slot0_dat1_3>; | |
79 | status = "okay"; | |
80 | slot@0 { | |
81 | reg = <0>; | |
82 | bus-width = <4>; | |
83 | cd-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>; | |
84 | }; | |
85 | }; | |
86 | ||
87 | usart0: serial@fffb0000 { | |
88 | pinctrl-0 = < | |
89 | &pinctrl_usart0 | |
90 | &pinctrl_usart0_rts | |
91 | &pinctrl_usart0_cts>; | |
92 | status = "okay"; | |
93 | }; | |
94 | ||
95 | dbgu: serial@fffff200 { | |
96 | status = "okay"; | |
97 | }; | |
98 | ||
99 | pinctrl@fffff400 { | |
100 | mmc0 { | |
101 | pinctrl_board_mmc0: mmc0-board { | |
102 | atmel,pins = | |
103 | <AT91_PIOA 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; | |
104 | }; | |
105 | }; | |
106 | }; | |
107 | ||
108 | watchdog@fffffd40 { | |
109 | status = "okay"; | |
110 | }; | |
111 | }; | |
112 | }; | |
113 | ||
114 | leds { | |
115 | compatible = "gpio-leds"; | |
116 | ||
117 | ds1 { | |
118 | label = "ds1"; | |
119 | gpios = <&pioD 15 GPIO_ACTIVE_LOW>; | |
120 | }; | |
121 | ||
122 | ds2 { | |
123 | label = "ds2"; | |
124 | gpios = <&pioD 16 GPIO_ACTIVE_LOW>; | |
125 | }; | |
126 | ||
127 | ds3 { | |
128 | label = "ds3"; | |
129 | gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; | |
130 | linux,default-trigger = "heartbeat"; | |
131 | }; | |
132 | }; | |
133 | ||
134 | gpio_keys { | |
135 | compatible = "gpio-keys"; | |
136 | ||
137 | right_click { | |
138 | label = "right_click"; | |
139 | gpios = <&pioB 0 GPIO_ACTIVE_LOW>; | |
140 | linux,code = <273>; | |
141 | gpio-key,wakeup; | |
142 | }; | |
143 | ||
144 | left_click { | |
145 | label = "left_click"; | |
146 | gpios = <&pioB 1 GPIO_ACTIVE_LOW>; | |
147 | linux,code = <272>; | |
148 | gpio-key,wakeup; | |
149 | }; | |
150 | }; | |
151 | }; |