1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * sama5d3xcm.dtsi - Device Tree Include file for SAMA5D3x CPU Module 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2013 Atmel, 6*f126890aSEmmanuel Vadot * 2013 Ludovic Desroches <ludovic.desroches@atmel.com> 7*f126890aSEmmanuel Vadot */ 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadot/ { 10*f126890aSEmmanuel Vadot compatible = "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5"; 11*f126890aSEmmanuel Vadot 12*f126890aSEmmanuel Vadot chosen { 13*f126890aSEmmanuel Vadot bootargs = "rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs"; 14*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 15*f126890aSEmmanuel Vadot }; 16*f126890aSEmmanuel Vadot 17*f126890aSEmmanuel Vadot memory@20000000 { 18*f126890aSEmmanuel Vadot reg = <0x20000000 0x20000000>; 19*f126890aSEmmanuel Vadot }; 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot clocks { 22*f126890aSEmmanuel Vadot slow_xtal { 23*f126890aSEmmanuel Vadot clock-frequency = <32768>; 24*f126890aSEmmanuel Vadot }; 25*f126890aSEmmanuel Vadot 26*f126890aSEmmanuel Vadot main_xtal { 27*f126890aSEmmanuel Vadot clock-frequency = <12000000>; 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot }; 30*f126890aSEmmanuel Vadot 31*f126890aSEmmanuel Vadot ahb { 32*f126890aSEmmanuel Vadot apb { 33*f126890aSEmmanuel Vadot spi0: spi@f0004000 { 34*f126890aSEmmanuel Vadot cs-gpios = <&pioD 13 0>, <0>, <0>, <0>; 35*f126890aSEmmanuel Vadot }; 36*f126890aSEmmanuel Vadot 37*f126890aSEmmanuel Vadot tcb0: timer@f0010000 { 38*f126890aSEmmanuel Vadot timer@0 { 39*f126890aSEmmanuel Vadot compatible = "atmel,tcb-timer"; 40*f126890aSEmmanuel Vadot reg = <0>; 41*f126890aSEmmanuel Vadot }; 42*f126890aSEmmanuel Vadot 43*f126890aSEmmanuel Vadot timer@1 { 44*f126890aSEmmanuel Vadot compatible = "atmel,tcb-timer"; 45*f126890aSEmmanuel Vadot reg = <1>; 46*f126890aSEmmanuel Vadot }; 47*f126890aSEmmanuel Vadot }; 48*f126890aSEmmanuel Vadot }; 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot ebi@10000000 { 51*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_ebi_addr &pinctrl_ebi_cs0>; 52*f126890aSEmmanuel Vadot pinctr-name = "default"; 53*f126890aSEmmanuel Vadot status = "okay"; 54*f126890aSEmmanuel Vadot 55*f126890aSEmmanuel Vadot nor: flash@0,0 { 56*f126890aSEmmanuel Vadot compatible = "cfi-flash"; 57*f126890aSEmmanuel Vadot linux,mtd-name = "physmap-flash.0"; 58*f126890aSEmmanuel Vadot #address-cells = <1>; 59*f126890aSEmmanuel Vadot #size-cells = <1>; 60*f126890aSEmmanuel Vadot reg = <0x0 0x0 0x1000000>; 61*f126890aSEmmanuel Vadot bank-width = <2>; 62*f126890aSEmmanuel Vadot atmel,smc-read-mode = "nrd"; 63*f126890aSEmmanuel Vadot atmel,smc-write-mode = "nwe"; 64*f126890aSEmmanuel Vadot atmel,smc-bus-width = <16>; 65*f126890aSEmmanuel Vadot atmel,smc-ncs-rd-setup-ns = <0>; 66*f126890aSEmmanuel Vadot atmel,smc-ncs-wr-setup-ns = <0>; 67*f126890aSEmmanuel Vadot atmel,smc-nwe-setup-ns = <8>; 68*f126890aSEmmanuel Vadot atmel,smc-nrd-setup-ns = <16>; 69*f126890aSEmmanuel Vadot atmel,smc-ncs-rd-pulse-ns = <84>; 70*f126890aSEmmanuel Vadot atmel,smc-ncs-wr-pulse-ns = <84>; 71*f126890aSEmmanuel Vadot atmel,smc-nrd-pulse-ns = <76>; 72*f126890aSEmmanuel Vadot atmel,smc-nwe-pulse-ns = <76>; 73*f126890aSEmmanuel Vadot atmel,smc-nrd-cycle-ns = <107>; 74*f126890aSEmmanuel Vadot atmel,smc-nwe-cycle-ns = <84>; 75*f126890aSEmmanuel Vadot atmel,smc-tdf-ns = <16>; 76*f126890aSEmmanuel Vadot }; 77*f126890aSEmmanuel Vadot 78*f126890aSEmmanuel Vadot nand_controller: nand-controller { 79*f126890aSEmmanuel Vadot status = "okay"; 80*f126890aSEmmanuel Vadot 81*f126890aSEmmanuel Vadot nand@3 { 82*f126890aSEmmanuel Vadot reg = <0x3 0x0 0x2>; 83*f126890aSEmmanuel Vadot atmel,rb = <0>; 84*f126890aSEmmanuel Vadot nand-ecc-mode = "hw"; 85*f126890aSEmmanuel Vadot nand-ecc-strength = <4>; 86*f126890aSEmmanuel Vadot nand-ecc-step-size = <512>; 87*f126890aSEmmanuel Vadot nand-on-flash-bbt; 88*f126890aSEmmanuel Vadot label = "atmel_nand"; 89*f126890aSEmmanuel Vadot 90*f126890aSEmmanuel Vadot partitions { 91*f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 92*f126890aSEmmanuel Vadot #address-cells = <1>; 93*f126890aSEmmanuel Vadot #size-cells = <1>; 94*f126890aSEmmanuel Vadot 95*f126890aSEmmanuel Vadot at91bootstrap@0 { 96*f126890aSEmmanuel Vadot label = "at91bootstrap"; 97*f126890aSEmmanuel Vadot reg = <0x0 0x40000>; 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot 100*f126890aSEmmanuel Vadot bootloader@40000 { 101*f126890aSEmmanuel Vadot label = "bootloader"; 102*f126890aSEmmanuel Vadot reg = <0x40000 0x80000>; 103*f126890aSEmmanuel Vadot }; 104*f126890aSEmmanuel Vadot 105*f126890aSEmmanuel Vadot bootloaderenv@c0000 { 106*f126890aSEmmanuel Vadot label = "bootloader env"; 107*f126890aSEmmanuel Vadot reg = <0xc0000 0xc0000>; 108*f126890aSEmmanuel Vadot }; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot dtb@180000 { 111*f126890aSEmmanuel Vadot label = "device tree"; 112*f126890aSEmmanuel Vadot reg = <0x180000 0x80000>; 113*f126890aSEmmanuel Vadot }; 114*f126890aSEmmanuel Vadot 115*f126890aSEmmanuel Vadot kernel@200000 { 116*f126890aSEmmanuel Vadot label = "kernel"; 117*f126890aSEmmanuel Vadot reg = <0x200000 0x600000>; 118*f126890aSEmmanuel Vadot }; 119*f126890aSEmmanuel Vadot 120*f126890aSEmmanuel Vadot rootfs@800000 { 121*f126890aSEmmanuel Vadot label = "rootfs"; 122*f126890aSEmmanuel Vadot reg = <0x800000 0x0f800000>; 123*f126890aSEmmanuel Vadot }; 124*f126890aSEmmanuel Vadot }; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot }; 127*f126890aSEmmanuel Vadot }; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot 130*f126890aSEmmanuel Vadot leds { 131*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot led-d2 { 134*f126890aSEmmanuel Vadot label = "d2"; 135*f126890aSEmmanuel Vadot gpios = <&pioE 25 GPIO_ACTIVE_LOW>; /* PE25, conflicts with A25, RXD2 */ 136*f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 137*f126890aSEmmanuel Vadot }; 138*f126890aSEmmanuel Vadot }; 139*f126890aSEmmanuel Vadot}; 140