1724ba675SRob Herring/* 2724ba675SRob Herring * Copyright 2015 Timesys Corporation. 3724ba675SRob Herring * Copyright 2015 General Electric Company 4724ba675SRob Herring * 5724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms 6724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual 7724ba675SRob Herring * licensing only applies to this file, and not this project as a 8724ba675SRob Herring * whole. 9724ba675SRob Herring * 10724ba675SRob Herring * a) This file is free software; you can redistribute it and/or 11724ba675SRob Herring * modify it under the terms of the GNU General Public License 12724ba675SRob Herring * version 2 as published by the Free Software Foundation. 13724ba675SRob Herring * 14724ba675SRob Herring * This file is distributed in the hope that it will be useful, 15724ba675SRob Herring * but WITHOUT ANY WARRANTY; without even the implied warranty of 16724ba675SRob Herring * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17724ba675SRob Herring * GNU General Public License for more details. 18724ba675SRob Herring * 19724ba675SRob Herring * Or, alternatively, 20724ba675SRob Herring * 21724ba675SRob Herring * b) Permission is hereby granted, free of charge, to any person 22724ba675SRob Herring * obtaining a copy of this software and associated documentation 23724ba675SRob Herring * files (the "Software"), to deal in the Software without 24724ba675SRob Herring * restriction, including without limitation the rights to use, 25724ba675SRob Herring * copy, modify, merge, publish, distribute, sublicense, and/or 26724ba675SRob Herring * sell copies of the Software, and to permit persons to whom the 27724ba675SRob Herring * Software is furnished to do so, subject to the following 28724ba675SRob Herring * conditions: 29724ba675SRob Herring * 30724ba675SRob Herring * The above copyright notice and this permission notice shall be 31724ba675SRob Herring * included in all copies or substantial portions of the Software. 32724ba675SRob Herring * 33724ba675SRob Herring * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34724ba675SRob Herring * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35724ba675SRob Herring * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36724ba675SRob Herring * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37724ba675SRob Herring * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38724ba675SRob Herring * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39724ba675SRob Herring * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40724ba675SRob Herring * OTHER DEALINGS IN THE SOFTWARE. 41724ba675SRob Herring */ 42724ba675SRob Herring 43724ba675SRob Herring#include "imx6q-ba16.dtsi" 44724ba675SRob Herring 45724ba675SRob Herring/ { 46724ba675SRob Herring mclk: clock-mclk { 47724ba675SRob Herring compatible = "fixed-clock"; 48724ba675SRob Herring #clock-cells = <0>; 49724ba675SRob Herring clock-frequency = <22000000>; 50724ba675SRob Herring }; 51724ba675SRob Herring 52724ba675SRob Herring gpio-poweroff { 53724ba675SRob Herring compatible = "gpio-poweroff"; 54724ba675SRob Herring gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; 55724ba675SRob Herring status = "okay"; 56724ba675SRob Herring }; 57724ba675SRob Herring 58724ba675SRob Herring reg_wl18xx_vmmc: regulator-wl18xx { 59724ba675SRob Herring compatible = "regulator-fixed"; 60724ba675SRob Herring regulator-name = "vwl1807"; 61724ba675SRob Herring regulator-min-microvolt = <3300000>; 62724ba675SRob Herring regulator-max-microvolt = <3300000>; 63724ba675SRob Herring gpio = <&pca9539 3 GPIO_ACTIVE_HIGH>; 64724ba675SRob Herring startup-delay-us = <70000>; 65724ba675SRob Herring enable-active-high; 66724ba675SRob Herring }; 67724ba675SRob Herring 68724ba675SRob Herring reg_wlan: regulator-wlan { 69724ba675SRob Herring compatible = "regulator-fixed"; 70724ba675SRob Herring regulator-name = "3P3V_wlan"; 71724ba675SRob Herring regulator-min-microvolt = <3300000>; 72724ba675SRob Herring regulator-max-microvolt = <3300000>; 73724ba675SRob Herring regulator-always-on; 74724ba675SRob Herring regulator-boot-on; 75724ba675SRob Herring gpio = <&gpio6 14 GPIO_ACTIVE_HIGH>; 76724ba675SRob Herring }; 77724ba675SRob Herring 78724ba675SRob Herring sound { 79724ba675SRob Herring compatible = "fsl,imx6q-ba16-sgtl5000", 80724ba675SRob Herring "fsl,imx-audio-sgtl5000"; 81724ba675SRob Herring model = "imx6q-ba16-sgtl5000"; 82724ba675SRob Herring ssi-controller = <&ssi1>; 83724ba675SRob Herring audio-codec = <&sgtl5000>; 84724ba675SRob Herring audio-routing = 85724ba675SRob Herring "MIC_IN", "Mic Jack", 86724ba675SRob Herring "Mic Jack", "Mic Bias", 87724ba675SRob Herring "LINE_IN", "Line In Jack", 88724ba675SRob Herring "Headphone Jack", "HP_OUT"; 89724ba675SRob Herring mux-int-port = <1>; 90724ba675SRob Herring mux-ext-port = <4>; 91724ba675SRob Herring }; 92724ba675SRob Herring 93724ba675SRob Herring aliases { 94724ba675SRob Herring mdio-gpio0 = &mdio0; 95724ba675SRob Herring }; 96724ba675SRob Herring 97724ba675SRob Herring mdio0: mdio-gpio { 98724ba675SRob Herring compatible = "virtual,mdio-gpio"; 99724ba675SRob Herring gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>, /* mdc */ 100724ba675SRob Herring <&gpio2 7 GPIO_ACTIVE_HIGH>; /* mdio */ 101724ba675SRob Herring 102724ba675SRob Herring #address-cells = <1>; 103724ba675SRob Herring #size-cells = <0>; 104724ba675SRob Herring 105724ba675SRob Herring switch: switch@0 { 106724ba675SRob Herring compatible = "marvell,mv88e6085"; /* 88e6240*/ 107724ba675SRob Herring reg = <0>; 108724ba675SRob Herring 109724ba675SRob Herring interrupt-parent = <&gpio2>; 110724ba675SRob Herring interrupts = <2 IRQ_TYPE_LEVEL_LOW>; 111724ba675SRob Herring interrupt-controller; 112724ba675SRob Herring #interrupt-cells = <2>; 113724ba675SRob Herring 114724ba675SRob Herring switch_ports: ports { 115724ba675SRob Herring #address-cells = <1>; 116724ba675SRob Herring #size-cells = <0>; 117724ba675SRob Herring }; 118724ba675SRob Herring 119724ba675SRob Herring mdio { 120724ba675SRob Herring #address-cells = <1>; 121724ba675SRob Herring #size-cells = <0>; 122724ba675SRob Herring 123724ba675SRob Herring switchphy0: switchphy@0 { 124724ba675SRob Herring reg = <0>; 125724ba675SRob Herring interrupt-parent = <&switch>; 126724ba675SRob Herring interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 127724ba675SRob Herring }; 128724ba675SRob Herring 129724ba675SRob Herring switchphy1: switchphy@1 { 130724ba675SRob Herring reg = <1>; 131724ba675SRob Herring interrupt-parent = <&switch>; 132724ba675SRob Herring interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; 133724ba675SRob Herring }; 134724ba675SRob Herring 135724ba675SRob Herring switchphy2: switchphy@2 { 136724ba675SRob Herring reg = <2>; 137724ba675SRob Herring interrupt-parent = <&switch>; 138724ba675SRob Herring interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; 139724ba675SRob Herring }; 140724ba675SRob Herring 141724ba675SRob Herring switchphy3: switchphy@3 { 142724ba675SRob Herring reg = <3>; 143724ba675SRob Herring interrupt-parent = <&switch>; 144724ba675SRob Herring interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; 145724ba675SRob Herring }; 146724ba675SRob Herring 147724ba675SRob Herring switchphy4: switchphy@4 { 148724ba675SRob Herring reg = <4>; 149724ba675SRob Herring interrupt-parent = <&switch>; 150724ba675SRob Herring interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; 151724ba675SRob Herring }; 152724ba675SRob Herring }; 153724ba675SRob Herring }; 154724ba675SRob Herring }; 155724ba675SRob Herring}; 156724ba675SRob Herring 157724ba675SRob Herring&ecspi5 { 158724ba675SRob Herring cs-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 159724ba675SRob Herring pinctrl-names = "default"; 160724ba675SRob Herring pinctrl-0 = <&pinctrl_ecspi5>; 161724ba675SRob Herring status = "okay"; 162724ba675SRob Herring 163724ba675SRob Herring m25_eeprom: flash@0 { 164724ba675SRob Herring compatible = "atmel,at25"; 165724ba675SRob Herring spi-max-frequency = <10000000>; 166724ba675SRob Herring size = <0x8000>; 167724ba675SRob Herring pagesize = <64>; 168724ba675SRob Herring reg = <0>; 169724ba675SRob Herring address-width = <16>; 170724ba675SRob Herring }; 171724ba675SRob Herring}; 172724ba675SRob Herring 173724ba675SRob Herring&i2c1 { 174724ba675SRob Herring pinctrl-names = "default", "gpio"; 175724ba675SRob Herring pinctrl-1 = <&pinctrl_i2c1_gpio>; 176724ba675SRob Herring sda-gpios = <&gpio5 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 177724ba675SRob Herring scl-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 178724ba675SRob Herring 179724ba675SRob Herring pca9547: mux@70 { 180724ba675SRob Herring compatible = "nxp,pca9547"; 181724ba675SRob Herring reg = <0x70>; 182724ba675SRob Herring #address-cells = <1>; 183724ba675SRob Herring #size-cells = <0>; 184724ba675SRob Herring 185724ba675SRob Herring mux1_i2c1: i2c@0 { 186724ba675SRob Herring #address-cells = <1>; 187724ba675SRob Herring #size-cells = <0>; 188724ba675SRob Herring reg = <0x0>; 189724ba675SRob Herring 190724ba675SRob Herring ads7830: ads7830@48 { 191724ba675SRob Herring compatible = "ti,ads7830"; 192724ba675SRob Herring reg = <0x48>; 193724ba675SRob Herring }; 194724ba675SRob Herring 195724ba675SRob Herring mma8453: mma8453@1c { 196724ba675SRob Herring compatible = "fsl,mma8453"; 197724ba675SRob Herring reg = <0x1c>; 198724ba675SRob Herring }; 199724ba675SRob Herring }; 200724ba675SRob Herring 201724ba675SRob Herring mux1_i2c2: i2c@1 { 202724ba675SRob Herring #address-cells = <1>; 203724ba675SRob Herring #size-cells = <0>; 204724ba675SRob Herring reg = <0x1>; 205724ba675SRob Herring 206724ba675SRob Herring eeprom: eeprom@50 { 207724ba675SRob Herring compatible = "atmel,24c08"; 208724ba675SRob Herring reg = <0x50>; 209724ba675SRob Herring }; 210724ba675SRob Herring 211724ba675SRob Herring mpl3115: mpl3115@60 { 212724ba675SRob Herring compatible = "fsl,mpl3115"; 213724ba675SRob Herring reg = <0x60>; 214724ba675SRob Herring }; 215724ba675SRob Herring }; 216724ba675SRob Herring 217724ba675SRob Herring mux1_i2c3: i2c@2 { 218724ba675SRob Herring #address-cells = <1>; 219724ba675SRob Herring #size-cells = <0>; 220724ba675SRob Herring reg = <0x2>; 221724ba675SRob Herring }; 222724ba675SRob Herring 223724ba675SRob Herring mux1_i2c4: i2c@3 { 224724ba675SRob Herring #address-cells = <1>; 225724ba675SRob Herring #size-cells = <0>; 226724ba675SRob Herring reg = <0x3>; 227724ba675SRob Herring 228724ba675SRob Herring sgtl5000: codec@a { 229724ba675SRob Herring compatible = "fsl,sgtl5000"; 230724ba675SRob Herring reg = <0x0a>; 231d54bcc3aSFabio Estevam #sound-dai-cells = <0>; 232724ba675SRob Herring clocks = <&mclk>; 233724ba675SRob Herring VDDA-supply = <®_1p8v>; 234724ba675SRob Herring VDDIO-supply = <®_3p3v>; 235724ba675SRob Herring }; 236724ba675SRob Herring }; 237724ba675SRob Herring 238724ba675SRob Herring mux1_i2c5: i2c@4 { 239724ba675SRob Herring #address-cells = <1>; 240724ba675SRob Herring #size-cells = <0>; 241724ba675SRob Herring reg = <0x4>; 242724ba675SRob Herring 243724ba675SRob Herring pca9539: pca9539@74 { 244724ba675SRob Herring compatible = "nxp,pca9539"; 245724ba675SRob Herring reg = <0x74>; 246724ba675SRob Herring gpio-controller; 247724ba675SRob Herring #gpio-cells = <2>; 248*96fd598eSRob Herring #interrupt-cells = <2>; 249724ba675SRob Herring interrupt-controller; 250724ba675SRob Herring interrupt-parent = <&gpio2>; 251724ba675SRob Herring interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 252724ba675SRob Herring 253724ba675SRob Herring P12-hog { 254724ba675SRob Herring gpio-hog; 255724ba675SRob Herring gpios = <10 0>; 256724ba675SRob Herring output-low; 257724ba675SRob Herring line-name = "PCA9539-P12"; 258724ba675SRob Herring }; 259724ba675SRob Herring 260724ba675SRob Herring P13-hog { 261724ba675SRob Herring gpio-hog; 262724ba675SRob Herring gpios = <11 0>; 263724ba675SRob Herring output-low; 264724ba675SRob Herring line-name = "PCA9539-P13"; 265724ba675SRob Herring }; 266724ba675SRob Herring 267724ba675SRob Herring P14-hog { 268724ba675SRob Herring gpio-hog; 269724ba675SRob Herring gpios = <12 0>; 270724ba675SRob Herring output-low; 271724ba675SRob Herring line-name = "PCA9539-P14"; 272724ba675SRob Herring }; 273724ba675SRob Herring 274724ba675SRob Herring P15-hog { 275724ba675SRob Herring gpio-hog; 276724ba675SRob Herring gpios = <13 0>; 277724ba675SRob Herring output-low; 278724ba675SRob Herring line-name = "PCA9539-P15"; 279724ba675SRob Herring }; 280724ba675SRob Herring 281724ba675SRob Herring P16-hog { 282724ba675SRob Herring gpio-hog; 283724ba675SRob Herring gpios = <14 0>; 284724ba675SRob Herring output-low; 285724ba675SRob Herring line-name = "PCA9539-P16"; 286724ba675SRob Herring }; 287724ba675SRob Herring 288724ba675SRob Herring P17-hog { 289724ba675SRob Herring gpio-hog; 290724ba675SRob Herring gpios = <15 0>; 291724ba675SRob Herring output-low; 292724ba675SRob Herring line-name = "PCA9539-P17"; 293724ba675SRob Herring }; 294724ba675SRob Herring }; 295724ba675SRob Herring }; 296724ba675SRob Herring 297724ba675SRob Herring mux1_i2c6: i2c@5 { 298724ba675SRob Herring #address-cells = <1>; 299724ba675SRob Herring #size-cells = <0>; 300724ba675SRob Herring reg = <0x5>; 301724ba675SRob Herring }; 302724ba675SRob Herring 303724ba675SRob Herring mux1_i2c7: i2c@6 { 304724ba675SRob Herring #address-cells = <1>; 305724ba675SRob Herring #size-cells = <0>; 306724ba675SRob Herring reg = <0x6>; 307724ba675SRob Herring }; 308724ba675SRob Herring 309724ba675SRob Herring mux1_i2c8: i2c@7 { 310724ba675SRob Herring #address-cells = <1>; 311724ba675SRob Herring #size-cells = <0>; 312724ba675SRob Herring reg = <0x7>; 313724ba675SRob Herring }; 314724ba675SRob Herring }; 315724ba675SRob Herring}; 316724ba675SRob Herring 317724ba675SRob Herring&i2c2 { 318724ba675SRob Herring pinctrl-names = "default", "gpio"; 319724ba675SRob Herring pinctrl-1 = <&pinctrl_i2c2_gpio>; 320724ba675SRob Herring sda-gpios = <&gpio4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 321724ba675SRob Herring scl-gpios = <&gpio4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 322724ba675SRob Herring}; 323724ba675SRob Herring 324724ba675SRob Herring&i2c3 { 325724ba675SRob Herring pinctrl-names = "default", "gpio"; 326724ba675SRob Herring pinctrl-1 = <&pinctrl_i2c3_gpio>; 327724ba675SRob Herring sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 328724ba675SRob Herring scl-gpios = <&gpio1 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 329724ba675SRob Herring}; 330724ba675SRob Herring 331724ba675SRob Herring&iomuxc { 332724ba675SRob Herring pinctrl_i2c1_gpio: i2c1gpiogrp { 333724ba675SRob Herring fsl,pins = < 334724ba675SRob Herring MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x1b0b0 335724ba675SRob Herring MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x1b0b0 336724ba675SRob Herring >; 337724ba675SRob Herring }; 338724ba675SRob Herring 339724ba675SRob Herring pinctrl_i2c2_gpio: i2c2gpiogrp { 340724ba675SRob Herring fsl,pins = < 341724ba675SRob Herring MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0 342724ba675SRob Herring MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0 343724ba675SRob Herring >; 344724ba675SRob Herring }; 345724ba675SRob Herring 346724ba675SRob Herring pinctrl_i2c3_gpio: i2c3gpiogrp { 347724ba675SRob Herring fsl,pins = < 348724ba675SRob Herring MX6QDL_PAD_GPIO_3__GPIO1_IO03 0x1b0b0 349724ba675SRob Herring MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 350724ba675SRob Herring >; 351724ba675SRob Herring }; 352724ba675SRob Herring}; 353724ba675SRob Herring 354724ba675SRob Herring&pmu { 355724ba675SRob Herring secure-reg-access; 356724ba675SRob Herring}; 357724ba675SRob Herring 358724ba675SRob Herring&usdhc2 { 359724ba675SRob Herring status = "disabled"; 360724ba675SRob Herring}; 361724ba675SRob Herring 362724ba675SRob Herring&usdhc4 { 363724ba675SRob Herring pinctrl-names = "default"; 364724ba675SRob Herring pinctrl-0 = <&pinctrl_usdhc4>; 365724ba675SRob Herring bus-width = <4>; 366724ba675SRob Herring vmmc-supply = <®_wl18xx_vmmc>; 367724ba675SRob Herring no-1-8-v; 368724ba675SRob Herring non-removable; 369724ba675SRob Herring wakeup-source; 370724ba675SRob Herring keep-power-in-suspend; 371724ba675SRob Herring cap-power-off-card; 372724ba675SRob Herring max-frequency = <25000000>; 373724ba675SRob Herring #address-cells = <1>; 374724ba675SRob Herring #size-cells = <0>; 375724ba675SRob Herring status = "okay"; 376724ba675SRob Herring 377724ba675SRob Herring wlcore: wlcore@2 { 378724ba675SRob Herring compatible = "ti,wl1837"; 379724ba675SRob Herring reg = <2>; 380724ba675SRob Herring interrupt-parent = <&gpio2>; 381724ba675SRob Herring interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; 382724ba675SRob Herring tcxo-clock-frequency = <26000000>; 383724ba675SRob Herring }; 384724ba675SRob Herring}; 385724ba675SRob Herring 386724ba675SRob Herring&pcie { 387724ba675SRob Herring /* Synopsys, Inc. Device */ 388724ba675SRob Herring pci_root: root@0,0 { 389724ba675SRob Herring compatible = "pci16c3,abcd"; 390724ba675SRob Herring reg = <0x00000000 0 0 0 0>; 391724ba675SRob Herring 392724ba675SRob Herring #address-cells = <3>; 393724ba675SRob Herring #size-cells = <2>; 394724ba675SRob Herring }; 395724ba675SRob Herring}; 396724ba675SRob Herring 397724ba675SRob Herring&clks { 398724ba675SRob Herring assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, 399724ba675SRob Herring <&clks IMX6QDL_CLK_LDB_DI1_SEL>, 400724ba675SRob Herring <&clks IMX6QDL_CLK_IPU1_DI0_PRE_SEL>, 401724ba675SRob Herring <&clks IMX6QDL_CLK_IPU1_DI1_PRE_SEL>, 402724ba675SRob Herring <&clks IMX6QDL_CLK_IPU2_DI0_PRE_SEL>, 403724ba675SRob Herring <&clks IMX6QDL_CLK_IPU2_DI1_PRE_SEL>; 404724ba675SRob Herring assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>, 405724ba675SRob Herring <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>, 406724ba675SRob Herring <&clks IMX6QDL_CLK_PLL2_PFD0_352M>, 407724ba675SRob Herring <&clks IMX6QDL_CLK_PLL2_PFD0_352M>, 408724ba675SRob Herring <&clks IMX6QDL_CLK_PLL2_PFD0_352M>, 409724ba675SRob Herring <&clks IMX6QDL_CLK_PLL2_PFD0_352M>; 410724ba675SRob Herring}; 411