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