]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/sama5d3xmb.dtsi
KARO: cleanup after merge of Freescale 3.10.17 stuff
[karo-tx-linux.git] / arch / arm / boot / dts / sama5d3xmb.dtsi
1 /*
2  * sama5d3xmb.dts - Device Tree file for SAMA5D3x mother board
3  *
4  *  Copyright (C) 2013 Atmel,
5  *                2013 Ludovic Desroches <ludovic.desroches@atmel.com>
6  *
7  * Licensed under GPLv2 or later.
8  */
9 #include "sama5d3xcm.dtsi"
10
11 / {
12         compatible = "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5";
13
14         ahb {
15                 apb {
16                         mmc0: mmc@f0000000 {
17                                 pinctrl-names = "default";
18                                 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
19                                 status = "okay";
20                                 slot@0 {
21                                         reg = <0>;
22                                         bus-width = <4>;
23                                         cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
24                                 };
25                         };
26
27                         spi0: spi@f0004000 {
28                                 m25p80@0 {
29                                         compatible = "atmel,at25df321a";
30                                         spi-max-frequency = <50000000>;
31                                         reg = <0>;
32                                 };
33                         };
34
35                         ssc0: ssc@f0008000 {
36                                 atmel,clk-from-rk-pin;
37                         };
38
39                         /*
40                          * i2c0 conflicts with ISI:
41                          * disable it to allow the use of ISI
42                          * can not enable audio when i2c0 disabled
43                          */
44                         i2c0: i2c@f0014000 {
45                                 wm8904: wm8904@1a {
46                                         compatible = "wm8904";
47                                         reg = <0x1a>;
48                                 };
49                         };
50
51                         usart1: serial@f0020000 {
52                                 pinctrl-names = "default";
53                                 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
54                                 status = "okay";
55                         };
56
57                         isi: isi@f0034000 {
58                                 pinctrl-names = "default";
59                                 pinctrl-0 = <&pinctrl_isi &pinctrl_isi_pck_as_mck &pinctrl_isi_power &pinctrl_isi_reset>;
60                         };
61
62                         mmc1: mmc@f8000000 {
63                                 pinctrl-names = "default";
64                                 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
65                                 status = "okay";
66                                 slot@0 {
67                                         reg = <0>;
68                                         bus-width = <4>;
69                                         cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>;
70                                 };
71                         };
72
73                         adc0: adc@f8018000 {
74                                 pinctrl-names = "default";
75                                 pinctrl-0 = <
76                                         &pinctrl_adc0_adtrg
77                                         &pinctrl_adc0_ad0
78                                         &pinctrl_adc0_ad1
79                                         &pinctrl_adc0_ad2
80                                         &pinctrl_adc0_ad3
81                                         &pinctrl_adc0_ad4
82                                         >;
83                                 status = "okay";
84                         };
85
86                         macb1: ethernet@f802c000 {
87                                 phy-mode = "rmii";
88
89                                 #address-cells = <1>;
90                                 #size-cells = <0>;
91                                 phy0: ethernet-phy@1 {
92                                         interrupt-parent = <&pioE>;
93                                         interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
94                                         reg = <1>;
95                                 };
96                         };
97
98                         pinctrl@fffff200 {
99                                 board {
100                                         pinctrl_mmc0_cd: mmc0_cd {
101                                                 atmel,pins =
102                                                         <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD17 GPIO with pullup deglitch */
103                                         };
104
105                                         pinctrl_mmc1_cd: mmc1_cd {
106                                                 atmel,pins =
107                                                         <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD18 GPIO with pullup deglitch */
108                                         };
109
110                                         pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
111                                                 atmel,pins =
112                                                         <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD30 periph B */
113                                         };
114
115                                         pinctrl_isi_reset: isi_reset-0 {
116                                                 atmel,pins =
117                                                         <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;   /* PE24 gpio */
118                                         };
119
120                                         pinctrl_isi_power: isi_power-0 {
121                                                 atmel,pins =
122                                                         <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE29 gpio */
123                                         };
124
125                                         pinctrl_usba_vbus: usba_vbus {
126                                                 atmel,pins =
127                                                         <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PD29 GPIO with deglitch */
128                                         };
129                                 };
130                         };
131
132                         dbgu: serial@ffffee00 {
133                                 status = "okay";
134                         };
135
136                         watchdog@fffffe40 {
137                                 status = "okay";
138                         };
139                 };
140
141                 usb0: gadget@00500000 {
142                         atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
143                         pinctrl-names = "default";
144                         pinctrl-0 = <&pinctrl_usba_vbus>;
145                         status = "okay";
146                 };
147
148                 usb1: ohci@00600000 {
149                         num-ports = <3>;
150                         atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH
151                                            &pioD 26 GPIO_ACTIVE_LOW
152                                            &pioD 27 GPIO_ACTIVE_LOW
153                                           >;
154                         status = "okay";
155                 };
156
157                 usb2: ehci@00700000 {
158                         status = "okay";
159                 };
160         };
161
162         sound {
163                 compatible = "atmel,asoc-wm8904";
164                 pinctrl-names = "default";
165                 pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
166
167                 atmel,model = "wm8904 @ SAMA5D3EK";
168                 atmel,audio-routing =
169                         "Headphone Jack", "HPOUTL",
170                         "Headphone Jack", "HPOUTR",
171                         "IN2L", "Line In Jack",
172                         "IN2R", "Line In Jack",
173                         "MICBIAS", "IN1L",
174                         "IN1L", "Mic";
175
176                 atmel,ssc-controller = <&ssc0>;
177                 atmel,audio-codec = <&wm8904>;
178
179                 status = "disabled";
180         };
181 };