1*724ba675SRob Herring/* 2*724ba675SRob Herring * Copyright (C) 2017 Milo Kim <woogyom.kim@gmail.com> 3*724ba675SRob Herring * 4*724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms 5*724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual 6*724ba675SRob Herring * licensing only applies to this file, and not this project as a 7*724ba675SRob Herring * whole. 8*724ba675SRob Herring * 9*724ba675SRob Herring * a) This file is free software; you can redistribute it and/or 10*724ba675SRob Herring * modify it under the terms of the GNU General Public License as 11*724ba675SRob Herring * published by the Free Software Foundation; either version 2 of the 12*724ba675SRob Herring * License, or (at your option) any later version. 13*724ba675SRob Herring * 14*724ba675SRob Herring * This file is distributed in the hope that it will be useful, 15*724ba675SRob Herring * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*724ba675SRob Herring * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*724ba675SRob Herring * GNU General Public License for more details. 18*724ba675SRob Herring * 19*724ba675SRob Herring * Or, alternatively, 20*724ba675SRob Herring * 21*724ba675SRob Herring * b) Permission is hereby granted, free of charge, to any person 22*724ba675SRob Herring * obtaining a copy of this software and associated documentation 23*724ba675SRob Herring * files (the "Software"), to deal in the Software without 24*724ba675SRob Herring * restriction, including without limitation the rights to use, 25*724ba675SRob Herring * copy, modify, merge, publish, distribute, sublicense, and/or 26*724ba675SRob Herring * sell copies of the Software, and to permit persons to whom the 27*724ba675SRob Herring * Software is furnished to do so, subject to the following 28*724ba675SRob Herring * conditions: 29*724ba675SRob Herring * 30*724ba675SRob Herring * The above copyright notice and this permission notice shall be 31*724ba675SRob Herring * included in all copies or substantial portions of the Software. 32*724ba675SRob Herring * 33*724ba675SRob Herring * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34*724ba675SRob Herring * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35*724ba675SRob Herring * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36*724ba675SRob Herring * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37*724ba675SRob Herring * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38*724ba675SRob Herring * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39*724ba675SRob Herring * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40*724ba675SRob Herring * OTHER DEALINGS IN THE SOFTWARE. 41*724ba675SRob Herring */ 42*724ba675SRob Herring 43*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 44*724ba675SRob Herring#include <dt-bindings/input/input.h> 45*724ba675SRob Herring 46*724ba675SRob Herring/ { 47*724ba675SRob Herring chosen { 48*724ba675SRob Herring stdout-path = &uart1; 49*724ba675SRob Herring }; 50*724ba675SRob Herring 51*724ba675SRob Herring memory@10000000 { 52*724ba675SRob Herring device_type = "memory"; 53*724ba675SRob Herring reg = <0x10000000 0x40000000>; 54*724ba675SRob Herring }; 55*724ba675SRob Herring 56*724ba675SRob Herring gpio-keys { 57*724ba675SRob Herring compatible = "gpio-keys"; 58*724ba675SRob Herring pinctrl-names = "default"; 59*724ba675SRob Herring pinctrl-0 = <&pinctrl_gpio_keys>; 60*724ba675SRob Herring 61*724ba675SRob Herring power { 62*724ba675SRob Herring gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; 63*724ba675SRob Herring label = "Power Button"; 64*724ba675SRob Herring linux,code = <KEY_POWER>; 65*724ba675SRob Herring wakeup-source; 66*724ba675SRob Herring }; 67*724ba675SRob Herring }; 68*724ba675SRob Herring 69*724ba675SRob Herring panel { 70*724ba675SRob Herring compatible = "avic,tm097tdh02", "hannstar,hsd100pxn1"; 71*724ba675SRob Herring backlight = <&panel_bl>; 72*724ba675SRob Herring power-supply = <®_3p3v>; 73*724ba675SRob Herring 74*724ba675SRob Herring port { 75*724ba675SRob Herring panel_in: endpoint { 76*724ba675SRob Herring remote-endpoint = <&lvds0_out>; 77*724ba675SRob Herring }; 78*724ba675SRob Herring }; 79*724ba675SRob Herring }; 80*724ba675SRob Herring 81*724ba675SRob Herring panel_bl: backlight { 82*724ba675SRob Herring compatible = "pwm-backlight"; 83*724ba675SRob Herring brightness-levels = <0 4 8 16 32 64 128 255>; 84*724ba675SRob Herring default-brightness-level = <4>; 85*724ba675SRob Herring power-supply = <®_3p3v>; 86*724ba675SRob Herring pwms = <&pwm1 0 10000>; 87*724ba675SRob Herring }; 88*724ba675SRob Herring 89*724ba675SRob Herring reg_3p3v: regulator-3p3v { 90*724ba675SRob Herring compatible = "regulator-fixed"; 91*724ba675SRob Herring regulator-name = "3P3V"; 92*724ba675SRob Herring regulator-min-microvolt = <3300000>; 93*724ba675SRob Herring regulator-max-microvolt = <3300000>; 94*724ba675SRob Herring regulator-always-on; 95*724ba675SRob Herring }; 96*724ba675SRob Herring}; 97*724ba675SRob Herring 98*724ba675SRob Herring&clks { 99*724ba675SRob Herring assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, 100*724ba675SRob Herring <&clks IMX6QDL_CLK_LDB_DI1_SEL>; 101*724ba675SRob Herring assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>, 102*724ba675SRob Herring <&clks IMX6QDL_CLK_PLL3_USB_OTG>; 103*724ba675SRob Herring}; 104*724ba675SRob Herring 105*724ba675SRob Herring&fec { 106*724ba675SRob Herring phy-mode = "rgmii"; 107*724ba675SRob Herring phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; 108*724ba675SRob Herring pinctrl-names = "default"; 109*724ba675SRob Herring pinctrl-0 = <&pinctrl_enet>; 110*724ba675SRob Herring status = "okay"; 111*724ba675SRob Herring}; 112*724ba675SRob Herring 113*724ba675SRob Herring&hdmi { 114*724ba675SRob Herring ddc-i2c-bus = <&i2c2>; 115*724ba675SRob Herring status = "okay"; 116*724ba675SRob Herring}; 117*724ba675SRob Herring 118*724ba675SRob Herring&i2c2 { 119*724ba675SRob Herring clock-frequency = <100000>; 120*724ba675SRob Herring pinctrl-names = "default"; 121*724ba675SRob Herring pinctrl-0 = <&pinctrl_i2c2>; 122*724ba675SRob Herring status = "okay"; 123*724ba675SRob Herring}; 124*724ba675SRob Herring 125*724ba675SRob Herring&ldb { 126*724ba675SRob Herring status = "okay"; 127*724ba675SRob Herring 128*724ba675SRob Herring lvds-channel@0 { 129*724ba675SRob Herring reg = <0>; 130*724ba675SRob Herring status = "okay"; 131*724ba675SRob Herring 132*724ba675SRob Herring port@4 { 133*724ba675SRob Herring reg = <4>; 134*724ba675SRob Herring 135*724ba675SRob Herring lvds0_out: endpoint { 136*724ba675SRob Herring remote-endpoint = <&panel_in>; 137*724ba675SRob Herring }; 138*724ba675SRob Herring }; 139*724ba675SRob Herring }; 140*724ba675SRob Herring}; 141*724ba675SRob Herring 142*724ba675SRob Herring&pwm1 { 143*724ba675SRob Herring #pwm-cells = <2>; 144*724ba675SRob Herring pinctrl-names = "default"; 145*724ba675SRob Herring pinctrl-0 = <&pinctrl_pwm1>; 146*724ba675SRob Herring status = "okay"; 147*724ba675SRob Herring}; 148*724ba675SRob Herring 149*724ba675SRob Herring&uart1 { 150*724ba675SRob Herring pinctrl-names = "default"; 151*724ba675SRob Herring pinctrl-0 = <&pinctrl_uart1>; 152*724ba675SRob Herring status = "okay"; 153*724ba675SRob Herring}; 154*724ba675SRob Herring 155*724ba675SRob Herring&usbh1 { 156*724ba675SRob Herring status = "okay"; 157*724ba675SRob Herring}; 158*724ba675SRob Herring 159*724ba675SRob Herring/* SD card */ 160*724ba675SRob Herring&usdhc3 { 161*724ba675SRob Herring bus-width = <4>; 162*724ba675SRob Herring cd-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; 163*724ba675SRob Herring no-1-8-v; 164*724ba675SRob Herring pinctrl-names = "default"; 165*724ba675SRob Herring pinctrl-0 = <&pinctrl_sd>; 166*724ba675SRob Herring status = "okay"; 167*724ba675SRob Herring}; 168*724ba675SRob Herring 169*724ba675SRob Herring/* eMMC */ 170*724ba675SRob Herring&usdhc4 { 171*724ba675SRob Herring bus-width = <8>; 172*724ba675SRob Herring keep-power-in-suspend; 173*724ba675SRob Herring no-1-8-v; 174*724ba675SRob Herring non-removable; 175*724ba675SRob Herring pinctrl-names = "default"; 176*724ba675SRob Herring pinctrl-0 = <&pinctrl_emmc>; 177*724ba675SRob Herring status = "okay"; 178*724ba675SRob Herring}; 179*724ba675SRob Herring 180*724ba675SRob Herring&iomuxc { 181*724ba675SRob Herring pinctrl_emmc: emmcgrp { 182*724ba675SRob Herring fsl,pins = < 183*724ba675SRob Herring MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059 184*724ba675SRob Herring MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059 185*724ba675SRob Herring MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059 186*724ba675SRob Herring MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 187*724ba675SRob Herring MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059 188*724ba675SRob Herring MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059 189*724ba675SRob Herring MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059 190*724ba675SRob Herring MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059 191*724ba675SRob Herring MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059 192*724ba675SRob Herring MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059 193*724ba675SRob Herring >; 194*724ba675SRob Herring }; 195*724ba675SRob Herring 196*724ba675SRob Herring pinctrl_enet: enetgrp { 197*724ba675SRob Herring fsl,pins = < 198*724ba675SRob Herring MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0 199*724ba675SRob Herring MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0 200*724ba675SRob Herring MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030 201*724ba675SRob Herring MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030 202*724ba675SRob Herring MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030 203*724ba675SRob Herring MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030 204*724ba675SRob Herring MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030 205*724ba675SRob Herring MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030 206*724ba675SRob Herring MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0 207*724ba675SRob Herring MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030 208*724ba675SRob Herring MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030 209*724ba675SRob Herring MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030 210*724ba675SRob Herring MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030 211*724ba675SRob Herring MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030 212*724ba675SRob Herring MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030 213*724ba675SRob Herring /* PHY reset */ 214*724ba675SRob Herring MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x1b0b0 215*724ba675SRob Herring >; 216*724ba675SRob Herring }; 217*724ba675SRob Herring 218*724ba675SRob Herring pinctrl_gpio_keys: gpiokeysgrp { 219*724ba675SRob Herring fsl,pins = < 220*724ba675SRob Herring MX6QDL_PAD_EIM_DA7__GPIO3_IO07 0x1b0b1 221*724ba675SRob Herring >; 222*724ba675SRob Herring }; 223*724ba675SRob Herring 224*724ba675SRob Herring pinctrl_i2c2: i2c2grp { 225*724ba675SRob Herring fsl,pins = < 226*724ba675SRob Herring MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 227*724ba675SRob Herring MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 228*724ba675SRob Herring >; 229*724ba675SRob Herring }; 230*724ba675SRob Herring 231*724ba675SRob Herring pinctrl_pwm1: pwm1grp { 232*724ba675SRob Herring fsl,pins = < 233*724ba675SRob Herring MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1 234*724ba675SRob Herring >; 235*724ba675SRob Herring }; 236*724ba675SRob Herring 237*724ba675SRob Herring pinctrl_sd: sdgrp { 238*724ba675SRob Herring fsl,pins = < 239*724ba675SRob Herring MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 240*724ba675SRob Herring MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 241*724ba675SRob Herring MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 242*724ba675SRob Herring MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 243*724ba675SRob Herring MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 244*724ba675SRob Herring MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 245*724ba675SRob Herring /* CD pin */ 246*724ba675SRob Herring MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x1b0b1 247*724ba675SRob Herring >; 248*724ba675SRob Herring }; 249*724ba675SRob Herring 250*724ba675SRob Herring pinctrl_uart1: uart1grp { 251*724ba675SRob Herring fsl,pins = < 252*724ba675SRob Herring MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1 253*724ba675SRob Herring MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1 254*724ba675SRob Herring >; 255*724ba675SRob Herring }; 256*724ba675SRob Herring}; 257