0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * usb_a9263.dts - Device Tree file for Caloa USB A9293 board
0004 *
0005 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
0006 */
0007 /dts-v1/;
0008 #include "at91sam9263.dtsi"
0009
0010 / {
0011 model = "Calao USB A9263";
0012 compatible = "atmel,usb-a9263", "atmel,at91sam9263", "atmel,at91sam9";
0013
0014 chosen {
0015 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
0016 };
0017
0018 memory@20000000 {
0019 reg = <0x20000000 0x4000000>;
0020 };
0021
0022 clocks {
0023 slow_xtal {
0024 clock-frequency = <32768>;
0025 };
0026
0027 main_xtal {
0028 clock-frequency = <12000000>;
0029 };
0030 };
0031
0032 ahb {
0033 apb {
0034 dbgu: serial@ffffee00 {
0035 status = "okay";
0036 };
0037
0038 tcb0: timer@fff7c000 {
0039 timer@0 {
0040 compatible = "atmel,tcb-timer";
0041 reg = <0>, <1>;
0042 };
0043
0044 timer@2 {
0045 compatible = "atmel,tcb-timer";
0046 reg = <2>;
0047 };
0048 };
0049
0050 macb0: ethernet@fffbc000 {
0051 phy-mode = "rmii";
0052 status = "okay";
0053 };
0054
0055 usb1: gadget@fff78000 {
0056 atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
0057 status = "okay";
0058 };
0059
0060 spi0: spi@fffa4000 {
0061 cs-gpios = <&pioB 15 GPIO_ACTIVE_HIGH>;
0062 status = "okay";
0063 flash@0 {
0064 compatible = "atmel,at45", "atmel,dataflash";
0065 reg = <0>;
0066 spi-max-frequency = <15000000>;
0067 };
0068 };
0069
0070 shdwc@fffffd10 {
0071 atmel,wakeup-counter = <10>;
0072 atmel,wakeup-rtt-timer;
0073 };
0074 };
0075
0076 ebi0: ebi@10000000 {
0077 status = "okay";
0078
0079 nand_controller: nand-controller {
0080 status = "okay";
0081 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
0082 pinctrl-names = "default";
0083
0084 nand@3 {
0085 reg = <0x3 0x0 0x800000>;
0086 rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
0087 cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
0088 nand-bus-width = <8>;
0089 nand-ecc-mode = "soft";
0090 nand-on-flash-bbt;
0091 label = "atmel_nand";
0092
0093 partitions {
0094 compatible = "fixed-partitions";
0095 #address-cells = <1>;
0096 #size-cells = <1>;
0097
0098 at91bootstrap@0 {
0099 label = "at91bootstrap";
0100 reg = <0x0 0x20000>;
0101 };
0102
0103 barebox@20000 {
0104 label = "barebox";
0105 reg = <0x20000 0x40000>;
0106 };
0107
0108 bareboxenv@60000 {
0109 label = "bareboxenv";
0110 reg = <0x60000 0x20000>;
0111 };
0112
0113 bareboxenv2@80000 {
0114 label = "bareboxenv2";
0115 reg = <0x80000 0x20000>;
0116 };
0117
0118 oftree@80000 {
0119 label = "oftree";
0120 reg = <0xa0000 0x20000>;
0121 };
0122
0123 kernel@a0000 {
0124 label = "kernel";
0125 reg = <0xc0000 0x400000>;
0126 };
0127
0128 rootfs@4a0000 {
0129 label = "rootfs";
0130 reg = <0x4c0000 0x7800000>;
0131 };
0132
0133 data@7ca0000 {
0134 label = "data";
0135 reg = <0x7cc0000 0x8340000>;
0136 };
0137 };
0138 };
0139 };
0140 };
0141
0142 usb0: ohci@a00000 {
0143 num-ports = <2>;
0144 status = "okay";
0145 };
0146 };
0147
0148 leds {
0149 compatible = "gpio-leds";
0150
0151 user_led {
0152 label = "user_led";
0153 gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
0154 linux,default-trigger = "heartbeat";
0155 };
0156 };
0157
0158 gpio_keys {
0159 compatible = "gpio-keys";
0160 #address-cells = <1>;
0161 #size-cells = <0>;
0162
0163 user_pb {
0164 label = "user_pb";
0165 gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
0166 linux,code = <28>;
0167 wakeup-source;
0168 };
0169 };
0170
0171 i2c-gpio-0 {
0172 status = "okay";
0173 };
0174 };