1f126890aSEmmanuel Vadot/* 2f126890aSEmmanuel Vadot * Copyright 2016 Grinn 3f126890aSEmmanuel Vadot * 4f126890aSEmmanuel Vadot * Author: Marcin Niestroj <m.niestroj@grinn-global.com> 5f126890aSEmmanuel Vadot * 6f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 7f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 8f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 9f126890aSEmmanuel Vadot * whole. 10f126890aSEmmanuel Vadot * 11f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 12f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License 13f126890aSEmmanuel Vadot * version 2 as published by the Free Software Foundation. 14f126890aSEmmanuel Vadot * 15f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 16f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 17f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18f126890aSEmmanuel Vadot * GNU General Public License for more details. 19f126890aSEmmanuel Vadot * 20f126890aSEmmanuel Vadot * Or, alternatively, 21f126890aSEmmanuel Vadot * 22f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 23f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 24f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 25f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 26f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 27f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 28f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 29f126890aSEmmanuel Vadot * conditions: 30f126890aSEmmanuel Vadot * 31f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 32f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 33f126890aSEmmanuel Vadot * 34f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 42f126890aSEmmanuel Vadot */ 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot/dts-v1/; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot#include "imx6ul-litesom.dtsi" 47f126890aSEmmanuel Vadot 48f126890aSEmmanuel Vadot/ { 49f126890aSEmmanuel Vadot model = "Grinn i.MX6UL liteBoard"; 50f126890aSEmmanuel Vadot compatible = "grinn,imx6ul-liteboard", "grinn,imx6ul-litesom", 51f126890aSEmmanuel Vadot "fsl,imx6ul"; 52f126890aSEmmanuel Vadot 53f126890aSEmmanuel Vadot chosen { 54f126890aSEmmanuel Vadot stdout-path = &uart1; 55f126890aSEmmanuel Vadot }; 56f126890aSEmmanuel Vadot 57f126890aSEmmanuel Vadot reg_usb_otg1_vbus: regulator-usb-otg1-vbus { 58f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 59f126890aSEmmanuel Vadot pinctrl-names = "default"; 60f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usb_otg1_vbus>; 61f126890aSEmmanuel Vadot regulator-name = "usb_otg1_vbus"; 62f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 63f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 64f126890aSEmmanuel Vadot gpio = <&gpio2 8 GPIO_ACTIVE_LOW>; 65f126890aSEmmanuel Vadot }; 66f126890aSEmmanuel Vadot}; 67f126890aSEmmanuel Vadot 68f126890aSEmmanuel Vadot&iomuxc { 69f126890aSEmmanuel Vadot pinctrl_enet1: enet1grp { 70f126890aSEmmanuel Vadot fsl,pins = < 71f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0 72f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0 73f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0 74f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0 75f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0 76f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0 77f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0 78f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0 79f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0 80f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031 81f126890aSEmmanuel Vadot >; 82f126890aSEmmanuel Vadot }; 83f126890aSEmmanuel Vadot 84f126890aSEmmanuel Vadot pinctrl_uart1: uart1grp { 85f126890aSEmmanuel Vadot fsl,pins = < 86f126890aSEmmanuel Vadot MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 87f126890aSEmmanuel Vadot MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 88f126890aSEmmanuel Vadot >; 89f126890aSEmmanuel Vadot }; 90f126890aSEmmanuel Vadot 91f126890aSEmmanuel Vadot pinctrl_usdhc1: usdhc1grp { 92f126890aSEmmanuel Vadot fsl,pins = < 93f126890aSEmmanuel Vadot MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059 94f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059 95f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10071 96f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059 97f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059 98f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059 99f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059 100f126890aSEmmanuel Vadot >; 101f126890aSEmmanuel Vadot }; 102f126890aSEmmanuel Vadot 103*b2d2a78aSEmmanuel Vadot pinctrl_usb_otg1_vbus: usb-otg1-vbus-grp { 104f126890aSEmmanuel Vadot fsl,pins = < 105f126890aSEmmanuel Vadot MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x79 106f126890aSEmmanuel Vadot >; 107f126890aSEmmanuel Vadot }; 108f126890aSEmmanuel Vadot}; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot&fec1 { 111f126890aSEmmanuel Vadot pinctrl-names = "default"; 112f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_enet1>; 113f126890aSEmmanuel Vadot phy-mode = "rmii"; 114f126890aSEmmanuel Vadot phy-handle = <ðphy0>; 115f126890aSEmmanuel Vadot status = "okay"; 116f126890aSEmmanuel Vadot 117f126890aSEmmanuel Vadot mdio { 118f126890aSEmmanuel Vadot #address-cells = <1>; 119f126890aSEmmanuel Vadot #size-cells = <0>; 120f126890aSEmmanuel Vadot 121f126890aSEmmanuel Vadot ethphy0: ethernet-phy@0 { 122f126890aSEmmanuel Vadot reg = <0>; 123f126890aSEmmanuel Vadot }; 124f126890aSEmmanuel Vadot }; 125f126890aSEmmanuel Vadot}; 126f126890aSEmmanuel Vadot 127f126890aSEmmanuel Vadot&snvs_poweroff { 128f126890aSEmmanuel Vadot status = "okay"; 129f126890aSEmmanuel Vadot}; 130f126890aSEmmanuel Vadot 131f126890aSEmmanuel Vadot&uart1 { 132f126890aSEmmanuel Vadot pinctrl-names = "default"; 133f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart1>; 134f126890aSEmmanuel Vadot status = "okay"; 135f126890aSEmmanuel Vadot}; 136f126890aSEmmanuel Vadot 137f126890aSEmmanuel Vadot&usbotg1 { 138f126890aSEmmanuel Vadot vbus-supply = <®_usb_otg1_vbus>; 139f126890aSEmmanuel Vadot dr_mode = "host"; 140f126890aSEmmanuel Vadot status = "okay"; 141f126890aSEmmanuel Vadot}; 142f126890aSEmmanuel Vadot 143f126890aSEmmanuel Vadot&usdhc1 { 144f126890aSEmmanuel Vadot pinctrl-names = "default"; 145f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usdhc1>; 146f126890aSEmmanuel Vadot cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 147f126890aSEmmanuel Vadot no-1-8-v; 148f126890aSEmmanuel Vadot keep-power-in-suspend; 149f126890aSEmmanuel Vadot wakeup-source; 150f126890aSEmmanuel Vadot status = "okay"; 151f126890aSEmmanuel Vadot}; 152