diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-26 06:12:43 -0500 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-20 11:17:24 -0400 |
commit | 39f31cd40ae0c2301c00e6f1cf17bf20863c498c (patch) | |
tree | 9d43020457738fa5d7c53a6f0e42edc10723ef82 | |
parent | 4abb367722c2dc06972658c8fad5b4763114477c (diff) |
ARM: at91: add at91sam9263ek DT support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | arch/arm/boot/dts/at91sam9263ek.dts | 156 | ||||
-rw-r--r-- | arch/arm/mach-at91/Makefile.boot | 2 |
2 files changed, 158 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9263ek.dts b/arch/arm/boot/dts/at91sam9263ek.dts new file mode 100644 index 000000000000..f86ac4b609fc --- /dev/null +++ b/arch/arm/boot/dts/at91sam9263ek.dts | |||
@@ -0,0 +1,156 @@ | |||
1 | /* | ||
2 | * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board | ||
3 | * | ||
4 | * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | ||
5 | * | ||
6 | * Licensed under GPLv2 only | ||
7 | */ | ||
8 | /dts-v1/; | ||
9 | /include/ "at91sam9263.dtsi" | ||
10 | |||
11 | / { | ||
12 | model = "Atmel at91sam9263ek"; | ||
13 | compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9"; | ||
14 | |||
15 | chosen { | ||
16 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs"; | ||
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@0 { | ||
29 | compatible = "atmel,osc", "fixed-clock"; | ||
30 | clock-frequency = <16367660>; | ||
31 | }; | ||
32 | }; | ||
33 | |||
34 | ahb { | ||
35 | apb { | ||
36 | dbgu: serial@ffffee00 { | ||
37 | status = "okay"; | ||
38 | }; | ||
39 | |||
40 | usart0: serial@fff8c000 { | ||
41 | status = "okay"; | ||
42 | }; | ||
43 | |||
44 | macb0: ethernet@fffbc000 { | ||
45 | phy-mode = "rmii"; | ||
46 | status = "okay"; | ||
47 | }; | ||
48 | |||
49 | usb1: gadget@fff78000 { | ||
50 | atmel,vbus-gpio = <&pioA 25 0>; | ||
51 | status = "okay"; | ||
52 | }; | ||
53 | }; | ||
54 | |||
55 | nand0: nand@40000000 { | ||
56 | nand-bus-width = <8>; | ||
57 | nand-ecc-mode = "soft"; | ||
58 | nand-on-flash-bbt = <1>; | ||
59 | status = "okay"; | ||
60 | |||
61 | at91bootstrap@0 { | ||
62 | label = "at91bootstrap"; | ||
63 | reg = <0x0 0x20000>; | ||
64 | }; | ||
65 | |||
66 | barebox@20000 { | ||
67 | label = "barebox"; | ||
68 | reg = <0x20000 0x40000>; | ||
69 | }; | ||
70 | |||
71 | bareboxenv@60000 { | ||
72 | label = "bareboxenv"; | ||
73 | reg = <0x60000 0x20000>; | ||
74 | }; | ||
75 | |||
76 | bareboxenv2@80000 { | ||
77 | label = "bareboxenv2"; | ||
78 | reg = <0x80000 0x20000>; | ||
79 | }; | ||
80 | |||
81 | oftree@80000 { | ||
82 | label = "oftree"; | ||
83 | reg = <0xa0000 0x20000>; | ||
84 | }; | ||
85 | |||
86 | kernel@a0000 { | ||
87 | label = "kernel"; | ||
88 | reg = <0xc0000 0x400000>; | ||
89 | }; | ||
90 | |||
91 | rootfs@4a0000 { | ||
92 | label = "rootfs"; | ||
93 | reg = <0x4c0000 0x7800000>; | ||
94 | }; | ||
95 | |||
96 | data@7ca0000 { | ||
97 | label = "data"; | ||
98 | reg = <0x7cc0000 0x8340000>; | ||
99 | }; | ||
100 | }; | ||
101 | |||
102 | usb0: ohci@00a00000 { | ||
103 | num-ports = <2>; | ||
104 | status = "okay"; | ||
105 | atmel,vbus-gpio = <&pioA 24 0 | ||
106 | &pioA 21 0 | ||
107 | >; | ||
108 | }; | ||
109 | }; | ||
110 | |||
111 | leds { | ||
112 | compatible = "gpio-leds"; | ||
113 | |||
114 | d3 { | ||
115 | label = "d3"; | ||
116 | gpios = <&pioB 7 0>; | ||
117 | linux,default-trigger = "heartbeat"; | ||
118 | }; | ||
119 | |||
120 | d2 { | ||
121 | label = "d2"; | ||
122 | gpios = <&pioC 29 1>; | ||
123 | linux,default-trigger = "nand-disk"; | ||
124 | }; | ||
125 | }; | ||
126 | |||
127 | gpio_keys { | ||
128 | compatible = "gpio-keys"; | ||
129 | #address-cells = <1>; | ||
130 | #size-cells = <0>; | ||
131 | |||
132 | left_click { | ||
133 | label = "left_click"; | ||
134 | gpios = <&pioC 5 1>; | ||
135 | linux,code = <272>; | ||
136 | gpio-key,wakeup; | ||
137 | }; | ||
138 | |||
139 | right_click { | ||
140 | label = "right_click"; | ||
141 | gpios = <&pioC 4 1>; | ||
142 | linux,code = <273>; | ||
143 | gpio-key,wakeup; | ||
144 | }; | ||
145 | }; | ||
146 | |||
147 | i2c@0 { | ||
148 | status = "okay"; | ||
149 | |||
150 | 24c512@50 { | ||
151 | compatible = "24c512"; | ||
152 | reg = <0x50>; | ||
153 | pagesize = <128>; | ||
154 | }; | ||
155 | }; | ||
156 | }; | ||
diff --git a/arch/arm/mach-at91/Makefile.boot b/arch/arm/mach-at91/Makefile.boot index b2ac536a691b..0c6e0e9623c2 100644 --- a/arch/arm/mach-at91/Makefile.boot +++ b/arch/arm/mach-at91/Makefile.boot | |||
@@ -17,6 +17,8 @@ endif | |||
17 | # sam9260 | 17 | # sam9260 |
18 | dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9260.dtb | 18 | dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9260.dtb |
19 | dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9260.dtb | 19 | dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9260.dtb |
20 | # sam9263 | ||
21 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9263ek.dtb | ||
20 | # sam9g20 | 22 | # sam9g20 |
21 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek.dtb | 23 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek.dtb |
22 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek_2mmc.dtb | 24 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek_2mmc.dtb |