Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Support for CompuLab CM-T3517
0004  */
0005 /dts-v1/;
0006 
0007 #include "am3517.dtsi"
0008 #include "omap3-cm-t3x.dtsi"
0009 
0010 / {
0011         model = "CompuLab CM-T3517";
0012         compatible = "compulab,omap3-cm-t3517", "ti,am3517", "ti,omap3";
0013 
0014         vmmc:  regulator-vmmc {
0015                 compatible = "regulator-fixed";
0016                 regulator-name = "vmmc";
0017                 regulator-min-microvolt = <3300000>;
0018                 regulator-max-microvolt = <3300000>;
0019         };
0020 
0021         wl12xx_vmmc2: wl12xx_vmmc2 {
0022                 compatible = "regulator-fixed";
0023                 regulator-name = "vw1271";
0024                 pinctrl-names = "default";
0025                 pinctrl-0 = <
0026                                 &wl12xx_wkup_pins
0027                                 &wl12xx_core_pins
0028                             >;
0029                 regulator-min-microvolt = <1800000>;
0030                 regulator-max-microvolt = <1800000>;
0031                 gpio = <&gpio1 6 GPIO_ACTIVE_HIGH >; /* gpio6 */
0032                 startup-delay-us = <20000>;
0033                 enable-active-high;
0034         };
0035 
0036         wl12xx_vaux2: wl12xx_vaux2 {
0037                 compatible = "regulator-fixed";
0038                 regulator-name = "vwl1271_vaux2";
0039                 regulator-min-microvolt = <1800000>;
0040                 regulator-max-microvolt = <1800000>;
0041         };
0042 };
0043 
0044 &omap3_pmx_wkup {
0045 
0046         wl12xx_wkup_pins: pinmux_wl12xx_wkup_pins {
0047                 pinctrl-single,pins = <
0048                         OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4)        /* sys_boot2.gpio_4 */
0049                         OMAP3_WKUP_IOPAD(0x2a12, PIN_OUTPUT | MUX_MODE4)        /* sys_boot4.gpio_6 */
0050                 >;
0051         };
0052 };
0053 
0054 &omap3_pmx_core {
0055 
0056         phy1_reset_pins: pinmux_hsusb1_phy_reset_pins {
0057                 pinctrl-single,pins = <
0058                         OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE4)       /* uart2_tx.gpio_146 */
0059                 >;
0060         };
0061 
0062         phy2_reset_pins: pinmux_hsusb2_phy_reset_pins {
0063                 pinctrl-single,pins = <
0064                         OMAP3_CORE1_IOPAD(0x217a, PIN_OUTPUT | MUX_MODE4)       /* uart2_rx.gpio_147 */
0065                 >;
0066         };
0067 
0068         otg_drv_vbus: pinmux_otg_drv_vbus {
0069                 pinctrl-single,pins = <
0070                         OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50MHz_clk.usb0_drvvbus */
0071                 >;
0072         };
0073 
0074         mmc2_pins: pinmux_mmc2_pins {
0075                 pinctrl-single,pins = <
0076                         OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
0077                         OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
0078                         OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
0079                         OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
0080                         OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
0081                         OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
0082                 >;
0083         };
0084 
0085         wl12xx_core_pins: pinmux_wl12xx_core_pins {
0086                 pinctrl-single,pins = <
0087                         OMAP3_CORE1_IOPAD(0x20b8, PIN_OUTPUT | MUX_MODE4)       /* gpmc_ncs5.gpio_56 */
0088                         OMAP3_CORE1_IOPAD(0x2176, PIN_INPUT_PULLUP | MUX_MODE4) /* uart2_rts.gpio_145 */
0089                 >;
0090         };
0091 
0092         usb_hub_pins: pinmux_usb_hub_pins {
0093                 pinctrl-single,pins = <
0094                         OMAP3_CORE1_IOPAD(0x2184, PIN_OUTPUT | MUX_MODE4)       /* mcbsp4_clkx.gpio_152 - USB HUB RST */
0095                 >;
0096         };
0097 };
0098 
0099 &hsusb1_phy {
0100         pinctrl-names = "default";
0101         pinctrl-0 = <&phy1_reset_pins>;
0102         reset-gpios = <&gpio5 18 GPIO_ACTIVE_LOW>;
0103 };
0104 
0105 &hsusb2_phy {
0106         pinctrl-names = "default";
0107         pinctrl-0 = <&phy2_reset_pins>;
0108         reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>;
0109 };
0110 
0111 &davinci_emac {
0112         status = "okay";
0113 };
0114 
0115 &davinci_mdio {
0116         status = "okay";
0117 };
0118 
0119 &am35x_otg_hs {
0120         status = "okay";
0121         pinctrl-names = "default";
0122         pinctrl-0 = <&otg_drv_vbus>;
0123 };
0124 
0125 &mmc1 {
0126         vmmc-supply = <&vmmc>;
0127 };
0128 
0129 &mmc2 {
0130         pinctrl-names = "default";
0131         pinctrl-0 = <&mmc2_pins>;
0132         vmmc-supply = <&wl12xx_vmmc2>;
0133         vqmmc-supply = <&wl12xx_vaux2>;
0134         non-removable;
0135         bus-width = <4>;
0136         cap-power-off-card;
0137 
0138         #address-cells = <1>;
0139         #size-cells = <0>;
0140         wlcore: wlcore@2 {
0141                 compatible = "ti,wl1271";
0142                 reg = <2>;
0143                 interrupt-parent = <&gpio5>;
0144                 interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* gpio 145 */
0145                 ref-clock-frequency = <38400000>;
0146         };
0147 };
0148 
0149 &dss {
0150         status = "okay";
0151 
0152         pinctrl-names = "default";
0153         pinctrl-0 = <
0154                 &dss_dpi_pins_common
0155                 &dss_dpi_pins_cm_t35x
0156         >;
0157 };
0158