0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /dts-v1/;
0003
0004 #include <dt-bindings/input/input.h>
0005 #include "omap443x.dtsi"
0006 #include "motorola-cpcap-mapphone.dtsi"
0007
0008 / {
0009 chosen {
0010 stdout-path = &uart3;
0011 };
0012
0013 aliases {
0014 display0 = &lcd0;
0015 display1 = &hdmi0;
0016 };
0017
0018 /*
0019 * We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
0020 * then 1023 - 1024 seems to contain mbm.
0021 */
0022 memory {
0023 device_type = "memory";
0024 reg = <0x80000000 0x3fd00000>; /* 1021 MB */
0025 };
0026
0027 /* Poweroff GPIO probably connected to CPCAP */
0028 gpio-poweroff {
0029 compatible = "gpio-poweroff";
0030 pinctrl-0 = <&poweroff_gpio>;
0031 pinctrl-names = "default";
0032 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; /* gpio50 */
0033 };
0034
0035 hdmi0: connector {
0036 compatible = "hdmi-connector";
0037 pinctrl-0 = <&hdmi_hpd_gpio>;
0038 pinctrl-names = "default";
0039 label = "hdmi";
0040 type = "d";
0041
0042 hpd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; /* gpio63 */
0043
0044 port {
0045 hdmi_connector_in: endpoint {
0046 remote-endpoint = <&hdmi_out>;
0047 };
0048 };
0049 };
0050
0051 /*
0052 * HDMI 5V regulator probably sourced from battery. Let's keep
0053 * keep this as always enabled for HDMI to work until we've
0054 * figured what the encoder chip is.
0055 */
0056 hdmi_regulator: regulator-hdmi {
0057 compatible = "regulator-fixed";
0058 regulator-name = "hdmi";
0059 regulator-min-microvolt = <5000000>;
0060 regulator-max-microvolt = <5000000>;
0061 gpio = <&gpio2 27 GPIO_ACTIVE_HIGH>; /* gpio59 */
0062 enable-active-high;
0063 regulator-always-on;
0064 };
0065
0066 /* FS USB Host PHY on port 1 for mdm6600 */
0067 fsusb1_phy: usb-phy@1 {
0068 compatible = "motorola,mapphone-mdm6600";
0069 pinctrl-0 = <&usb_mdm6600_pins>;
0070 pinctrl-names = "default";
0071 enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; /* gpio_95 */
0072 power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* gpio_54 */
0073 reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>; /* gpio_49 */
0074 /* mode: gpio_148 gpio_149 */
0075 motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>,
0076 <&gpio5 21 GPIO_ACTIVE_HIGH>;
0077 /* cmd: gpio_103 gpio_104 gpio_142 */
0078 motorola,cmd-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>,
0079 <&gpio4 8 GPIO_ACTIVE_HIGH>,
0080 <&gpio5 14 GPIO_ACTIVE_HIGH>;
0081 /* status: gpio_52 gpio_53 gpio_55 */
0082 motorola,status-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>,
0083 <&gpio2 21 GPIO_ACTIVE_HIGH>,
0084 <&gpio2 23 GPIO_ACTIVE_HIGH>;
0085 #phy-cells = <0>;
0086 };
0087
0088 /* HS USB host TLL nop-phy on port 2 for w3glte */
0089 hsusb2_phy: usb-phy@2 {
0090 compatible = "usb-nop-xceiv";
0091 #phy-cells = <0>;
0092 };
0093
0094 /* LCD regulator from sw5 source */
0095 lcd_regulator: regulator-lcd {
0096 compatible = "regulator-fixed";
0097 regulator-name = "lcd";
0098 regulator-min-microvolt = <5050000>;
0099 regulator-max-microvolt = <5050000>;
0100 gpio = <&gpio4 0 GPIO_ACTIVE_HIGH>; /* gpio96 */
0101 enable-active-high;
0102 vin-supply = <&sw5>;
0103 };
0104
0105 /* This is probably coming straight from the battery.. */
0106 wl12xx_vmmc: regulator-wl12xx {
0107 compatible = "regulator-fixed";
0108 regulator-name = "vwl1271";
0109 regulator-min-microvolt = <1650000>;
0110 regulator-max-microvolt = <1650000>;
0111 gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>; /* gpio94 */
0112 startup-delay-us = <70000>;
0113 enable-active-high;
0114 };
0115
0116 soundcard {
0117 compatible = "audio-graph-card";
0118 label = "Mapphone Audio";
0119
0120 widgets =
0121 "Speaker", "Earpiece",
0122 "Speaker", "Loudspeaker",
0123 "Headphone", "Headphone Jack",
0124 "Microphone", "Internal Mic";
0125
0126 routing =
0127 "Earpiece", "EP",
0128 "Loudspeaker", "SPKR",
0129 "Headphone Jack", "HSL",
0130 "Headphone Jack", "HSR",
0131 "MICR", "Internal Mic";
0132
0133 dais = <&mcbsp2_port>, <&mcbsp3_port>;
0134 };
0135
0136 pwm8: dmtimer-pwm-8 {
0137 pinctrl-names = "default";
0138 pinctrl-0 = <&vibrator_direction_pin>;
0139
0140 compatible = "ti,omap-dmtimer-pwm";
0141 #pwm-cells = <3>;
0142 ti,timers = <&timer8>;
0143 ti,clock-source = <0x01>;
0144 };
0145
0146 pwm9: dmtimer-pwm-9 {
0147 pinctrl-names = "default";
0148 pinctrl-0 = <&vibrator_enable_pin>;
0149
0150 compatible = "ti,omap-dmtimer-pwm";
0151 #pwm-cells = <3>;
0152 ti,timers = <&timer9>;
0153 ti,clock-source = <0x01>;
0154 };
0155
0156 vibrator {
0157 compatible = "pwm-vibrator";
0158 pwms = <&pwm9 0 10000000 0>, <&pwm8 0 10000000 0>;
0159 pwm-names = "enable", "direction";
0160 direction-duty-cycle-ns = <10000000>;
0161 };
0162
0163 backlight: backlight {
0164 compatible = "led-backlight";
0165
0166 leds = <&backlight_led>;
0167 brightness-levels = <31 63 95 127 159 191 223 255>;
0168 default-brightness-level = <6>;
0169 };
0170 };
0171
0172 &cpu_thermal {
0173 polling-delay = <10000>; /* milliseconds */
0174 };
0175
0176 &cpu_alert0 {
0177 temperature = <80000>; /* millicelsius */
0178 };
0179
0180 &cpu0 {
0181 /*
0182 * Note that the 1.2GiHz mode is enabled for all SoC variants for
0183 * the Motorola Android Linux v3.0.8 based kernel.
0184 */
0185 operating-points = <
0186 /* kHz uV */
0187 300000 1025000
0188 600000 1200000
0189 800000 1313000
0190 1008000 1375000
0191 1200000 1375000
0192 >;
0193 };
0194
0195 &dss {
0196 status = "okay";
0197 };
0198
0199 &dsi1 {
0200 status = "okay";
0201 vdd-supply = <&vcsi>;
0202
0203 port {
0204 dsi1_out_ep: endpoint {
0205 remote-endpoint = <&lcd0_in>;
0206 lanes = <0 1 2 3 4 5>;
0207 };
0208 };
0209
0210 lcd0: panel@0 {
0211 compatible = "motorola,droid4-panel", "panel-dsi-cm";
0212 reg = <0>;
0213 label = "lcd0";
0214 vddi-supply = <&lcd_regulator>;
0215 reset-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; /* gpio101 */
0216
0217 backlight = <&backlight>;
0218
0219 width-mm = <50>;
0220 height-mm = <89>;
0221 rotation = <90>;
0222
0223 panel-timing {
0224 clock-frequency = <0>; /* Calculated by dsi */
0225
0226 hback-porch = <2>;
0227 hactive = <540>;
0228 hfront-porch = <0>;
0229 hsync-len = <2>;
0230
0231 vback-porch = <1>;
0232 vactive = <960>;
0233 vfront-porch = <0>;
0234 vsync-len = <1>;
0235
0236 hsync-active = <0>;
0237 vsync-active = <0>;
0238 de-active = <1>;
0239 pixelclk-active = <1>;
0240 };
0241
0242 port {
0243 lcd0_in: endpoint {
0244 remote-endpoint = <&dsi1_out_ep>;
0245 };
0246 };
0247 };
0248 };
0249
0250 &hdmi {
0251 status = "okay";
0252 pinctrl-0 = <&dss_hdmi_pins>;
0253 pinctrl-names = "default";
0254 vdda-supply = <&vdac>;
0255
0256 port {
0257 hdmi_out: endpoint {
0258 remote-endpoint = <&hdmi_connector_in>;
0259 lanes = <1 0 3 2 5 4 7 6>;
0260 };
0261 };
0262 };
0263
0264 /* Battery NVRAM on 1-wire handled by w1_ds250x driver */
0265 &hdqw1w {
0266 pinctrl-0 = <&hdq_pins>;
0267 pinctrl-names = "default";
0268 ti,mode = "1w";
0269 };
0270
0271 &i2c1 {
0272 tmp105@48 {
0273 compatible = "ti,tmp105";
0274 reg = <0x48>;
0275 pinctrl-0 = <&tmp105_irq>;
0276 pinctrl-names = "default";
0277 /* kpd_row0.gpio_178 */
0278 interrupts-extended = <&gpio6 18 IRQ_TYPE_EDGE_FALLING
0279 &omap4_pmx_core 0x14e>;
0280 interrupt-names = "irq", "wakeup";
0281 wakeup-source;
0282 };
0283 };
0284
0285 &mmc1 {
0286 vmmc-supply = <&vwlan2>;
0287 bus-width = <4>;
0288 cd-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; /* gpio176 */
0289 };
0290
0291 &mmc2 {
0292 vmmc-supply = <&vsdio>;
0293 bus-width = <8>;
0294 ti,non-removable;
0295 };
0296
0297 &mmc3 {
0298 pinctrl-names = "default";
0299 pinctrl-0 = <&mmc3_pins>;
0300 vmmc-supply = <&wl12xx_vmmc>;
0301 /* uart2_tx.sdmmc3_dat1 pad as wakeirq */
0302 interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
0303 &omap4_pmx_core 0xde>;
0304 interrupt-names = "irq", "wakeup";
0305 non-removable;
0306 bus-width = <4>;
0307 cap-power-off-card;
0308 keep-power-in-suspend;
0309
0310 #address-cells = <1>;
0311 #size-cells = <0>;
0312 wlcore: wlcore@2 {
0313 compatible = "ti,wl1285";
0314 reg = <2>;
0315 /* gpio_100 with gpmc_wait2 pad as wakeirq */
0316 interrupts-extended = <&gpio4 4 IRQ_TYPE_LEVEL_HIGH>,
0317 <&omap4_pmx_core 0x4e>;
0318 interrupt-names = "irq", "wakeup";
0319 ref-clock-frequency = <26000000>;
0320 tcxo-clock-frequency = <26000000>;
0321 };
0322 };
0323
0324 &i2c2 {
0325 touchscreen@4a {
0326 compatible = "atmel,maxtouch";
0327 reg = <0x4a>;
0328 pinctrl-names = "default";
0329 pinctrl-0 = <&touchscreen_pins>;
0330
0331 reset-gpios = <&gpio6 13 GPIO_ACTIVE_LOW>; /* gpio173 */
0332
0333 /* gpio_183 with sys_nirq2 pad as wakeup */
0334 interrupts-extended = <&gpio6 23 IRQ_TYPE_LEVEL_LOW>,
0335 <&omap4_pmx_core 0x160>;
0336 interrupt-names = "irq", "wakeup";
0337 wakeup-source;
0338 };
0339
0340 isl29030@44 {
0341 compatible = "isil,isl29030";
0342 reg = <0x44>;
0343
0344 pinctrl-names = "default";
0345 pinctrl-0 = <&als_proximity_pins>;
0346
0347 interrupt-parent = <&gpio6>;
0348 interrupts = <17 IRQ_TYPE_LEVEL_LOW>; /* gpio177 */
0349 };
0350 };
0351
0352 &omap4_pmx_core {
0353
0354 /* hdmi_hpd.gpio_63 */
0355 hdmi_hpd_gpio: pinmux_hdmi_hpd_pins {
0356 pinctrl-single,pins = <
0357 OMAP4_IOPAD(0x098, PIN_INPUT | MUX_MODE3)
0358 >;
0359 };
0360
0361 hdq_pins: pinmux_hdq_pins {
0362 pinctrl-single,pins = <
0363 /* 0x4a100120 hdq_sio.hdq_sio aa27 */
0364 OMAP4_IOPAD(0x120, PIN_INPUT | MUX_MODE0)
0365 >;
0366 };
0367
0368 /* hdmi_cec.hdmi_cec, hdmi_scl.hdmi_scl, hdmi_sda.hdmi_sda */
0369 dss_hdmi_pins: pinmux_dss_hdmi_pins {
0370 pinctrl-single,pins = <
0371 OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0)
0372 OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)
0373 OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)
0374 >;
0375 };
0376
0377 /*
0378 * Android uses PIN_OFF_INPUT_PULLDOWN | PIN_INPUT_PULLUP | MUX_MODE3
0379 * for gpio_100, but the internal pull makes wlan flakey on some
0380 * devices. Off mode value should be tested if we have off mode working
0381 * later on.
0382 */
0383 mmc3_pins: pinmux_mmc3_pins {
0384 pinctrl-single,pins = <
0385 /* 0x4a10008e gpmc_wait2.gpio_100 d23 */
0386 OMAP4_IOPAD(0x08e, PIN_INPUT | MUX_MODE3)
0387
0388 /* 0x4a100102 abe_mcbsp1_dx.sdmmc3_dat2 ab25 */
0389 OMAP4_IOPAD(0x102, PIN_INPUT_PULLUP | MUX_MODE1)
0390
0391 /* 0x4a100104 abe_mcbsp1_fsx.sdmmc3_dat3 ac27 */
0392 OMAP4_IOPAD(0x104, PIN_INPUT_PULLUP | MUX_MODE1)
0393
0394 /* 0x4a100118 uart2_cts.sdmmc3_clk ab26 */
0395 OMAP4_IOPAD(0x118, PIN_INPUT | MUX_MODE1)
0396
0397 /* 0x4a10011a uart2_rts.sdmmc3_cmd ab27 */
0398 OMAP4_IOPAD(0x11a, PIN_INPUT_PULLUP | MUX_MODE1)
0399
0400 /* 0x4a10011c uart2_rx.sdmmc3_dat0 aa25 */
0401 OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE1)
0402
0403 /* 0x4a10011e uart2_tx.sdmmc3_dat1 aa26 */
0404 OMAP4_IOPAD(0x11e, PIN_INPUT_PULLUP | MUX_MODE1)
0405 >;
0406 };
0407
0408 /* gpmc_ncs0.gpio_50 */
0409 poweroff_gpio: pinmux_poweroff_pins {
0410 pinctrl-single,pins = <
0411 OMAP4_IOPAD(0x074, PIN_OUTPUT_PULLUP | MUX_MODE3)
0412 >;
0413 };
0414
0415 /* kpd_row0.gpio_178 */
0416 tmp105_irq: pinmux_tmp105_irq {
0417 pinctrl-single,pins = <
0418 OMAP4_IOPAD(0x18e, PIN_INPUT_PULLUP | MUX_MODE3)
0419 >;
0420 };
0421
0422 usb_gpio_mux_sel1: pinmux_usb_gpio_mux_sel1_pins {
0423 /* gpio_60 */
0424 pinctrl-single,pins = <
0425 OMAP4_IOPAD(0x088, PIN_OUTPUT | MUX_MODE3)
0426 >;
0427 };
0428
0429 touchscreen_pins: pinmux_touchscreen_pins {
0430 pinctrl-single,pins = <
0431 OMAP4_IOPAD(0x180, PIN_OUTPUT | MUX_MODE3)
0432 OMAP4_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE3)
0433 >;
0434 };
0435
0436 als_proximity_pins: pinmux_als_proximity_pins {
0437 pinctrl-single,pins = <
0438 OMAP4_IOPAD(0x18c, PIN_INPUT_PULLUP | MUX_MODE3)
0439 >;
0440 };
0441
0442 usb_mdm6600_pins: pinmux_usb_mdm6600_pins {
0443 pinctrl-single,pins = <
0444 /* enable 0x4a1000d8 usbb1_ulpitll_dat7.gpio_95 ag16 */
0445 OMAP4_IOPAD(0x0d8, PIN_INPUT | MUX_MODE3)
0446
0447 /* power 0x4a10007c gpmc_nwp.gpio_54 c25 */
0448 OMAP4_IOPAD(0x07c, PIN_OUTPUT | MUX_MODE3)
0449
0450 /* reset 0x4a100072 gpmc_a25.gpio_49 d20 */
0451 OMAP4_IOPAD(0x072, PIN_OUTPUT | MUX_MODE3)
0452
0453 /* mode0/bpwake 0x4a10014e sdmmc5_dat1.gpio_148 af4 */
0454 OMAP4_IOPAD(0x14e, PIN_OUTPUT | MUX_MODE3)
0455
0456 /* mode1/apwake 0x4a100150 sdmmc5_dat2.gpio_149 ag3 */
0457 OMAP4_IOPAD(0x150, PIN_OFF_OUTPUT_LOW | PIN_INPUT | MUX_MODE3)
0458
0459 /* status0 0x4a10007e gpmc_clk.gpio_55 b22 */
0460 OMAP4_IOPAD(0x07e, PIN_INPUT | MUX_MODE3)
0461
0462 /* status1 0x4a10007a gpmc_ncs3.gpio_53 c22 */
0463 OMAP4_IOPAD(0x07a, PIN_INPUT | MUX_MODE3)
0464
0465 /* status2 0x4a100078 gpmc_ncs2.gpio_52 d21 */
0466 OMAP4_IOPAD(0x078, PIN_INPUT | MUX_MODE3)
0467
0468 /* cmd0 0x4a100094 gpmc_ncs6.gpio_103 c24 */
0469 OMAP4_IOPAD(0x094, PIN_OUTPUT | MUX_MODE3)
0470
0471 /* cmd1 0x4a100096 gpmc_ncs7.gpio_104 d24 */
0472 OMAP4_IOPAD(0x096, PIN_OUTPUT | MUX_MODE3)
0473
0474 /* cmd2 0x4a100142 uart3_rts_sd.gpio_142 f28 */
0475 OMAP4_IOPAD(0x142, PIN_OUTPUT | MUX_MODE3)
0476 >;
0477 };
0478
0479 usb_ulpi_pins: pinmux_usb_ulpi_pins {
0480 pinctrl-single,pins = <
0481 OMAP4_IOPAD(0x196, MUX_MODE7)
0482 OMAP4_IOPAD(0x198, MUX_MODE7)
0483 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE0)
0484 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0)
0485 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE0)
0486 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE0)
0487 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE0)
0488 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE0)
0489 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE0)
0490 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE0)
0491 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE0)
0492 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE0)
0493 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE0)
0494 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE0)
0495 >;
0496 };
0497
0498 /* usb0_otg_dp and usb0_otg_dm */
0499 usb_utmi_pins: pinmux_usb_utmi_pins {
0500 pinctrl-single,pins = <
0501 OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0)
0502 OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0)
0503 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
0504 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
0505 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
0506 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
0507 OMAP4_IOPAD(0x1ba, PIN_INPUT_PULLUP | MUX_MODE7)
0508 OMAP4_IOPAD(0x1bc, PIN_INPUT_PULLUP | MUX_MODE7)
0509 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
0510 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
0511 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
0512 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
0513 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
0514 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
0515 >;
0516 };
0517
0518 /*
0519 * Note that the v3.0.8 stock userspace dynamically remuxes uart1
0520 * rts pin probably for PM purposes to PIN_INPUT_PULLUP | MUX_MODE7
0521 * when not used. If needed, we can add rts pin remux later based
0522 * on power measurements.
0523 */
0524 uart1_pins: pinmux_uart1_pins {
0525 pinctrl-single,pins = <
0526 /* 0x4a10013c mcspi1_cs2.uart1_cts ag23 */
0527 OMAP4_IOPAD(0x13c, PIN_INPUT_PULLUP | MUX_MODE1)
0528
0529 /* 0x4a10013e mcspi1_cs3.uart1_rts ah23 */
0530 OMAP4_IOPAD(0x13e, MUX_MODE1)
0531
0532 /* 0x4a100140 uart3_cts_rctx.uart1_tx f27 */
0533 OMAP4_IOPAD(0x140, PIN_OUTPUT | MUX_MODE1)
0534
0535 /* 0x4a1001ca dpm_emu14.uart1_rx aa3 */
0536 OMAP4_IOPAD(0x1ca, PIN_INPUT_PULLUP | MUX_MODE2)
0537 >;
0538 };
0539
0540 /* uart3_tx_irtx and uart3_rx_irrx */
0541 uart3_pins: pinmux_uart3_pins {
0542 pinctrl-single,pins = <
0543 OMAP4_IOPAD(0x196, MUX_MODE7)
0544 OMAP4_IOPAD(0x198, MUX_MODE7)
0545 OMAP4_IOPAD(0x1b2, PIN_INPUT_PULLUP | MUX_MODE7)
0546 OMAP4_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE7)
0547 OMAP4_IOPAD(0x1b6, PIN_INPUT_PULLUP | MUX_MODE7)
0548 OMAP4_IOPAD(0x1b8, PIN_INPUT_PULLUP | MUX_MODE7)
0549 OMAP4_IOPAD(0x1ba, MUX_MODE2)
0550 OMAP4_IOPAD(0x1bc, PIN_INPUT | MUX_MODE2)
0551 OMAP4_IOPAD(0x1be, PIN_INPUT_PULLUP | MUX_MODE7)
0552 OMAP4_IOPAD(0x1c0, PIN_INPUT_PULLUP | MUX_MODE7)
0553 OMAP4_IOPAD(0x1c2, PIN_INPUT_PULLUP | MUX_MODE7)
0554 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7)
0555 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7)
0556 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
0557 >;
0558 };
0559
0560 uart4_pins: pinmux_uart4_pins {
0561 pinctrl-single,pins = <
0562 OMAP4_IOPAD(0x15c, PIN_INPUT | MUX_MODE0) /* uart4_rx */
0563 OMAP4_IOPAD(0x15e, PIN_OUTPUT | MUX_MODE0) /* uart4_tx */
0564 OMAP4_IOPAD(0x110, PIN_INPUT_PULLUP | MUX_MODE5) /* uart4_cts */
0565 OMAP4_IOPAD(0x112, PIN_OUTPUT_PULLUP | MUX_MODE5) /* uart4_rts */
0566 >;
0567 };
0568
0569 mcbsp2_pins: pinmux_mcbsp2_pins {
0570 pinctrl-single,pins = <
0571 OMAP4_IOPAD(0x0f6, PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_clkx */
0572 OMAP4_IOPAD(0x0f8, PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_dr */
0573 OMAP4_IOPAD(0x0fa, PIN_OUTPUT | MUX_MODE0) /* abe_mcbsp2_dx */
0574 OMAP4_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_fsx */
0575 >;
0576 };
0577
0578 mcbsp3_pins: pinmux_mcbsp3_pins {
0579 pinctrl-single,pins = <
0580 OMAP4_IOPAD(0x106, PIN_INPUT | MUX_MODE1) /* abe_mcbsp3_dr */
0581 OMAP4_IOPAD(0x108, PIN_OUTPUT | MUX_MODE1) /* abe_mcbsp3_dx */
0582 OMAP4_IOPAD(0x10a, PIN_INPUT | MUX_MODE1) /* abe_mcbsp3_clkx */
0583 OMAP4_IOPAD(0x10c, PIN_INPUT | MUX_MODE1) /* abe_mcbsp3_fsx */
0584 >;
0585 };
0586
0587 vibrator_direction_pin: pinmux_vibrator_direction_pin {
0588 pinctrl-single,pins = <
0589 OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE1) /* dmtimer8_pwm_evt (gpio_27) */
0590 >;
0591 };
0592
0593 vibrator_enable_pin: pinmux_vibrator_enable_pin {
0594 pinctrl-single,pins = <
0595 OMAP4_IOPAD(0X1d0, PIN_OUTPUT | MUX_MODE1) /* dmtimer9_pwm_evt (gpio_28) */
0596 >;
0597 };
0598 };
0599
0600 &omap4_pmx_wkup {
0601 usb_gpio_mux_sel2: pinmux_usb_gpio_mux_sel2_pins {
0602 /* gpio_wk0 */
0603 pinctrl-single,pins = <
0604 OMAP4_IOPAD(0x040, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
0605 >;
0606 };
0607 };
0608
0609 /* RNG is used by secure mode and not accessible */
0610 &rng_target {
0611 status = "disabled";
0612 };
0613
0614 /* Configure pwm clock source for timers 8 & 9 */
0615 &timer8 {
0616 assigned-clocks = <&abe_clkctrl OMAP4_TIMER8_CLKCTRL 24>;
0617 assigned-clock-parents = <&sys_clkin_ck>;
0618 };
0619
0620 &timer9 {
0621 assigned-clocks = <&l4_per_clkctrl OMAP4_TIMER9_CLKCTRL 24>;
0622 assigned-clock-parents = <&sys_clkin_ck>;
0623 };
0624
0625 /*
0626 * The uart1 port is wired to mdm6600 with rts and cts. The modem uses gpio_149
0627 * for wake-up events for both the USB PHY and the UART. We can use gpio_149
0628 * pad as the shared wakeirq for the UART rather than the RX or CTS pad as we
0629 * have gpio_149 trigger before the UART transfer starts.
0630 */
0631 &uart1 {
0632 pinctrl-names = "default";
0633 pinctrl-0 = <&uart1_pins>;
0634 interrupts-extended = <&wakeupgen GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH
0635 &omap4_pmx_core 0x110>;
0636 uart-has-rtscts;
0637 current-speed = <115200>;
0638 };
0639
0640 &uart3 {
0641 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
0642 &omap4_pmx_core 0x17c>;
0643 };
0644
0645 &uart4 {
0646 pinctrl-names = "default";
0647 pinctrl-0 = <&uart4_pins>;
0648
0649 bluetooth {
0650 compatible = "ti,wl1285-st";
0651 enable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; /* gpio 174 */
0652 max-speed = <3686400>;
0653 };
0654 };
0655
0656 &usbhsohci {
0657 phys = <&fsusb1_phy>;
0658 phy-names = "usb";
0659 };
0660
0661 &usbhsehci {
0662 phys = <&hsusb2_phy>;
0663 };
0664
0665 &usbhshost {
0666 port1-mode = "ohci-phy-4pin-dpdm";
0667 port2-mode = "ehci-tll";
0668 };
0669
0670 /* Internal UTMI+ PHY used for OTG, CPCAP ULPI PHY for detection and charger */
0671 &usb_otg_hs {
0672 interface-type = <1>;
0673 mode = <3>;
0674
0675 /*
0676 * Max 300 mA steps based on similar PMIC MC13783UG.pdf "Table 10-4.
0677 * VBUS Regulator Main Characteristics". Binding uses 2 mA units.
0678 */
0679 power = <150>;
0680 };
0681
0682 &i2c4 {
0683 ak8975: magnetometer@c {
0684 compatible = "asahi-kasei,ak8975";
0685 reg = <0x0c>;
0686
0687 vdd-supply = <&vhvio>;
0688
0689 interrupt-parent = <&gpio6>;
0690 interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */
0691
0692 rotation-matrix = "-1", "0", "0",
0693 "0", "1", "0",
0694 "0", "0", "-1";
0695
0696 };
0697 };
0698
0699 &mcbsp2 {
0700 #sound-dai-cells = <0>;
0701 pinctrl-names = "default";
0702 pinctrl-0 = <&mcbsp2_pins>;
0703 status = "okay";
0704
0705 mcbsp2_port: port {
0706 cpu_dai2: endpoint {
0707 dai-format = "i2s";
0708 remote-endpoint = <&cpcap_audio_codec0>;
0709 frame-master = <&cpcap_audio_codec0>;
0710 bitclock-master = <&cpcap_audio_codec0>;
0711 };
0712 };
0713 };
0714
0715 &mcbsp3 {
0716 #sound-dai-cells = <0>;
0717 pinctrl-names = "default";
0718 pinctrl-0 = <&mcbsp3_pins>;
0719 status = "okay";
0720
0721 mcbsp3_port: port {
0722 cpu_dai3: endpoint {
0723 dai-format = "dsp_a";
0724 frame-master = <&cpcap_audio_codec1>;
0725 bitclock-master = <&cpcap_audio_codec1>;
0726 remote-endpoint = <&cpcap_audio_codec1>;
0727 };
0728 };
0729 };
0730
0731 &cpcap_audio_codec0 {
0732 remote-endpoint = <&cpu_dai2>;
0733 };
0734
0735 &cpcap_audio_codec1 {
0736 remote-endpoint = <&cpu_dai3>;
0737 };