Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 1 | /* |
| 2 | * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board |
| 3 | * |
| 4 | * Copyright (C) 2014 Atmel, |
| 5 | * 2014 Nicolas Ferre <nicolas.ferre@atmel.com> |
| 6 | * |
| 7 | * Licensed under GPLv2 or later. |
| 8 | */ |
| 9 | /dts-v1/; |
| 10 | #include "sama5d36.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "SAMA5D3 Xplained"; |
| 14 | compatible = "atmel,sama5d3-xplained", "atmel,sama5d3", "atmel,sama5"; |
| 15 | |
| 16 | chosen { |
| 17 | bootargs = "console=ttyS0,115200"; |
| 18 | }; |
| 19 | |
| 20 | memory { |
| 21 | reg = <0x20000000 0x10000000>; |
| 22 | }; |
| 23 | |
Alexandre Belloni | 334394c | 2014-06-17 15:30:20 +0200 | [diff] [blame] | 24 | clocks { |
| 25 | slow_xtal { |
| 26 | clock-frequency = <32768>; |
| 27 | }; |
Boris BREZILLON | 58a5c3d | 2014-04-22 15:12:36 +0200 | [diff] [blame] | 28 | |
Alexandre Belloni | 334394c | 2014-06-17 15:30:20 +0200 | [diff] [blame] | 29 | main_xtal { |
| 30 | clock-frequency = <12000000>; |
| 31 | }; |
Boris BREZILLON | 58a5c3d | 2014-04-22 15:12:36 +0200 | [diff] [blame] | 32 | }; |
| 33 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 34 | ahb { |
| 35 | apb { |
| 36 | mmc0: mmc@f0000000 { |
| 37 | pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; |
| 38 | status = "okay"; |
| 39 | slot@0 { |
| 40 | reg = <0>; |
| 41 | bus-width = <8>; |
| 42 | cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>; |
| 43 | }; |
| 44 | }; |
| 45 | |
Ben Dooks | 6f4728c5 | 2015-04-27 15:19:10 +0200 | [diff] [blame^] | 46 | mmc1: mmc@f8000000 { |
| 47 | vmmc-supply = <&vcc_3v3_reg>; |
| 48 | vqmmc-supply = <&vcc_3v3_reg>; |
| 49 | status = "disabled"; |
| 50 | slot@0 { |
| 51 | reg = <0>; |
| 52 | bus-width = <4>; |
| 53 | cd-gpios = <&pioE 1 GPIO_ACTIVE_LOW>; |
| 54 | }; |
| 55 | }; |
| 56 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 57 | spi0: spi@f0004000 { |
Bo Shen | d44db49 | 2014-04-01 15:12:43 +0800 | [diff] [blame] | 58 | cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | can0: can@f000c000 { |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | |
| 66 | i2c0: i2c@f0014000 { |
Nicolas Ferre | a3b8a7c | 2014-03-27 11:44:11 +0100 | [diff] [blame] | 67 | pinctrl-0 = <&pinctrl_i2c0_pu>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | i2c1: i2c@f0018000 { |
| 72 | status = "okay"; |
Wenyou Yang | a93f9c8 | 2014-04-21 12:29:07 +0800 | [diff] [blame] | 73 | |
| 74 | pmic: act8865@5b { |
| 75 | compatible = "active-semi,act8865"; |
| 76 | reg = <0x5b>; |
| 77 | status = "okay"; |
| 78 | |
| 79 | regulators { |
| 80 | vcc_1v8_reg: DCDC_REG1 { |
| 81 | regulator-name = "VCC_1V8"; |
| 82 | regulator-min-microvolt = <1800000>; |
| 83 | regulator-max-microvolt = <1800000>; |
| 84 | regulator-always-on; |
| 85 | }; |
| 86 | |
| 87 | vcc_1v2_reg: DCDC_REG2 { |
| 88 | regulator-name = "VCC_1V2"; |
| 89 | regulator-min-microvolt = <1200000>; |
| 90 | regulator-max-microvolt = <1200000>; |
| 91 | regulator-always-on; |
| 92 | }; |
| 93 | |
| 94 | vcc_3v3_reg: DCDC_REG3 { |
| 95 | regulator-name = "VCC_3V3"; |
| 96 | regulator-min-microvolt = <3300000>; |
| 97 | regulator-max-microvolt = <3300000>; |
| 98 | regulator-always-on; |
| 99 | }; |
| 100 | |
| 101 | vddfuse_reg: LDO_REG1 { |
| 102 | regulator-name = "FUSE_2V5"; |
| 103 | regulator-min-microvolt = <2500000>; |
| 104 | regulator-max-microvolt = <2500000>; |
| 105 | }; |
| 106 | |
| 107 | vddana_reg: LDO_REG2 { |
| 108 | regulator-name = "VDDANA"; |
| 109 | regulator-min-microvolt = <3300000>; |
| 110 | regulator-max-microvolt = <3300000>; |
| 111 | regulator-always-on; |
| 112 | }; |
| 113 | }; |
| 114 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | macb0: ethernet@f0028000 { |
| 118 | phy-mode = "rgmii"; |
Nicolas Ferre | 9e65adb | 2015-03-31 11:01:12 +0200 | [diff] [blame] | 119 | #address-cells = <1>; |
| 120 | #size-cells = <0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 121 | status = "okay"; |
Nicolas Ferre | 9e65adb | 2015-03-31 11:01:12 +0200 | [diff] [blame] | 122 | |
| 123 | ethernet-phy@7 { |
| 124 | reg = <0x7>; |
| 125 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 126 | }; |
| 127 | |
Nicolas Ferre | 0da40f3 | 2014-04-24 17:34:14 +0200 | [diff] [blame] | 128 | pwm0: pwm@f002c000 { |
| 129 | pinctrl-names = "default"; |
| 130 | pinctrl-0 = <&pinctrl_pwm0_pwmh0_0 &pinctrl_pwm0_pwmh1_0>; |
| 131 | status = "okay"; |
| 132 | }; |
| 133 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 134 | usart0: serial@f001c000 { |
| 135 | status = "okay"; |
| 136 | }; |
| 137 | |
| 138 | usart1: serial@f0020000 { |
| 139 | pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>; |
| 140 | status = "okay"; |
| 141 | }; |
| 142 | |
| 143 | uart0: serial@f0024000 { |
| 144 | status = "okay"; |
| 145 | }; |
| 146 | |
| 147 | mmc1: mmc@f8000000 { |
| 148 | pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>; |
| 149 | status = "okay"; |
| 150 | slot@0 { |
| 151 | reg = <0>; |
| 152 | bus-width = <4>; |
| 153 | cd-gpios = <&pioE 1 GPIO_ACTIVE_HIGH>; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | spi1: spi@f8008000 { |
Bo Shen | d44db49 | 2014-04-01 15:12:43 +0800 | [diff] [blame] | 158 | cs-gpios = <&pioC 25 0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 159 | status = "okay"; |
| 160 | }; |
| 161 | |
| 162 | adc0: adc@f8018000 { |
| 163 | pinctrl-0 = < |
| 164 | &pinctrl_adc0_adtrg |
| 165 | &pinctrl_adc0_ad0 |
| 166 | &pinctrl_adc0_ad1 |
| 167 | &pinctrl_adc0_ad2 |
| 168 | &pinctrl_adc0_ad3 |
| 169 | &pinctrl_adc0_ad4 |
| 170 | &pinctrl_adc0_ad5 |
| 171 | &pinctrl_adc0_ad6 |
| 172 | &pinctrl_adc0_ad7 |
| 173 | &pinctrl_adc0_ad8 |
| 174 | &pinctrl_adc0_ad9 |
| 175 | >; |
| 176 | status = "okay"; |
| 177 | }; |
| 178 | |
| 179 | i2c2: i2c@f801c000 { |
| 180 | dmas = <0>, <0>; /* Do not use DMA for i2c2 */ |
Nicolas Ferre | a3b8a7c | 2014-03-27 11:44:11 +0100 | [diff] [blame] | 181 | pinctrl-0 = <&pinctrl_i2c2_pu>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 182 | status = "okay"; |
| 183 | }; |
| 184 | |
| 185 | macb1: ethernet@f802c000 { |
| 186 | phy-mode = "rmii"; |
Nicolas Ferre | 98b8098 | 2015-03-31 10:56:10 +0200 | [diff] [blame] | 187 | #address-cells = <1>; |
| 188 | #size-cells = <0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 189 | status = "okay"; |
Nicolas Ferre | 98b8098 | 2015-03-31 10:56:10 +0200 | [diff] [blame] | 190 | |
| 191 | ethernet-phy@1 { |
| 192 | reg = <0x1>; |
| 193 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 194 | }; |
| 195 | |
| 196 | dbgu: serial@ffffee00 { |
| 197 | status = "okay"; |
| 198 | }; |
| 199 | |
| 200 | pinctrl@fffff200 { |
| 201 | board { |
Nicolas Ferre | a3b8a7c | 2014-03-27 11:44:11 +0100 | [diff] [blame] | 202 | pinctrl_i2c0_pu: i2c0_pu { |
| 203 | atmel,pins = |
| 204 | <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>, |
| 205 | <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; |
| 206 | }; |
| 207 | |
| 208 | pinctrl_i2c2_pu: i2c2_pu { |
| 209 | atmel,pins = |
| 210 | <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>, |
| 211 | <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; |
| 212 | }; |
| 213 | |
Wenyou Yang | 6d39bb0 | 2014-08-13 12:58:21 +0800 | [diff] [blame] | 214 | pinctrl_key_gpio: key_gpio_0 { |
| 215 | atmel,pins = |
| 216 | <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
| 217 | }; |
| 218 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 219 | pinctrl_mmc0_cd: mmc0_cd { |
| 220 | atmel,pins = |
| 221 | <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
| 222 | }; |
| 223 | |
| 224 | pinctrl_mmc1_cd: mmc1_cd { |
| 225 | atmel,pins = |
| 226 | <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
| 227 | }; |
| 228 | |
| 229 | pinctrl_usba_vbus: usba_vbus { |
| 230 | atmel,pins = |
| 231 | <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PE9, conflicts with A9 */ |
| 232 | }; |
| 233 | }; |
| 234 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 235 | }; |
| 236 | |
| 237 | nand0: nand@60000000 { |
| 238 | nand-bus-width = <8>; |
| 239 | nand-ecc-mode = "hw"; |
| 240 | atmel,has-pmecc; |
| 241 | atmel,pmecc-cap = <4>; |
| 242 | atmel,pmecc-sector-size = <512>; |
| 243 | nand-on-flash-bbt; |
| 244 | status = "okay"; |
| 245 | |
| 246 | at91bootstrap@0 { |
| 247 | label = "at91bootstrap"; |
| 248 | reg = <0x0 0x40000>; |
| 249 | }; |
| 250 | |
| 251 | bootloader@40000 { |
| 252 | label = "bootloader"; |
| 253 | reg = <0x40000 0x80000>; |
| 254 | }; |
| 255 | |
| 256 | bootloaderenv@c0000 { |
| 257 | label = "bootloader env"; |
| 258 | reg = <0xc0000 0xc0000>; |
| 259 | }; |
| 260 | |
| 261 | dtb@180000 { |
| 262 | label = "device tree"; |
| 263 | reg = <0x180000 0x80000>; |
| 264 | }; |
| 265 | |
| 266 | kernel@200000 { |
| 267 | label = "kernel"; |
| 268 | reg = <0x200000 0x600000>; |
| 269 | }; |
| 270 | |
| 271 | rootfs@800000 { |
| 272 | label = "rootfs"; |
| 273 | reg = <0x800000 0x0f800000>; |
| 274 | }; |
| 275 | }; |
| 276 | |
| 277 | usb0: gadget@00500000 { |
| 278 | atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>; /* PE9, conflicts with A9 */ |
| 279 | pinctrl-names = "default"; |
| 280 | pinctrl-0 = <&pinctrl_usba_vbus>; |
| 281 | status = "okay"; |
| 282 | }; |
| 283 | |
| 284 | usb1: ohci@00600000 { |
| 285 | num-ports = <3>; |
| 286 | atmel,vbus-gpio = <0 |
| 287 | &pioE 3 GPIO_ACTIVE_LOW |
| 288 | &pioE 4 GPIO_ACTIVE_LOW |
| 289 | >; |
| 290 | status = "okay"; |
| 291 | }; |
| 292 | |
| 293 | usb2: ehci@00700000 { |
| 294 | status = "okay"; |
| 295 | }; |
| 296 | }; |
| 297 | |
| 298 | gpio_keys { |
| 299 | compatible = "gpio-keys"; |
| 300 | |
Wenyou Yang | 6d39bb0 | 2014-08-13 12:58:21 +0800 | [diff] [blame] | 301 | pinctrl-names = "default"; |
| 302 | pinctrl-0 = <&pinctrl_key_gpio>; |
| 303 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 304 | bp3 { |
| 305 | label = "PB_USER"; |
| 306 | gpios = <&pioE 29 GPIO_ACTIVE_LOW>; |
| 307 | linux,code = <0x104>; |
| 308 | gpio-key,wakeup; |
| 309 | }; |
| 310 | }; |
| 311 | |
| 312 | leds { |
| 313 | compatible = "gpio-leds"; |
| 314 | |
| 315 | d2 { |
| 316 | label = "d2"; |
| 317 | gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */ |
| 318 | linux,default-trigger = "heartbeat"; |
| 319 | }; |
| 320 | |
| 321 | d3 { |
| 322 | label = "d3"; |
| 323 | gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; |
| 324 | }; |
| 325 | }; |
| 326 | }; |