Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * sama5d3xcm.dtsi - Device Tree Include file for SAMA5D3x CPU Module
0004  *
0005  *  Copyright (C) 2013 Atmel,
0006  *                2013 Ludovic Desroches <ludovic.desroches@atmel.com>
0007  */
0008 
0009 / {
0010         compatible = "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5";
0011 
0012         chosen {
0013                 bootargs = "rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs";
0014                 stdout-path = "serial0:115200n8";
0015         };
0016 
0017         memory@20000000 {
0018                 reg = <0x20000000 0x20000000>;
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                         spi0: spi@f0004000 {
0034                                 cs-gpios = <&pioD 13 0>, <0>, <0>, <0>;
0035                         };
0036 
0037                         tcb0: timer@f0010000 {
0038                                 timer@0 {
0039                                         compatible = "atmel,tcb-timer";
0040                                         reg = <0>;
0041                                 };
0042 
0043                                 timer@1 {
0044                                         compatible = "atmel,tcb-timer";
0045                                         reg = <1>;
0046                                 };
0047                         };
0048                 };
0049 
0050                 ebi@10000000 {
0051                         pinctrl-0 = <&pinctrl_ebi_addr &pinctrl_ebi_cs0>;
0052                         pinctr-name = "default";
0053                         status = "okay";
0054 
0055                         nor: flash@0,0 {
0056                                 compatible = "cfi-flash";
0057                                 linux,mtd-name = "physmap-flash.0";
0058                                 #address-cells = <1>;
0059                                 #size-cells = <1>;
0060                                 reg = <0x0 0x0 0x1000000>;
0061                                 bank-width = <2>;
0062                                 atmel,smc-read-mode = "nrd";
0063                                 atmel,smc-write-mode = "nwe";
0064                                 atmel,smc-bus-width = <16>;
0065                                 atmel,smc-ncs-rd-setup-ns = <0>;
0066                                 atmel,smc-ncs-wr-setup-ns = <0>;
0067                                 atmel,smc-nwe-setup-ns = <8>;
0068                                 atmel,smc-nrd-setup-ns = <16>;
0069                                 atmel,smc-ncs-rd-pulse-ns = <84>;
0070                                 atmel,smc-ncs-wr-pulse-ns = <84>;
0071                                 atmel,smc-nrd-pulse-ns = <76>;
0072                                 atmel,smc-nwe-pulse-ns = <76>;
0073                                 atmel,smc-nrd-cycle-ns = <107>;
0074                                 atmel,smc-nwe-cycle-ns = <84>;
0075                                 atmel,smc-tdf-ns = <16>;
0076                         };
0077 
0078                         nand_controller: nand-controller {
0079                                 status = "okay";
0080 
0081                                 nand@3 {
0082                                         reg = <0x3 0x0 0x2>;
0083                                         atmel,rb = <0>;
0084                                         nand-ecc-mode = "hw";
0085                                         nand-ecc-strength = <4>;
0086                                         nand-ecc-step-size = <512>;
0087                                         nand-on-flash-bbt;
0088                                         label = "atmel_nand";
0089 
0090                                         partitions {
0091                                                 compatible = "fixed-partitions";
0092                                                 #address-cells = <1>;
0093                                                 #size-cells = <1>;
0094 
0095                                                 at91bootstrap@0 {
0096                                                         label = "at91bootstrap";
0097                                                         reg = <0x0 0x40000>;
0098                                                 };
0099 
0100                                                 bootloader@40000 {
0101                                                         label = "bootloader";
0102                                                         reg = <0x40000 0x80000>;
0103                                                 };
0104 
0105                                                 bootloaderenv@c0000 {
0106                                                         label = "bootloader env";
0107                                                         reg = <0xc0000 0xc0000>;
0108                                                 };
0109 
0110                                                 dtb@180000 {
0111                                                         label = "device tree";
0112                                                         reg = <0x180000 0x80000>;
0113                                                 };
0114 
0115                                                 kernel@200000 {
0116                                                         label = "kernel";
0117                                                         reg = <0x200000 0x600000>;
0118                                                 };
0119 
0120                                                 rootfs@800000 {
0121                                                         label = "rootfs";
0122                                                         reg = <0x800000 0x0f800000>;
0123                                                 };
0124                                         };
0125                                 };
0126                         };
0127                 };
0128         };
0129 
0130         leds {
0131                 compatible = "gpio-leds";
0132 
0133                 d2 {
0134                         label = "d2";
0135                         gpios = <&pioE 25 GPIO_ACTIVE_LOW>;     /* PE25, conflicts with A25, RXD2 */
0136                         linux,default-trigger = "heartbeat";
0137                 };
0138         };
0139 };