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