Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Support for CompuLab CM-T3730
0004  */
0005 /dts-v1/;
0006 
0007 #include "omap36xx.dtsi"
0008 #include "omap3-cm-t3x30.dtsi"
0009 
0010 / {
0011         model = "CompuLab CM-T3730";
0012         compatible = "compulab,omap3-cm-t3730", "ti,omap3630", "ti,omap36xx", "ti,omap3";
0013 
0014         wl12xx_vmmc2: wl12xx_vmmc2 {
0015                 compatible = "regulator-fixed";
0016                 regulator-name = "vw1271";
0017                 pinctrl-names = "default";
0018                 pinctrl-0 = <&wl12xx_gpio>;
0019                 regulator-min-microvolt = <1800000>;
0020                 regulator-max-microvolt = <1800000>;
0021                 gpio = <&gpio3 9 GPIO_ACTIVE_HIGH>;   /* gpio73 */
0022                 startup-delay-us = <20000>;
0023                 enable-active-high;
0024         };
0025 
0026         wl12xx_vaux2: wl12xx_vaux2 {
0027                 compatible = "regulator-fixed";
0028                 regulator-name = "vwl1271_vaux2";
0029                 regulator-min-microvolt = <1800000>;
0030                 regulator-max-microvolt = <1800000>;
0031                 vin-supply = <&vaux2>;
0032         };
0033 };
0034 
0035 &omap3_pmx_wkup {
0036         dss_dpi_pins_cm_t3730: pinmux_dss_dpi_pins_cm_t3730 {
0037                 pinctrl-single,pins = <
0038                         OMAP3_WKUP_IOPAD(0x2a08, PIN_OUTPUT | MUX_MODE3)   /* sys_boot0.dss_data18 */
0039                         OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE3)   /* sys_boot1.dss_data19 */
0040                         OMAP3_WKUP_IOPAD(0x2a10, PIN_OUTPUT | MUX_MODE3)   /* sys_boot3.dss_data20 */
0041                         OMAP3_WKUP_IOPAD(0x2a12, PIN_OUTPUT | MUX_MODE3)   /* sys_boot4.dss_data21 */
0042                         OMAP3_WKUP_IOPAD(0x2a14, PIN_OUTPUT | MUX_MODE3)   /* sys_boot5.dss_data22 */
0043                         OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | MUX_MODE3)   /* sys_boot6.dss_data23 */
0044                 >;
0045         };
0046 };
0047 
0048 &omap3_pmx_core {
0049 
0050         mmc2_pins: pinmux_mmc2_pins {
0051                 pinctrl-single,pins = <
0052                         OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
0053                         OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
0054                         OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
0055                         OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
0056                         OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
0057                         OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
0058                 >;
0059         };
0060 
0061         wl12xx_gpio: pinmux_wl12xx_gpio {
0062                 pinctrl-single,pins = <
0063                         OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE4)       /* dss_data3.gpio_73 */
0064                         OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE4)        /* sdmmc2_dat4.gpio_136 */
0065                 >;
0066         };
0067 };
0068 
0069 &mmc2 {
0070         pinctrl-names = "default";
0071         pinctrl-0 = <&mmc2_pins>;
0072         vmmc-supply = <&wl12xx_vmmc2>;
0073         vqmmc-supply = <&wl12xx_vaux2>;
0074         non-removable;
0075         bus-width = <4>;
0076         cap-power-off-card;
0077 
0078         #address-cells = <1>;
0079         #size-cells = <0>;
0080         wlcore: wlcore@2 {
0081                 compatible = "ti,wl1271";
0082                 reg = <2>;
0083                 interrupt-parent = <&gpio5>;
0084                 interrupts = <8 IRQ_TYPE_EDGE_RISING>; /* gpio 136 */
0085                 ref-clock-frequency = <38400000>;
0086         };
0087 };
0088 
0089 &dss {
0090         status = "okay";
0091 
0092         pinctrl-names = "default";
0093         pinctrl-0 = <
0094                 &dss_dpi_pins_common
0095                 &dss_dpi_pins_cm_t3730
0096         >;
0097 };
0098