1295011Sandrew/* 2295011Sandrew * Copyright 2015 Armadeus Systems 3295011Sandrew * 4295011Sandrew * This file is dual-licensed: you can use it either under the terms 5295011Sandrew * of the GPL or the X11 license, at your option. Note that this dual 6295011Sandrew * licensing only applies to this file, and not this project as a 7295011Sandrew * whole. 8295011Sandrew * 9295011Sandrew * a) This file is free software; you can redistribute it and/or 10295011Sandrew * modify it under the terms of the GNU General Public License as 11295011Sandrew * published by the Free Software Foundation; either version 2 of 12295011Sandrew * the License, or (at your option) any later version. 13295011Sandrew * 14295011Sandrew * This file is distributed in the hope that it will be useful, 15295011Sandrew * but WITHOUT ANY WARRANTY; without even the implied warranty of 16295011Sandrew * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17295011Sandrew * GNU General Public License for more details. 18295011Sandrew * 19295011Sandrew * You should have received a copy of the GNU General Public 20295011Sandrew * License along with this file; if not, write to the Free 21295011Sandrew * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, 22295011Sandrew * MA 02110-1301 USA 23295011Sandrew * 24295011Sandrew * Or, alternatively, 25295011Sandrew * 26295011Sandrew * b) Permission is hereby granted, free of charge, to any person 27295011Sandrew * obtaining a copy of this software and associated documentation 28295011Sandrew * files (the "Software"), to deal in the Software without 29295011Sandrew * restriction, including without limitation the rights to use, 30295011Sandrew * copy, modify, merge, publish, distribute, sublicense, and/or 31295011Sandrew * sell copies of the Software, and to permit persons to whom the 32295011Sandrew * Software is furnished to do so, subject to the following 33295011Sandrew * conditions: 34295011Sandrew * 35295011Sandrew * The above copyright notice and this permission notice shall be 36295011Sandrew * included in all copies or substantial portions of the Software. 37295011Sandrew * 38295011Sandrew * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 39295011Sandrew * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 40295011Sandrew * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 41295011Sandrew * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 42295011Sandrew * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 43295011Sandrew * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 44295011Sandrew * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 45295011Sandrew * OTHER DEALINGS IN THE SOFTWARE. 46295011Sandrew */ 47295011Sandrew 48295011Sandrew#include <dt-bindings/gpio/gpio.h> 49295011Sandrew#include <dt-bindings/interrupt-controller/irq.h> 50295011Sandrew 51295011Sandrew&fec { 52295011Sandrew pinctrl-names = "default"; 53295011Sandrew pinctrl-0 = <&pinctrl_enet>; 54295011Sandrew phy-mode = "rgmii"; 55295011Sandrew phy-reset-duration = <10>; 56295011Sandrew phy-reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; 57295011Sandrew status = "okay"; 58295011Sandrew}; 59295011Sandrew 60295011Sandrew/* Bluetooth */ 61295011Sandrew&uart2 { 62295011Sandrew pinctrl-names = "default"; 63295011Sandrew pinctrl-0 = <&pinctrl_uart2>; 64295011Sandrew status = "okay"; 65295011Sandrew}; 66295011Sandrew 67295011Sandrew/* Wi-Fi */ 68295011Sandrew&usdhc1 { 69295011Sandrew pinctrl-names = "default"; 70295011Sandrew pinctrl-0 = <&pinctrl_usdhc1>; 71295011Sandrew non-removable; 72295011Sandrew status = "okay"; 73295011Sandrew 74295011Sandrew #address-cells = <1>; 75295011Sandrew #size-cells = <0>; 76295011Sandrew wlcore: wlcore@2 { 77295011Sandrew compatible = "ti,wl1271"; 78295011Sandrew reg = <2>; 79295011Sandrew interrupt-parent = <&gpio2>; 80295011Sandrew interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; 81295011Sandrew ref-clock-frequency = <38400000>; 82295011Sandrew tcxo-clock-frequency = <38400000>; 83295011Sandrew }; 84295011Sandrew}; 85295011Sandrew 86295011Sandrew/* eMMC */ 87295011Sandrew&usdhc3 { 88295011Sandrew pinctrl-names = "default"; 89295011Sandrew pinctrl-0 = <&pinctrl_usdhc3>; 90295011Sandrew bus-width = <8>; 91295011Sandrew no-1-8-v; 92295011Sandrew non-removable; 93295011Sandrew status = "okay"; 94295011Sandrew}; 95295011Sandrew 96295011Sandrew&iomuxc { 97295011Sandrew apf6 { 98295011Sandrew pinctrl_enet: enetgrp { 99295011Sandrew fsl,pins = < 100295011Sandrew MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b8b0 101295011Sandrew MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0 102295011Sandrew MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0 103295011Sandrew MX6QDL_PAD_ENET_RX_ER__GPIO1_IO24 0x130b0 104295011Sandrew MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x130b0 105295011Sandrew MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030 106295011Sandrew MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030 107295011Sandrew MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030 108295011Sandrew MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030 109295011Sandrew MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030 110295011Sandrew MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030 111295011Sandrew MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x13030 112295011Sandrew MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030 113295011Sandrew MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x13030 114295011Sandrew MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1f030 115295011Sandrew MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1f030 116295011Sandrew MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x13030 117295011Sandrew >; 118295011Sandrew }; 119295011Sandrew 120295011Sandrew pinctrl_uart2: uart2grp { 121295011Sandrew fsl,pins = < 122295011Sandrew MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b0 123295011Sandrew MX6QDL_PAD_SD4_DAT5__UART2_RTS_B 0x1b0b0 124295011Sandrew MX6QDL_PAD_SD4_DAT6__UART2_CTS_B 0x1b0b0 125295011Sandrew MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b0 126295011Sandrew MX6QDL_PAD_SD4_DAT3__GPIO2_IO11 0x130b0 /* BT_EN */ 127295011Sandrew >; 128295011Sandrew }; 129295011Sandrew 130295011Sandrew pinctrl_usdhc1: usdhc1grp { 131295011Sandrew fsl,pins = < 132295011Sandrew MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17059 133295011Sandrew MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10059 134295011Sandrew MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17059 135295011Sandrew MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17059 136295011Sandrew MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17059 137295011Sandrew MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17059 138295011Sandrew MX6QDL_PAD_SD4_DAT0__GPIO2_IO08 0x1b0b0 /* WL_EN */ 139295011Sandrew MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x1b0b0 /* WL_IRQ */ 140295011Sandrew >; 141295011Sandrew }; 142295011Sandrew 143295011Sandrew pinctrl_usdhc3: usdhc3grp { 144295011Sandrew fsl,pins = < 145295011Sandrew MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 146295011Sandrew MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 147295011Sandrew MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 148295011Sandrew MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 149295011Sandrew MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 150295011Sandrew MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 151295011Sandrew MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059 152295011Sandrew MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059 153295011Sandrew MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059 154295011Sandrew MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059 155295011Sandrew >; 156295011Sandrew }; 157295011Sandrew }; 158295011Sandrew}; 159