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