Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 1 | /* |
| 2 | * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board |
| 3 | * |
| 4 | * Copyright (C) 2011 Atmel, |
| 5 | * 2011 Nicolas Ferre <nicolas.ferre@atmel.com> |
| 6 | * |
| 7 | * Licensed under GPLv2 or later. |
| 8 | */ |
| 9 | /dts-v1/; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 10 | #include "at91sam9g45.dtsi" |
Alexandre Belloni | 66844c7 | 2014-03-19 00:15:41 +0100 | [diff] [blame] | 11 | #include <dt-bindings/pwm/pwm.h> |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "Atmel AT91SAM9M10G45-EK"; |
| 15 | compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9"; |
| 16 | |
| 17 | chosen { |
Alexandre Belloni | aa07046 | 2015-06-03 14:24:10 +0200 | [diff] [blame] | 18 | bootargs = "mem=64M root=/dev/mtdblock1 rw rootfstype=jffs2"; |
| 19 | stdout-path = "serial0:115200n8"; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 20 | }; |
| 21 | |
Ludovic Desroches | dcce6ce | 2012-04-02 20:44:20 +0200 | [diff] [blame] | 22 | memory { |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 23 | reg = <0x70000000 0x4000000>; |
| 24 | }; |
| 25 | |
Jean-Christophe PLAGNIOL-VILLARD | eb5e76f | 2012-03-02 20:44:23 +0800 | [diff] [blame] | 26 | clocks { |
| 27 | #address-cells = <1>; |
| 28 | #size-cells = <1>; |
| 29 | ranges; |
| 30 | |
| 31 | main_clock: clock@0 { |
| 32 | compatible = "atmel,osc", "fixed-clock"; |
| 33 | clock-frequency = <12000000>; |
| 34 | }; |
Alexandre Belloni | 4c67a13 | 2014-06-13 20:01:51 +0200 | [diff] [blame] | 35 | |
| 36 | slow_xtal { |
| 37 | clock-frequency = <32768>; |
| 38 | }; |
| 39 | |
| 40 | main_xtal { |
| 41 | clock-frequency = <12000000>; |
| 42 | }; |
Jean-Christophe PLAGNIOL-VILLARD | eb5e76f | 2012-03-02 20:44:23 +0800 | [diff] [blame] | 43 | }; |
| 44 | |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 45 | ahb { |
| 46 | apb { |
| 47 | dbgu: serial@ffffee00 { |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
| 51 | usart1: serial@fff90000 { |
Jean-Christophe PLAGNIOL-VILLARD | c58c0c5 | 2012-11-19 07:30:01 +0800 | [diff] [blame] | 52 | pinctrl-0 = |
| 53 | <&pinctrl_usart1 |
| 54 | &pinctrl_usart1_rts |
| 55 | &pinctrl_usart1_cts>; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 56 | status = "okay"; |
| 57 | }; |
Nicolas Ferre | 0d4f99d | 2011-12-05 18:03:05 +0100 | [diff] [blame] | 58 | |
| 59 | macb0: ethernet@fffbc000 { |
| 60 | phy-mode = "rmii"; |
| 61 | status = "okay"; |
| 62 | }; |
Ludovic Desroches | fbc1871 | 2012-09-12 08:42:17 +0200 | [diff] [blame] | 63 | |
| 64 | i2c0: i2c@fff84000 { |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
| 68 | i2c1: i2c@fff88000 { |
| 69 | status = "okay"; |
| 70 | }; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 71 | |
Wenyou Yang | c77bcef | 2013-05-31 11:11:33 +0800 | [diff] [blame] | 72 | watchdog@fffffd40 { |
| 73 | status = "okay"; |
| 74 | }; |
| 75 | |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 76 | mmc0: mmc@fff80000 { |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 77 | pinctrl-0 = < |
| 78 | &pinctrl_board_mmc0 |
| 79 | &pinctrl_mmc0_slot0_clk_cmd_dat0 |
| 80 | &pinctrl_mmc0_slot0_dat1_3>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 81 | status = "okay"; |
| 82 | slot@0 { |
| 83 | reg = <0>; |
| 84 | bus-width = <4>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 85 | cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 86 | }; |
| 87 | }; |
| 88 | |
| 89 | mmc1: mmc@fffd0000 { |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 90 | pinctrl-0 = < |
| 91 | &pinctrl_board_mmc1 |
| 92 | &pinctrl_mmc1_slot0_clk_cmd_dat0 |
| 93 | &pinctrl_mmc1_slot0_dat1_3>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 94 | status = "okay"; |
| 95 | slot@0 { |
| 96 | reg = <0>; |
| 97 | bus-width = <4>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 98 | cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>; |
| 99 | wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 100 | }; |
| 101 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 102 | |
| 103 | pinctrl@fffff200 { |
| 104 | mmc0 { |
| 105 | pinctrl_board_mmc0: mmc0-board { |
| 106 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 107 | <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */ |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 108 | }; |
| 109 | }; |
| 110 | |
| 111 | mmc1 { |
| 112 | pinctrl_board_mmc1: mmc1-board { |
| 113 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 114 | <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */ |
| 115 | AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */ |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 116 | }; |
| 117 | }; |
Bo Shen | eed9729 | 2013-12-19 11:59:18 +0800 | [diff] [blame] | 118 | |
| 119 | pwm0 { |
| 120 | pinctrl_pwm_leds: pwm-led { |
| 121 | atmel,pins = |
| 122 | <AT91_PIOD 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PD0 periph B */ |
| 123 | AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PD31 periph B */ |
| 124 | }; |
| 125 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 126 | }; |
Richard Genoud | b6811e9 | 2013-04-03 14:03:05 +0800 | [diff] [blame] | 127 | |
| 128 | spi0: spi@fffa4000{ |
| 129 | status = "okay"; |
| 130 | cs-gpios = <&pioB 3 0>, <0>, <0>, <0>; |
| 131 | mtd_dataflash@0 { |
| 132 | compatible = "atmel,at45", "atmel,dataflash"; |
| 133 | spi-max-frequency = <13000000>; |
| 134 | reg = <0>; |
| 135 | }; |
| 136 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 24ce10e | 2013-05-03 20:56:01 +0800 | [diff] [blame] | 137 | |
| 138 | usb2: gadget@fff78000 { |
| 139 | atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>; |
| 140 | status = "okay"; |
| 141 | }; |
Bo Shen | eed9729 | 2013-12-19 11:59:18 +0800 | [diff] [blame] | 142 | |
Alexandre Belloni | e10a57e | 2014-03-19 00:15:40 +0100 | [diff] [blame] | 143 | adc0: adc@fffb0000 { |
| 144 | pinctrl-names = "default"; |
| 145 | pinctrl-0 = < |
| 146 | &pinctrl_adc0_ad0 |
| 147 | &pinctrl_adc0_ad1 |
| 148 | &pinctrl_adc0_ad2 |
| 149 | &pinctrl_adc0_ad3 |
| 150 | &pinctrl_adc0_ad4 |
| 151 | &pinctrl_adc0_ad5 |
| 152 | &pinctrl_adc0_ad6 |
| 153 | &pinctrl_adc0_ad7>; |
| 154 | atmel,adc-ts-wires = <4>; |
| 155 | status = "okay"; |
| 156 | }; |
| 157 | |
Bo Shen | eed9729 | 2013-12-19 11:59:18 +0800 | [diff] [blame] | 158 | pwm0: pwm@fffb8000 { |
| 159 | status = "okay"; |
| 160 | |
| 161 | pinctrl-names = "default"; |
| 162 | pinctrl-0 = <&pinctrl_pwm_leds>; |
| 163 | }; |
Erik van Luijk | 4dd7933 | 2014-09-02 12:52:12 +0200 | [diff] [blame] | 164 | |
Boris Brezillon | 199ec7a | 2014-11-14 11:08:52 +0100 | [diff] [blame] | 165 | rtc@fffffd20 { |
| 166 | atmel,rtt-rtc-time-reg = <&gpbr 0x0>; |
| 167 | status = "okay"; |
| 168 | }; |
| 169 | |
| 170 | gpbr: syscon@fffffd60 { |
| 171 | status = "okay"; |
| 172 | }; |
| 173 | |
Erik van Luijk | 4dd7933 | 2014-09-02 12:52:12 +0200 | [diff] [blame] | 174 | rtc@fffffdb0 { |
| 175 | status = "okay"; |
| 176 | }; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 177 | }; |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 178 | |
Jean-Christophe PLAGNIOL-VILLARD | f4390a7 | 2013-03-29 02:11:22 +0800 | [diff] [blame] | 179 | fb0: fb@0x00500000 { |
| 180 | display = <&display0>; |
| 181 | status = "okay"; |
| 182 | |
| 183 | display0: display { |
| 184 | bits-per-pixel = <32>; |
| 185 | atmel,lcdcon-backlight; |
| 186 | atmel,dmacon = <0x1>; |
| 187 | atmel,lcdcon2 = <0x80008002>; |
| 188 | atmel,guard-time = <9>; |
| 189 | atmel,lcd-wiring-mode = "RGB"; |
| 190 | |
| 191 | display-timings { |
| 192 | native-mode = <&timing0>; |
| 193 | timing0: timing0 { |
| 194 | clock-frequency = <9000000>; |
| 195 | hactive = <480>; |
| 196 | vactive = <272>; |
| 197 | hback-porch = <1>; |
| 198 | hfront-porch = <1>; |
| 199 | vback-porch = <40>; |
| 200 | vfront-porch = <1>; |
| 201 | hsync-len = <45>; |
| 202 | vsync-len = <1>; |
| 203 | }; |
| 204 | }; |
| 205 | }; |
| 206 | }; |
| 207 | |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 208 | nand0: nand@40000000 { |
| 209 | nand-bus-width = <8>; |
| 210 | nand-ecc-mode = "soft"; |
| 211 | nand-on-flash-bbt; |
| 212 | status = "okay"; |
| 213 | |
| 214 | boot@0 { |
| 215 | label = "bootstrap/uboot/kernel"; |
| 216 | reg = <0x0 0x400000>; |
| 217 | }; |
| 218 | |
| 219 | rootfs@400000 { |
| 220 | label = "rootfs"; |
| 221 | reg = <0x400000 0x3C00000>; |
| 222 | }; |
| 223 | |
| 224 | data@4000000 { |
| 225 | label = "data"; |
| 226 | reg = <0x4000000 0xC000000>; |
| 227 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 6a06245 | 2011-11-21 06:55:18 +0800 | [diff] [blame] | 228 | }; |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 229 | |
Jean-Christophe PLAGNIOL-VILLARD | 6a06245 | 2011-11-21 06:55:18 +0800 | [diff] [blame] | 230 | usb0: ohci@00700000 { |
| 231 | status = "okay"; |
| 232 | num-ports = <2>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 233 | atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW |
| 234 | &pioD 3 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 235 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 62c5553 | 2011-11-22 12:11:13 +0800 | [diff] [blame] | 236 | |
| 237 | usb1: ehci@00800000 { |
| 238 | status = "okay"; |
| 239 | }; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 240 | }; |
Jean-Christophe PLAGNIOL-VILLARD | f2ee7ac | 2012-02-04 12:26:01 +0800 | [diff] [blame] | 241 | |
| 242 | leds { |
| 243 | compatible = "gpio-leds"; |
| 244 | |
| 245 | d8 { |
| 246 | label = "d8"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 247 | gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; |
Jean-Christophe PLAGNIOL-VILLARD | f2ee7ac | 2012-02-04 12:26:01 +0800 | [diff] [blame] | 248 | linux,default-trigger = "heartbeat"; |
| 249 | }; |
Bo Shen | eed9729 | 2013-12-19 11:59:18 +0800 | [diff] [blame] | 250 | }; |
| 251 | |
| 252 | pwmleds { |
| 253 | compatible = "pwm-leds"; |
Jean-Christophe PLAGNIOL-VILLARD | f2ee7ac | 2012-02-04 12:26:01 +0800 | [diff] [blame] | 254 | |
| 255 | d6 { |
| 256 | label = "d6"; |
Alexandre Belloni | 66844c7 | 2014-03-19 00:15:41 +0100 | [diff] [blame] | 257 | pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>; |
Bo Shen | eed9729 | 2013-12-19 11:59:18 +0800 | [diff] [blame] | 258 | max-brightness = <255>; |
Jean-Christophe PLAGNIOL-VILLARD | f2ee7ac | 2012-02-04 12:26:01 +0800 | [diff] [blame] | 259 | linux,default-trigger = "nand-disk"; |
| 260 | }; |
| 261 | |
| 262 | d7 { |
| 263 | label = "d7"; |
Alexandre Belloni | 66844c7 | 2014-03-19 00:15:41 +0100 | [diff] [blame] | 264 | pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>; |
Bo Shen | eed9729 | 2013-12-19 11:59:18 +0800 | [diff] [blame] | 265 | max-brightness = <255>; |
Jean-Christophe PLAGNIOL-VILLARD | f2ee7ac | 2012-02-04 12:26:01 +0800 | [diff] [blame] | 266 | linux,default-trigger = "mmc0"; |
| 267 | }; |
| 268 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 269 | |
| 270 | gpio_keys { |
| 271 | compatible = "gpio-keys"; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 272 | |
| 273 | left_click { |
| 274 | label = "left_click"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 275 | gpios = <&pioB 6 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 276 | linux,code = <272>; |
| 277 | gpio-key,wakeup; |
| 278 | }; |
| 279 | |
| 280 | right_click { |
| 281 | label = "right_click"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 282 | gpios = <&pioB 7 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 283 | linux,code = <273>; |
| 284 | gpio-key,wakeup; |
| 285 | }; |
| 286 | |
| 287 | left { |
| 288 | label = "Joystick Left"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 289 | gpios = <&pioB 14 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 290 | linux,code = <105>; |
| 291 | }; |
| 292 | |
| 293 | right { |
| 294 | label = "Joystick Right"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 295 | gpios = <&pioB 15 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 296 | linux,code = <106>; |
| 297 | }; |
| 298 | |
| 299 | up { |
| 300 | label = "Joystick Up"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 301 | gpios = <&pioB 16 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 302 | linux,code = <103>; |
| 303 | }; |
| 304 | |
| 305 | down { |
| 306 | label = "Joystick Down"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 307 | gpios = <&pioB 17 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 308 | linux,code = <108>; |
| 309 | }; |
| 310 | |
| 311 | enter { |
| 312 | label = "Joystick Press"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 313 | gpios = <&pioB 18 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 314 | linux,code = <28>; |
| 315 | }; |
| 316 | }; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 317 | }; |