1*f126890aSEmmanuel Vadot/* 2*f126890aSEmmanuel Vadot * Copyright (C) 2013,2014 Russell King 3*f126890aSEmmanuel Vadot * 4*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 5*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 6*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 7*f126890aSEmmanuel Vadot * whole. 8*f126890aSEmmanuel Vadot * 9*f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 10*f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License 11*f126890aSEmmanuel Vadot * version 2 as published by the Free Software Foundation. 12*f126890aSEmmanuel Vadot * 13*f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 14*f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*f126890aSEmmanuel Vadot * GNU General Public License for more details. 17*f126890aSEmmanuel Vadot * 18*f126890aSEmmanuel Vadot * Or, alternatively, 19*f126890aSEmmanuel Vadot * 20*f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 21*f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 22*f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 23*f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 24*f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 25*f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 26*f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 27*f126890aSEmmanuel Vadot * conditions: 28*f126890aSEmmanuel Vadot * 29*f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 30*f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 31*f126890aSEmmanuel Vadot * 32*f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 33*f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 34*f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 35*f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 36*f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 37*f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 38*f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 39*f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 40*f126890aSEmmanuel Vadot */ 41*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 42*f126890aSEmmanuel Vadot 43*f126890aSEmmanuel Vadot/ { 44*f126890aSEmmanuel Vadot nvcc_sd1: regulator-nvcc-sd1 { 45*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 46*f126890aSEmmanuel Vadot regulator-always-on; 47*f126890aSEmmanuel Vadot regulator-name = "nvcc_sd1"; 48*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 49*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 50*f126890aSEmmanuel Vadot vin-supply = <&vcc_3v3>; 51*f126890aSEmmanuel Vadot }; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot clk_ti_wifi: ti-wifi-clock { 54*f126890aSEmmanuel Vadot /* This is a hack around the kernel - using "fixed clock" 55*f126890aSEmmanuel Vadot * results in the "pinctrl" properties being ignored, and 56*f126890aSEmmanuel Vadot * the clock not being output. Instead, use a gated clock 57*f126890aSEmmanuel Vadot * and the unrouted WL_XTAL_PU gpio. 58*f126890aSEmmanuel Vadot */ 59*f126890aSEmmanuel Vadot compatible = "gpio-gate-clock"; 60*f126890aSEmmanuel Vadot #clock-cells = <0>; 61*f126890aSEmmanuel Vadot clock-frequency = <32768>; 62*f126890aSEmmanuel Vadot pinctrl-names = "default"; 63*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_microsom_ti_clk>; 64*f126890aSEmmanuel Vadot enable-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot pwrseq_ti_wifi: ti-wifi-pwrseq { 68*f126890aSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 69*f126890aSEmmanuel Vadot pinctrl-names = "default"; 70*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_microsom_ti_wifi_en>; 71*f126890aSEmmanuel Vadot reset-gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; 72*f126890aSEmmanuel Vadot post-power-on-delay-ms = <200>; 73*f126890aSEmmanuel Vadot clocks = <&clk_ti_wifi>; 74*f126890aSEmmanuel Vadot clock-names = "ext_clock"; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot}; 77*f126890aSEmmanuel Vadot 78*f126890aSEmmanuel Vadot&iomuxc { 79*f126890aSEmmanuel Vadot microsom { 80*f126890aSEmmanuel Vadot pinctrl_microsom_ti_bt: microsom-ti-bt { 81*f126890aSEmmanuel Vadot fsl,pins = < 82*f126890aSEmmanuel Vadot /* BT_EN_SOC */ 83*f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT14__GPIO6_IO00 0x40013070 84*f126890aSEmmanuel Vadot >; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot 87*f126890aSEmmanuel Vadot pinctrl_microsom_ti_clk: microsom-ti-clk { 88*f126890aSEmmanuel Vadot fsl,pins = < 89*f126890aSEmmanuel Vadot /* EXT_32K */ 90*f126890aSEmmanuel Vadot MX6QDL_PAD_GPIO_8__XTALOSC_REF_CLK_32K 0x1b0b0 91*f126890aSEmmanuel Vadot /* WL_XTAL_PU (unrouted) */ 92*f126890aSEmmanuel Vadot MX6QDL_PAD_DISP0_DAT11__GPIO5_IO05 0x40013070 93*f126890aSEmmanuel Vadot >; 94*f126890aSEmmanuel Vadot }; 95*f126890aSEmmanuel Vadot 96*f126890aSEmmanuel Vadot pinctrl_microsom_ti_wifi_en: microsom-ti-wifi-en { 97*f126890aSEmmanuel Vadot fsl,pins = < 98*f126890aSEmmanuel Vadot /* WLAN_EN_SOC */ 99*f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x40013070 100*f126890aSEmmanuel Vadot >; 101*f126890aSEmmanuel Vadot }; 102*f126890aSEmmanuel Vadot 103*f126890aSEmmanuel Vadot pinctrl_microsom_ti_wifi_irq: microsom-ti-wifi-irq { 104*f126890aSEmmanuel Vadot fsl,pins = < 105*f126890aSEmmanuel Vadot /* WLAN_IRQ */ 106*f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT18__GPIO6_IO04 0x40013070 107*f126890aSEmmanuel Vadot >; 108*f126890aSEmmanuel Vadot }; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot pinctrl_microsom_uart4: microsom-uart4 { 111*f126890aSEmmanuel Vadot fsl,pins = < 112*f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT12__UART4_TX_DATA 0x1b0b1 113*f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT13__UART4_RX_DATA 0x1b0b1 114*f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT16__UART4_RTS_B 0x1b0b1 115*f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B 0x1b0b1 116*f126890aSEmmanuel Vadot >; 117*f126890aSEmmanuel Vadot }; 118*f126890aSEmmanuel Vadot 119*f126890aSEmmanuel Vadot pinctrl_microsom_usdhc1: microsom-usdhc1 { 120*f126890aSEmmanuel Vadot fsl,pins = < 121*f126890aSEmmanuel Vadot MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17059 122*f126890aSEmmanuel Vadot MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10059 123*f126890aSEmmanuel Vadot MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17059 124*f126890aSEmmanuel Vadot MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17059 125*f126890aSEmmanuel Vadot MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17059 126*f126890aSEmmanuel Vadot MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17059 127*f126890aSEmmanuel Vadot >; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot }; 130*f126890aSEmmanuel Vadot}; 131*f126890aSEmmanuel Vadot 132*f126890aSEmmanuel Vadot/* UART4 - Connected to optional TI Wi-Fi/BT/FM */ 133*f126890aSEmmanuel Vadot&uart4 { 134*f126890aSEmmanuel Vadot pinctrl-names = "default"; 135*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_microsom_uart4>; 136*f126890aSEmmanuel Vadot uart-has-rtscts; 137*f126890aSEmmanuel Vadot status = "okay"; 138*f126890aSEmmanuel Vadot 139*f126890aSEmmanuel Vadot bluetooth { 140*f126890aSEmmanuel Vadot compatible = "ti,wl1837-st"; 141*f126890aSEmmanuel Vadot clocks = <&clk_ti_wifi>; 142*f126890aSEmmanuel Vadot clock-names = "ext_clock"; 143*f126890aSEmmanuel Vadot enable-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; 144*f126890aSEmmanuel Vadot pinctrl-names = "default"; 145*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_microsom_ti_bt>; 146*f126890aSEmmanuel Vadot }; 147*f126890aSEmmanuel Vadot}; 148*f126890aSEmmanuel Vadot 149*f126890aSEmmanuel Vadot/* USDHC1 - Connected to optional TI Wi-Fi/BT/FM */ 150*f126890aSEmmanuel Vadot&usdhc1 { 151*f126890aSEmmanuel Vadot pinctrl-names = "default"; 152*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_microsom_usdhc1>; 153*f126890aSEmmanuel Vadot bus-width = <4>; 154*f126890aSEmmanuel Vadot keep-power-in-suspend; 155*f126890aSEmmanuel Vadot mmc-pwrseq = <&pwrseq_ti_wifi>; 156*f126890aSEmmanuel Vadot cap-power-off-card; 157*f126890aSEmmanuel Vadot non-removable; 158*f126890aSEmmanuel Vadot vmmc-supply = <&vcc_3v3>; 159*f126890aSEmmanuel Vadot /* vqmmc-supply = <&nvcc_sd1>; - MMC layer doesn't like it! */ 160*f126890aSEmmanuel Vadot status = "okay"; 161*f126890aSEmmanuel Vadot #address-cells = <1>; 162*f126890aSEmmanuel Vadot #size-cells = <0>; 163*f126890aSEmmanuel Vadot 164*f126890aSEmmanuel Vadot wlcore@2 { 165*f126890aSEmmanuel Vadot compatible = "ti,wl1837"; 166*f126890aSEmmanuel Vadot reg = <2>; 167*f126890aSEmmanuel Vadot interrupts-extended = <&gpio6 4 IRQ_TYPE_LEVEL_HIGH>; 168*f126890aSEmmanuel Vadot pinctrl-names = "default"; 169*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_microsom_ti_wifi_irq>; 170*f126890aSEmmanuel Vadot }; 171*f126890aSEmmanuel Vadot}; 172