Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 1 | /* |
| 2 | * at91sam9rlek.dts - Device Tree file for Atmel at91sam9rl reference board |
| 3 | * |
| 4 | * Copyright (C) 2014 Alexandre Belloni <alexandre.belloni@free-electrons.com> |
| 5 | * |
| 6 | * Licensed under GPLv2 only |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | #include "at91sam9rl.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "Atmel at91sam9rlek"; |
| 13 | compatible = "atmel,at91sam9rlek", "atmel,at91sam9rl", "atmel,at91sam9"; |
| 14 | |
| 15 | chosen { |
Alexandre Belloni | 9562757 | 2015-06-03 14:24:12 +0200 | [diff] [blame] | 16 | bootargs = "rootfstype=ubifs root=ubi0:rootfs ubi.mtd=5 rw"; |
| 17 | stdout-path = "serial0:115200n8"; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | memory { |
| 21 | reg = <0x20000000 0x4000000>; |
| 22 | }; |
| 23 | |
| 24 | clocks { |
Alexandre Belloni | c2c9e78 | 2014-06-17 15:30:19 +0200 | [diff] [blame] | 25 | slow_xtal { |
| 26 | clock-frequency = <32768>; |
| 27 | }; |
| 28 | |
| 29 | main_xtal { |
| 30 | clock-frequency = <12000000>; |
| 31 | }; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | ahb { |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 35 | fb0: fb@00500000 { |
| 36 | display = <&display0>; |
| 37 | status = "okay"; |
| 38 | |
| 39 | display0: display { |
| 40 | bits-per-pixel = <16>; |
| 41 | atmel,lcdcon-backlight; |
| 42 | atmel,dmacon = <0x1>; |
| 43 | atmel,lcdcon2 = <0x80008002>; |
| 44 | atmel,guard-time = <1>; |
| 45 | atmel,lcd-wiring-mode = "RGB"; |
| 46 | |
| 47 | display-timings { |
| 48 | native-mode = <&timing0>; |
| 49 | timing0: timing0 { |
| 50 | clock-frequency = <4965000>; |
| 51 | hactive = <240>; |
| 52 | vactive = <320>; |
| 53 | hback-porch = <1>; |
| 54 | hfront-porch = <33>; |
| 55 | vback-porch = <1>; |
| 56 | vfront-porch = <0>; |
| 57 | hsync-len = <5>; |
| 58 | vsync-len = <1>; |
| 59 | hsync-active = <1>; |
| 60 | vsync-active = <1>; |
| 61 | }; |
| 62 | }; |
| 63 | }; |
| 64 | }; |
| 65 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 66 | ebi: ebi@10000000 { |
| 67 | pinctrl-0 = <&pinctrl_ebi_addr_nand>; |
| 68 | pinctrl-names = "default"; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 69 | status = "okay"; |
| 70 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 71 | nand_controller: nand-controller { |
| 72 | status = "okay"; |
| 73 | pinctrl-0 = <&pinctrl_nand_oe_we |
| 74 | &pinctrl_nand_cs |
| 75 | &pinctrl_nand_rb>; |
| 76 | pinctrl-names = "default"; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 77 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 78 | nand@3 { |
| 79 | reg = <0x3 0x0 0x800000>; |
| 80 | rb-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>; |
| 81 | cs-gpios = <&pioB 6 GPIO_ACTIVE_HIGH>; |
| 82 | nand-bus-width = <8>; |
| 83 | nand-ecc-mode = "soft"; |
| 84 | nand-on-flash-bbt; |
| 85 | label = "atmel_nand"; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 86 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 87 | partitions { |
| 88 | compatible = "fixed-partitions"; |
| 89 | #address-cells = <1>; |
| 90 | #size-cells = <1>; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 91 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 92 | at91bootstrap@0 { |
| 93 | label = "at91bootstrap"; |
| 94 | reg = <0x0 0x40000>; |
| 95 | }; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 96 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 97 | bootloader@40000 { |
| 98 | label = "bootloader"; |
| 99 | reg = <0x40000 0x80000>; |
| 100 | }; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 101 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 102 | bootloaderenv@c0000 { |
| 103 | label = "bootloader env"; |
| 104 | reg = <0xc0000 0xc0000>; |
| 105 | }; |
| 106 | |
| 107 | dtb@180000 { |
| 108 | label = "device tree"; |
| 109 | reg = <0x180000 0x80000>; |
| 110 | }; |
| 111 | |
| 112 | kernel@200000 { |
| 113 | label = "kernel"; |
| 114 | reg = <0x200000 0x600000>; |
| 115 | }; |
| 116 | |
| 117 | rootfs@800000 { |
| 118 | label = "rootfs"; |
| 119 | reg = <0x800000 0x0f800000>; |
| 120 | }; |
| 121 | }; |
| 122 | }; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 123 | }; |
| 124 | }; |
| 125 | |
| 126 | apb { |
| 127 | mmc0: mmc@fffa4000 { |
| 128 | pinctrl-0 = < |
| 129 | &pinctrl_board_mmc0 |
| 130 | &pinctrl_mmc0_clk |
| 131 | &pinctrl_mmc0_slot0_cmd_dat0 |
| 132 | &pinctrl_mmc0_slot0_dat1_3>; |
| 133 | status = "okay"; |
| 134 | slot@0 { |
| 135 | reg = <0>; |
| 136 | bus-width = <4>; |
| 137 | cd-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | usart0: serial@fffb0000 { |
| 142 | pinctrl-0 = < |
| 143 | &pinctrl_usart0 |
| 144 | &pinctrl_usart0_rts |
| 145 | &pinctrl_usart0_cts>; |
| 146 | status = "okay"; |
| 147 | }; |
| 148 | |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 149 | adc0: adc@fffd0000 { |
| 150 | pinctrl-names = "default"; |
| 151 | pinctrl-0 = < |
| 152 | &pinctrl_adc0_ad0 |
| 153 | &pinctrl_adc0_ad1 |
| 154 | &pinctrl_adc0_ad2 |
| 155 | &pinctrl_adc0_ad3 |
| 156 | &pinctrl_adc0_ad4 |
| 157 | &pinctrl_adc0_ad5 |
| 158 | &pinctrl_adc0_adtrg>; |
| 159 | atmel,adc-ts-wires = <4>; |
| 160 | status = "okay"; |
| 161 | }; |
| 162 | |
| 163 | usb0: gadget@fffd4000 { |
| 164 | atmel,vbus-gpio = <&pioA 8 GPIO_ACTIVE_HIGH>; |
| 165 | status = "okay"; |
| 166 | }; |
| 167 | |
| 168 | spi0: spi@fffcc000 { |
| 169 | status = "okay"; |
| 170 | cs-gpios = <&pioA 28 0>, <0>, <0>, <0>; |
| 171 | mtd_dataflash@0 { |
| 172 | compatible = "atmel,at45", "atmel,dataflash"; |
| 173 | spi-max-frequency = <15000000>; |
| 174 | reg = <0>; |
| 175 | }; |
| 176 | }; |
| 177 | |
| 178 | pwm0: pwm@fffc8000 { |
| 179 | status = "okay"; |
| 180 | |
| 181 | pinctrl-names = "default"; |
| 182 | pinctrl-0 = <&pinctrl_pwm0_pwm1_2>, |
| 183 | <&pinctrl_pwm0_pwm2_2>; |
| 184 | }; |
| 185 | |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 186 | dbgu: serial@fffff200 { |
| 187 | status = "okay"; |
| 188 | }; |
| 189 | |
| 190 | pinctrl@fffff400 { |
| 191 | mmc0 { |
| 192 | pinctrl_board_mmc0: mmc0-board { |
| 193 | atmel,pins = |
| 194 | <AT91_PIOA 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
| 195 | }; |
| 196 | }; |
| 197 | }; |
| 198 | |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 199 | watchdog@fffffd40 { |
| 200 | status = "okay"; |
| 201 | }; |
Alexandre Belloni | ee3b67c | 2015-06-03 14:24:04 +0200 | [diff] [blame] | 202 | |
| 203 | rtc@fffffe00 { |
| 204 | status = "okay"; |
| 205 | }; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 206 | }; |
| 207 | }; |
| 208 | |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 209 | pwmleds { |
| 210 | compatible = "pwm-leds"; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 211 | |
| 212 | ds1 { |
| 213 | label = "ds1"; |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 214 | pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>; |
| 215 | max-brightness = <255>; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 216 | }; |
| 217 | |
| 218 | ds2 { |
| 219 | label = "ds2"; |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 220 | pwms = <&pwm0 2 5000 PWM_POLARITY_INVERTED>; |
| 221 | max-brightness = <255>; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 222 | }; |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 223 | }; |
| 224 | |
| 225 | leds { |
| 226 | compatible = "gpio-leds"; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 227 | |
| 228 | ds3 { |
| 229 | label = "ds3"; |
| 230 | gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; |
| 231 | linux,default-trigger = "heartbeat"; |
| 232 | }; |
| 233 | }; |
| 234 | |
| 235 | gpio_keys { |
| 236 | compatible = "gpio-keys"; |
| 237 | |
| 238 | right_click { |
| 239 | label = "right_click"; |
| 240 | gpios = <&pioB 0 GPIO_ACTIVE_LOW>; |
| 241 | linux,code = <273>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 242 | wakeup-source; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 243 | }; |
| 244 | |
| 245 | left_click { |
| 246 | label = "left_click"; |
| 247 | gpios = <&pioB 1 GPIO_ACTIVE_LOW>; |
| 248 | linux,code = <272>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 249 | wakeup-source; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 250 | }; |
| 251 | }; |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 252 | |
Alexandre Belloni | e152e3f | 2016-07-14 16:58:11 +0200 | [diff] [blame] | 253 | i2c-gpio-0 { |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 254 | status = "okay"; |
| 255 | }; |
| 256 | |
Alexandre Belloni | e152e3f | 2016-07-14 16:58:11 +0200 | [diff] [blame] | 257 | i2c-gpio-1 { |
Alexandre Belloni | 3d29313 | 2014-04-15 13:07:43 +0200 | [diff] [blame] | 258 | status = "okay"; |
| 259 | }; |
Alexandre Belloni | 2648972 | 2014-03-12 10:43:40 +0100 | [diff] [blame] | 260 | }; |