Schuyler Patton | 332dddc | 2016-06-10 09:35:45 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | / { |
| 10 | aliases { |
| 11 | rtc0 = &tps659038_rtc; |
| 12 | rtc1 = &rtc; |
| 13 | }; |
| 14 | |
| 15 | vmain: fixedregulator-vmain { |
| 16 | compatible = "regulator-fixed"; |
| 17 | regulator-name = "VMAIN"; |
| 18 | regulator-min-microvolt = <5000000>; |
| 19 | regulator-max-microvolt = <5000000>; |
| 20 | regulator-always-on; |
| 21 | regulator-boot-on; |
| 22 | }; |
| 23 | |
| 24 | v3_3d: fixedregulator-v3_3d { |
| 25 | compatible = "regulator-fixed"; |
| 26 | regulator-name = "V3_3D"; |
| 27 | vin-supply = <&smps9_reg>; |
| 28 | regulator-min-microvolt = <3300000>; |
| 29 | regulator-max-microvolt = <3300000>; |
| 30 | regulator-always-on; |
| 31 | regulator-boot-on; |
| 32 | }; |
| 33 | |
| 34 | vtt_fixed: fixedregulator-vtt { |
| 35 | /* TPS51200 */ |
| 36 | compatible = "regulator-fixed"; |
| 37 | regulator-name = "vtt_fixed"; |
| 38 | vin-supply = <&v3_3d>; |
| 39 | regulator-min-microvolt = <3300000>; |
| 40 | regulator-max-microvolt = <3300000>; |
| 41 | regulator-always-on; |
| 42 | regulator-boot-on; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | &i2c1 { |
| 47 | status = "okay"; |
| 48 | clock-frequency = <400000>; |
| 49 | |
| 50 | tps659038: tps659038@58 { |
| 51 | compatible = "ti,tps659038"; |
| 52 | reg = <0x58>; |
| 53 | interrupts-extended = <&gpio6 16 IRQ_TYPE_LEVEL_HIGH |
| 54 | &dra7_pmx_core 0x418>; |
| 55 | #interrupt-cells = <2>; |
| 56 | interrupt-controller; |
| 57 | ti,system-power-controller; |
| 58 | |
| 59 | tps659038_pmic { |
| 60 | compatible = "ti,tps659038-pmic"; |
| 61 | regulators { |
| 62 | smps12_reg: smps12 { |
| 63 | /* VDD_MPU */ |
| 64 | vin-supply = <&vmain>; |
| 65 | regulator-name = "smps12"; |
| 66 | regulator-min-microvolt = <850000>; |
| 67 | regulator-max-microvolt = <1250000>; |
| 68 | regulator-always-on; |
| 69 | regulator-boot-on; |
| 70 | }; |
| 71 | |
| 72 | smps3_reg: smps3 { |
| 73 | /* VDD_DDR EMIF1 EMIF2 */ |
| 74 | vin-supply = <&vmain>; |
| 75 | regulator-name = "smps3"; |
| 76 | regulator-min-microvolt = <1350000>; |
| 77 | regulator-max-microvolt = <1350000>; |
| 78 | regulator-always-on; |
| 79 | regulator-boot-on; |
| 80 | }; |
| 81 | |
| 82 | smps45_reg: smps45 { |
| 83 | /* VDD_DSPEVE on AM572 */ |
| 84 | /* VDD_IVA + VDD_DSP on AM571 */ |
| 85 | vin-supply = <&vmain>; |
| 86 | regulator-name = "smps45"; |
| 87 | regulator-min-microvolt = <850000>; |
| 88 | regulator-max-microvolt = <1250000>; |
| 89 | regulator-always-on; |
| 90 | regulator-boot-on; |
| 91 | }; |
| 92 | |
| 93 | smps6_reg: smps6 { |
| 94 | /* VDD_GPU */ |
| 95 | vin-supply = <&vmain>; |
| 96 | regulator-name = "smps6"; |
| 97 | regulator-min-microvolt = <850000>; |
| 98 | regulator-max-microvolt = <1250000>; |
| 99 | regulator-always-on; |
| 100 | regulator-boot-on; |
| 101 | }; |
| 102 | |
| 103 | smps7_reg: smps7 { |
| 104 | /* VDD_CORE */ |
| 105 | vin-supply = <&vmain>; |
| 106 | regulator-name = "smps7"; |
| 107 | regulator-min-microvolt = <850000>; |
| 108 | regulator-max-microvolt = <1150000>; |
| 109 | regulator-always-on; |
| 110 | regulator-boot-on; |
| 111 | }; |
| 112 | |
| 113 | smps8_reg: smps8 { |
| 114 | /* 5728 - VDD_IVAHD */ |
| 115 | /* 5718 - N.C. test point */ |
| 116 | vin-supply = <&vmain>; |
| 117 | regulator-name = "smps8"; |
| 118 | }; |
| 119 | |
| 120 | smps9_reg: smps9 { |
| 121 | /* VDD_3_3D */ |
| 122 | vin-supply = <&vmain>; |
| 123 | regulator-name = "smps9"; |
| 124 | regulator-min-microvolt = <3300000>; |
| 125 | regulator-max-microvolt = <3300000>; |
| 126 | regulator-always-on; |
| 127 | regulator-boot-on; |
| 128 | }; |
| 129 | |
| 130 | ldo1_reg: ldo1 { |
| 131 | /* VDDSHV8 - VSDMMC */ |
| 132 | /* NOTE: on rev 1.3a, data supply */ |
| 133 | vin-supply = <&vmain>; |
| 134 | regulator-name = "ldo1"; |
| 135 | regulator-min-microvolt = <1800000>; |
| 136 | regulator-max-microvolt = <3300000>; |
| 137 | regulator-boot-on; |
| 138 | regulator-always-on; |
| 139 | }; |
| 140 | |
| 141 | ldo2_reg: ldo2 { |
| 142 | /* VDDSH18V */ |
| 143 | vin-supply = <&vmain>; |
| 144 | regulator-name = "ldo2"; |
| 145 | regulator-min-microvolt = <1800000>; |
| 146 | regulator-max-microvolt = <1800000>; |
| 147 | regulator-always-on; |
| 148 | regulator-boot-on; |
| 149 | }; |
| 150 | |
| 151 | ldo3_reg: ldo3 { |
| 152 | /* R1.3a 572x V1_8PHY_LDO3: USB, SATA */ |
| 153 | vin-supply = <&vmain>; |
| 154 | regulator-name = "ldo3"; |
| 155 | regulator-min-microvolt = <1800000>; |
| 156 | regulator-max-microvolt = <1800000>; |
| 157 | regulator-always-on; |
| 158 | regulator-boot-on; |
| 159 | }; |
| 160 | |
| 161 | ldo4_reg: ldo4 { |
| 162 | /* R1.3a 572x V1_8PHY_LDO4: PCIE, HDMI*/ |
| 163 | vin-supply = <&vmain>; |
| 164 | regulator-name = "ldo4"; |
| 165 | regulator-min-microvolt = <1800000>; |
| 166 | regulator-max-microvolt = <1800000>; |
| 167 | regulator-always-on; |
| 168 | regulator-boot-on; |
| 169 | }; |
| 170 | |
| 171 | /* LDO5-8 unused */ |
| 172 | |
| 173 | ldo9_reg: ldo9 { |
| 174 | /* VDD_RTC */ |
| 175 | vin-supply = <&vmain>; |
| 176 | regulator-name = "ldo9"; |
| 177 | regulator-min-microvolt = <840000>; |
| 178 | regulator-max-microvolt = <1160000>; |
| 179 | regulator-always-on; |
| 180 | regulator-boot-on; |
| 181 | }; |
| 182 | |
| 183 | ldoln_reg: ldoln { |
| 184 | /* VDDA_1V8_PLL */ |
| 185 | vin-supply = <&vmain>; |
| 186 | regulator-name = "ldoln"; |
| 187 | regulator-min-microvolt = <1800000>; |
| 188 | regulator-max-microvolt = <1800000>; |
| 189 | regulator-always-on; |
| 190 | regulator-boot-on; |
| 191 | }; |
| 192 | |
| 193 | ldousb_reg: ldousb { |
| 194 | /* VDDA_3V_USB: VDDA_USBHS33 */ |
| 195 | vin-supply = <&vmain>; |
| 196 | regulator-name = "ldousb"; |
| 197 | regulator-min-microvolt = <3300000>; |
| 198 | regulator-max-microvolt = <3300000>; |
| 199 | regulator-always-on; |
| 200 | regulator-boot-on; |
| 201 | }; |
| 202 | |
| 203 | ldortc_reg: ldortc { |
| 204 | /* VDDA_RTC */ |
| 205 | vin-supply = <&vmain>; |
| 206 | regulator-name = "ldortc"; |
| 207 | regulator-min-microvolt = <1800000>; |
| 208 | regulator-max-microvolt = <1800000>; |
| 209 | regulator-always-on; |
| 210 | regulator-boot-on; |
| 211 | }; |
| 212 | |
| 213 | regen1: regen1 { |
| 214 | /* VDD_3V3_ON */ |
| 215 | regulator-name = "regen1"; |
| 216 | regulator-boot-on; |
| 217 | regulator-always-on; |
| 218 | }; |
| 219 | |
| 220 | regen2: regen2 { |
| 221 | /* Needed for PMIC internal resource */ |
| 222 | regulator-name = "regen2"; |
| 223 | regulator-boot-on; |
| 224 | regulator-always-on; |
| 225 | }; |
| 226 | }; |
| 227 | }; |
| 228 | |
| 229 | tps659038_rtc: tps659038_rtc { |
| 230 | compatible = "ti,palmas-rtc"; |
| 231 | interrupt-parent = <&tps659038>; |
| 232 | interrupts = <8 IRQ_TYPE_EDGE_FALLING>; |
| 233 | wakeup-source; |
| 234 | }; |
| 235 | |
| 236 | tps659038_pwr_button: tps659038_pwr_button { |
| 237 | compatible = "ti,palmas-pwrbutton"; |
| 238 | interrupt-parent = <&tps659038>; |
| 239 | interrupts = <1 IRQ_TYPE_EDGE_FALLING>; |
| 240 | wakeup-source; |
| 241 | ti,palmas-long-press-seconds = <12>; |
| 242 | }; |
| 243 | |
| 244 | tps659038_gpio: tps659038_gpio { |
| 245 | compatible = "ti,palmas-gpio"; |
| 246 | gpio-controller; |
| 247 | #gpio-cells = <2>; |
| 248 | }; |
| 249 | }; |
| 250 | }; |
| 251 | |
| 252 | &uart3 { |
| 253 | status = "okay"; |
| 254 | interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH |
| 255 | &dra7_pmx_core 0x248>; |
| 256 | }; |
| 257 | |
| 258 | &rtc { |
| 259 | status = "okay"; |
| 260 | ext-clk-src; |
| 261 | }; |
| 262 | |
| 263 | &mac { |
| 264 | status = "okay"; |
| 265 | dual_emac; |
| 266 | }; |
| 267 | |
| 268 | &cpsw_emac0 { |
| 269 | phy_id = <&davinci_mdio>, <0>; |
| 270 | phy-mode = "rgmii"; |
| 271 | dual_emac_res_vlan = <1>; |
| 272 | }; |
| 273 | |
| 274 | &cpsw_emac1 { |
| 275 | phy_id = <&davinci_mdio>, <1>; |
| 276 | phy-mode = "rgmii"; |
| 277 | dual_emac_res_vlan = <2>; |
| 278 | }; |
| 279 | |
| 280 | &usb2_phy1 { |
| 281 | phy-supply = <&ldousb_reg>; |
| 282 | }; |
| 283 | |
| 284 | &usb2_phy2 { |
| 285 | phy-supply = <&ldousb_reg>; |
| 286 | }; |
| 287 | |
| 288 | &usb1 { |
| 289 | dr_mode = "host"; |
| 290 | }; |
| 291 | |
| 292 | &usb2 { |
| 293 | dr_mode = "otg"; |
| 294 | }; |
| 295 | |
| 296 | &mmc2 { |
| 297 | status = "okay"; |
| 298 | vmmc-supply = <&v3_3d>; |
| 299 | bus-width = <8>; |
| 300 | ti,non-removable; |
| 301 | max-frequency = <96000000>; |
| 302 | }; |
Vignesh R | 9af6ce4 | 2016-07-29 14:22:31 +0530 | [diff] [blame] | 303 | |
| 304 | &qspi { |
| 305 | status = "okay"; |
| 306 | |
| 307 | spi-max-frequency = <76800000>; |
| 308 | m25p80@0 { |
| 309 | compatible = "s25fl256s1","spi-flash"; |
| 310 | spi-max-frequency = <76800000>; |
| 311 | reg = <0>; |
| 312 | spi-tx-bus-width = <1>; |
| 313 | spi-rx-bus-width = <4>; |
| 314 | #address-cells = <1>; |
| 315 | #size-cells = <1>; |
| 316 | |
| 317 | /* MTD partition table. |
| 318 | * The ROM checks the first four physical blocks |
| 319 | * for a valid file to boot and the flash here is |
| 320 | * 64KiB block size. |
| 321 | */ |
| 322 | partition@0 { |
| 323 | label = "QSPI.SPL"; |
| 324 | reg = <0x00000000 0x000040000>; |
| 325 | }; |
| 326 | partition@1 { |
| 327 | label = "QSPI.u-boot"; |
| 328 | reg = <0x00040000 0x00100000>; |
| 329 | }; |
| 330 | partition@2 { |
| 331 | label = "QSPI.u-boot-spl-os"; |
| 332 | reg = <0x00140000 0x00080000>; |
| 333 | }; |
| 334 | partition@3 { |
| 335 | label = "QSPI.u-boot-env"; |
| 336 | reg = <0x001c0000 0x00010000>; |
| 337 | }; |
| 338 | partition@4 { |
| 339 | label = "QSPI.u-boot-env.backup1"; |
| 340 | reg = <0x001d0000 0x0010000>; |
| 341 | }; |
| 342 | partition@5 { |
| 343 | label = "QSPI.kernel"; |
| 344 | reg = <0x001e0000 0x0800000>; |
| 345 | }; |
| 346 | partition@6 { |
| 347 | label = "QSPI.file-system"; |
| 348 | reg = <0x009e0000 0x01620000>; |
| 349 | }; |
| 350 | }; |
| 351 | }; |