0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * at91-qil_a9260.dts - Device Tree file for Calao QIL A9260 board
0004 *
0005 * Copyright (C) 2011-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
0006 */
0007 /dts-v1/;
0008 #include "at91sam9260.dtsi"
0009 / {
0010 model = "Calao QIL A9260";
0011 compatible = "calao,qil-a9260", "atmel,at91sam9260", "atmel,at91sam9";
0012
0013 chosen {
0014 bootargs = "console=ttyS0,115200";
0015 };
0016
0017 memory@20000000 {
0018 reg = <0x20000000 0x4000000>;
0019 };
0020
0021 clocks {
0022 slow_xtal {
0023 clock-frequency = <32768>;
0024 };
0025
0026 main_xtal {
0027 clock-frequency = <12000000>;
0028 };
0029 };
0030
0031 ahb {
0032 apb {
0033 tcb0: timer@fffa0000 {
0034 timer@0 {
0035 compatible = "atmel,tcb-timer";
0036 reg = <0>, <1>;
0037 };
0038
0039 timer@2 {
0040 compatible = "atmel,tcb-timer";
0041 reg = <2>;
0042 };
0043 };
0044
0045 usb1: gadget@fffa4000 {
0046 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
0047 status = "okay";
0048 };
0049
0050 mmc0: mmc@fffa8000 {
0051 pinctrl-0 = <
0052 &pinctrl_mmc0_clk
0053 &pinctrl_mmc0_slot0_cmd_dat0
0054 &pinctrl_mmc0_slot0_dat1_3>;
0055 pinctrl-names = "default";
0056 status = "okay";
0057 slot@0 {
0058 reg = <0>;
0059 bus-width = <4>;
0060 };
0061 };
0062
0063 usart0: serial@fffb0000 {
0064 pinctrl-0 =
0065 <&pinctrl_usart0
0066 &pinctrl_usart0_rts
0067 &pinctrl_usart0_cts
0068 &pinctrl_usart0_dtr_dsr
0069 &pinctrl_usart0_dcd
0070 &pinctrl_usart0_ri>;
0071 status = "okay";
0072 };
0073
0074 usart1: serial@fffb4000 {
0075 pinctrl-0 =
0076 <&pinctrl_usart1
0077 &pinctrl_usart1_rts
0078 &pinctrl_usart1_cts>;
0079 status = "okay";
0080 };
0081
0082 usart2: serial@fffb8000 {
0083 pinctrl-0 =
0084 <&pinctrl_usart2
0085 &pinctrl_usart2_rts
0086 &pinctrl_usart2_cts>;
0087 status = "okay";
0088 };
0089
0090 macb0: ethernet@fffc4000 {
0091 phy-mode = "rmii";
0092 status = "okay";
0093 };
0094
0095 spi0: spi@fffc8000 {
0096 status = "okay";
0097 cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>;
0098
0099 m41t94@0 {
0100 compatible = "st,m41t94";
0101 reg = <0>;
0102 spi-max-frequency = <1000000>;
0103 };
0104
0105 };
0106
0107 dbgu: serial@fffff200 {
0108 status = "okay";
0109 };
0110
0111 shdwc@fffffd10 {
0112 atmel,wakeup-counter = <10>;
0113 atmel,wakeup-rtt-timer;
0114 };
0115 };
0116
0117 usb0: ohci@500000 {
0118 num-ports = <2>;
0119 status = "okay";
0120 };
0121
0122 ebi: ebi@10000000 {
0123 status = "okay";
0124
0125 nand_controller: nand-controller {
0126 status = "okay";
0127 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
0128 pinctrl-names = "default";
0129
0130 nand@3 {
0131 reg = <0x3 0x0 0x800000>;
0132 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
0133 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
0134 nand-bus-width = <8>;
0135 nand-ecc-mode = "soft";
0136 nand-on-flash-bbt;
0137 label = "atmel_nand";
0138
0139 partitions {
0140 compatible = "fixed-partitions";
0141 #address-cells = <1>;
0142 #size-cells = <1>;
0143
0144 at91bootstrap@0 {
0145 label = "at91bootstrap";
0146 reg = <0x0 0x20000>;
0147 };
0148
0149 barebox@20000 {
0150 label = "barebox";
0151 reg = <0x20000 0x40000>;
0152 };
0153
0154 bareboxenv@60000 {
0155 label = "bareboxenv";
0156 reg = <0x60000 0x20000>;
0157 };
0158
0159 bareboxenv2@80000 {
0160 label = "bareboxenv2";
0161 reg = <0x80000 0x20000>;
0162 };
0163
0164 oftree@a0000 {
0165 label = "oftree";
0166 reg = <0xa0000 0x20000>;
0167 };
0168
0169 kernel@c0000 {
0170 label = "kernel";
0171 reg = <0xc0000 0x400000>;
0172 };
0173
0174 rootfs@4c0000 {
0175 label = "rootfs";
0176 reg = <0x4c0000 0x7800000>;
0177 };
0178
0179 data@7cc0000 {
0180 label = "data";
0181 reg = <0x7cc0000 0x8340000>;
0182 };
0183 };
0184 };
0185 };
0186 };
0187 };
0188
0189 leds {
0190 compatible = "gpio-leds";
0191
0192 user_led {
0193 label = "user_led";
0194 gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
0195 linux,default-trigger = "heartbeat";
0196 };
0197 };
0198
0199 gpio_keys {
0200 compatible = "gpio-keys";
0201
0202 button-user {
0203 label = "user_pb";
0204 gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
0205 linux,code = <28>;
0206 wakeup-source;
0207 };
0208 };
0209
0210 i2c-gpio-0 {
0211 status = "okay";
0212 };
0213 };