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