| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2016 NXP Semiconductors. |
|---|
| 3 | 4 | * Author: Fabio Estevam <fabio.estevam@nxp.com> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This file is dual-licensed: you can use it either under the terms |
|---|
| 6 | | - * of the GPL or the X11 license, at your option. Note that this dual |
|---|
| 7 | | - * licensing only applies to this file, and not this project as a |
|---|
| 8 | | - * whole. |
|---|
| 9 | | - * |
|---|
| 10 | | - * a) This file is free software; you can redistribute it and/or |
|---|
| 11 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 12 | | - * published by the Free Software Foundation; either version 2 of the |
|---|
| 13 | | - * License, or (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This file is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * Or, alternatively, |
|---|
| 21 | | - * |
|---|
| 22 | | - * b) Permission is hereby granted, free of charge, to any person |
|---|
| 23 | | - * obtaining a copy of this software and associated documentation |
|---|
| 24 | | - * files (the "Software"), to deal in the Software without |
|---|
| 25 | | - * restriction, including without limitation the rights to use, |
|---|
| 26 | | - * copy, modify, merge, publish, distribute, sublicense, and/or |
|---|
| 27 | | - * sell copies of the Software, and to permit persons to whom the |
|---|
| 28 | | - * Software is furnished to do so, subject to the following |
|---|
| 29 | | - * conditions: |
|---|
| 30 | | - * |
|---|
| 31 | | - * The above copyright notice and this permission notice shall be |
|---|
| 32 | | - * included in all copies or substantial portions of the Software. |
|---|
| 33 | | - * |
|---|
| 34 | | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|---|
| 35 | | - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|---|
| 36 | | - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|---|
| 37 | | - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|---|
| 38 | | - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|---|
| 39 | | - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|---|
| 40 | | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|---|
| 41 | | - * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 42 | 5 | */ |
|---|
| 43 | 6 | |
|---|
| 44 | 7 | /dts-v1/; |
|---|
| .. | .. |
|---|
| 92 | 55 | regulator-always-on; |
|---|
| 93 | 56 | }; |
|---|
| 94 | 57 | |
|---|
| 58 | + reg_peri_3p15v: regulator-peri-3p15v { |
|---|
| 59 | + compatible = "regulator-fixed"; |
|---|
| 60 | + regulator-name = "peri_3p15v_reg"; |
|---|
| 61 | + regulator-min-microvolt = <3150000>; |
|---|
| 62 | + regulator-max-microvolt = <3150000>; |
|---|
| 63 | + regulator-always-on; |
|---|
| 64 | + }; |
|---|
| 65 | + |
|---|
| 95 | 66 | sound { |
|---|
| 96 | 67 | compatible = "simple-audio-card"; |
|---|
| 97 | 68 | simple-audio-card,name = "imx7-sgtl5000"; |
|---|
| .. | .. |
|---|
| 104 | 75 | |
|---|
| 105 | 76 | dailink_master: simple-audio-card,codec { |
|---|
| 106 | 77 | sound-dai = <&codec>; |
|---|
| 107 | | - clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; |
|---|
| 78 | + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>; |
|---|
| 108 | 79 | }; |
|---|
| 109 | 80 | }; |
|---|
| 110 | 81 | }; |
|---|
| .. | .. |
|---|
| 112 | 83 | &clks { |
|---|
| 113 | 84 | assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>; |
|---|
| 114 | 85 | assigned-clock-rates = <884736000>; |
|---|
| 86 | +}; |
|---|
| 87 | + |
|---|
| 88 | +&csi { |
|---|
| 89 | + status = "okay"; |
|---|
| 115 | 90 | }; |
|---|
| 116 | 91 | |
|---|
| 117 | 92 | &i2c1 { |
|---|
| .. | .. |
|---|
| 158 | 133 | swbst_reg: swbst { |
|---|
| 159 | 134 | regulator-min-microvolt = <5000000>; |
|---|
| 160 | 135 | regulator-max-microvolt = <5150000>; |
|---|
| 136 | + regulator-boot-on; |
|---|
| 137 | + regulator-always-on; |
|---|
| 161 | 138 | }; |
|---|
| 162 | 139 | |
|---|
| 163 | 140 | snvs_reg: vsnvs { |
|---|
| .. | .. |
|---|
| 215 | 192 | pinctrl-names = "default"; |
|---|
| 216 | 193 | pinctrl-0 = <&pinctrl_i2c2>; |
|---|
| 217 | 194 | status = "okay"; |
|---|
| 195 | + |
|---|
| 196 | + ov2680: camera@36 { |
|---|
| 197 | + compatible = "ovti,ov2680"; |
|---|
| 198 | + pinctrl-names = "default"; |
|---|
| 199 | + pinctrl-0 = <&pinctrl_ov2680>; |
|---|
| 200 | + reg = <0x36>; |
|---|
| 201 | + clocks = <&osc>; |
|---|
| 202 | + clock-names = "xvclk"; |
|---|
| 203 | + reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; |
|---|
| 204 | + DOVDD-supply = <&sw2_reg>; |
|---|
| 205 | + DVDD-supply = <&sw2_reg>; |
|---|
| 206 | + AVDD-supply = <®_peri_3p15v>; |
|---|
| 207 | + |
|---|
| 208 | + port { |
|---|
| 209 | + ov2680_to_mipi: endpoint { |
|---|
| 210 | + remote-endpoint = <&mipi_from_sensor>; |
|---|
| 211 | + clock-lanes = <0>; |
|---|
| 212 | + data-lanes = <1>; |
|---|
| 213 | + }; |
|---|
| 214 | + }; |
|---|
| 215 | + }; |
|---|
| 216 | +}; |
|---|
| 217 | + |
|---|
| 218 | +&i2c3 { |
|---|
| 219 | + clock-frequency = <100000>; |
|---|
| 220 | + pinctrl-names = "default"; |
|---|
| 221 | + pinctrl-0 = <&pinctrl_i2c3>; |
|---|
| 222 | + status = "okay"; |
|---|
| 218 | 223 | }; |
|---|
| 219 | 224 | |
|---|
| 220 | 225 | &i2c4 { |
|---|
| .. | .. |
|---|
| 227 | 232 | #sound-dai-cells = <0>; |
|---|
| 228 | 233 | reg = <0x0a>; |
|---|
| 229 | 234 | compatible = "fsl,sgtl5000"; |
|---|
| 230 | | - clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; |
|---|
| 235 | + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>; |
|---|
| 231 | 236 | pinctrl-names = "default"; |
|---|
| 232 | 237 | pinctrl-0 = <&pinctrl_sai1_mclk>; |
|---|
| 233 | 238 | VDDA-supply = <&vgen4_reg>; |
|---|
| .. | .. |
|---|
| 238 | 243 | mpl3115@60 { |
|---|
| 239 | 244 | compatible = "fsl,mpl3115"; |
|---|
| 240 | 245 | reg = <0x60>; |
|---|
| 246 | + }; |
|---|
| 247 | +}; |
|---|
| 248 | + |
|---|
| 249 | +&mipi_csi { |
|---|
| 250 | + clock-frequency = <166000000>; |
|---|
| 251 | + fsl,csis-hs-settle = <3>; |
|---|
| 252 | + status = "okay"; |
|---|
| 253 | + |
|---|
| 254 | + port@0 { |
|---|
| 255 | + reg = <0>; |
|---|
| 256 | + |
|---|
| 257 | + mipi_from_sensor: endpoint { |
|---|
| 258 | + remote-endpoint = <&ov2680_to_mipi>; |
|---|
| 259 | + data-lanes = <1>; |
|---|
| 260 | + }; |
|---|
| 261 | + |
|---|
| 241 | 262 | }; |
|---|
| 242 | 263 | }; |
|---|
| 243 | 264 | |
|---|
| .. | .. |
|---|
| 307 | 328 | status = "okay"; |
|---|
| 308 | 329 | }; |
|---|
| 309 | 330 | |
|---|
| 331 | +&video_mux { |
|---|
| 332 | + status = "okay"; |
|---|
| 333 | +}; |
|---|
| 334 | + |
|---|
| 310 | 335 | &wdog1 { |
|---|
| 311 | 336 | pinctrl-names = "default"; |
|---|
| 312 | 337 | pinctrl-0 = <&pinctrl_wdog>; |
|---|
| .. | .. |
|---|
| 347 | 372 | >; |
|---|
| 348 | 373 | }; |
|---|
| 349 | 374 | |
|---|
| 375 | + pinctrl_i2c3: i2c3grp { |
|---|
| 376 | + fsl,pins = < |
|---|
| 377 | + MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f |
|---|
| 378 | + MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f |
|---|
| 379 | + >; |
|---|
| 380 | + }; |
|---|
| 381 | + |
|---|
| 350 | 382 | pinctrl_i2c4: i2c4grp { |
|---|
| 351 | 383 | fsl,pins = < |
|---|
| 352 | 384 | MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f |
|---|
| .. | .. |
|---|
| 354 | 386 | >; |
|---|
| 355 | 387 | }; |
|---|
| 356 | 388 | |
|---|
| 389 | + pinctrl_ov2680: ov2660grp { |
|---|
| 390 | + fsl,pins = < |
|---|
| 391 | + MX7D_PAD_LPSR_GPIO1_IO03__GPIO1_IO3 0x14 |
|---|
| 392 | + >; |
|---|
| 393 | + }; |
|---|
| 394 | + |
|---|
| 357 | 395 | pinctrl_sai1: sai1grp { |
|---|
| 358 | 396 | fsl,pins = < |
|---|
| 359 | 397 | MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1f |
|---|