omap5-uevm.dts 12.0 KB
Newer Older
1
/*
2
 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 4 5 6 7 8 9
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;

10
#include "omap5.dtsi"
11 12
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
13 14

/ {
15 16
	model = "TI OMAP5 uEVM board";
	compatible = "ti,omap5-uevm", "ti,omap5";
17 18 19

	memory {
		device_type = "memory";
20
		reg = <0x80000000 0x7F000000>; /* 2032 MB */
21
	};
22 23 24 25 26 27 28

	vmmcsd_fixed: fixedregulator-mmcsd {
		compatible = "regulator-fixed";
		regulator-name = "vmmcsd_fixed";
		regulator-min-microvolt = <3000000>;
		regulator-max-microvolt = <3000000>;
	};
29

30 31 32
	/* HS USB Host PHY on PORT 2 */
	hsusb2_phy: hsusb2_phy {
		compatible = "usb-nop-xceiv";
33
		reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
34 35 36 37 38 39 40
	/**
	  * FIXME
	  * Put the right clock phandle here when available
	  *	clocks = <&auxclk1>;
	  *	clock-names = "main_clk";
	  */
		clock-frequency = <19200000>;
41 42 43 44 45
	};

	/* HS USB Host PHY on PORT 3 */
	hsusb3_phy: hsusb3_phy {
		compatible = "usb-nop-xceiv";
46
		reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
47 48
	};

49 50 51 52 53 54 55 56 57
	leds {
		compatible = "gpio-leds";
		led@1 {
			label = "omap5:blue:usr1";
			gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
			linux,default-trigger = "heartbeat";
			default-state = "off";
		};
	};
58 59
};

60 61 62 63 64 65 66 67
&omap5_pmx_core {
	pinctrl-names = "default";
	pinctrl-0 = <
			&twl6040_pins
			&mcpdm_pins
			&dmic_pins
			&mcbsp1_pins
			&mcbsp2_pins
68
			&usbhost_pins
69
			&led_gpio_pins
70 71 72 73
	>;

	twl6040_pins: pinmux_twl6040_pins {
		pinctrl-single,pins = <
74
			0x18a (PIN_OUTPUT | MUX_MODE6)	/* perslimbus2_clock.gpio5_145 */
75 76 77 78 79
		>;
	};

	mcpdm_pins: pinmux_mcpdm_pins {
		pinctrl-single,pins = <
80 81 82 83 84
			0x142 (PIN_INPUT_PULLDOWN | MUX_MODE0)	/* abe_clks.abe_clks */
			0x15c (PIN_INPUT_PULLDOWN | MUX_MODE0)	/* abemcpdm_ul_data.abemcpdm_ul_data */
			0x15e (PIN_INPUT_PULLDOWN | MUX_MODE0)	/* abemcpdm_dl_data.abemcpdm_dl_data */
			0x160 (PIN_INPUT_PULLUP | MUX_MODE0)	/* abemcpdm_frame.abemcpdm_frame */
			0x162 (PIN_INPUT_PULLDOWN | MUX_MODE0)	/* abemcpdm_lb_clk.abemcpdm_lb_clk */
85 86 87 88 89
		>;
	};

	dmic_pins: pinmux_dmic_pins {
		pinctrl-single,pins = <
90 91 92 93
			0x144 (PIN_INPUT | MUX_MODE0)		/* abedmic_din1.abedmic_din1 */
			0x146 (PIN_INPUT | MUX_MODE0)		/* abedmic_din2.abedmic_din2 */
			0x148 (PIN_INPUT | MUX_MODE0)		/* abedmic_din3.abedmic_din3 */
			0x14a (PIN_OUTPUT | MUX_MODE0)		/* abedmic_clk1.abedmic_clk1 */
94 95 96 97 98
		>;
	};

	mcbsp1_pins: pinmux_mcbsp1_pins {
		pinctrl-single,pins = <
99 100 101 102
			0x14c (PIN_INPUT | MUX_MODE1)		/* abedmic_clk2.abemcbsp1_fsx */
			0x14e (PIN_OUTPUT_PULLDOWN | MUX_MODE1)	/* abedmic_clk3.abemcbsp1_dx */
			0x150 (PIN_INPUT | MUX_MODE1)		/* abeslimbus1_clock.abemcbsp1_clkx */
			0x152 (PIN_INPUT_PULLDOWN | MUX_MODE1)	/* abeslimbus1_data.abemcbsp1_dr */
103 104 105 106 107
		>;
	};

	mcbsp2_pins: pinmux_mcbsp2_pins {
		pinctrl-single,pins = <
108 109 110 111
			0x154 (PIN_INPUT_PULLDOWN | MUX_MODE0)	/* abemcbsp2_dr.abemcbsp2_dr */
			0x156 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* abemcbsp2_dx.abemcbsp2_dx */
			0x158 (PIN_INPUT | MUX_MODE0)		/* abemcbsp2_fsx.abemcbsp2_fsx */
			0x15a (PIN_INPUT | MUX_MODE0)		/* abemcbsp2_clkx.abemcbsp2_clkx */
112 113
		>;
	};
114

115 116 117 118 119 120
	i2c1_pins: pinmux_i2c1_pins {
		pinctrl-single,pins = <
			0x1b2 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_scl */
			0x1b4 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_sda */
		>;
	};
121 122 123

	i2c5_pins: pinmux_i2c5_pins {
		pinctrl-single,pins = <
124 125
			0x184 (PIN_INPUT | MUX_MODE0)		/* i2c5_scl */
			0x186 (PIN_INPUT | MUX_MODE0)		/* i2c5_sda */
126 127
		>;
	};
128 129 130

	mcspi2_pins: pinmux_mcspi2_pins {
		pinctrl-single,pins = <
131 132 133 134
			0xbc (PIN_INPUT | MUX_MODE0)		/*  mcspi2_clk */
			0xbe (PIN_INPUT | MUX_MODE0)		/*  mcspi2_simo */
			0xc0 (PIN_INPUT_PULLUP | MUX_MODE0)	/*  mcspi2_somi */
			0xc2 (PIN_OUTPUT | MUX_MODE0)		/*  mcspi2_cs */
135 136 137 138 139
		>;
	};

	mcspi3_pins: pinmux_mcspi3_pins {
		pinctrl-single,pins = <
140 141 142 143
			0x78 (PIN_INPUT | MUX_MODE1)		/*  mcspi2_somi */
			0x7a (PIN_INPUT | MUX_MODE1)		/*  mcspi2_cs */
			0x7c (PIN_INPUT | MUX_MODE1)		/*  mcspi2_simo */
			0x7e (PIN_INPUT | MUX_MODE1)		/*  mcspi2_clk */
144 145 146 147 148
		>;
	};

	mcspi4_pins: pinmux_mcspi4_pins {
		pinctrl-single,pins = <
149 150 151 152
			0x164 (PIN_INPUT | MUX_MODE1)		/*  mcspi2_clk */
			0x168 (PIN_INPUT | MUX_MODE1)		/*  mcspi2_simo */
			0x16a (PIN_INPUT | MUX_MODE1)		/*  mcspi2_somi */
			0x16c (PIN_INPUT | MUX_MODE1)		/*  mcspi2_cs */
153 154
		>;
	};
155 156 157 158 159 160 161 162 163 164 165 166 167

	usbhost_pins: pinmux_usbhost_pins {
		pinctrl-single,pins = <
			0x84 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
			0x86 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */

			0x19e (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
			0x1a0 (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */

			0x70 (PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
			0x6e (PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
		>;
	};
168 169 170 171 172 173

	led_gpio_pins: pinmux_led_gpio_pins {
		pinctrl-single,pins = <
			0x196 (PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
		>;
	};
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199

	uart1_pins: pinmux_uart1_pins {
		pinctrl-single,pins = <
			0x60 (PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
			0x62 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
			0x64 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
			0x66 (PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
		>;
	};

	uart3_pins: pinmux_uart3_pins {
		pinctrl-single,pins = <
			0x19a (PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
			0x19c (PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
		>;
	};

	uart5_pins: pinmux_uart5_pins {
		pinctrl-single,pins = <
			0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
			0x172 (PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
			0x174 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
			0x176 (PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
		>;
	};

200 201 202 203 204 205 206 207 208 209 210 211 212
};

&omap5_pmx_wkup {
	pinctrl-names = "default";
	pinctrl-0 = <
			&usbhost_wkup_pins
	>;

	usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
		pinctrl-single,pins = <
			0x1A (PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
		>;
	};
213 214
};

215
&mmc1 {
216
	vmmc-supply = <&ldo9_reg>;
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
	bus-width = <4>;
};

&mmc2 {
	vmmc-supply = <&vmmcsd_fixed>;
	bus-width = <8>;
	ti,non-removable;
};

&mmc3 {
	bus-width = <4>;
	ti,non-removable;
};

&mmc4 {
	status = "disabled";
};

&mmc5 {
	status = "disabled";
237
};
238

239 240 241 242 243
&i2c1 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c1_pins>;

	clock-frequency = <400000>;
244 245 246 247 248 249 250 251 252

	palmas: palmas@48 {
		compatible = "ti,palmas";
		interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
		interrupt-parent = <&gic>;
		reg = <0x48>;
		interrupt-controller;
		#interrupt-cells = <2>;

253 254 255 256 257 258 259
		extcon_usb3: palmas_usb {
			compatible = "ti,palmas-usb-vid";
			ti,enable-vbus-detection;
			ti,enable-id-detection;
			ti,wakeup;
		};

260 261 262 263 264 265 266 267 268 269
		palmas_pmic {
			compatible = "ti,palmas-pmic";
			interrupt-parent = <&palmas>;
			interrupts = <14 IRQ_TYPE_NONE>;
			interrupt-name = "short-irq";

			ti,ldo6-vibrator;

			regulators {
				smps123_reg: smps123 {
270
					/* VDD_OPP_MPU */
271 272 273 274 275 276 277 278
					regulator-name = "smps123";
					regulator-min-microvolt = < 600000>;
					regulator-max-microvolt = <1500000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps45_reg: smps45 {
279
					/* VDD_OPP_MM */
280 281 282 283 284 285 286 287
					regulator-name = "smps45";
					regulator-min-microvolt = < 600000>;
					regulator-max-microvolt = <1310000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps6_reg: smps6 {
288
					/* VDD_DDR3 - over VDD_SMPS6 */
289 290 291 292 293 294 295 296
					regulator-name = "smps6";
					regulator-min-microvolt = <1200000>;
					regulator-max-microvolt = <1200000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps7_reg: smps7 {
297
					/* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
298 299 300 301 302 303 304 305
					regulator-name = "smps7";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps8_reg: smps8 {
306
					/* VDD_OPP_CORE */
307 308 309 310 311 312 313 314
					regulator-name = "smps8";
					regulator-min-microvolt = < 600000>;
					regulator-max-microvolt = <1310000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps9_reg: smps9 {
315
					/* VDDA_2v1_AUD over VDD_2v1 */
316 317 318 319 320 321
					regulator-name = "smps9";
					regulator-min-microvolt = <2100000>;
					regulator-max-microvolt = <2100000>;
					ti,smps-range = <0x80>;
				};

322
				smps10_out2_reg: smps10_out2 {
323
					/* VBUS_5V_OTG */
324 325 326 327 328 329 330 331 332 333
					regulator-name = "smps10_out2";
					regulator-min-microvolt = <5000000>;
					regulator-max-microvolt = <5000000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps10_out1_reg: smps10_out1 {
					/* VBUS_5V_OTG */
					regulator-name = "smps10_out1";
334 335 336 337 338 339 340
					regulator-min-microvolt = <5000000>;
					regulator-max-microvolt = <5000000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldo1_reg: ldo1 {
341
					/* VDDAPHY_CAM: vdda_csiport */
342
					regulator-name = "ldo1";
343 344
					regulator-min-microvolt = <1500000>;
					regulator-max-microvolt = <1800000>;
345 346 347
				};

				ldo2_reg: ldo2 {
348
					/* VCC_2V8_DISP: Does not go anywhere */
349
					regulator-name = "ldo2";
350 351 352 353
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
					/* Unused */
					status = "disabled";
354 355 356
				};

				ldo3_reg: ldo3 {
357
					/* VDDAPHY_MDM: vdda_lli */
358
					regulator-name = "ldo3";
359 360
					regulator-min-microvolt = <1500000>;
					regulator-max-microvolt = <1500000>;
361
					regulator-boot-on;
362 363
					/* Only if Modem is used */
					status = "disabled";
364 365 366
				};

				ldo4_reg: ldo4 {
367
					/* VDDAPHY_DISP: vdda_dsiport/hdmi */
368
					regulator-name = "ldo4";
369 370
					regulator-min-microvolt = <1500000>;
					regulator-max-microvolt = <1800000>;
371 372 373
				};

				ldo5_reg: ldo5 {
374
					/* VDDA_1V8_PHY: usb/sata/hdmi.. */
375 376 377 378 379 380 381 382
					regulator-name = "ldo5";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldo6_reg: ldo6 {
383
					/* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
384
					regulator-name = "ldo6";
385 386
					regulator-min-microvolt = <1200000>;
					regulator-max-microvolt = <1200000>;
387 388 389 390 391
					regulator-always-on;
					regulator-boot-on;
				};

				ldo7_reg: ldo7 {
392
					/* VDD_VPP: vpp1 */
393
					regulator-name = "ldo7";
394 395 396 397
					regulator-min-microvolt = <2000000>;
					regulator-max-microvolt = <2000000>;
					/* Only for efuse reprograming! */
					status = "disabled";
398 399 400
				};

				ldo8_reg: ldo8 {
401
					/* VDD_3v0: Does not go anywhere */
402
					regulator-name = "ldo8";
403 404
					regulator-min-microvolt = <3000000>;
					regulator-max-microvolt = <3000000>;
405
					regulator-boot-on;
406 407
					/* Unused */
					status = "disabled";
408 409 410
				};

				ldo9_reg: ldo9 {
411
					/* VCC_DV_SDIO: vdds_sdcard */
412 413
					regulator-name = "ldo9";
					regulator-min-microvolt = <1800000>;
414
					regulator-max-microvolt = <3000000>;
415 416 417 418
					regulator-boot-on;
				};

				ldoln_reg: ldoln {
419
					/* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
420 421 422 423 424 425 426 427
					regulator-name = "ldoln";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldousb_reg: ldousb {
428
					/* VDDA_3V_USB: VDDA_USBHS33 */
429 430 431 432 433 434
					regulator-name = "ldousb";
					regulator-min-microvolt = <3250000>;
					regulator-max-microvolt = <3250000>;
					regulator-always-on;
					regulator-boot-on;
				};
435 436 437 438 439 440 441

				regen3_reg: regen3 {
					/* REGEN3 controls LDO9 supply to card */
					regulator-name = "regen3";
					regulator-always-on;
					regulator-boot-on;
				};
442 443 444
			};
		};
	};
445 446 447 448 449 450 451 452 453
};

&i2c5 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c5_pins>;

	clock-frequency = <400000>;
};

454 455 456
&mcbsp3 {
	status = "disabled";
};
457

458 459 460 461 462 463 464 465 466
&usbhshost {
	port2-mode = "ehci-hsic";
	port3-mode = "ehci-hsic";
};

&usbhsehci {
	phys = <0 &hsusb2_phy &hsusb3_phy>;
};

467 468 469 470 471
&usb3 {
	extcon = <&extcon_usb3>;
	vbus-supply = <&smps10_out1_reg>;
};

472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489
&mcspi1 {

};

&mcspi2 {
	pinctrl-names = "default";
	pinctrl-0 = <&mcspi2_pins>;
};

&mcspi3 {
	pinctrl-names = "default";
	pinctrl-0 = <&mcspi3_pins>;
};

&mcspi4 {
	pinctrl-names = "default";
	pinctrl-0 = <&mcspi4_pins>;
};
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504

&uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart1_pins>;
};

&uart3 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart3_pins>;
};

&uart5 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart5_pins>;
};