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