]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/at91-cosino.dtsi
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[karo-tx-linux.git] / arch / arm / boot / dts / at91-cosino.dtsi
1 /*
2  * at91-cosino.dtsi - Device Tree file for Cosino core module
3  *
4  * Copyright (C) 2013 - Rodolfo Giometti <giometti@linux.it>
5  *                      HCE Engineering
6  *
7  * Derived from at91sam9x5ek.dtsi by:
8  *      Copyright (C) 2012 Atmel,
9  *      2012 Nicolas Ferre <nicolas.ferre@atmel.com>
10  *
11  * Licensed under GPLv2 or later.
12  */
13
14 #include "at91sam9g35.dtsi"
15
16 / {
17         model = "HCE Cosino core module";
18         compatible = "hce,cosino", "atmel,at91sam9x5", "atmel,at91sam9";
19
20         chosen {
21                 bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait";
22         };
23
24         memory {
25                 reg = <0x20000000 0x8000000>;
26         };
27
28         clocks {
29                 slow_xtal {
30                         clock-frequency = <32768>;
31                 };
32
33                 main_xtal {
34                         clock-frequency = <12000000>;
35                 };
36         };
37
38         ahb {
39                 apb {
40                         mmc0: mmc@f0008000 {
41                                 pinctrl-0 = <
42                                         &pinctrl_board_mmc0
43                                         &pinctrl_mmc0_slot0_clk_cmd_dat0
44                                         &pinctrl_mmc0_slot0_dat1_3>;
45                                 status = "okay";
46                                 slot@0 {
47                                         reg = <0>;
48                                         bus-width = <4>;
49                                         cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
50                                 };
51                         };
52
53                         dbgu: serial@fffff200 {
54                                 status = "okay";
55                         };
56
57                         usart0: serial@f801c000 {
58                                 status = "okay";
59                         };
60
61                         i2c0: i2c@f8010000 {
62                                 status = "okay";
63                         };
64
65                         adc0: adc@f804c000 {
66                                 atmel,adc-ts-wires = <4>;
67                                 atmel,adc-ts-pressure-threshold = <10000>;
68                                 status = "okay";
69                         };
70
71                         pinctrl@fffff400 {
72                                 mmc0 {
73                                         pinctrl_board_mmc0: mmc0-board {
74                                                 atmel,pins =
75                                                         <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;  /* PD15 gpio CD pin pull up and deglitch */
76                                         };
77                                 };
78                         };
79
80                         watchdog@fffffe40 {
81                                 status = "okay";
82                         };
83                 };
84
85                 ebi: ebi@10000000 {
86                         pinctrl-0 = <&pinctrl_ebi_addr_nand
87                                      &pinctrl_ebi_data_0_7>;
88                         pinctrl-names = "default";
89                         status = "okay";
90
91                         nand_controller: nand-controller {
92                                 status = "okay";
93                                 pinctrl-0 = <&pinctrl_nand_oe_we
94                                              &pinctrl_nand_cs
95                                              &pinctrl_nand_rb>;
96                                 pinctrl-names = "default";
97
98                                 nand@3 {
99                                         reg = <0x3 0x0 0x800000>;
100                                         rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
101                                         cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
102                                         nand-bus-width = <8>;
103                                         nand-ecc-mode = "hw";
104                                         nand-ecc-strength = <4>;
105                                         nand-ecc-step-size = <512>;
106                                         nand-on-flash-bbt;
107                                         label = "atmel_nand";
108
109                                         partitions {
110                                                 compatible = "fixed-partitions";
111                                                 #address-cells = <1>;
112                                                 #size-cells = <1>;
113
114                                                 at91bootstrap@0 {
115                                                         label = "at91bootstrap";
116                                                         reg = <0x0 0x40000>;
117                                                 };
118
119                                                 uboot@40000 {
120                                                         label = "u-boot";
121                                                         reg = <0x40000 0x80000>;
122                                                 };
123
124                                                 ubootenv@c0000 {
125                                                         label = "U-Boot Env";
126                                                         reg = <0xc0000 0x140000>;
127                                                 };
128
129                                                 kernel@200000 {
130                                                         label = "kernel";
131                                                         reg = <0x200000 0x600000>;
132                                                 };
133
134                                                 rootfs@800000 {
135                                                         label = "rootfs";
136                                                         reg = <0x800000 0x0f800000>;
137                                                 };
138                                         };
139                                 };
140                         };
141                 };
142         };
143 };