Commit | Line | Data |
---|---|---|
655ff266 LD |
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 | */ | |
6db64d29 | 9 | #include "sama5d3xcm.dtsi" |
655ff266 LD |
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>; | |
92f8629b | 23 | cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>; |
655ff266 LD |
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 | ||
27a96a03 BS |
35 | ssc0: ssc@f0008000 { |
36 | atmel,clk-from-rk-pin; | |
37 | }; | |
38 | ||
655ff266 LD |
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>; | |
18f44d7b BS |
48 | clocks = <&pck0>; |
49 | clock-names = "mclk"; | |
655ff266 LD |
50 | }; |
51 | }; | |
52 | ||
53 | usart1: serial@f0020000 { | |
54 | pinctrl-names = "default"; | |
55 | pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>; | |
56 | status = "okay"; | |
57 | }; | |
58 | ||
59 | isi: isi@f0034000 { | |
60 | pinctrl-names = "default"; | |
61 | pinctrl-0 = <&pinctrl_isi &pinctrl_isi_pck_as_mck &pinctrl_isi_power &pinctrl_isi_reset>; | |
62 | }; | |
63 | ||
64 | mmc1: mmc@f8000000 { | |
65 | pinctrl-names = "default"; | |
66 | pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>; | |
67 | status = "okay"; | |
68 | slot@0 { | |
69 | reg = <0>; | |
70 | bus-width = <4>; | |
92f8629b | 71 | cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>; |
655ff266 LD |
72 | }; |
73 | }; | |
74 | ||
75 | adc0: adc@f8018000 { | |
76 | pinctrl-names = "default"; | |
77 | pinctrl-0 = < | |
78 | &pinctrl_adc0_adtrg | |
79 | &pinctrl_adc0_ad0 | |
80 | &pinctrl_adc0_ad1 | |
81 | &pinctrl_adc0_ad2 | |
82 | &pinctrl_adc0_ad3 | |
83 | &pinctrl_adc0_ad4 | |
84 | >; | |
85 | status = "okay"; | |
86 | }; | |
87 | ||
88 | macb1: ethernet@f802c000 { | |
89 | phy-mode = "rmii"; | |
8c038e7e BB |
90 | |
91 | #address-cells = <1>; | |
92 | #size-cells = <0>; | |
a3a975b1 | 93 | phy0: ethernet-phy@1 { |
8c038e7e BB |
94 | interrupt-parent = <&pioE>; |
95 | interrupts = <30 IRQ_TYPE_EDGE_FALLING>; | |
96 | reg = <1>; | |
97 | }; | |
655ff266 LD |
98 | }; |
99 | ||
100 | pinctrl@fffff200 { | |
101 | board { | |
102 | pinctrl_mmc0_cd: mmc0_cd { | |
103 | atmel,pins = | |
c9d0f317 | 104 | <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD17 GPIO with pullup deglitch */ |
655ff266 LD |
105 | }; |
106 | ||
107 | pinctrl_mmc1_cd: mmc1_cd { | |
108 | atmel,pins = | |
c9d0f317 | 109 | <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD18 GPIO with pullup deglitch */ |
655ff266 LD |
110 | }; |
111 | ||
112 | pinctrl_pck0_as_audio_mck: pck0_as_audio_mck { | |
113 | atmel,pins = | |
c9d0f317 | 114 | <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD30 periph B */ |
655ff266 LD |
115 | }; |
116 | ||
117 | pinctrl_isi_reset: isi_reset-0 { | |
118 | atmel,pins = | |
c9d0f317 | 119 | <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE24 gpio */ |
655ff266 LD |
120 | }; |
121 | ||
122 | pinctrl_isi_power: isi_power-0 { | |
123 | atmel,pins = | |
c9d0f317 | 124 | <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE29 gpio */ |
655ff266 LD |
125 | }; |
126 | ||
127 | pinctrl_usba_vbus: usba_vbus { | |
128 | atmel,pins = | |
c9d0f317 | 129 | <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PD29 GPIO with deglitch */ |
655ff266 LD |
130 | }; |
131 | }; | |
132 | }; | |
133 | ||
134 | dbgu: serial@ffffee00 { | |
135 | status = "okay"; | |
136 | }; | |
137 | ||
138 | watchdog@fffffe40 { | |
139 | status = "okay"; | |
140 | }; | |
141 | }; | |
142 | ||
143 | usb0: gadget@00500000 { | |
92f8629b | 144 | atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>; |
655ff266 LD |
145 | pinctrl-names = "default"; |
146 | pinctrl-0 = <&pinctrl_usba_vbus>; | |
147 | status = "okay"; | |
148 | }; | |
149 | ||
150 | usb1: ohci@00600000 { | |
151 | num-ports = <3>; | |
92f8629b JCPV |
152 | atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH |
153 | &pioD 26 GPIO_ACTIVE_LOW | |
154 | &pioD 27 GPIO_ACTIVE_LOW | |
655ff266 LD |
155 | >; |
156 | status = "okay"; | |
157 | }; | |
158 | ||
159 | usb2: ehci@00700000 { | |
160 | status = "okay"; | |
161 | }; | |
162 | }; | |
163 | ||
164 | sound { | |
469bbf0a | 165 | compatible = "atmel,asoc-wm8904"; |
655ff266 LD |
166 | pinctrl-names = "default"; |
167 | pinctrl-0 = <&pinctrl_pck0_as_audio_mck>; | |
168 | ||
169 | atmel,model = "wm8904 @ SAMA5D3EK"; | |
170 | atmel,audio-routing = | |
171 | "Headphone Jack", "HPOUTL", | |
172 | "Headphone Jack", "HPOUTR", | |
173 | "IN2L", "Line In Jack", | |
174 | "IN2R", "Line In Jack", | |
7a61fb07 | 175 | "MICBIAS", "IN1L", |
655ff266 LD |
176 | "IN1L", "Mic"; |
177 | ||
178 | atmel,ssc-controller = <&ssc0>; | |
179 | atmel,audio-codec = <&wm8904>; | |
208ec6ff BS |
180 | |
181 | status = "disabled"; | |
655ff266 LD |
182 | }; |
183 | }; |