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/; |
| 10 | /include/ "at91sam9g45.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Atmel AT91SAM9M10G45-EK"; |
| 14 | compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9"; |
| 15 | |
| 16 | chosen { |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 17 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2"; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 18 | }; |
| 19 | |
Ludovic Desroches | dcce6ce | 2012-04-02 20:44:20 +0200 | [diff] [blame] | 20 | memory { |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 21 | reg = <0x70000000 0x4000000>; |
| 22 | }; |
| 23 | |
Jean-Christophe PLAGNIOL-VILLARD | eb5e76f | 2012-03-02 20:44:23 +0800 | [diff] [blame] | 24 | clocks { |
| 25 | #address-cells = <1>; |
| 26 | #size-cells = <1>; |
| 27 | ranges; |
| 28 | |
| 29 | main_clock: clock@0 { |
| 30 | compatible = "atmel,osc", "fixed-clock"; |
| 31 | clock-frequency = <12000000>; |
| 32 | }; |
| 33 | }; |
| 34 | |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 35 | ahb { |
| 36 | apb { |
| 37 | dbgu: serial@ffffee00 { |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
| 41 | usart1: serial@fff90000 { |
Jean-Christophe PLAGNIOL-VILLARD | c58c0c5 | 2012-11-19 07:30:01 +0800 | [diff] [blame] | 42 | pinctrl-0 = |
| 43 | <&pinctrl_usart1 |
| 44 | &pinctrl_usart1_rts |
| 45 | &pinctrl_usart1_cts>; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 46 | status = "okay"; |
| 47 | }; |
Nicolas Ferre | 0d4f99d | 2011-12-05 18:03:05 +0100 | [diff] [blame] | 48 | |
| 49 | macb0: ethernet@fffbc000 { |
| 50 | phy-mode = "rmii"; |
| 51 | status = "okay"; |
| 52 | }; |
Ludovic Desroches | fbc1871 | 2012-09-12 08:42:17 +0200 | [diff] [blame] | 53 | |
| 54 | i2c0: i2c@fff84000 { |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | i2c1: i2c@fff88000 { |
| 59 | status = "okay"; |
| 60 | }; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame^] | 61 | |
| 62 | mmc0: mmc@fff80000 { |
| 63 | status = "okay"; |
| 64 | slot@0 { |
| 65 | reg = <0>; |
| 66 | bus-width = <4>; |
| 67 | cd-gpios = <&pioD 10 0>; |
| 68 | }; |
| 69 | }; |
| 70 | |
| 71 | mmc1: mmc@fffd0000 { |
| 72 | status = "okay"; |
| 73 | slot@0 { |
| 74 | reg = <0>; |
| 75 | bus-width = <4>; |
| 76 | cd-gpios = <&pioD 11 0>; |
| 77 | wp-gpios = <&pioD 29 0>; |
| 78 | }; |
| 79 | }; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 80 | }; |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 81 | |
| 82 | nand0: nand@40000000 { |
| 83 | nand-bus-width = <8>; |
| 84 | nand-ecc-mode = "soft"; |
| 85 | nand-on-flash-bbt; |
| 86 | status = "okay"; |
| 87 | |
| 88 | boot@0 { |
| 89 | label = "bootstrap/uboot/kernel"; |
| 90 | reg = <0x0 0x400000>; |
| 91 | }; |
| 92 | |
| 93 | rootfs@400000 { |
| 94 | label = "rootfs"; |
| 95 | reg = <0x400000 0x3C00000>; |
| 96 | }; |
| 97 | |
| 98 | data@4000000 { |
| 99 | label = "data"; |
| 100 | reg = <0x4000000 0xC000000>; |
| 101 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 6a06245 | 2011-11-21 06:55:18 +0800 | [diff] [blame] | 102 | }; |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 103 | |
Jean-Christophe PLAGNIOL-VILLARD | 6a06245 | 2011-11-21 06:55:18 +0800 | [diff] [blame] | 104 | usb0: ohci@00700000 { |
| 105 | status = "okay"; |
| 106 | num-ports = <2>; |
Nicolas Ferre | 74adcb2 | 2012-03-21 14:48:23 +0100 | [diff] [blame] | 107 | atmel,vbus-gpio = <&pioD 1 1 |
| 108 | &pioD 3 1>; |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 109 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 62c5553 | 2011-11-22 12:11:13 +0800 | [diff] [blame] | 110 | |
| 111 | usb1: ehci@00800000 { |
| 112 | status = "okay"; |
| 113 | }; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 114 | }; |
Jean-Christophe PLAGNIOL-VILLARD | f2ee7ac | 2012-02-04 12:26:01 +0800 | [diff] [blame] | 115 | |
| 116 | leds { |
| 117 | compatible = "gpio-leds"; |
| 118 | |
| 119 | d8 { |
| 120 | label = "d8"; |
| 121 | gpios = <&pioD 30 0>; |
| 122 | linux,default-trigger = "heartbeat"; |
| 123 | }; |
| 124 | |
| 125 | d6 { |
| 126 | label = "d6"; |
| 127 | gpios = <&pioD 0 1>; |
| 128 | linux,default-trigger = "nand-disk"; |
| 129 | }; |
| 130 | |
| 131 | d7 { |
| 132 | label = "d7"; |
| 133 | gpios = <&pioD 31 1>; |
| 134 | linux,default-trigger = "mmc0"; |
| 135 | }; |
| 136 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 8a087b0 | 2012-02-04 12:42:35 +0800 | [diff] [blame] | 137 | |
| 138 | gpio_keys { |
| 139 | compatible = "gpio-keys"; |
| 140 | #address-cells = <1>; |
| 141 | #size-cells = <0>; |
| 142 | |
| 143 | left_click { |
| 144 | label = "left_click"; |
| 145 | gpios = <&pioB 6 1>; |
| 146 | linux,code = <272>; |
| 147 | gpio-key,wakeup; |
| 148 | }; |
| 149 | |
| 150 | right_click { |
| 151 | label = "right_click"; |
| 152 | gpios = <&pioB 7 1>; |
| 153 | linux,code = <273>; |
| 154 | gpio-key,wakeup; |
| 155 | }; |
| 156 | |
| 157 | left { |
| 158 | label = "Joystick Left"; |
| 159 | gpios = <&pioB 14 1>; |
| 160 | linux,code = <105>; |
| 161 | }; |
| 162 | |
| 163 | right { |
| 164 | label = "Joystick Right"; |
| 165 | gpios = <&pioB 15 1>; |
| 166 | linux,code = <106>; |
| 167 | }; |
| 168 | |
| 169 | up { |
| 170 | label = "Joystick Up"; |
| 171 | gpios = <&pioB 16 1>; |
| 172 | linux,code = <103>; |
| 173 | }; |
| 174 | |
| 175 | down { |
| 176 | label = "Joystick Down"; |
| 177 | gpios = <&pioB 17 1>; |
| 178 | linux,code = <108>; |
| 179 | }; |
| 180 | |
| 181 | enter { |
| 182 | label = "Joystick Press"; |
| 183 | gpios = <&pioB 18 1>; |
| 184 | linux,code = <28>; |
| 185 | }; |
| 186 | }; |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 187 | }; |