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