1/* 2 * Device Tree for DA850 EVM board 3 * 4 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation, version 2. 9 */ 10/dts-v1/; 11#include "da850.dtsi" 12#include <dt-bindings/gpio/gpio.h> 13 14/ { 15 compatible = "ti,da850-evm", "ti,da850"; 16 model = "DA850/AM1808/OMAP-L138 EVM"; 17 18 aliases { 19 serial0 = &serial0; 20 serial1 = &serial1; 21 serial2 = &serial2; 22 ethernet0 = ð0; 23 }; 24 25 soc@1c00000 { 26 pmx_core: pinmux@14120 { 27 status = "okay"; 28 29 mcasp0_pins: pinmux_mcasp0_pins { 30 pinctrl-single,bits = < 31 /* 32 * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR, 33 * AFSR, AMUTE 34 */ 35 0x00 0x11111111 0xffffffff 36 /* AXR11, AXR12 */ 37 0x04 0x00011000 0x000ff000 38 >; 39 }; 40 nand_pins: nand_pins { 41 pinctrl-single,bits = < 42 /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */ 43 0x1c 0x10110110 0xf0ff0ff0 44 /* 45 * EMA_D[0], EMA_D[1], EMA_D[2], 46 * EMA_D[3], EMA_D[4], EMA_D[5], 47 * EMA_D[6], EMA_D[7] 48 */ 49 0x24 0x11111111 0xffffffff 50 /* EMA_A[1], EMA_A[2] */ 51 0x30 0x01100000 0x0ff00000 52 >; 53 }; 54 }; 55 serial0: serial@42000 { 56 status = "okay"; 57 }; 58 serial1: serial@10c000 { 59 status = "okay"; 60 }; 61 serial2: serial@10d000 { 62 status = "okay"; 63 }; 64 rtc0: rtc@23000 { 65 status = "okay"; 66 }; 67 i2c0: i2c@22000 { 68 status = "okay"; 69 clock-frequency = <100000>; 70 pinctrl-names = "default"; 71 pinctrl-0 = <&i2c0_pins>; 72 73 tps: tps@48 { 74 reg = <0x48>; 75 }; 76 tlv320aic3106: tlv320aic3106@18 { 77 #sound-dai-cells = <0>; 78 compatible = "ti,tlv320aic3106"; 79 reg = <0x18>; 80 status = "okay"; 81 82 /* Regulators */ 83 IOVDD-supply = <&vdcdc2_reg>; 84 /* Derived from VBAT: Baseboard 3.3V / 1.8V */ 85 AVDD-supply = <&vbat>; 86 DRVDD-supply = <&vbat>; 87 DVDD-supply = <&vbat>; 88 }; 89 tca6416: gpio@20 { 90 compatible = "ti,tca6416"; 91 reg = <0x20>; 92 gpio-controller; 93 #gpio-cells = <2>; 94 }; 95 }; 96 wdt: wdt@21000 { 97 status = "okay"; 98 }; 99 mmc0: mmc@40000 { 100 max-frequency = <50000000>; 101 bus-width = <4>; 102 status = "okay"; 103 pinctrl-names = "default"; 104 pinctrl-0 = <&mmc0_pins>; 105 }; 106 spi1: spi@30e000 { 107 status = "okay"; 108 pinctrl-names = "default"; 109 pinctrl-0 = <&spi1_pins &spi1_cs0_pin>; 110 flash: m25p80@0 { 111 #address-cells = <1>; 112 #size-cells = <1>; 113 compatible = "m25p64"; 114 spi-max-frequency = <30000000>; 115 m25p,fast-read; 116 reg = <0>; 117 partition@0 { 118 label = "U-Boot-SPL"; 119 reg = <0x00000000 0x00010000>; 120 read-only; 121 }; 122 partition@1 { 123 label = "U-Boot"; 124 reg = <0x00010000 0x00080000>; 125 read-only; 126 }; 127 partition@2 { 128 label = "U-Boot-Env"; 129 reg = <0x00090000 0x00010000>; 130 read-only; 131 }; 132 partition@3 { 133 label = "Kernel"; 134 reg = <0x000a0000 0x00280000>; 135 }; 136 partition@4 { 137 label = "Filesystem"; 138 reg = <0x00320000 0x00400000>; 139 }; 140 partition@5 { 141 label = "MAC-Address"; 142 reg = <0x007f0000 0x00010000>; 143 read-only; 144 }; 145 }; 146 }; 147 mdio: mdio@224000 { 148 status = "okay"; 149 pinctrl-names = "default"; 150 pinctrl-0 = <&mdio_pins>; 151 bus_freq = <2200000>; 152 }; 153 eth0: ethernet@220000 { 154 status = "okay"; 155 pinctrl-names = "default"; 156 pinctrl-0 = <&mii_pins>; 157 }; 158 gpio: gpio@226000 { 159 status = "okay"; 160 }; 161 }; 162 vbat: fixedregulator0 { 163 compatible = "regulator-fixed"; 164 regulator-name = "vbat"; 165 regulator-min-microvolt = <5000000>; 166 regulator-max-microvolt = <5000000>; 167 regulator-boot-on; 168 }; 169 170 sound { 171 compatible = "simple-audio-card"; 172 simple-audio-card,name = "DA850-OMAPL138 EVM"; 173 simple-audio-card,widgets = 174 "Line", "Line In", 175 "Line", "Line Out"; 176 simple-audio-card,routing = 177 "LINE1L", "Line In", 178 "LINE1R", "Line In", 179 "Line Out", "LLOUT", 180 "Line Out", "RLOUT"; 181 simple-audio-card,format = "dsp_b"; 182 simple-audio-card,bitclock-master = <&link0_codec>; 183 simple-audio-card,frame-master = <&link0_codec>; 184 simple-audio-card,bitclock-inversion; 185 186 simple-audio-card,cpu { 187 sound-dai = <&mcasp0>; 188 system-clock-frequency = <24576000>; 189 }; 190 191 link0_codec: simple-audio-card,codec { 192 sound-dai = <&tlv320aic3106>; 193 system-clock-frequency = <24576000>; 194 }; 195 }; 196}; 197 198/include/ "tps6507x.dtsi" 199 200&tps { 201 vdcdc1_2-supply = <&vbat>; 202 vdcdc3-supply = <&vbat>; 203 vldo1_2-supply = <&vbat>; 204 205 regulators { 206 vdcdc1_reg: regulator@0 { 207 regulator-name = "VDCDC1_3.3V"; 208 regulator-min-microvolt = <3150000>; 209 regulator-max-microvolt = <3450000>; 210 regulator-always-on; 211 regulator-boot-on; 212 }; 213 214 vdcdc2_reg: regulator@1 { 215 regulator-name = "VDCDC2_3.3V"; 216 regulator-min-microvolt = <1710000>; 217 regulator-max-microvolt = <3450000>; 218 regulator-always-on; 219 regulator-boot-on; 220 ti,defdcdc_default = <1>; 221 }; 222 223 vdcdc3_reg: regulator@2 { 224 regulator-name = "VDCDC3_1.2V"; 225 regulator-min-microvolt = <950000>; 226 regulator-max-microvolt = <1350000>; 227 regulator-always-on; 228 regulator-boot-on; 229 ti,defdcdc_default = <1>; 230 }; 231 232 ldo1_reg: regulator@3 { 233 regulator-name = "LDO1_1.8V"; 234 regulator-min-microvolt = <1710000>; 235 regulator-max-microvolt = <1890000>; 236 regulator-always-on; 237 regulator-boot-on; 238 }; 239 240 ldo2_reg: regulator@4 { 241 regulator-name = "LDO2_1.2V"; 242 regulator-min-microvolt = <1140000>; 243 regulator-max-microvolt = <1320000>; 244 regulator-always-on; 245 regulator-boot-on; 246 }; 247 }; 248}; 249 250&mcasp0 { 251 #sound-dai-cells = <0>; 252 status = "okay"; 253 pinctrl-names = "default"; 254 pinctrl-0 = <&mcasp0_pins>; 255 256 op-mode = <0>; /* MCASP_IIS_MODE */ 257 tdm-slots = <2>; 258 /* 4 serializer */ 259 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 260 0 0 0 0 261 0 0 0 0 262 0 0 0 1 263 2 0 0 0 264 >; 265 tx-num-evt = <32>; 266 rx-num-evt = <32>; 267}; 268 269&edma0 { 270 ti,edma-reserved-slot-ranges = <32 50>; 271}; 272 273&edma1 { 274 ti,edma-reserved-slot-ranges = <32 90>; 275}; 276 277&aemif { 278 pinctrl-names = "default"; 279 pinctrl-0 = <&nand_pins>; 280 status = "ok"; 281 cs3 { 282 #address-cells = <2>; 283 #size-cells = <1>; 284 clock-ranges; 285 ranges; 286 287 ti,cs-chipselect = <3>; 288 289 nand@2000000,0 { 290 compatible = "ti,davinci-nand"; 291 #address-cells = <1>; 292 #size-cells = <1>; 293 reg = <0 0x02000000 0x02000000 294 1 0x00000000 0x00008000>; 295 296 ti,davinci-chipselect = <1>; 297 ti,davinci-mask-ale = <0>; 298 ti,davinci-mask-cle = <0>; 299 ti,davinci-mask-chipsel = <0>; 300 ti,davinci-ecc-mode = "hw"; 301 ti,davinci-ecc-bits = <4>; 302 ti,davinci-nand-use-bbt; 303 }; 304 }; 305}; 306 307&vpif { 308 pinctrl-names = "default"; 309 pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>; 310 status = "okay"; 311}; 312