Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree file for Atmel at91sam9260 Evaluation Kit
0004  *
0005  *  Copyright (C) 2016 Atmel,
0006  *                2016 Nicolas Ferre <nicolas.ferre@atmel.com>
0007  */
0008 /dts-v1/;
0009 #include "at91sam9260.dtsi"
0010 #include <dt-bindings/input/input.h>
0011 
0012 / {
0013         model = "Atmel at91sam9260ek";
0014         compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9";
0015 
0016         chosen {
0017                 stdout-path = &dbgu;
0018         };
0019 
0020         memory@20000000 {
0021                 reg = <0x20000000 0x4000000>;
0022         };
0023 
0024         clocks {
0025                 slow_xtal {
0026                         clock-frequency = <32768>;
0027                 };
0028 
0029                 main_xtal {
0030                         clock-frequency = <18432000>;
0031                 };
0032         };
0033 
0034         ahb {
0035                 apb {
0036                         tcb0: timer@fffa0000 {
0037                                 timer@0 {
0038                                         compatible = "atmel,tcb-timer";
0039                                         reg = <0>, <1>;
0040                                 };
0041 
0042                                 timer@2 {
0043                                         compatible = "atmel,tcb-timer";
0044                                         reg = <2>;
0045                                 };
0046                         };
0047 
0048                         usb1: gadget@fffa4000 {
0049                                 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
0050                                 status = "okay";
0051                         };
0052 
0053                         mmc0: mmc@fffa8000 {
0054                                 pinctrl-0 = <
0055                                         &pinctrl_board_mmc0_slot1
0056                                         &pinctrl_mmc0_clk
0057                                         &pinctrl_mmc0_slot1_cmd_dat0
0058                                         &pinctrl_mmc0_slot1_dat1_3>;
0059                                 pinctrl-names = "default";
0060                                 status = "okay";
0061                                 slot@1 {
0062                                         reg = <1>;
0063                                         bus-width = <4>;
0064                                         cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
0065                                 };
0066                         };
0067 
0068                         usart0: serial@fffb0000 {
0069                                 pinctrl-0 =
0070                                         <&pinctrl_usart0
0071                                          &pinctrl_usart0_rts
0072                                          &pinctrl_usart0_cts
0073                                          &pinctrl_usart0_dtr_dsr
0074                                          &pinctrl_usart0_dcd
0075                                          &pinctrl_usart0_ri>;
0076                                 status = "okay";
0077                         };
0078 
0079                         usart1: serial@fffb4000 {
0080                                 status = "okay";
0081                         };
0082 
0083                         ssc0: ssc@fffbc000 {
0084                                 status = "okay";
0085                                 pinctrl-0 = <&pinctrl_ssc0_tx>;
0086                         };
0087 
0088                         macb0: ethernet@fffc4000 {
0089                                 phy-mode = "rmii";
0090                                 status = "okay";
0091                         };
0092 
0093                         spi0: spi@fffc8000 {
0094                                 cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
0095                                 flash@1 {
0096                                         compatible = "atmel,at45", "atmel,dataflash";
0097                                         spi-max-frequency = <50000000>;
0098                                         reg = <1>;
0099                                 };
0100                         };
0101 
0102                         dbgu: serial@fffff200 {
0103                                 status = "okay";
0104                         };
0105 
0106                         pinctrl@fffff400 {
0107                                 board {
0108                                         pinctrl_board_mmc0_slot1: mmc0_slot1-board {
0109                                                 atmel,pins =
0110                                                         <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
0111                                         };
0112                                 };
0113                         };
0114 
0115                         shdwc@fffffd10 {
0116                                 atmel,wakeup-counter = <10>;
0117                                 atmel,wakeup-rtt-timer;
0118                         };
0119 
0120                         rtc@fffffd20 {
0121                                 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
0122                                 status = "okay";
0123                         };
0124 
0125                         watchdog@fffffd40 {
0126                                 status = "okay";
0127                         };
0128 
0129                         gpbr: syscon@fffffd50 {
0130                                 status = "okay";
0131                         };
0132                 };
0133 
0134                 usb0: ohci@500000 {
0135                         num-ports = <2>;
0136                         status = "okay";
0137                 };
0138 
0139                 nand0: nand@40000000 {
0140                         nand-bus-width = <8>;
0141                         nand-ecc-mode = "soft";
0142                         nand-on-flash-bbt;
0143                         status = "okay";
0144                 };
0145         };
0146 
0147         gpio-keys {
0148                 compatible = "gpio-keys";
0149 
0150                 button-3 {
0151                         label = "Button 3";
0152                         gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
0153                         linux,code = <0x103>;
0154                         wakeup-source;
0155                 };
0156 
0157                 button-4 {
0158                         label = "Button 4";
0159                         gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
0160                         linux,code = <KEY_PROG1>;
0161                         wakeup-source;
0162                 };
0163         };
0164 
0165         i2c-gpio-0 {
0166                 status = "okay";
0167 
0168                 24c512@50 {
0169                         compatible = "atmel,24c512";
0170                         reg = <0x50>;
0171                 };
0172         };
0173 
0174         leds {
0175                 compatible = "gpio-leds";
0176 
0177                 ds1 {
0178                         label = "ds1";
0179                         gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
0180                         linux,default-trigger = "heartbeat";
0181                 };
0182 
0183                 ds5 {
0184                         label = "ds5";
0185                         gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
0186                 };
0187         };
0188 };