1*18053a85SJagan Teki/* 2*18053a85SJagan Teki * Copyright (C) 2016 Amarula Solutions B.V. 3*18053a85SJagan Teki * Copyright (C) 2016 Engicam S.r.l. 4*18053a85SJagan Teki * 5*18053a85SJagan Teki * This file is dual-licensed: you can use it either under the terms 6*18053a85SJagan Teki * of the GPL or the X11 license, at your option. Note that this dual 7*18053a85SJagan Teki * licensing only applies to this file, and not this project as a 8*18053a85SJagan Teki * whole. 9*18053a85SJagan Teki * 10*18053a85SJagan Teki * a) This file is free software; you can redistribute it and/or 11*18053a85SJagan Teki * modify it under the terms of the GNU General Public License 12*18053a85SJagan Teki * version 2 as published by the Free Software Foundation. 13*18053a85SJagan Teki * 14*18053a85SJagan Teki * This file is distributed in the hope that it will be useful 15*18053a85SJagan Teki * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*18053a85SJagan Teki * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*18053a85SJagan Teki * GNU General Public License for more details. 18*18053a85SJagan Teki * 19*18053a85SJagan Teki * Or, alternatively 20*18053a85SJagan Teki * 21*18053a85SJagan Teki * b) Permission is hereby granted, free of charge, to any person 22*18053a85SJagan Teki * obtaining a copy of this software and associated documentation 23*18053a85SJagan Teki * files (the "Software"), to deal in the Software without 24*18053a85SJagan Teki * restriction, including without limitation the rights to use 25*18053a85SJagan Teki * copy, modify, merge, publish, distribute, sublicense, and/or 26*18053a85SJagan Teki * sell copies of the Software, and to permit persons to whom the 27*18053a85SJagan Teki * Software is furnished to do so, subject to the following 28*18053a85SJagan Teki * conditions: 29*18053a85SJagan Teki * 30*18053a85SJagan Teki * The above copyright notice and this permission notice shall be 31*18053a85SJagan Teki * included in all copies or substantial portions of the Software. 32*18053a85SJagan Teki * 33*18053a85SJagan Teki * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND 34*18053a85SJagan Teki * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35*18053a85SJagan Teki * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36*18053a85SJagan Teki * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37*18053a85SJagan Teki * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY 38*18053a85SJagan Teki * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39*18053a85SJagan Teki * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40*18053a85SJagan Teki * OTHER DEALINGS IN THE SOFTWARE. 41*18053a85SJagan Teki */ 42*18053a85SJagan Teki 43*18053a85SJagan Teki/dts-v1/; 44*18053a85SJagan Teki 45*18053a85SJagan Teki#include <dt-bindings/gpio/gpio.h> 46*18053a85SJagan Teki#include <dt-bindings/input/input.h> 47*18053a85SJagan Teki#include "imx6ul.dtsi" 48*18053a85SJagan Teki 49*18053a85SJagan Teki/ { 50*18053a85SJagan Teki model = "Engicam GEAM6UL"; 51*18053a85SJagan Teki compatible = "engicam,imx6ul-geam", "fsl,imx6ul"; 52*18053a85SJagan Teki 53*18053a85SJagan Teki memory { 54*18053a85SJagan Teki reg = <0x80000000 0x08000000>; 55*18053a85SJagan Teki }; 56*18053a85SJagan Teki 57*18053a85SJagan Teki chosen { 58*18053a85SJagan Teki stdout-path = &uart1; 59*18053a85SJagan Teki }; 60*18053a85SJagan Teki}; 61*18053a85SJagan Teki 62*18053a85SJagan Teki&fec1 { 63*18053a85SJagan Teki pinctrl-names = "default"; 64*18053a85SJagan Teki pinctrl-0 = <&pinctrl_enet1>; 65*18053a85SJagan Teki phy-mode = "rmii"; 66*18053a85SJagan Teki status = "okay"; 67*18053a85SJagan Teki}; 68*18053a85SJagan Teki 69*18053a85SJagan Teki&i2c1 { 70*18053a85SJagan Teki clock-frequency = <100000>; 71*18053a85SJagan Teki pinctrl-names = "default"; 72*18053a85SJagan Teki pinctrl-0 = <&pinctrl_i2c1>; 73*18053a85SJagan Teki status = "okay"; 74*18053a85SJagan Teki}; 75*18053a85SJagan Teki 76*18053a85SJagan Teki&i2c2 { 77*18053a85SJagan Teki clock_frequency = <100000>; 78*18053a85SJagan Teki pinctrl-names = "default"; 79*18053a85SJagan Teki pinctrl-0 = <&pinctrl_i2c2>; 80*18053a85SJagan Teki status = "okay"; 81*18053a85SJagan Teki}; 82*18053a85SJagan Teki 83*18053a85SJagan Teki&uart1 { 84*18053a85SJagan Teki pinctrl-names = "default"; 85*18053a85SJagan Teki pinctrl-0 = <&pinctrl_uart1>; 86*18053a85SJagan Teki status = "okay"; 87*18053a85SJagan Teki}; 88*18053a85SJagan Teki 89*18053a85SJagan Teki&usdhc1 { 90*18053a85SJagan Teki pinctrl-names = "default", "state_100mhz", "state_200mhz"; 91*18053a85SJagan Teki pinctrl-0 = <&pinctrl_usdhc1>; 92*18053a85SJagan Teki pinctrl-1 = <&pinctrl_usdhc1_100mhz>; 93*18053a85SJagan Teki pinctrl-2 = <&pinctrl_usdhc1_200mhz>; 94*18053a85SJagan Teki bus-width = <4>; 95*18053a85SJagan Teki cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 96*18053a85SJagan Teki no-1-8-v; 97*18053a85SJagan Teki status = "okay"; 98*18053a85SJagan Teki}; 99*18053a85SJagan Teki 100*18053a85SJagan Teki&iomuxc { 101*18053a85SJagan Teki pinctrl_enet1: enet1grp { 102*18053a85SJagan Teki fsl,pins = < 103*18053a85SJagan Teki MX6UL_PAD_GPIO1_IO07__ENET2_MDC 0x1b0b0 104*18053a85SJagan Teki MX6UL_PAD_GPIO1_IO06__ENET2_MDIO 0x1b0b0 105*18053a85SJagan Teki MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0 106*18053a85SJagan Teki MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0 107*18053a85SJagan Teki MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0 108*18053a85SJagan Teki MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0 109*18053a85SJagan Teki MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0 110*18053a85SJagan Teki MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0 111*18053a85SJagan Teki MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031 112*18053a85SJagan Teki >; 113*18053a85SJagan Teki }; 114*18053a85SJagan Teki 115*18053a85SJagan Teki pinctrl_i2c1: i2c1grp { 116*18053a85SJagan Teki fsl,pins = < 117*18053a85SJagan Teki MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0 118*18053a85SJagan Teki MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0 119*18053a85SJagan Teki >; 120*18053a85SJagan Teki }; 121*18053a85SJagan Teki 122*18053a85SJagan Teki pinctrl_i2c2: i2c2grp { 123*18053a85SJagan Teki fsl,pins = < 124*18053a85SJagan Teki MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0 125*18053a85SJagan Teki MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0 126*18053a85SJagan Teki >; 127*18053a85SJagan Teki }; 128*18053a85SJagan Teki 129*18053a85SJagan Teki pinctrl_uart1: uart1grp { 130*18053a85SJagan Teki fsl,pins = < 131*18053a85SJagan Teki MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 132*18053a85SJagan Teki MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 133*18053a85SJagan Teki >; 134*18053a85SJagan Teki }; 135*18053a85SJagan Teki 136*18053a85SJagan Teki pinctrl_usdhc1: usdhc1grp { 137*18053a85SJagan Teki fsl,pins = < 138*18053a85SJagan Teki MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059 139*18053a85SJagan Teki MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10059 140*18053a85SJagan Teki MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059 141*18053a85SJagan Teki MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059 142*18053a85SJagan Teki MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059 143*18053a85SJagan Teki MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059 144*18053a85SJagan Teki >; 145*18053a85SJagan Teki }; 146*18053a85SJagan Teki 147*18053a85SJagan Teki pinctrl_usdhc1_100mhz: usdhc1grp100mhz { 148*18053a85SJagan Teki fsl,pins = < 149*18053a85SJagan Teki MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170b9 150*18053a85SJagan Teki MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100b9 151*18053a85SJagan Teki MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170b9 152*18053a85SJagan Teki MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170b9 153*18053a85SJagan Teki MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170b9 154*18053a85SJagan Teki MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170b9 155*18053a85SJagan Teki >; 156*18053a85SJagan Teki }; 157*18053a85SJagan Teki 158*18053a85SJagan Teki pinctrl_usdhc1_200mhz: usdhc1grp200mhz { 159*18053a85SJagan Teki fsl,pins = < 160*18053a85SJagan Teki MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170f9 161*18053a85SJagan Teki MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100f9 162*18053a85SJagan Teki MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170f9 163*18053a85SJagan Teki MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170f9 164*18053a85SJagan Teki MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170f9 165*18053a85SJagan Teki MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170f9 166*18053a85SJagan Teki >; 167*18053a85SJagan Teki }; 168*18053a85SJagan Teki}; 169