Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
0004  *
0005  *  Copyright (C) 2016 Raashid Muhammed <raashidmuhammed@zilogic.com>
0006  */
0007 /dts-v1/;
0008 #include "at91sam9260.dtsi"
0009 
0010 / {
0011         model = "Olimex sam9-l9260";
0012         compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9";
0013 
0014         chosen {
0015                 stdout-path = "serial0:115200n8";
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 = <18432000>;
0029                 };
0030         };
0031 
0032         ahb {
0033                 apb {
0034                         tcb0: timer@fffa0000 {
0035                                 timer@0 {
0036                                         compatible = "atmel,tcb-timer";
0037                                         reg = <0>, <1>;
0038                                 };
0039 
0040                                 timer@2 {
0041                                         compatible = "atmel,tcb-timer";
0042                                         reg = <2>;
0043                                 };
0044                         };
0045 
0046                         mmc0: mmc@fffa8000 {
0047                                 pinctrl-0 = <
0048                                         &pinctrl_board_mmc0
0049                                         &pinctrl_mmc0_clk
0050                                         &pinctrl_mmc0_slot1_cmd_dat0
0051                                         &pinctrl_mmc0_slot1_dat1_3>;
0052                                 pinctrl-names = "default";
0053                                 status = "okay";
0054 
0055                                 slot@1 {
0056                                         reg = <1>;
0057                                         bus-width = <4>;
0058                                         cd-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
0059                                         wp-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
0060                                 };
0061                         };
0062 
0063                         macb0: ethernet@fffc4000 {
0064                                 pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>;
0065                                 phy-mode = "mii";
0066                                 #address-cells = <1>;
0067                                 #size-cells = <0>;
0068                                 status = "okay";
0069 
0070                                 ethernet-phy@1 {
0071                                         reg = <0x1>;
0072                                 };
0073                         };
0074 
0075                         spi0: spi@fffc8000 {
0076                                 cs-gpios = <&pioC 11 0>, <0>, <0>, <0>;
0077                                 status = "okay";
0078 
0079                                 flash@0 {
0080                                         compatible = "atmel,at45", "atmel,dataflash";
0081                                         spi-max-frequency = <15000000>;
0082                                         reg = <0>;
0083                                 };
0084                         };
0085 
0086                         dbgu: serial@fffff200 {
0087                                 status = "okay";
0088                         };
0089 
0090                         pinctrl@fffff400 {
0091                                 mmc0 {
0092                                         pinctrl_board_mmc0: mmc0-board {
0093                                                 atmel,pins =
0094                                                         <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH     /* CD pin */
0095                                                          AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;    /* WP pin */
0096                                         };
0097                                 };
0098                         };
0099                 };
0100 
0101                 nand0: nand@40000000 {
0102                         nand-bus-width = <8>;
0103                         nand-ecc-mode = "soft";
0104                         nand-on-flash-bbt;
0105                         status = "okay";
0106                 };
0107 
0108                 usb0: ohci@500000 {
0109                         status = "okay";
0110                 };
0111 
0112         };
0113 
0114         i2c-gpio-0 {
0115                 status = "okay";
0116         };
0117 
0118         leds {
0119                 compatible = "gpio-leds";
0120 
0121                 pwr_led {
0122                         label = "sam9-l9260:yellow:pwr";
0123                         gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
0124                         linux,default-trigger = "cpu0";
0125                 };
0126 
0127                 status_led {
0128                         label = "sam9-l9260:green:status";
0129                         gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
0130                         linux,default-trigger = "timer";
0131                 };
0132         };
0133 };