0001 /*
0002 * Copyright 2016 Grinn
0003 *
0004 * Author: Marcin Niestroj <m.niestroj@grinn-global.com>
0005 *
0006 * This file is dual-licensed: you can use it either under the terms
0007 * of the GPL or the X11 license, at your option. Note that this dual
0008 * licensing only applies to this file, and not this project as a
0009 * whole.
0010 *
0011 * a) This file is free software; you can redistribute it and/or
0012 * modify it under the terms of the GNU General Public License
0013 * version 2 as published by the Free Software Foundation.
0014 *
0015 * This file is distributed in the hope that it will be useful,
0016 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0018 * GNU General Public License for more details.
0019 *
0020 * Or, alternatively,
0021 *
0022 * b) Permission is hereby granted, free of charge, to any person
0023 * obtaining a copy of this software and associated documentation
0024 * files (the "Software"), to deal in the Software without
0025 * restriction, including without limitation the rights to use,
0026 * copy, modify, merge, publish, distribute, sublicense, and/or
0027 * sell copies of the Software, and to permit persons to whom the
0028 * Software is furnished to do so, subject to the following
0029 * conditions:
0030 *
0031 * The above copyright notice and this permission notice shall be
0032 * included in all copies or substantial portions of the Software.
0033 *
0034 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0035 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0036 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0037 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0038 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0039 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0040 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0041 * OTHER DEALINGS IN THE SOFTWARE.
0042 */
0043
0044 /dts-v1/;
0045
0046 #include "imx6ul-litesom.dtsi"
0047
0048 / {
0049 model = "Grinn i.MX6UL liteBoard";
0050 compatible = "grinn,imx6ul-liteboard", "grinn,imx6ul-litesom",
0051 "fsl,imx6ul";
0052
0053 chosen {
0054 stdout-path = &uart1;
0055 };
0056
0057 reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
0058 compatible = "regulator-fixed";
0059 pinctrl-names = "default";
0060 pinctrl-0 = <&pinctrl_usb_otg1_vbus>;
0061 regulator-name = "usb_otg1_vbus";
0062 regulator-min-microvolt = <5000000>;
0063 regulator-max-microvolt = <5000000>;
0064 gpio = <&gpio2 8 GPIO_ACTIVE_LOW>;
0065 };
0066 };
0067
0068 &iomuxc {
0069 pinctrl_enet1: enet1grp {
0070 fsl,pins = <
0071 MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
0072 MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0
0073 MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
0074 MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
0075 MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
0076 MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
0077 MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
0078 MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
0079 MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
0080 MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
0081 >;
0082 };
0083
0084 pinctrl_uart1: uart1grp {
0085 fsl,pins = <
0086 MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
0087 MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
0088 >;
0089 };
0090
0091 pinctrl_usdhc1: usdhc1grp {
0092 fsl,pins = <
0093 MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059
0094 MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059
0095 MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10071
0096 MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
0097 MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
0098 MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
0099 MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
0100 >;
0101 };
0102
0103 pinctrl_usb_otg1_vbus: usb-otg1-vbus {
0104 fsl,pins = <
0105 MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x79
0106 >;
0107 };
0108 };
0109
0110 &fec1 {
0111 pinctrl-names = "default";
0112 pinctrl-0 = <&pinctrl_enet1>;
0113 phy-mode = "rmii";
0114 phy-handle = <ðphy0>;
0115 status = "okay";
0116
0117 mdio {
0118 #address-cells = <1>;
0119 #size-cells = <0>;
0120
0121 ethphy0: ethernet-phy@0 {
0122 reg = <0>;
0123 };
0124 };
0125 };
0126
0127 &snvs_poweroff {
0128 status = "okay";
0129 };
0130
0131 &uart1 {
0132 pinctrl-names = "default";
0133 pinctrl-0 = <&pinctrl_uart1>;
0134 status = "okay";
0135 };
0136
0137 &usbotg1 {
0138 vbus-supply = <®_usb_otg1_vbus>;
0139 dr_mode = "host";
0140 status = "okay";
0141 };
0142
0143 &usdhc1 {
0144 pinctrl-names = "default";
0145 pinctrl-0 = <&pinctrl_usdhc1>;
0146 cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
0147 no-1-8-v;
0148 keep-power-in-suspend;
0149 wakeup-source;
0150 status = "okay";
0151 };