162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Copyright 2016 Grinn 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Author: Marcin Niestroj <m.niestroj@grinn-global.com> 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms 762306a36Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual 862306a36Sopenharmony_ci * licensing only applies to this file, and not this project as a 962306a36Sopenharmony_ci * whole. 1062306a36Sopenharmony_ci * 1162306a36Sopenharmony_ci * a) This file is free software; you can redistribute it and/or 1262306a36Sopenharmony_ci * modify it under the terms of the GNU General Public License 1362306a36Sopenharmony_ci * version 2 as published by the Free Software Foundation. 1462306a36Sopenharmony_ci * 1562306a36Sopenharmony_ci * This file is distributed in the hope that it will be useful, 1662306a36Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 1762306a36Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1862306a36Sopenharmony_ci * GNU General Public License for more details. 1962306a36Sopenharmony_ci * 2062306a36Sopenharmony_ci * Or, alternatively, 2162306a36Sopenharmony_ci * 2262306a36Sopenharmony_ci * b) Permission is hereby granted, free of charge, to any person 2362306a36Sopenharmony_ci * obtaining a copy of this software and associated documentation 2462306a36Sopenharmony_ci * files (the "Software"), to deal in the Software without 2562306a36Sopenharmony_ci * restriction, including without limitation the rights to use, 2662306a36Sopenharmony_ci * copy, modify, merge, publish, distribute, sublicense, and/or 2762306a36Sopenharmony_ci * sell copies of the Software, and to permit persons to whom the 2862306a36Sopenharmony_ci * Software is furnished to do so, subject to the following 2962306a36Sopenharmony_ci * conditions: 3062306a36Sopenharmony_ci * 3162306a36Sopenharmony_ci * The above copyright notice and this permission notice shall be 3262306a36Sopenharmony_ci * included in all copies or substantial portions of the Software. 3362306a36Sopenharmony_ci * 3462306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 3562306a36Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 3662306a36Sopenharmony_ci * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 3762306a36Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 3862306a36Sopenharmony_ci * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 3962306a36Sopenharmony_ci * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 4062306a36Sopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4162306a36Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 4262306a36Sopenharmony_ci */ 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci/dts-v1/; 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ci#include "imx6ul-litesom.dtsi" 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci/ { 4962306a36Sopenharmony_ci model = "Grinn i.MX6UL liteBoard"; 5062306a36Sopenharmony_ci compatible = "grinn,imx6ul-liteboard", "grinn,imx6ul-litesom", 5162306a36Sopenharmony_ci "fsl,imx6ul"; 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci chosen { 5462306a36Sopenharmony_ci stdout-path = &uart1; 5562306a36Sopenharmony_ci }; 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci reg_usb_otg1_vbus: regulator-usb-otg1-vbus { 5862306a36Sopenharmony_ci compatible = "regulator-fixed"; 5962306a36Sopenharmony_ci pinctrl-names = "default"; 6062306a36Sopenharmony_ci pinctrl-0 = <&pinctrl_usb_otg1_vbus>; 6162306a36Sopenharmony_ci regulator-name = "usb_otg1_vbus"; 6262306a36Sopenharmony_ci regulator-min-microvolt = <5000000>; 6362306a36Sopenharmony_ci regulator-max-microvolt = <5000000>; 6462306a36Sopenharmony_ci gpio = <&gpio2 8 GPIO_ACTIVE_LOW>; 6562306a36Sopenharmony_ci }; 6662306a36Sopenharmony_ci}; 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci&iomuxc { 6962306a36Sopenharmony_ci pinctrl_enet1: enet1grp { 7062306a36Sopenharmony_ci fsl,pins = < 7162306a36Sopenharmony_ci MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0 7262306a36Sopenharmony_ci MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0 7362306a36Sopenharmony_ci MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0 7462306a36Sopenharmony_ci MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0 7562306a36Sopenharmony_ci MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0 7662306a36Sopenharmony_ci MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0 7762306a36Sopenharmony_ci MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0 7862306a36Sopenharmony_ci MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0 7962306a36Sopenharmony_ci MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0 8062306a36Sopenharmony_ci MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031 8162306a36Sopenharmony_ci >; 8262306a36Sopenharmony_ci }; 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci pinctrl_uart1: uart1grp { 8562306a36Sopenharmony_ci fsl,pins = < 8662306a36Sopenharmony_ci MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 8762306a36Sopenharmony_ci MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 8862306a36Sopenharmony_ci >; 8962306a36Sopenharmony_ci }; 9062306a36Sopenharmony_ci 9162306a36Sopenharmony_ci pinctrl_usdhc1: usdhc1grp { 9262306a36Sopenharmony_ci fsl,pins = < 9362306a36Sopenharmony_ci MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059 9462306a36Sopenharmony_ci MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059 9562306a36Sopenharmony_ci MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10071 9662306a36Sopenharmony_ci MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059 9762306a36Sopenharmony_ci MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059 9862306a36Sopenharmony_ci MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059 9962306a36Sopenharmony_ci MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059 10062306a36Sopenharmony_ci >; 10162306a36Sopenharmony_ci }; 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_ci pinctrl_usb_otg1_vbus: usb-otg1-vbus { 10462306a36Sopenharmony_ci fsl,pins = < 10562306a36Sopenharmony_ci MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x79 10662306a36Sopenharmony_ci >; 10762306a36Sopenharmony_ci }; 10862306a36Sopenharmony_ci}; 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_ci&fec1 { 11162306a36Sopenharmony_ci pinctrl-names = "default"; 11262306a36Sopenharmony_ci pinctrl-0 = <&pinctrl_enet1>; 11362306a36Sopenharmony_ci phy-mode = "rmii"; 11462306a36Sopenharmony_ci phy-handle = <ðphy0>; 11562306a36Sopenharmony_ci status = "okay"; 11662306a36Sopenharmony_ci 11762306a36Sopenharmony_ci mdio { 11862306a36Sopenharmony_ci #address-cells = <1>; 11962306a36Sopenharmony_ci #size-cells = <0>; 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ci ethphy0: ethernet-phy@0 { 12262306a36Sopenharmony_ci reg = <0>; 12362306a36Sopenharmony_ci }; 12462306a36Sopenharmony_ci }; 12562306a36Sopenharmony_ci}; 12662306a36Sopenharmony_ci 12762306a36Sopenharmony_ci&snvs_poweroff { 12862306a36Sopenharmony_ci status = "okay"; 12962306a36Sopenharmony_ci}; 13062306a36Sopenharmony_ci 13162306a36Sopenharmony_ci&uart1 { 13262306a36Sopenharmony_ci pinctrl-names = "default"; 13362306a36Sopenharmony_ci pinctrl-0 = <&pinctrl_uart1>; 13462306a36Sopenharmony_ci status = "okay"; 13562306a36Sopenharmony_ci}; 13662306a36Sopenharmony_ci 13762306a36Sopenharmony_ci&usbotg1 { 13862306a36Sopenharmony_ci vbus-supply = <®_usb_otg1_vbus>; 13962306a36Sopenharmony_ci dr_mode = "host"; 14062306a36Sopenharmony_ci status = "okay"; 14162306a36Sopenharmony_ci}; 14262306a36Sopenharmony_ci 14362306a36Sopenharmony_ci&usdhc1 { 14462306a36Sopenharmony_ci pinctrl-names = "default"; 14562306a36Sopenharmony_ci pinctrl-0 = <&pinctrl_usdhc1>; 14662306a36Sopenharmony_ci cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 14762306a36Sopenharmony_ci no-1-8-v; 14862306a36Sopenharmony_ci keep-power-in-suspend; 14962306a36Sopenharmony_ci wakeup-source; 15062306a36Sopenharmony_ci status = "okay"; 15162306a36Sopenharmony_ci}; 152