Adam Ford | f3996ae | 2019-07-15 14:07:52 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 2 | |
| 3 | /dts-v1/; |
| 4 | |
| 5 | #include "omap36xx.dtsi" |
| 6 | #include "logicpd-torpedo-som.dtsi" |
| 7 | #include "omap-gpmc-smsc9221.dtsi" |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 8 | #include "logicpd-torpedo-baseboard.dtsi" |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 9 | |
| 10 | / { |
| 11 | model = "LogicPD Zoom DM3730 Torpedo + Wireless Development Kit"; |
| 12 | compatible = "logicpd,dm3730-torpedo-devkit", "ti,omap3630", "ti,omap3"; |
| 13 | |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 14 | wl12xx_vmmc: wl12xx_vmmc { |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 15 | compatible = "regulator-fixed"; |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 16 | regulator-name = "vwl1271"; |
| 17 | regulator-min-microvolt = <1800000>; |
| 18 | regulator-max-microvolt = <1800000>; |
| 19 | gpio = <&gpio5 29 0>; /* gpio157 */ |
| 20 | startup-delay-us = <70000>; |
| 21 | enable-active-high; |
| 22 | vin-supply = <&vmmc2>; |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 23 | }; |
| 24 | }; |
| 25 | |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 26 | /* |
| 27 | * Only found on the wireless SOM. For the SOM without wireless, the pins for |
| 28 | * MMC3 can be routed with jumpers to the second MMC slot on the devkit and |
| 29 | * gpio157 is not connected. So this should be OK to keep common for now, |
| 30 | * probably device tree overlays is the way to go with the various SOM and |
| 31 | * jumpering combinations for the long run. |
| 32 | */ |
| 33 | &mmc3 { |
Adam Ford | 343b606 | 2018-12-03 08:17:29 -0600 | [diff] [blame] | 34 | interrupts-extended = <&intc 94 &omap3_pmx_core 0x136>; |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 35 | pinctrl-0 = <&mmc3_pins &mmc3_core2_pins>; |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 36 | pinctrl-names = "default"; |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 37 | vmmc-supply = <&wl12xx_vmmc>; |
| 38 | non-removable; |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 39 | bus-width = <4>; |
| 40 | cap-power-off-card; |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 41 | #address-cells = <1>; |
| 42 | #size-cells = <0>; |
| 43 | wlcore: wlcore@2 { |
| 44 | compatible = "ti,wl1283"; |
| 45 | reg = <2>; |
| 46 | interrupt-parent = <&gpio5>; |
Adam Ford | 87555d1 | 2018-09-29 14:10:15 -0500 | [diff] [blame] | 47 | interrupts = <24 IRQ_TYPE_EDGE_RISING>; /* gpio 152 */ |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 48 | ref-clock-frequency = <26000000>; |
| 49 | tcxo-clock-frequency = <26000000>; |
| 50 | }; |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 51 | }; |
| 52 | |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 53 | &omap3_pmx_core { |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 54 | mmc3_pins: pinmux_mm3_pins { |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 55 | pinctrl-single,pins = < |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 56 | OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat4.sdmmc3_dat0 */ |
| 57 | OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat5.sdmmc3_dat1 */ |
| 58 | OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat2 */ |
| 59 | OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat3 */ |
| 60 | OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4) /* mcbsp4_clkx.gpio_152 */ |
| 61 | OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_fsr.gpio_157 */ |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 62 | >; |
| 63 | }; |
| 64 | }; |
| 65 | |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 66 | &omap3_pmx_core2 { |
| 67 | mmc3_core2_pins: pinmux_mmc3_core2_pins { |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 68 | pinctrl-single,pins = < |
Adam Ford | e6ea239 | 2018-07-09 20:18:14 -0500 | [diff] [blame] | 69 | OMAP3630_CORE2_IOPAD(0x25d8, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_clk.sdmmc3_clk */ |
| 70 | OMAP3630_CORE2_IOPAD(0x25da, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_ctl.sdmmc3_cmd */ |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 71 | >; |
| 72 | }; |
Adam Ford | 4c8a9f2 | 2017-04-17 08:09:44 -0500 | [diff] [blame] | 73 | }; |