diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/at91sam9g20ek.dts | 29 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9g20ek_2mmc.dts | 29 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 142 | ||||
-rw-r--r-- | arch/arm/mach-at91/Makefile.boot | 2 |
4 files changed, 202 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9g20ek.dts b/arch/arm/boot/dts/at91sam9g20ek.dts new file mode 100644 index 000000000000..e5324bf9d529 --- /dev/null +++ b/arch/arm/boot/dts/at91sam9g20ek.dts | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * at91sam9g20ek.dts - 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 | /dts-v1/; | ||
9 | /include/ "at91sam9g20ek_common.dtsi" | ||
10 | |||
11 | / { | ||
12 | model = "Atmel at91sam9g20ek"; | ||
13 | compatible = "atmel,at91sam9g20ek", "atmel,at91sam9g20", "atmel,at91sam9"; | ||
14 | |||
15 | leds { | ||
16 | compatible = "gpio-leds"; | ||
17 | |||
18 | ds1 { | ||
19 | label = "ds1"; | ||
20 | gpios = <&pioA 9 0>; | ||
21 | linux,default-trigger = "heartbeat"; | ||
22 | }; | ||
23 | |||
24 | ds5 { | ||
25 | label = "ds5"; | ||
26 | gpios = <&pioA 6 1>; | ||
27 | }; | ||
28 | }; | ||
29 | }; | ||
diff --git a/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts b/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts new file mode 100644 index 000000000000..f1b2e148ac8c --- /dev/null +++ b/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * at91sam9g20ek_2mmc.dts - Device Tree file for Atmel at91sam9g20ek 2 MMC board | ||
3 | * | ||
4 | * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | ||
5 | * | ||
6 | * Licensed under GPLv2. | ||
7 | */ | ||
8 | /dts-v1/; | ||
9 | /include/ "at91sam9g20ek_common.dtsi" | ||
10 | |||
11 | / { | ||
12 | model = "Atmel at91sam9g20ek 2 mmc"; | ||
13 | compatible = "atmel,at91sam9g20ek_2mmc", "atmel,at91sam9g20", "atmel,at91sam9"; | ||
14 | |||
15 | leds { | ||
16 | compatible = "gpio-leds"; | ||
17 | |||
18 | ds1 { | ||
19 | label = "ds1"; | ||
20 | gpios = <&pioB 9 0>; | ||
21 | linux,default-trigger = "heartbeat"; | ||
22 | }; | ||
23 | |||
24 | ds5 { | ||
25 | label = "ds5"; | ||
26 | gpios = <&pioB 8 1>; | ||
27 | }; | ||
28 | }; | ||
29 | }; | ||
diff --git a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi new file mode 100644 index 000000000000..b06c0db273b1 --- /dev/null +++ b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi | |||
@@ -0,0 +1,142 @@ | |||
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 { | ||
38 | status = "okay"; | ||
39 | }; | ||
40 | |||
41 | usart1: serial@fffb4000 { | ||
42 | status = "okay"; | ||
43 | }; | ||
44 | |||
45 | macb0: ethernet@fffc4000 { | ||
46 | phy-mode = "rmii"; | ||
47 | status = "okay"; | ||
48 | }; | ||
49 | |||
50 | usb1: gadget@fffa4000 { | ||
51 | atmel,vbus-gpio = <&pioC 5 0>; | ||
52 | status = "okay"; | ||
53 | }; | ||
54 | }; | ||
55 | |||
56 | nand0: nand@40000000 { | ||
57 | nand-bus-width = <8>; | ||
58 | nand-ecc-mode = "soft"; | ||
59 | nand-on-flash-bbt; | ||
60 | status = "okay"; | ||
61 | |||
62 | at91bootstrap@0 { | ||
63 | label = "at91bootstrap"; | ||
64 | reg = <0x0 0x20000>; | ||
65 | }; | ||
66 | |||
67 | barebox@20000 { | ||
68 | label = "barebox"; | ||
69 | reg = <0x20000 0x40000>; | ||
70 | }; | ||
71 | |||
72 | bareboxenv@60000 { | ||
73 | label = "bareboxenv"; | ||
74 | reg = <0x60000 0x20000>; | ||
75 | }; | ||
76 | |||
77 | bareboxenv2@80000 { | ||
78 | label = "bareboxenv2"; | ||
79 | reg = <0x80000 0x20000>; | ||
80 | }; | ||
81 | |||
82 | oftree@80000 { | ||
83 | label = "oftree"; | ||
84 | reg = <0xa0000 0x20000>; | ||
85 | }; | ||
86 | |||
87 | kernel@a0000 { | ||
88 | label = "kernel"; | ||
89 | reg = <0xc0000 0x400000>; | ||
90 | }; | ||
91 | |||
92 | rootfs@4a0000 { | ||
93 | label = "rootfs"; | ||
94 | reg = <0x4c0000 0x7800000>; | ||
95 | }; | ||
96 | |||
97 | data@7ca0000 { | ||
98 | label = "data"; | ||
99 | reg = <0x7cc0000 0x8340000>; | ||
100 | }; | ||
101 | }; | ||
102 | |||
103 | usb0: ohci@00500000 { | ||
104 | num-ports = <2>; | ||
105 | status = "okay"; | ||
106 | }; | ||
107 | }; | ||
108 | |||
109 | i2c@0 { | ||
110 | status = "okay"; | ||
111 | |||
112 | 24c512@50 { | ||
113 | compatible = "24c512"; | ||
114 | reg = <0x50>; | ||
115 | }; | ||
116 | |||
117 | wm8731@1b { | ||
118 | compatible = "wm8731"; | ||
119 | reg = <0x1b>; | ||
120 | }; | ||
121 | }; | ||
122 | |||
123 | gpio_keys { | ||
124 | compatible = "gpio-keys"; | ||
125 | #address-cells = <1>; | ||
126 | #size-cells = <0>; | ||
127 | |||
128 | btn3 { | ||
129 | label = "Buttin 3"; | ||
130 | gpios = <&pioA 30 1>; | ||
131 | linux,code = <0x103>; | ||
132 | gpio-key,wakeup; | ||
133 | }; | ||
134 | |||
135 | btn4 { | ||
136 | label = "Buttin 4"; | ||
137 | gpios = <&pioA 31 1>; | ||
138 | linux,code = <0x104>; | ||
139 | gpio-key,wakeup; | ||
140 | }; | ||
141 | }; | ||
142 | }; | ||
diff --git a/arch/arm/mach-at91/Makefile.boot b/arch/arm/mach-at91/Makefile.boot index bdf984167ebb..30d6c1038556 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 | # sam9g20 | 19 | # sam9g20 |
20 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek.dtb | ||
21 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek_2mmc.dtb | ||
20 | dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9g20.dtb | 22 | dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9g20.dtb |
21 | dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9g20.dtb | 23 | dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9g20.dtb |
22 | # sam9g45 | 24 | # sam9g45 |