Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 1 | /* |
| 2 | * at91-qil_a9260.dts - Device Tree file for Calao QIL A9260 board |
| 3 | * |
| 4 | * Copyright (C) 2011-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
| 5 | * |
| 6 | * Licensed under GPLv2. |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | #include "at91sam9260.dtsi" |
| 10 | / { |
| 11 | model = "Calao QIL A9260"; |
| 12 | compatible = "calao,qil-a9260", "atmel,at91sam9260", "atmel,at91sam9"; |
| 13 | |
| 14 | chosen { |
| 15 | bootargs = "console=ttyS0,115200"; |
| 16 | }; |
| 17 | |
| 18 | memory { |
| 19 | reg = <0x20000000 0x4000000>; |
| 20 | }; |
| 21 | |
| 22 | clocks { |
| 23 | #address-cells = <1>; |
| 24 | #size-cells = <1>; |
| 25 | ranges; |
| 26 | |
| 27 | main_clock: clock@0 { |
| 28 | compatible = "atmel,osc", "fixed-clock"; |
| 29 | clock-frequency = <12000000>; |
| 30 | }; |
Alexandre Belloni | 3221926 | 2014-06-18 21:12:26 +0200 | [diff] [blame] | 31 | |
| 32 | slow_xtal { |
| 33 | clock-frequency = <32768>; |
| 34 | }; |
| 35 | |
| 36 | main_xtal { |
| 37 | clock-frequency = <12000000>; |
| 38 | }; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | ahb { |
| 42 | apb { |
| 43 | usb1: gadget@fffa4000 { |
| 44 | atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; |
| 45 | status = "okay"; |
| 46 | }; |
| 47 | |
| 48 | mmc0: mmc@fffa8000 { |
| 49 | pinctrl-0 = < |
| 50 | &pinctrl_mmc0_clk |
| 51 | &pinctrl_mmc0_slot0_cmd_dat0 |
| 52 | &pinctrl_mmc0_slot0_dat1_3>; |
| 53 | status = "okay"; |
| 54 | slot@0 { |
| 55 | reg = <0>; |
| 56 | bus-width = <4>; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | usart0: serial@fffb0000 { |
| 61 | pinctrl-0 = |
| 62 | <&pinctrl_usart0 |
| 63 | &pinctrl_usart0_rts |
| 64 | &pinctrl_usart0_cts |
| 65 | &pinctrl_usart0_dtr_dsr |
| 66 | &pinctrl_usart0_dcd |
| 67 | &pinctrl_usart0_ri>; |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | usart1: serial@fffb4000 { |
| 72 | pinctrl-0 = |
| 73 | <&pinctrl_usart1 |
| 74 | &pinctrl_usart1_rts |
| 75 | &pinctrl_usart1_cts>; |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | usart2: serial@fffb8000 { |
| 80 | pinctrl-0 = |
| 81 | <&pinctrl_usart2 |
| 82 | &pinctrl_usart2_rts |
| 83 | &pinctrl_usart2_cts>; |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | macb0: ethernet@fffc4000 { |
| 88 | phy-mode = "rmii"; |
| 89 | status = "okay"; |
| 90 | }; |
| 91 | |
| 92 | spi0: spi@fffc8000 { |
| 93 | status = "okay"; |
| 94 | cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>; |
| 95 | |
| 96 | m41t94@0 { |
| 97 | compatible = "st,m41t94"; |
| 98 | reg = <0>; |
| 99 | spi-max-frequency = <1000000>; |
| 100 | }; |
| 101 | |
| 102 | }; |
| 103 | |
| 104 | dbgu: serial@fffff200 { |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | |
| 108 | shdwc@fffffd10 { |
| 109 | atmel,wakeup-counter = <10>; |
| 110 | atmel,wakeup-rtt-timer; |
| 111 | }; |
| 112 | }; |
| 113 | |
| 114 | usb0: ohci@00500000 { |
| 115 | num-ports = <2>; |
| 116 | status = "okay"; |
| 117 | }; |
| 118 | |
| 119 | nand0: nand@40000000 { |
| 120 | nand-bus-width = <8>; |
| 121 | nand-ecc-mode = "soft"; |
| 122 | nand-on-flash-bbt; |
| 123 | status = "okay"; |
| 124 | |
| 125 | at91bootstrap@0 { |
| 126 | label = "at91bootstrap"; |
| 127 | reg = <0x0 0x20000>; |
| 128 | }; |
| 129 | |
| 130 | barebox@20000 { |
| 131 | label = "barebox"; |
| 132 | reg = <0x20000 0x40000>; |
| 133 | }; |
| 134 | |
| 135 | bareboxenv@60000 { |
| 136 | label = "bareboxenv"; |
| 137 | reg = <0x60000 0x20000>; |
| 138 | }; |
| 139 | |
| 140 | bareboxenv2@80000 { |
| 141 | label = "bareboxenv2"; |
| 142 | reg = <0x80000 0x20000>; |
| 143 | }; |
| 144 | |
| 145 | oftree@a0000 { |
| 146 | label = "oftree"; |
| 147 | reg = <0xa0000 0x20000>; |
| 148 | }; |
| 149 | |
| 150 | kernel@c0000 { |
| 151 | label = "kernel"; |
| 152 | reg = <0xc0000 0x400000>; |
| 153 | }; |
| 154 | |
| 155 | rootfs@4c0000 { |
| 156 | label = "rootfs"; |
| 157 | reg = <0x4c0000 0x7800000>; |
| 158 | }; |
| 159 | |
| 160 | data@7cc0000 { |
| 161 | label = "data"; |
| 162 | reg = <0x7cc0000 0x8340000>; |
| 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | |
| 167 | leds { |
| 168 | compatible = "gpio-leds"; |
| 169 | |
| 170 | user_led { |
| 171 | label = "user_led"; |
| 172 | gpios = <&pioB 21 GPIO_ACTIVE_HIGH>; |
| 173 | linux,default-trigger = "heartbeat"; |
| 174 | }; |
| 175 | }; |
| 176 | |
| 177 | gpio_keys { |
| 178 | compatible = "gpio-keys"; |
| 179 | #address-cells = <1>; |
| 180 | #size-cells = <0>; |
| 181 | |
| 182 | user_pb { |
| 183 | label = "user_pb"; |
| 184 | gpios = <&pioB 10 GPIO_ACTIVE_LOW>; |
| 185 | linux,code = <28>; |
| 186 | gpio-key,wakeup; |
| 187 | }; |
| 188 | }; |
| 189 | |
| 190 | i2c@0 { |
| 191 | status = "okay"; |
| 192 | }; |
| 193 | }; |