| .. | .. |
|---|
| 1 | | -/* |
|---|
| 2 | | - * Copyright (C) 2015 Freescale Semiconductor, Inc. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 6 | | - * published by the Free Software Foundation. |
|---|
| 7 | | - */ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | +// |
|---|
| 3 | +// Copyright (C) 2015 Freescale Semiconductor, Inc. |
|---|
| 8 | 4 | |
|---|
| 9 | 5 | / { |
|---|
| 10 | 6 | chosen { |
|---|
| .. | .. |
|---|
| 32 | 28 | regulator-max-microvolt = <3300000>; |
|---|
| 33 | 29 | gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
|---|
| 34 | 30 | enable-active-high; |
|---|
| 31 | + }; |
|---|
| 32 | + |
|---|
| 33 | + reg_peri_3v3: regulator-peri-3v3 { |
|---|
| 34 | + compatible = "regulator-fixed"; |
|---|
| 35 | + pinctrl-names = "default"; |
|---|
| 36 | + pinctrl-0 = <&pinctrl_peri_3v3>; |
|---|
| 37 | + regulator-name = "VPERI_3V3"; |
|---|
| 38 | + regulator-min-microvolt = <3300000>; |
|---|
| 39 | + regulator-max-microvolt = <3300000>; |
|---|
| 40 | + gpio = <&gpio5 2 GPIO_ACTIVE_LOW>; |
|---|
| 41 | + /* |
|---|
| 42 | + * If you want to want to make this dynamic please |
|---|
| 43 | + * check schematics and test all affected peripherals: |
|---|
| 44 | + * |
|---|
| 45 | + * - sensors |
|---|
| 46 | + * - ethernet phy |
|---|
| 47 | + * - can |
|---|
| 48 | + * - bluetooth |
|---|
| 49 | + * - wm8960 audio codec |
|---|
| 50 | + * - ov5640 camera |
|---|
| 51 | + */ |
|---|
| 52 | + regulator-always-on; |
|---|
| 53 | + }; |
|---|
| 54 | + |
|---|
| 55 | + reg_can_3v3: regulator-can-3v3 { |
|---|
| 56 | + compatible = "regulator-fixed"; |
|---|
| 57 | + regulator-name = "can-3v3"; |
|---|
| 58 | + regulator-min-microvolt = <3300000>; |
|---|
| 59 | + regulator-max-microvolt = <3300000>; |
|---|
| 60 | + gpios = <&gpio_spi 3 GPIO_ACTIVE_LOW>; |
|---|
| 35 | 61 | }; |
|---|
| 36 | 62 | |
|---|
| 37 | 63 | sound { |
|---|
| .. | .. |
|---|
| 68 | 94 | }; |
|---|
| 69 | 95 | }; |
|---|
| 70 | 96 | |
|---|
| 97 | + spi4 { |
|---|
| 98 | + compatible = "spi-gpio"; |
|---|
| 99 | + pinctrl-names = "default"; |
|---|
| 100 | + pinctrl-0 = <&pinctrl_spi4>; |
|---|
| 101 | + status = "okay"; |
|---|
| 102 | + gpio-sck = <&gpio5 11 0>; |
|---|
| 103 | + gpio-mosi = <&gpio5 10 0>; |
|---|
| 104 | + cs-gpios = <&gpio5 7 0>; |
|---|
| 105 | + num-chipselects = <1>; |
|---|
| 106 | + #address-cells = <1>; |
|---|
| 107 | + #size-cells = <0>; |
|---|
| 108 | + |
|---|
| 109 | + gpio_spi: gpio@0 { |
|---|
| 110 | + compatible = "fairchild,74hc595"; |
|---|
| 111 | + gpio-controller; |
|---|
| 112 | + #gpio-cells = <2>; |
|---|
| 113 | + reg = <0>; |
|---|
| 114 | + registers-number = <1>; |
|---|
| 115 | + spi-max-frequency = <100000>; |
|---|
| 116 | + }; |
|---|
| 117 | + }; |
|---|
| 118 | + |
|---|
| 71 | 119 | panel { |
|---|
| 72 | 120 | compatible = "innolux,at043tn24"; |
|---|
| 73 | 121 | backlight = <&backlight_display>; |
|---|
| .. | .. |
|---|
| 86 | 134 | }; |
|---|
| 87 | 135 | |
|---|
| 88 | 136 | &i2c2 { |
|---|
| 89 | | - clock_frequency = <100000>; |
|---|
| 137 | + clock-frequency = <100000>; |
|---|
| 90 | 138 | pinctrl-names = "default"; |
|---|
| 91 | 139 | pinctrl-0 = <&pinctrl_i2c2>; |
|---|
| 92 | 140 | status = "okay"; |
|---|
| .. | .. |
|---|
| 104 | 152 | pinctrl-0 = <&pinctrl_enet1>; |
|---|
| 105 | 153 | phy-mode = "rmii"; |
|---|
| 106 | 154 | phy-handle = <ðphy0>; |
|---|
| 155 | + phy-supply = <®_peri_3v3>; |
|---|
| 107 | 156 | status = "okay"; |
|---|
| 108 | 157 | }; |
|---|
| 109 | 158 | |
|---|
| .. | .. |
|---|
| 112 | 161 | pinctrl-0 = <&pinctrl_enet2>; |
|---|
| 113 | 162 | phy-mode = "rmii"; |
|---|
| 114 | 163 | phy-handle = <ðphy1>; |
|---|
| 164 | + phy-supply = <®_peri_3v3>; |
|---|
| 115 | 165 | status = "okay"; |
|---|
| 116 | 166 | |
|---|
| 117 | 167 | mdio { |
|---|
| .. | .. |
|---|
| 134 | 184 | }; |
|---|
| 135 | 185 | }; |
|---|
| 136 | 186 | |
|---|
| 187 | +&can1 { |
|---|
| 188 | + pinctrl-names = "default"; |
|---|
| 189 | + pinctrl-0 = <&pinctrl_flexcan1>; |
|---|
| 190 | + xceiver-supply = <®_can_3v3>; |
|---|
| 191 | + status = "okay"; |
|---|
| 192 | +}; |
|---|
| 193 | + |
|---|
| 194 | +&can2 { |
|---|
| 195 | + pinctrl-names = "default"; |
|---|
| 196 | + pinctrl-0 = <&pinctrl_flexcan2>; |
|---|
| 197 | + xceiver-supply = <®_can_3v3>; |
|---|
| 198 | + status = "okay"; |
|---|
| 199 | +}; |
|---|
| 200 | + |
|---|
| 137 | 201 | &i2c1 { |
|---|
| 138 | 202 | clock-frequency = <100000>; |
|---|
| 139 | 203 | pinctrl-names = "default"; |
|---|
| 140 | 204 | pinctrl-0 = <&pinctrl_i2c1>; |
|---|
| 141 | 205 | status = "okay"; |
|---|
| 142 | 206 | |
|---|
| 143 | | - mag3110@e { |
|---|
| 207 | + magnetometer@e { |
|---|
| 144 | 208 | compatible = "fsl,mag3110"; |
|---|
| 145 | 209 | reg = <0x0e>; |
|---|
| 210 | + vdd-supply = <®_peri_3v3>; |
|---|
| 211 | + vddio-supply = <®_peri_3v3>; |
|---|
| 146 | 212 | }; |
|---|
| 147 | 213 | }; |
|---|
| 148 | 214 | |
|---|
| .. | .. |
|---|
| 162 | 228 | }; |
|---|
| 163 | 229 | |
|---|
| 164 | 230 | &pwm1 { |
|---|
| 231 | + #pwm-cells = <2>; |
|---|
| 165 | 232 | pinctrl-names = "default"; |
|---|
| 166 | 233 | pinctrl-0 = <&pinctrl_pwm1>; |
|---|
| 167 | 234 | status = "okay"; |
|---|
| .. | .. |
|---|
| 172 | 239 | pinctrl-0 = <&pinctrl_qspi>; |
|---|
| 173 | 240 | status = "okay"; |
|---|
| 174 | 241 | |
|---|
| 175 | | - flash0: n25q256a@0 { |
|---|
| 242 | + flash0: flash@0 { |
|---|
| 176 | 243 | #address-cells = <1>; |
|---|
| 177 | 244 | #size-cells = <1>; |
|---|
| 178 | 245 | compatible = "micron,n25q256a", "jedec,spi-nor"; |
|---|
| 179 | 246 | spi-max-frequency = <29000000>; |
|---|
| 247 | + spi-rx-bus-width = <4>; |
|---|
| 248 | + spi-tx-bus-width = <4>; |
|---|
| 180 | 249 | reg = <0>; |
|---|
| 181 | 250 | }; |
|---|
| 182 | 251 | }; |
|---|
| .. | .. |
|---|
| 193 | 262 | }; |
|---|
| 194 | 263 | |
|---|
| 195 | 264 | &snvs_poweroff { |
|---|
| 265 | + status = "okay"; |
|---|
| 266 | +}; |
|---|
| 267 | + |
|---|
| 268 | +&snvs_pwrkey { |
|---|
| 196 | 269 | status = "okay"; |
|---|
| 197 | 270 | }; |
|---|
| 198 | 271 | |
|---|
| .. | .. |
|---|
| 220 | 293 | |
|---|
| 221 | 294 | &usbotg1 { |
|---|
| 222 | 295 | dr_mode = "otg"; |
|---|
| 296 | + pinctrl-names = "default"; |
|---|
| 297 | + pinctrl-0 = <&pinctrl_usb_otg1>; |
|---|
| 223 | 298 | status = "okay"; |
|---|
| 224 | 299 | }; |
|---|
| 225 | 300 | |
|---|
| .. | .. |
|---|
| 253 | 328 | pinctrl-names = "default"; |
|---|
| 254 | 329 | pinctrl-0 = <&pinctrl_usdhc2>; |
|---|
| 255 | 330 | no-1-8-v; |
|---|
| 331 | + broken-cd; |
|---|
| 256 | 332 | keep-power-in-suspend; |
|---|
| 257 | 333 | wakeup-source; |
|---|
| 258 | 334 | status = "okay"; |
|---|
| .. | .. |
|---|
| 402 | 478 | >; |
|---|
| 403 | 479 | }; |
|---|
| 404 | 480 | |
|---|
| 481 | + pinctrl_peri_3v3: peri3v3grp { |
|---|
| 482 | + fsl,pins = < |
|---|
| 483 | + MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0 |
|---|
| 484 | + >; |
|---|
| 485 | + }; |
|---|
| 486 | + |
|---|
| 405 | 487 | pinctrl_pwm1: pwm1grp { |
|---|
| 406 | 488 | fsl,pins = < |
|---|
| 407 | 489 | MX6UL_PAD_GPIO1_IO08__PWM1_OUT 0x110b0 |
|---|
| .. | .. |
|---|
| 416 | 498 | MX6UL_PAD_CSI_DATA06__SIM2_PORT1_SVEN 0xb808 |
|---|
| 417 | 499 | MX6UL_PAD_CSI_DATA07__SIM2_PORT1_TRXD 0xb809 |
|---|
| 418 | 500 | MX6UL_PAD_CSI_DATA02__GPIO4_IO23 0x3008 |
|---|
| 501 | + >; |
|---|
| 502 | + }; |
|---|
| 503 | + |
|---|
| 504 | + pinctrl_spi4: spi4grp { |
|---|
| 505 | + fsl,pins = < |
|---|
| 506 | + MX6UL_PAD_BOOT_MODE0__GPIO5_IO10 0x70a1 |
|---|
| 507 | + MX6UL_PAD_BOOT_MODE1__GPIO5_IO11 0x70a1 |
|---|
| 508 | + MX6UL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x70a1 |
|---|
| 509 | + MX6UL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x80000000 |
|---|
| 419 | 510 | >; |
|---|
| 420 | 511 | }; |
|---|
| 421 | 512 | |
|---|
| .. | .. |
|---|
| 444 | 535 | >; |
|---|
| 445 | 536 | }; |
|---|
| 446 | 537 | |
|---|
| 538 | + pinctrl_usb_otg1: usbotg1grp { |
|---|
| 539 | + fsl,pins = < |
|---|
| 540 | + MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059 |
|---|
| 541 | + >; |
|---|
| 542 | + }; |
|---|
| 543 | + |
|---|
| 447 | 544 | pinctrl_usdhc1: usdhc1grp { |
|---|
| 448 | 545 | fsl,pins = < |
|---|
| 449 | 546 | MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059 |
|---|