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