Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 1 | /* |
| 2 | * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board |
| 3 | * |
| 4 | * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
| 5 | * |
| 6 | * Licensed under GPLv2 only |
| 7 | */ |
| 8 | /dts-v1/; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 9 | #include "at91sam9263.dtsi" |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "Atmel at91sam9263ek"; |
| 13 | compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9"; |
| 14 | |
| 15 | chosen { |
| 16 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs"; |
| 17 | }; |
| 18 | |
| 19 | memory { |
| 20 | reg = <0x20000000 0x4000000>; |
| 21 | }; |
| 22 | |
| 23 | clocks { |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <1>; |
| 26 | ranges; |
| 27 | |
| 28 | main_clock: clock@0 { |
| 29 | compatible = "atmel,osc", "fixed-clock"; |
| 30 | clock-frequency = <16367660>; |
| 31 | }; |
Alexandre Belloni | c8b41e0 | 2014-06-24 08:21:46 +0200 | [diff] [blame] | 32 | |
| 33 | slow_xtal { |
| 34 | clock-frequency = <32768>; |
| 35 | }; |
| 36 | |
| 37 | main_xtal { |
| 38 | clock-frequency = <16367660>; |
| 39 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | ahb { |
| 43 | apb { |
| 44 | dbgu: serial@ffffee00 { |
| 45 | status = "okay"; |
| 46 | }; |
| 47 | |
| 48 | usart0: serial@fff8c000 { |
Jean-Christophe PLAGNIOL-VILLARD | c58c0c5 | 2012-11-19 07:30:01 +0800 | [diff] [blame] | 49 | pinctrl-0 = < |
| 50 | &pinctrl_usart0 |
| 51 | &pinctrl_usart0_rts |
| 52 | &pinctrl_usart0_cts>; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 53 | status = "okay"; |
| 54 | }; |
| 55 | |
| 56 | macb0: ethernet@fffbc000 { |
| 57 | phy-mode = "rmii"; |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
| 61 | usb1: gadget@fff78000 { |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 62 | atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 63 | status = "okay"; |
| 64 | }; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 65 | |
| 66 | mmc0: mmc@fff80000 { |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 67 | pinctrl-0 = < |
| 68 | &pinctrl_board_mmc0 |
| 69 | &pinctrl_mmc0_clk |
| 70 | &pinctrl_mmc0_slot0_cmd_dat0 |
| 71 | &pinctrl_mmc0_slot0_dat1_3>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 72 | status = "okay"; |
| 73 | slot@0 { |
| 74 | reg = <0>; |
| 75 | bus-width = <4>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 76 | cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>; |
| 77 | wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 78 | }; |
| 79 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 80 | |
| 81 | pinctrl@fffff200 { |
| 82 | mmc0 { |
| 83 | pinctrl_board_mmc0: mmc0-board { |
| 84 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 85 | <AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PE18 gpio CD pin pull up and deglitch */ |
| 86 | AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PE19 gpio WP pin pull up */ |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 87 | }; |
| 88 | }; |
| 89 | }; |
Richard Genoud | b6811e9 | 2013-04-03 14:03:05 +0800 | [diff] [blame] | 90 | |
| 91 | spi0: spi@fffa4000 { |
| 92 | status = "okay"; |
| 93 | cs-gpios = <&pioA 5 0>, <0>, <0>, <0>; |
| 94 | mtd_dataflash@0 { |
| 95 | compatible = "atmel,at45", "atmel,dataflash"; |
| 96 | spi-max-frequency = <50000000>; |
| 97 | reg = <0>; |
| 98 | }; |
| 99 | }; |
Wenyou Yang | c77bcef | 2013-05-31 11:11:33 +0800 | [diff] [blame] | 100 | |
| 101 | watchdog@fffffd40 { |
| 102 | status = "okay"; |
| 103 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 104 | }; |
| 105 | |
Jean-Christophe PLAGNIOL-VILLARD | 510e378 | 2013-03-29 05:09:00 +0800 | [diff] [blame] | 106 | fb0: fb@0x00700000 { |
| 107 | display = <&display0>; |
| 108 | status = "okay"; |
| 109 | |
| 110 | display0: display { |
| 111 | bits-per-pixel = <16>; |
| 112 | atmel,lcdcon-backlight; |
| 113 | atmel,dmacon = <0x1>; |
| 114 | atmel,lcdcon2 = <0x80008002>; |
| 115 | atmel,guard-time = <1>; |
| 116 | |
| 117 | display-timings { |
| 118 | native-mode = <&timing0>; |
| 119 | timing0: timing0 { |
| 120 | clock-frequency = <4965000>; |
| 121 | hactive = <240>; |
| 122 | vactive = <320>; |
| 123 | hback-porch = <1>; |
| 124 | hfront-porch = <33>; |
| 125 | vback-porch = <1>; |
| 126 | vfront-porch = <0>; |
| 127 | hsync-len = <5>; |
| 128 | vsync-len = <1>; |
| 129 | hsync-active = <1>; |
| 130 | vsync-active = <1>; |
| 131 | }; |
| 132 | }; |
| 133 | }; |
| 134 | }; |
| 135 | |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 136 | nand0: nand@40000000 { |
| 137 | nand-bus-width = <8>; |
| 138 | nand-ecc-mode = "soft"; |
| 139 | nand-on-flash-bbt = <1>; |
| 140 | status = "okay"; |
| 141 | |
| 142 | at91bootstrap@0 { |
| 143 | label = "at91bootstrap"; |
| 144 | reg = <0x0 0x20000>; |
| 145 | }; |
| 146 | |
| 147 | barebox@20000 { |
| 148 | label = "barebox"; |
| 149 | reg = <0x20000 0x40000>; |
| 150 | }; |
| 151 | |
| 152 | bareboxenv@60000 { |
| 153 | label = "bareboxenv"; |
| 154 | reg = <0x60000 0x20000>; |
| 155 | }; |
| 156 | |
| 157 | bareboxenv2@80000 { |
| 158 | label = "bareboxenv2"; |
| 159 | reg = <0x80000 0x20000>; |
| 160 | }; |
| 161 | |
| 162 | oftree@80000 { |
| 163 | label = "oftree"; |
| 164 | reg = <0xa0000 0x20000>; |
| 165 | }; |
| 166 | |
| 167 | kernel@a0000 { |
| 168 | label = "kernel"; |
| 169 | reg = <0xc0000 0x400000>; |
| 170 | }; |
| 171 | |
| 172 | rootfs@4a0000 { |
| 173 | label = "rootfs"; |
| 174 | reg = <0x4c0000 0x7800000>; |
| 175 | }; |
| 176 | |
| 177 | data@7ca0000 { |
| 178 | label = "data"; |
| 179 | reg = <0x7cc0000 0x8340000>; |
| 180 | }; |
| 181 | }; |
| 182 | |
| 183 | usb0: ohci@00a00000 { |
| 184 | num-ports = <2>; |
| 185 | status = "okay"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 186 | atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH |
| 187 | &pioA 21 GPIO_ACTIVE_HIGH |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 188 | >; |
| 189 | }; |
| 190 | }; |
| 191 | |
| 192 | leds { |
| 193 | compatible = "gpio-leds"; |
| 194 | |
| 195 | d3 { |
| 196 | label = "d3"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 197 | gpios = <&pioB 7 GPIO_ACTIVE_HIGH>; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 198 | linux,default-trigger = "heartbeat"; |
| 199 | }; |
| 200 | |
| 201 | d2 { |
| 202 | label = "d2"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 203 | gpios = <&pioC 29 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 204 | linux,default-trigger = "nand-disk"; |
| 205 | }; |
| 206 | }; |
| 207 | |
| 208 | gpio_keys { |
| 209 | compatible = "gpio-keys"; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 210 | |
| 211 | left_click { |
| 212 | label = "left_click"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 213 | gpios = <&pioC 5 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 214 | linux,code = <272>; |
| 215 | gpio-key,wakeup; |
| 216 | }; |
| 217 | |
| 218 | right_click { |
| 219 | label = "right_click"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 220 | gpios = <&pioC 4 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 39f31cd | 2012-02-26 19:12:43 +0800 | [diff] [blame] | 221 | linux,code = <273>; |
| 222 | gpio-key,wakeup; |
| 223 | }; |
| 224 | }; |
| 225 | |
| 226 | i2c@0 { |
| 227 | status = "okay"; |
| 228 | |
| 229 | 24c512@50 { |
| 230 | compatible = "24c512"; |
| 231 | reg = <0x50>; |
| 232 | pagesize = <128>; |
| 233 | }; |
| 234 | }; |
| 235 | }; |