0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference 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 = "Atmel at91sam9263ek";
0012 compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9";
0013
0014 chosen {
0015 bootargs = "mem=64M root=/dev/mtdblock5 rw rootfstype=ubifs";
0016 stdout-path = "serial0:115200n8";
0017 };
0018
0019 memory@20000000 {
0020 reg = <0x20000000 0x4000000>;
0021 };
0022
0023 clocks {
0024 slow_xtal {
0025 clock-frequency = <32768>;
0026 };
0027
0028 main_xtal {
0029 clock-frequency = <16367660>;
0030 };
0031 };
0032
0033 ahb {
0034 apb {
0035 dbgu: serial@ffffee00 {
0036 status = "okay";
0037 };
0038
0039 tcb0: timer@fff7c000 {
0040 timer@0 {
0041 compatible = "atmel,tcb-timer";
0042 reg = <0>, <1>;
0043 };
0044
0045 timer@2 {
0046 compatible = "atmel,tcb-timer";
0047 reg = <2>;
0048 };
0049 };
0050
0051 usart0: serial@fff8c000 {
0052 pinctrl-0 = <
0053 &pinctrl_usart0
0054 &pinctrl_usart0_rts
0055 &pinctrl_usart0_cts>;
0056 status = "okay";
0057 };
0058
0059 macb0: ethernet@fffbc000 {
0060 phy-mode = "rmii";
0061 status = "okay";
0062 };
0063
0064 usb1: gadget@fff78000 {
0065 atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
0066 status = "okay";
0067 };
0068
0069 mmc0: mmc@fff80000 {
0070 pinctrl-0 = <
0071 &pinctrl_board_mmc0
0072 &pinctrl_mmc0_clk
0073 &pinctrl_mmc0_slot0_cmd_dat0
0074 &pinctrl_mmc0_slot0_dat1_3>;
0075 pinctrl-names = "default";
0076 status = "okay";
0077 slot@0 {
0078 reg = <0>;
0079 bus-width = <4>;
0080 cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>;
0081 wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>;
0082 };
0083 };
0084
0085 pinctrl@fffff200 {
0086 mmc0 {
0087 pinctrl_board_mmc0: mmc0-board {
0088 atmel,pins =
0089 <AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PE18 gpio CD pin pull up and deglitch */
0090 AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PE19 gpio WP pin pull up */
0091 };
0092 };
0093 };
0094
0095 spi0: spi@fffa4000 {
0096 status = "okay";
0097 cs-gpios = <&pioA 5 0>, <0>, <0>, <0>;
0098 flash@0 {
0099 compatible = "atmel,at45", "atmel,dataflash";
0100 spi-max-frequency = <50000000>;
0101 reg = <0>;
0102 };
0103 };
0104
0105 rtc@fffffd20 {
0106 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
0107 };
0108
0109 watchdog@fffffd40 {
0110 status = "okay";
0111 };
0112 };
0113
0114 fb0: fb@700000 {
0115 display = <&display0>;
0116 status = "okay";
0117
0118 display0: panel {
0119 bits-per-pixel = <16>;
0120 atmel,lcdcon-backlight;
0121 atmel,dmacon = <0x1>;
0122 atmel,lcdcon2 = <0x80008002>;
0123 atmel,guard-time = <1>;
0124
0125 display-timings {
0126 native-mode = <&timing0>;
0127 timing0: timing0 {
0128 clock-frequency = <4965000>;
0129 hactive = <240>;
0130 vactive = <320>;
0131 hback-porch = <1>;
0132 hfront-porch = <33>;
0133 vback-porch = <1>;
0134 vfront-porch = <0>;
0135 hsync-len = <5>;
0136 vsync-len = <1>;
0137 hsync-active = <1>;
0138 vsync-active = <1>;
0139 };
0140 };
0141 };
0142 };
0143
0144 ebi0: ebi@10000000 {
0145 status = "okay";
0146
0147 nand_controller: nand-controller {
0148 status = "okay";
0149 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
0150 pinctrl-names = "default";
0151
0152 nand@3 {
0153 reg = <0x3 0x0 0x800000>;
0154 rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
0155 cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
0156 nand-bus-width = <8>;
0157 nand-ecc-mode = "soft";
0158 nand-on-flash-bbt;
0159 label = "atmel_nand";
0160
0161 partitions {
0162 compatible = "fixed-partitions";
0163 #address-cells = <1>;
0164 #size-cells = <1>;
0165
0166 at91bootstrap@0 {
0167 label = "at91bootstrap";
0168 reg = <0x0 0x20000>;
0169 };
0170
0171 barebox@20000 {
0172 label = "barebox";
0173 reg = <0x20000 0x40000>;
0174 };
0175
0176 bareboxenv@60000 {
0177 label = "bareboxenv";
0178 reg = <0x60000 0x20000>;
0179 };
0180
0181 bareboxenv2@80000 {
0182 label = "bareboxenv2";
0183 reg = <0x80000 0x20000>;
0184 };
0185
0186 oftree@80000 {
0187 label = "oftree";
0188 reg = <0xa0000 0x20000>;
0189 };
0190
0191 kernel@a0000 {
0192 label = "kernel";
0193 reg = <0xc0000 0x400000>;
0194 };
0195
0196 rootfs@4a0000 {
0197 label = "rootfs";
0198 reg = <0x4c0000 0x7800000>;
0199 };
0200
0201 data@7ca0000 {
0202 label = "data";
0203 reg = <0x7cc0000 0x8340000>;
0204 };
0205 };
0206 };
0207 };
0208 };
0209
0210 usb0: ohci@a00000 {
0211 num-ports = <2>;
0212 status = "okay";
0213 atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
0214 &pioA 21 GPIO_ACTIVE_HIGH
0215 >;
0216 };
0217 };
0218
0219 leds {
0220 compatible = "gpio-leds";
0221
0222 d3 {
0223 label = "d3";
0224 gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
0225 linux,default-trigger = "heartbeat";
0226 };
0227
0228 d2 {
0229 label = "d2";
0230 gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
0231 linux,default-trigger = "nand-disk";
0232 };
0233 };
0234
0235 gpio-keys {
0236 compatible = "gpio-keys";
0237
0238 button-left-click {
0239 label = "left_click";
0240 gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
0241 linux,code = <272>;
0242 wakeup-source;
0243 };
0244
0245 button-right-click {
0246 label = "right_click";
0247 gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
0248 linux,code = <273>;
0249 wakeup-source;
0250 };
0251 };
0252
0253 i2c-gpio-0 {
0254 status = "okay";
0255
0256 24c512@50 {
0257 compatible = "atmel,24c512";
0258 reg = <0x50>;
0259 pagesize = <128>;
0260 };
0261 };
0262 };