1/* 2 * sama5d3xcm_cmp.dtsi - Device Tree Include file for SAMA5D36 CMP CPU Module 3 * 4 * Copyright (C) 2016 Atmel, 5 * 6 * This file is dual-licensed: you can use it either under the terms 7 * of the GPL or the X11 license, at your option. Note that this dual 8 * licensing only applies to this file, and not this project as a 9 * whole. 10 * 11 * a) This file is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License as 13 * published by the Free Software Foundation; either version 2 of the 14 * License, or (at your option) any later version. 15 * 16 * This file is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * Or, alternatively, 22 * 23 * b) Permission is hereby granted, free of charge, to any person 24 * obtaining a copy of this software and associated documentation 25 * files (the "Software"), to deal in the Software without 26 * restriction, including without limitation the rights to use, 27 * copy, modify, merge, publish, distribute, sublicense, and/or 28 * sell copies of the Software, and to permit persons to whom the 29 * Software is furnished to do so, subject to the following 30 * conditions: 31 * 32 * The above copyright notice and this permission notice shall be 33 * included in all copies or substantial portions of the Software. 34 * 35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42 * OTHER DEALINGS IN THE SOFTWARE. 43 */ 44 45/ { 46 compatible = "atmel,sama5d3xcm-cmp", "atmel,sama5d3", "atmel,sama5"; 47 48 chosen { 49 stdout-path = "serial0:115200n8"; 50 }; 51 52 memory { 53 reg = <0x20000000 0x20000000>; 54 }; 55 56 clocks { 57 slow_xtal { 58 clock-frequency = <32768>; 59 }; 60 61 main_xtal { 62 clock-frequency = <12000000>; 63 }; 64 }; 65 66 ahb { 67 apb { 68 spi0: spi@f0004000 { 69 cs-gpios = <&pioD 13 0>, <0>, <0>, <0>; 70 }; 71 72 tcb0: timer@f0010000 { 73 timer@0 { 74 compatible = "atmel,tcb-timer"; 75 reg = <0>; 76 }; 77 78 timer@1 { 79 compatible = "atmel,tcb-timer"; 80 reg = <1>; 81 }; 82 }; 83 84 macb0: ethernet@f0028000 { 85 phy-mode = "rgmii"; 86 #address-cells = <1>; 87 #size-cells = <0>; 88 89 ethernet-phy@1 { 90 reg = <0x1>; 91 interrupt-parent = <&pioB>; 92 interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 93 txen-skew-ps = <800>; 94 txc-skew-ps = <3000>; 95 rxdv-skew-ps = <400>; 96 rxc-skew-ps = <3000>; 97 rxd0-skew-ps = <400>; 98 rxd1-skew-ps = <400>; 99 rxd2-skew-ps = <400>; 100 rxd3-skew-ps = <400>; 101 }; 102 103 ethernet-phy@7 { 104 reg = <0x7>; 105 interrupt-parent = <&pioB>; 106 interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 107 txen-skew-ps = <800>; 108 txc-skew-ps = <3000>; 109 rxdv-skew-ps = <400>; 110 rxc-skew-ps = <3000>; 111 rxd0-skew-ps = <400>; 112 rxd1-skew-ps = <400>; 113 rxd2-skew-ps = <400>; 114 rxd3-skew-ps = <400>; 115 }; 116 }; 117 118 i2c1: i2c@f0018000 { 119 pmic: act8865@5b { 120 compatible = "active-semi,act8865"; 121 reg = <0x5b>; 122 status = "disabled"; 123 124 regulators { 125 vcc_1v8_reg: DCDC_REG1 { 126 regulator-name = "VCC_1V8"; 127 regulator-min-microvolt = <1800000>; 128 regulator-max-microvolt = <1800000>; 129 regulator-always-on; 130 }; 131 132 vcc_1v2_reg: DCDC_REG2 { 133 regulator-name = "VCC_1V2"; 134 regulator-min-microvolt = <1100000>; 135 regulator-max-microvolt = <1300000>; 136 regulator-always-on; 137 }; 138 139 vcc_3v3_reg: DCDC_REG3 { 140 regulator-name = "VCC_3V3"; 141 regulator-min-microvolt = <3300000>; 142 regulator-max-microvolt = <3300000>; 143 regulator-always-on; 144 }; 145 146 vddana_reg: LDO_REG1 { 147 regulator-name = "VDDANA"; 148 regulator-min-microvolt = <3300000>; 149 regulator-max-microvolt = <3300000>; 150 regulator-always-on; 151 }; 152 153 vddfuse_reg: LDO_REG2 { 154 regulator-name = "FUSE_2V5"; 155 regulator-min-microvolt = <2500000>; 156 regulator-max-microvolt = <2500000>; 157 }; 158 }; 159 }; 160 }; 161 }; 162 163 ebi: ebi@10000000 { 164 pinctrl-0 = <&pinctrl_ebi_nand_addr>; 165 pinctrl-names = "default"; 166 status = "okay"; 167 168 nand_controller: nand-controller { 169 status = "okay"; 170 171 nand@3 { 172 reg = <0x3 0x0 0x2>; 173 atmel,rb = <0>; 174 nand-bus-width = <8>; 175 nand-ecc-mode = "hw"; 176 nand-ecc-strength = <4>; 177 nand-ecc-step-size = <512>; 178 nand-on-flash-bbt; 179 label = "atmel_nand"; 180 181 partitions { 182 compatible = "fixed-partitions"; 183 #address-cells = <1>; 184 #size-cells = <1>; 185 186 at91bootstrap@0 { 187 label = "at91bootstrap"; 188 reg = <0x0 0x40000>; 189 }; 190 191 bootloader@40000 { 192 label = "bootloader"; 193 reg = <0x40000 0x80000>; 194 }; 195 196 bootloaderenv@c0000 { 197 label = "bootloader env"; 198 reg = <0xc0000 0xc0000>; 199 }; 200 201 dtb@180000 { 202 label = "device tree"; 203 reg = <0x180000 0x80000>; 204 }; 205 206 kernel@200000 { 207 label = "kernel"; 208 reg = <0x200000 0x600000>; 209 }; 210 211 rootfs@800000 { 212 label = "rootfs"; 213 reg = <0x800000 0x0f800000>; 214 }; 215 }; 216 }; 217 }; 218 }; 219 }; 220 221 leds { 222 compatible = "gpio-leds"; 223 224 d2 { 225 label = "d2"; 226 gpios = <&pioE 25 GPIO_ACTIVE_LOW>; 227 linux,default-trigger = "heartbeat"; 228 }; 229 }; 230}; 231