Jean-Christophe PLAGNIOL-VILLARD | 5cb4e73 | 2012-02-13 00:54:47 +0800 | [diff] [blame] | 1 | /* |
| 2 | * at91sam9g20ek_common.dtsi - Device Tree file for Atmel at91sam9g20ek board |
| 3 | * |
| 4 | * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
| 5 | * |
| 6 | * Licensed under GPLv2. |
| 7 | */ |
| 8 | /include/ "at91sam9g20.dtsi" |
| 9 | |
| 10 | / { |
| 11 | |
| 12 | chosen { |
| 13 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs"; |
| 14 | }; |
| 15 | |
| 16 | memory { |
| 17 | reg = <0x20000000 0x4000000>; |
| 18 | }; |
| 19 | |
| 20 | clocks { |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <1>; |
| 23 | ranges; |
| 24 | |
| 25 | main_clock: clock@0 { |
| 26 | compatible = "atmel,osc", "fixed-clock"; |
| 27 | clock-frequency = <18432000>; |
| 28 | }; |
| 29 | }; |
| 30 | |
| 31 | ahb { |
| 32 | apb { |
| 33 | dbgu: serial@fffff200 { |
| 34 | status = "okay"; |
| 35 | }; |
| 36 | |
| 37 | usart0: serial@fffb0000 { |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
| 41 | usart1: serial@fffb4000 { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | macb0: ethernet@fffc4000 { |
| 46 | phy-mode = "rmii"; |
| 47 | status = "okay"; |
| 48 | }; |
| 49 | |
| 50 | usb1: gadget@fffa4000 { |
| 51 | atmel,vbus-gpio = <&pioC 5 0>; |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | }; |
| 55 | |
| 56 | nand0: nand@40000000 { |
| 57 | nand-bus-width = <8>; |
| 58 | nand-ecc-mode = "soft"; |
| 59 | nand-on-flash-bbt; |
| 60 | status = "okay"; |
| 61 | |
| 62 | at91bootstrap@0 { |
| 63 | label = "at91bootstrap"; |
| 64 | reg = <0x0 0x20000>; |
| 65 | }; |
| 66 | |
| 67 | barebox@20000 { |
| 68 | label = "barebox"; |
| 69 | reg = <0x20000 0x40000>; |
| 70 | }; |
| 71 | |
| 72 | bareboxenv@60000 { |
| 73 | label = "bareboxenv"; |
| 74 | reg = <0x60000 0x20000>; |
| 75 | }; |
| 76 | |
| 77 | bareboxenv2@80000 { |
| 78 | label = "bareboxenv2"; |
| 79 | reg = <0x80000 0x20000>; |
| 80 | }; |
| 81 | |
| 82 | oftree@80000 { |
| 83 | label = "oftree"; |
| 84 | reg = <0xa0000 0x20000>; |
| 85 | }; |
| 86 | |
| 87 | kernel@a0000 { |
| 88 | label = "kernel"; |
| 89 | reg = <0xc0000 0x400000>; |
| 90 | }; |
| 91 | |
| 92 | rootfs@4a0000 { |
| 93 | label = "rootfs"; |
| 94 | reg = <0x4c0000 0x7800000>; |
| 95 | }; |
| 96 | |
| 97 | data@7ca0000 { |
| 98 | label = "data"; |
| 99 | reg = <0x7cc0000 0x8340000>; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | usb0: ohci@00500000 { |
| 104 | num-ports = <2>; |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | i2c@0 { |
| 110 | status = "okay"; |
| 111 | |
| 112 | 24c512@50 { |
| 113 | compatible = "24c512"; |
| 114 | reg = <0x50>; |
| 115 | }; |
| 116 | |
| 117 | wm8731@1b { |
| 118 | compatible = "wm8731"; |
| 119 | reg = <0x1b>; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | gpio_keys { |
| 124 | compatible = "gpio-keys"; |
| 125 | #address-cells = <1>; |
| 126 | #size-cells = <0>; |
| 127 | |
| 128 | btn3 { |
| 129 | label = "Buttin 3"; |
| 130 | gpios = <&pioA 30 1>; |
| 131 | linux,code = <0x103>; |
| 132 | gpio-key,wakeup; |
| 133 | }; |
| 134 | |
| 135 | btn4 { |
| 136 | label = "Buttin 4"; |
| 137 | gpios = <&pioA 31 1>; |
| 138 | linux,code = <0x104>; |
| 139 | gpio-key,wakeup; |
| 140 | }; |
| 141 | }; |
| 142 | }; |