Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 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 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 9 | #include "sama5d3xcm.dtsi" |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 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>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 23 | cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 24 | }; |
| 25 | }; |
| 26 | |
| 27 | spi0: spi@f0004000 { |
Bo Shen | fe855db | 2014-09-18 14:56:43 +0200 | [diff] [blame] | 28 | dmas = <0>, <0>; /* Do not use DMA for spi0 */ |
| 29 | |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 30 | m25p80@0 { |
| 31 | compatible = "atmel,at25df321a"; |
| 32 | spi-max-frequency = <50000000>; |
| 33 | reg = <0>; |
| 34 | }; |
| 35 | }; |
| 36 | |
Bo Shen | 27a96a0 | 2014-03-17 17:45:38 +0800 | [diff] [blame] | 37 | ssc0: ssc@f0008000 { |
| 38 | atmel,clk-from-rk-pin; |
| 39 | }; |
| 40 | |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 41 | /* |
| 42 | * i2c0 conflicts with ISI: |
| 43 | * disable it to allow the use of ISI |
| 44 | * can not enable audio when i2c0 disabled |
| 45 | */ |
| 46 | i2c0: i2c@f0014000 { |
| 47 | wm8904: wm8904@1a { |
| 48 | compatible = "wm8904"; |
| 49 | reg = <0x1a>; |
Bo Shen | 18f44d7 | 2014-06-09 11:31:46 +0800 | [diff] [blame] | 50 | clocks = <&pck0>; |
| 51 | clock-names = "mclk"; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 52 | }; |
| 53 | }; |
| 54 | |
| 55 | usart1: serial@f0020000 { |
Bo Shen | fe855db | 2014-09-18 14:56:43 +0200 | [diff] [blame] | 56 | dmas = <0>, <0>; /* Do not use DMA for usart1 */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 57 | pinctrl-names = "default"; |
| 58 | pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | isi: isi@f0034000 { |
| 63 | pinctrl-names = "default"; |
Bo Shen | cbaa29c | 2015-01-04 17:02:27 +0800 | [diff] [blame] | 64 | pinctrl-0 = <&pinctrl_isi_data_0_7 &pinctrl_isi_pck_as_mck &pinctrl_isi_power &pinctrl_isi_reset>; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | mmc1: mmc@f8000000 { |
| 68 | pinctrl-names = "default"; |
| 69 | pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>; |
| 70 | status = "okay"; |
| 71 | slot@0 { |
| 72 | reg = <0>; |
| 73 | bus-width = <4>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 74 | cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 75 | }; |
| 76 | }; |
| 77 | |
| 78 | adc0: adc@f8018000 { |
| 79 | pinctrl-names = "default"; |
| 80 | pinctrl-0 = < |
| 81 | &pinctrl_adc0_adtrg |
| 82 | &pinctrl_adc0_ad0 |
| 83 | &pinctrl_adc0_ad1 |
| 84 | &pinctrl_adc0_ad2 |
| 85 | &pinctrl_adc0_ad3 |
| 86 | &pinctrl_adc0_ad4 |
| 87 | >; |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
| 91 | macb1: ethernet@f802c000 { |
| 92 | phy-mode = "rmii"; |
Boris BREZILLON | 8c038e7 | 2013-08-22 17:58:29 +0200 | [diff] [blame] | 93 | |
| 94 | #address-cells = <1>; |
| 95 | #size-cells = <0>; |
Boris BREZILLON | a3a975b | 2013-08-27 14:41:53 +0200 | [diff] [blame] | 96 | phy0: ethernet-phy@1 { |
Boris BREZILLON | 8c038e7 | 2013-08-22 17:58:29 +0200 | [diff] [blame] | 97 | interrupt-parent = <&pioE>; |
| 98 | interrupts = <30 IRQ_TYPE_EDGE_FALLING>; |
| 99 | reg = <1>; |
| 100 | }; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | pinctrl@fffff200 { |
| 104 | board { |
| 105 | pinctrl_mmc0_cd: mmc0_cd { |
| 106 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 107 | <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD17 GPIO with pullup deglitch */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 108 | }; |
| 109 | |
| 110 | pinctrl_mmc1_cd: mmc1_cd { |
| 111 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 112 | <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD18 GPIO with pullup deglitch */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 113 | }; |
| 114 | |
| 115 | pinctrl_pck0_as_audio_mck: pck0_as_audio_mck { |
| 116 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 117 | <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD30 periph B */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 118 | }; |
| 119 | |
Bo Shen | 24fe3f0 | 2015-01-04 17:02:29 +0800 | [diff] [blame^] | 120 | pinctrl_isi_pck_as_mck: isi_pck_as_mck-0 { |
| 121 | atmel,pins = |
| 122 | <AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD31 periph B ISI_MCK */ |
| 123 | }; |
| 124 | |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 125 | pinctrl_isi_reset: isi_reset-0 { |
| 126 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 127 | <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE24 gpio */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 128 | }; |
| 129 | |
| 130 | pinctrl_isi_power: isi_power-0 { |
| 131 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 132 | <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE29 gpio */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 133 | }; |
| 134 | |
| 135 | pinctrl_usba_vbus: usba_vbus { |
| 136 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 137 | <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PD29 GPIO with deglitch */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 138 | }; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | dbgu: serial@ffffee00 { |
Bo Shen | fe855db | 2014-09-18 14:56:43 +0200 | [diff] [blame] | 143 | dmas = <0>, <0>; /* Do not use DMA for dbgu */ |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 144 | status = "okay"; |
| 145 | }; |
| 146 | |
| 147 | watchdog@fffffe40 { |
| 148 | status = "okay"; |
| 149 | }; |
| 150 | }; |
| 151 | |
| 152 | usb0: gadget@00500000 { |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 153 | atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 154 | pinctrl-names = "default"; |
| 155 | pinctrl-0 = <&pinctrl_usba_vbus>; |
| 156 | status = "okay"; |
| 157 | }; |
| 158 | |
| 159 | usb1: ohci@00600000 { |
| 160 | num-ports = <3>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 161 | atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH |
| 162 | &pioD 26 GPIO_ACTIVE_LOW |
| 163 | &pioD 27 GPIO_ACTIVE_LOW |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 164 | >; |
| 165 | status = "okay"; |
| 166 | }; |
| 167 | |
| 168 | usb2: ehci@00700000 { |
| 169 | status = "okay"; |
| 170 | }; |
| 171 | }; |
| 172 | |
| 173 | sound { |
Bo Shen | 469bbf0 | 2014-03-17 17:45:36 +0800 | [diff] [blame] | 174 | compatible = "atmel,asoc-wm8904"; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 175 | pinctrl-names = "default"; |
| 176 | pinctrl-0 = <&pinctrl_pck0_as_audio_mck>; |
| 177 | |
| 178 | atmel,model = "wm8904 @ SAMA5D3EK"; |
| 179 | atmel,audio-routing = |
| 180 | "Headphone Jack", "HPOUTL", |
| 181 | "Headphone Jack", "HPOUTR", |
| 182 | "IN2L", "Line In Jack", |
| 183 | "IN2R", "Line In Jack", |
Bo Shen | 7a61fb0 | 2014-03-17 17:45:37 +0800 | [diff] [blame] | 184 | "MICBIAS", "IN1L", |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 185 | "IN1L", "Mic"; |
| 186 | |
| 187 | atmel,ssc-controller = <&ssc0>; |
| 188 | atmel,audio-codec = <&wm8904>; |
Bo Shen | 208ec6f | 2014-03-17 17:45:35 +0800 | [diff] [blame] | 189 | |
| 190 | status = "disabled"; |
Ludovic Desroches | 655ff266 | 2013-03-22 13:24:13 +0000 | [diff] [blame] | 191 | }; |
| 192 | }; |