Jean-Christophe PLAGNIOL-VILLARD | fea3158 | 2011-10-14 09:40:52 +0800 | [diff] [blame] | 1 | /* |
| 2 | * usb_a9g20.dts - Device Tree file for Caloa USB A9G20 board |
| 3 | * |
| 4 | * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
| 5 | * |
| 6 | * Licensed under GPLv2 or later. |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | /include/ "at91sam9g20.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "Calao USB A9G20"; |
| 13 | compatible = "calao,usb-a9g20", "atmel,at91sam9g20", "atmel,at91sam9"; |
| 14 | |
| 15 | chosen { |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 16 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs"; |
Jean-Christophe PLAGNIOL-VILLARD | fea3158 | 2011-10-14 09:40:52 +0800 | [diff] [blame] | 17 | }; |
| 18 | |
Ludovic Desroches | dcce6ce | 2012-04-02 20:44:20 +0200 | [diff] [blame^] | 19 | memory { |
Jean-Christophe PLAGNIOL-VILLARD | fea3158 | 2011-10-14 09:40:52 +0800 | [diff] [blame] | 20 | reg = <0x20000000 0x4000000>; |
| 21 | }; |
| 22 | |
Jean-Christophe PLAGNIOL-VILLARD | eb5e76f | 2012-03-02 20:44:23 +0800 | [diff] [blame] | 23 | clocks { |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <1>; |
| 26 | ranges; |
| 27 | |
| 28 | main_clock: clock@0 { |
| 29 | compatible = "atmel,osc", "fixed-clock"; |
| 30 | clock-frequency = <12000000>; |
| 31 | }; |
| 32 | }; |
| 33 | |
Jean-Christophe PLAGNIOL-VILLARD | fea3158 | 2011-10-14 09:40:52 +0800 | [diff] [blame] | 34 | ahb { |
| 35 | apb { |
| 36 | dbgu: serial@fffff200 { |
| 37 | status = "okay"; |
| 38 | }; |
Nicolas Ferre | 0d4f99d | 2011-12-05 18:03:05 +0100 | [diff] [blame] | 39 | |
| 40 | macb0: ethernet@fffc4000 { |
| 41 | phy-mode = "rmii"; |
| 42 | status = "okay"; |
| 43 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 0f5c4b9 | 2012-01-28 22:35:36 +0800 | [diff] [blame] | 44 | |
| 45 | usb1: gadget@fffa4000 { |
| 46 | atmel,vbus-gpio = <&pioC 5 0>; |
| 47 | status = "okay"; |
| 48 | }; |
Jean-Christophe PLAGNIOL-VILLARD | fea3158 | 2011-10-14 09:40:52 +0800 | [diff] [blame] | 49 | }; |
Jean-Christophe PLAGNIOL-VILLARD | d6a0166 | 2012-01-26 02:11:06 +0800 | [diff] [blame] | 50 | |
| 51 | nand0: nand@40000000 { |
| 52 | nand-bus-width = <8>; |
| 53 | nand-ecc-mode = "soft"; |
| 54 | nand-on-flash-bbt; |
| 55 | status = "okay"; |
| 56 | |
| 57 | at91bootstrap@0 { |
| 58 | label = "at91bootstrap"; |
| 59 | reg = <0x0 0x20000>; |
| 60 | }; |
| 61 | |
| 62 | barebox@20000 { |
| 63 | label = "barebox"; |
| 64 | reg = <0x20000 0x40000>; |
| 65 | }; |
| 66 | |
| 67 | bareboxenv@60000 { |
| 68 | label = "bareboxenv"; |
| 69 | reg = <0x60000 0x20000>; |
| 70 | }; |
| 71 | |
| 72 | bareboxenv2@80000 { |
| 73 | label = "bareboxenv2"; |
| 74 | reg = <0x80000 0x20000>; |
| 75 | }; |
| 76 | |
| 77 | kernel@a0000 { |
| 78 | label = "kernel"; |
| 79 | reg = <0xa0000 0x400000>; |
| 80 | }; |
| 81 | |
| 82 | rootfs@4a0000 { |
| 83 | label = "rootfs"; |
| 84 | reg = <0x4a0000 0x7800000>; |
| 85 | }; |
| 86 | |
| 87 | data@7ca0000 { |
| 88 | label = "data"; |
| 89 | reg = <0x7ca0000 0x8360000>; |
| 90 | }; |
| 91 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 6a06245 | 2011-11-21 06:55:18 +0800 | [diff] [blame] | 92 | |
| 93 | usb0: ohci@00500000 { |
| 94 | num-ports = <2>; |
| 95 | status = "okay"; |
| 96 | }; |
Jean-Christophe PLAGNIOL-VILLARD | fea3158 | 2011-10-14 09:40:52 +0800 | [diff] [blame] | 97 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 4ea2565 | 2012-02-04 01:24:22 +0800 | [diff] [blame] | 98 | |
| 99 | leds { |
| 100 | compatible = "gpio-leds"; |
| 101 | |
| 102 | user_led { |
| 103 | label = "user_led"; |
| 104 | gpios = <&pioB 21 1>; |
| 105 | linux,default-trigger = "heartbeat"; |
| 106 | }; |
| 107 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 2ea332d | 2012-02-04 12:43:10 +0800 | [diff] [blame] | 108 | |
| 109 | gpio_keys { |
| 110 | compatible = "gpio-keys"; |
| 111 | #address-cells = <1>; |
| 112 | #size-cells = <0>; |
| 113 | |
| 114 | user_pb { |
| 115 | label = "user_pb"; |
| 116 | gpios = <&pioB 10 1>; |
| 117 | linux,code = <28>; |
| 118 | gpio-key,wakeup; |
| 119 | }; |
| 120 | }; |
Jean-Christophe PLAGNIOL-VILLARD | b71e1b7 | 2012-02-05 18:31:00 +0800 | [diff] [blame] | 121 | |
| 122 | i2c@0 { |
| 123 | status = "okay"; |
| 124 | |
| 125 | rv3029c2@56 { |
| 126 | compatible = "rv3029c2"; |
| 127 | reg = <0x56>; |
| 128 | }; |
| 129 | }; |
Jean-Christophe PLAGNIOL-VILLARD | fea3158 | 2011-10-14 09:40:52 +0800 | [diff] [blame] | 130 | }; |