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 { |
Alexandre Belloni | 3221926 | 2014-06-18 21:12:26 +0200 | [diff] [blame] | 23 | slow_xtal { |
| 24 | clock-frequency = <32768>; |
| 25 | }; |
| 26 | |
| 27 | main_xtal { |
| 28 | clock-frequency = <12000000>; |
| 29 | }; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | ahb { |
| 33 | apb { |
| 34 | usb1: gadget@fffa4000 { |
| 35 | atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; |
| 36 | status = "okay"; |
| 37 | }; |
| 38 | |
| 39 | mmc0: mmc@fffa8000 { |
| 40 | pinctrl-0 = < |
| 41 | &pinctrl_mmc0_clk |
| 42 | &pinctrl_mmc0_slot0_cmd_dat0 |
| 43 | &pinctrl_mmc0_slot0_dat1_3>; |
| 44 | status = "okay"; |
| 45 | slot@0 { |
| 46 | reg = <0>; |
| 47 | bus-width = <4>; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | usart0: serial@fffb0000 { |
| 52 | pinctrl-0 = |
| 53 | <&pinctrl_usart0 |
| 54 | &pinctrl_usart0_rts |
| 55 | &pinctrl_usart0_cts |
| 56 | &pinctrl_usart0_dtr_dsr |
| 57 | &pinctrl_usart0_dcd |
| 58 | &pinctrl_usart0_ri>; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | usart1: serial@fffb4000 { |
| 63 | pinctrl-0 = |
| 64 | <&pinctrl_usart1 |
| 65 | &pinctrl_usart1_rts |
| 66 | &pinctrl_usart1_cts>; |
| 67 | status = "okay"; |
| 68 | }; |
| 69 | |
| 70 | usart2: serial@fffb8000 { |
| 71 | pinctrl-0 = |
| 72 | <&pinctrl_usart2 |
| 73 | &pinctrl_usart2_rts |
| 74 | &pinctrl_usart2_cts>; |
| 75 | status = "okay"; |
| 76 | }; |
| 77 | |
| 78 | macb0: ethernet@fffc4000 { |
| 79 | phy-mode = "rmii"; |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | spi0: spi@fffc8000 { |
| 84 | status = "okay"; |
| 85 | cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>; |
| 86 | |
| 87 | m41t94@0 { |
| 88 | compatible = "st,m41t94"; |
| 89 | reg = <0>; |
| 90 | spi-max-frequency = <1000000>; |
| 91 | }; |
| 92 | |
| 93 | }; |
| 94 | |
| 95 | dbgu: serial@fffff200 { |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | |
| 99 | shdwc@fffffd10 { |
| 100 | atmel,wakeup-counter = <10>; |
| 101 | atmel,wakeup-rtt-timer; |
| 102 | }; |
| 103 | }; |
| 104 | |
Raashid Muhammed | cfdc7fa | 2016-06-03 11:45:38 +0530 | [diff] [blame] | 105 | usb0: ohci@500000 { |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 106 | num-ports = <2>; |
| 107 | status = "okay"; |
| 108 | }; |
| 109 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 110 | ebi: ebi@10000000 { |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 111 | status = "okay"; |
| 112 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 113 | nand_controller: nand-controller { |
| 114 | status = "okay"; |
| 115 | pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; |
| 116 | pinctrl-names = "default"; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 117 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 118 | nand@3 { |
| 119 | reg = <0x3 0x0 0x800000>; |
| 120 | rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; |
| 121 | cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; |
| 122 | nand-bus-width = <8>; |
| 123 | nand-ecc-mode = "soft"; |
| 124 | nand-on-flash-bbt; |
| 125 | label = "atmel_nand"; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 126 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 127 | partitions { |
| 128 | compatible = "fixed-partitions"; |
| 129 | #address-cells = <1>; |
| 130 | #size-cells = <1>; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 131 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 132 | at91bootstrap@0 { |
| 133 | label = "at91bootstrap"; |
| 134 | reg = <0x0 0x20000>; |
| 135 | }; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 136 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 137 | barebox@20000 { |
| 138 | label = "barebox"; |
| 139 | reg = <0x20000 0x40000>; |
| 140 | }; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 141 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 142 | bareboxenv@60000 { |
| 143 | label = "bareboxenv"; |
| 144 | reg = <0x60000 0x20000>; |
| 145 | }; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 146 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 147 | bareboxenv2@80000 { |
| 148 | label = "bareboxenv2"; |
| 149 | reg = <0x80000 0x20000>; |
| 150 | }; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 151 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 152 | oftree@a0000 { |
| 153 | label = "oftree"; |
| 154 | reg = <0xa0000 0x20000>; |
| 155 | }; |
| 156 | |
| 157 | kernel@c0000 { |
| 158 | label = "kernel"; |
| 159 | reg = <0xc0000 0x400000>; |
| 160 | }; |
| 161 | |
| 162 | rootfs@4c0000 { |
| 163 | label = "rootfs"; |
| 164 | reg = <0x4c0000 0x7800000>; |
| 165 | }; |
| 166 | |
| 167 | data@7cc0000 { |
| 168 | label = "data"; |
| 169 | reg = <0x7cc0000 0x8340000>; |
| 170 | }; |
| 171 | }; |
| 172 | }; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 173 | }; |
| 174 | }; |
| 175 | }; |
| 176 | |
| 177 | leds { |
| 178 | compatible = "gpio-leds"; |
| 179 | |
| 180 | user_led { |
| 181 | label = "user_led"; |
| 182 | gpios = <&pioB 21 GPIO_ACTIVE_HIGH>; |
| 183 | linux,default-trigger = "heartbeat"; |
| 184 | }; |
| 185 | }; |
| 186 | |
| 187 | gpio_keys { |
| 188 | compatible = "gpio-keys"; |
| 189 | #address-cells = <1>; |
| 190 | #size-cells = <0>; |
| 191 | |
| 192 | user_pb { |
| 193 | label = "user_pb"; |
| 194 | gpios = <&pioB 10 GPIO_ACTIVE_LOW>; |
| 195 | linux,code = <28>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 196 | wakeup-source; |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 197 | }; |
| 198 | }; |
| 199 | |
Alexandre Belloni | e152e3f | 2016-07-14 16:58:11 +0200 | [diff] [blame] | 200 | i2c-gpio-0 { |
Jean-Christophe PLAGNIOL-VILLARD | e91a555 | 2013-11-15 15:50:06 +0100 | [diff] [blame] | 201 | status = "okay"; |
| 202 | }; |
| 203 | }; |