Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014, 2015 Andy Yan <andy.yan@rock-chips.com> |
| 3 | * |
| 4 | * This file is dual-licensed: you can use it either under the terms |
| 5 | * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | * licensing only applies to this file, and not this project as a |
| 7 | * whole. |
| 8 | * |
| 9 | * a) This file is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of the |
| 12 | * License, or (at your option) any later version. |
| 13 | * |
| 14 | * This file is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * Or, alternatively, |
| 20 | * |
| 21 | * b) Permission is hereby granted, free of charge, to any person |
| 22 | * obtaining a copy of this software and associated documentation |
| 23 | * files (the "Software"), to deal in the Software without |
| 24 | * restriction, including without limitation the rights to use, |
| 25 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 26 | * sell copies of the Software, and to permit persons to whom the |
| 27 | * Software is furnished to do so, subject to the following |
| 28 | * conditions: |
| 29 | * |
| 30 | * The above copyright notice and this permission notice shall be |
| 31 | * included in all copies or substantial portions of the Software. |
| 32 | * |
| 33 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 34 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 35 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 36 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 37 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 38 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 39 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 40 | * OTHER DEALINGS IN THE SOFTWARE. |
| 41 | */ |
| 42 | |
| 43 | /dts-v1/; |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 44 | #include <dt-bindings/input/input.h> |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 45 | #include "rk3288.dtsi" |
| 46 | |
| 47 | / { |
| 48 | model = "PopMetal-RK3288"; |
| 49 | compatible = "chipspark,popmetal-rk3288", "rockchip,rk3288"; |
| 50 | |
Javier Martinez Canillas | 0b639b8 | 2016-09-09 10:01:08 -0400 | [diff] [blame] | 51 | memory@0 { |
Heiko Stuebner | 6158e6d | 2015-07-15 20:57:21 +0200 | [diff] [blame] | 52 | device_type = "memory"; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 53 | reg = <0 0x80000000>; |
| 54 | }; |
| 55 | |
| 56 | ext_gmac: external-gmac-clock { |
| 57 | compatible = "fixed-clock"; |
| 58 | clock-frequency = <125000000>; |
| 59 | clock-output-names = "ext_gmac"; |
| 60 | #clock-cells = <0>; |
| 61 | }; |
| 62 | |
| 63 | gpio-keys { |
| 64 | compatible = "gpio-keys"; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 65 | autorepeat; |
| 66 | |
| 67 | pinctrl-names = "default"; |
| 68 | pinctrl-0 = <&pwrbtn>; |
| 69 | |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 70 | power { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 71 | gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 72 | linux,code = <KEY_POWER>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 73 | label = "GPIO Key Power"; |
| 74 | linux,input-type = <1>; |
Sudeep Holla | 4f66f24 | 2016-02-08 21:55:12 +0000 | [diff] [blame] | 75 | wakeup-source; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 76 | debounce-interval = <100>; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | ir: ir-receiver { |
| 81 | compatible = "gpio-ir-receiver"; |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 82 | gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&ir_int>; |
| 85 | }; |
| 86 | |
Heiko Stuebner | fa1c193 | 2015-09-30 20:58:53 +0200 | [diff] [blame] | 87 | vcc_flash: flash-regulator { |
| 88 | compatible = "regulator-fixed"; |
| 89 | regulator-name = "vcc_flash"; |
| 90 | regulator-min-microvolt = <1800000>; |
| 91 | regulator-max-microvolt = <1800000>; |
| 92 | vin-supply = <&vcc_io>; |
| 93 | }; |
| 94 | |
| 95 | vcc_sd: sdmmc-regulator { |
| 96 | compatible = "regulator-fixed"; |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 97 | gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>; |
Heiko Stuebner | fa1c193 | 2015-09-30 20:58:53 +0200 | [diff] [blame] | 98 | pinctrl-names = "default"; |
| 99 | pinctrl-0 = <&sdmmc_pwr>; |
| 100 | regulator-name = "vcc_sd"; |
| 101 | regulator-min-microvolt = <3300000>; |
| 102 | regulator-max-microvolt = <3300000>; |
| 103 | startup-delay-us = <100000>; |
| 104 | vin-supply = <&vcc_io>; |
| 105 | }; |
| 106 | |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 107 | vcc_sys: vsys-regulator { |
| 108 | compatible = "regulator-fixed"; |
| 109 | regulator-name = "vcc_sys"; |
| 110 | regulator-min-microvolt = <5000000>; |
| 111 | regulator-max-microvolt = <5000000>; |
| 112 | regulator-always-on; |
| 113 | regulator-boot-on; |
| 114 | }; |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 115 | |
| 116 | /* |
| 117 | * A PT5128 creates both dovdd_1v8 and vcc28_dvp, controlled |
| 118 | * by the dvp_pwr pin. |
| 119 | */ |
| 120 | vcc18_dvp: vcc18-dvp-regulator { |
| 121 | compatible = "regulator-fixed"; |
| 122 | regulator-name = "vcc18-dvp"; |
| 123 | regulator-min-microvolt = <1800000>; |
| 124 | regulator-max-microvolt = <1800000>; |
| 125 | vin-supply = <&vcc28_dvp>; |
| 126 | }; |
| 127 | |
| 128 | vcc28_dvp: vcc28-dvp-regulator { |
| 129 | compatible = "regulator-fixed"; |
| 130 | enable-active-high; |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 131 | gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 132 | pinctrl-names = "default"; |
| 133 | pinctrl-0 = <&dvp_pwr>; |
| 134 | regulator-name = "vcc28_dvp"; |
| 135 | regulator-min-microvolt = <2800000>; |
| 136 | regulator-max-microvolt = <2800000>; |
| 137 | regulator-always-on; |
| 138 | vin-supply = <&vcc_io>; |
| 139 | }; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 140 | }; |
| 141 | |
| 142 | &cpu0 { |
| 143 | cpu0-supply = <&vdd_cpu>; |
| 144 | }; |
| 145 | |
| 146 | &emmc { |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 147 | bus-width = <8>; |
| 148 | cap-mmc-highspeed; |
| 149 | disable-wp; |
Shawn Lin | 864c9c0 | 2016-10-10 20:33:46 +0800 | [diff] [blame] | 150 | mmc-ddr-1_8v; |
| 151 | mmc-hs200-1_8v; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 152 | non-removable; |
| 153 | num-slots = <1>; |
| 154 | pinctrl-names = "default"; |
| 155 | pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>; |
Heiko Stuebner | fa1c193 | 2015-09-30 20:58:53 +0200 | [diff] [blame] | 156 | vmmc-supply = <&vcc_io>; |
| 157 | vqmmc-supply = <&vcc_flash>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 158 | status = "okay"; |
| 159 | }; |
| 160 | |
| 161 | &sdmmc { |
| 162 | bus-width = <4>; |
| 163 | cap-mmc-highspeed; |
| 164 | cap-sd-highspeed; |
| 165 | card-detect-delay = <200>; |
| 166 | disable-wp; /* wp not hooked up */ |
| 167 | num-slots = <1>; |
| 168 | pinctrl-names = "default"; |
| 169 | pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; |
Shawn Lin | 9daa255 | 2016-10-10 20:33:45 +0800 | [diff] [blame] | 170 | sd-uhs-sdr12; |
| 171 | sd-uhs-sdr25; |
| 172 | sd-uhs-sdr50; |
| 173 | sd-uhs-sdr104; |
Heiko Stuebner | fa1c193 | 2015-09-30 20:58:53 +0200 | [diff] [blame] | 174 | vmmc-supply = <&vcc_sd>; |
| 175 | vqmmc-supply = <&vccio_sd>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 176 | status = "okay"; |
| 177 | }; |
| 178 | |
| 179 | &gmac { |
| 180 | phy-supply = <&vcc_lan>; |
| 181 | phy-mode = "rgmii"; |
| 182 | clock_in_out = "input"; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame^] | 183 | snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 184 | snps,reset-active-low; |
| 185 | snps,reset-delays-us = <0 10000 1000000>; |
| 186 | assigned-clocks = <&cru SCLK_MAC>; |
| 187 | assigned-clock-parents = <&ext_gmac>; |
| 188 | pinctrl-names = "default"; |
| 189 | pinctrl-0 = <&rgmii_pins>; |
| 190 | tx_delay = <0x30>; |
| 191 | rx_delay = <0x10>; |
| 192 | status = "ok"; |
| 193 | }; |
| 194 | |
| 195 | &hdmi { |
| 196 | ddc-i2c-bus = <&i2c5>; |
| 197 | status = "okay"; |
| 198 | }; |
| 199 | |
| 200 | &i2c0 { |
| 201 | status = "okay"; |
| 202 | clock-frequency = <400000>; |
| 203 | |
| 204 | rk808: pmic@1b { |
| 205 | compatible = "rockchip,rk808"; |
| 206 | reg = <0x1b>; |
| 207 | interrupt-parent = <&gpio0>; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame^] | 208 | interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 209 | pinctrl-names = "default"; |
| 210 | pinctrl-0 = <&pmic_int &global_pwroff>; |
| 211 | rockchip,system-power-controller; |
| 212 | wakeup-source; |
| 213 | #clock-cells = <1>; |
| 214 | clock-output-names = "xin32k", "rk808-clkout2"; |
| 215 | |
| 216 | vcc1-supply = <&vcc_sys>; |
| 217 | vcc2-supply = <&vcc_sys>; |
| 218 | vcc3-supply = <&vcc_sys>; |
| 219 | vcc4-supply = <&vcc_sys>; |
| 220 | vcc6-supply = <&vcc_sys>; |
| 221 | vcc7-supply = <&vcc_sys>; |
| 222 | vcc8-supply = <&vcc_18>; |
| 223 | vcc9-supply = <&vcc_io>; |
| 224 | vcc10-supply = <&vcc_io>; |
| 225 | vcc11-supply = <&vcc_sys>; |
| 226 | vcc12-supply = <&vcc_io>; |
| 227 | vddio-supply = <&vcc_io>; |
| 228 | |
| 229 | regulators { |
| 230 | vdd_cpu: DCDC_REG1 { |
| 231 | regulator-always-on; |
| 232 | regulator-boot-on; |
| 233 | regulator-min-microvolt = <750000>; |
| 234 | regulator-max-microvolt = <1350000>; |
| 235 | regulator-name = "vdd_arm"; |
| 236 | regulator-state-mem { |
| 237 | regulator-off-in-suspend; |
| 238 | }; |
| 239 | }; |
| 240 | |
| 241 | vdd_gpu: DCDC_REG2 { |
| 242 | regulator-always-on; |
| 243 | regulator-boot-on; |
| 244 | regulator-min-microvolt = <850000>; |
| 245 | regulator-max-microvolt = <1250000>; |
| 246 | regulator-name = "vdd_gpu"; |
| 247 | regulator-state-mem { |
| 248 | regulator-on-in-suspend; |
| 249 | regulator-suspend-microvolt = <1000000>; |
| 250 | }; |
| 251 | }; |
| 252 | |
| 253 | vcc_ddr: DCDC_REG3 { |
| 254 | regulator-always-on; |
| 255 | regulator-boot-on; |
| 256 | regulator-name = "vcc_ddr"; |
| 257 | regulator-state-mem { |
| 258 | regulator-on-in-suspend; |
| 259 | }; |
| 260 | }; |
| 261 | |
| 262 | vcc_io: DCDC_REG4 { |
| 263 | regulator-always-on; |
| 264 | regulator-boot-on; |
| 265 | regulator-min-microvolt = <3300000>; |
| 266 | regulator-max-microvolt = <3300000>; |
| 267 | regulator-name = "vcc_io"; |
| 268 | regulator-state-mem { |
| 269 | regulator-on-in-suspend; |
| 270 | regulator-suspend-microvolt = <3300000>; |
| 271 | }; |
| 272 | }; |
| 273 | |
| 274 | vcc_lan: LDO_REG1 { |
| 275 | regulator-always-on; |
| 276 | regulator-boot-on; |
| 277 | regulator-min-microvolt = <3300000>; |
| 278 | regulator-max-microvolt = <3300000>; |
| 279 | regulator-name = "vcc_lan"; |
| 280 | regulator-state-mem { |
| 281 | regulator-on-in-suspend; |
| 282 | regulator-suspend-microvolt = <3300000>; |
| 283 | }; |
| 284 | }; |
| 285 | |
| 286 | vccio_sd: LDO_REG2 { |
| 287 | regulator-always-on; |
| 288 | regulator-boot-on; |
Shawn Lin | 9daa255 | 2016-10-10 20:33:45 +0800 | [diff] [blame] | 289 | regulator-min-microvolt = <1800000>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 290 | regulator-max-microvolt = <3300000>; |
| 291 | regulator-name = "vccio_sd"; |
| 292 | regulator-state-mem { |
| 293 | regulator-off-in-suspend; |
| 294 | }; |
| 295 | }; |
| 296 | |
| 297 | vdd_10: LDO_REG3 { |
| 298 | regulator-always-on; |
| 299 | regulator-boot-on; |
| 300 | regulator-min-microvolt = <1000000>; |
| 301 | regulator-max-microvolt = <1000000>; |
| 302 | regulator-name = "vdd_10"; |
| 303 | regulator-state-mem { |
| 304 | regulator-on-in-suspend; |
| 305 | regulator-suspend-microvolt = <1000000>; |
| 306 | }; |
| 307 | }; |
| 308 | |
| 309 | vcc18_lcd: LDO_REG4 { |
| 310 | regulator-always-on; |
| 311 | regulator-boot-on; |
| 312 | regulator-min-microvolt = <1800000>; |
| 313 | regulator-max-microvolt = <1800000>; |
| 314 | regulator-name = "vcc18_lcd"; |
| 315 | regulator-state-mem { |
| 316 | regulator-on-in-suspend; |
| 317 | regulator-suspend-microvolt = <1800000>; |
| 318 | }; |
| 319 | }; |
| 320 | |
| 321 | ldo5: LDO_REG5 { |
| 322 | regulator-always-on; |
| 323 | regulator-min-microvolt = <1800000>; |
| 324 | regulator-max-microvolt = <3300000>; |
| 325 | regulator-name = "ldo5"; |
| 326 | }; |
| 327 | |
| 328 | vdd10_lcd: LDO_REG6 { |
| 329 | regulator-always-on; |
| 330 | regulator-boot-on; |
| 331 | regulator-min-microvolt = <1000000>; |
| 332 | regulator-max-microvolt = <1000000>; |
| 333 | regulator-name = "vdd10_lcd"; |
| 334 | regulator-state-mem { |
| 335 | regulator-on-in-suspend; |
| 336 | regulator-suspend-microvolt = <1000000>; |
| 337 | }; |
| 338 | }; |
| 339 | |
| 340 | vcc_18: LDO_REG7 { |
| 341 | regulator-always-on; |
| 342 | regulator-boot-on; |
| 343 | regulator-min-microvolt = <1800000>; |
| 344 | regulator-max-microvolt = <1800000>; |
| 345 | regulator-name = "vcc_18"; |
| 346 | regulator-state-mem { |
| 347 | regulator-on-in-suspend; |
| 348 | regulator-suspend-microvolt = <1800000>; |
| 349 | }; |
| 350 | }; |
| 351 | |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 352 | vcca_33: LDO_REG8 { |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 353 | regulator-always-on; |
| 354 | regulator-boot-on; |
| 355 | regulator-min-microvolt = <3300000>; |
| 356 | regulator-max-microvolt = <3300000>; |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 357 | regulator-name = "vcca_33"; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 358 | regulator-state-mem { |
| 359 | regulator-on-in-suspend; |
| 360 | regulator-suspend-microvolt = <3300000>; |
| 361 | }; |
| 362 | }; |
| 363 | |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 364 | vccio_wl: SWITCH_REG1 { |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 365 | regulator-always-on; |
| 366 | regulator-boot-on; |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 367 | regulator-name = "vccio_wl"; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 368 | regulator-state-mem { |
| 369 | regulator-on-in-suspend; |
| 370 | }; |
| 371 | }; |
| 372 | |
| 373 | vcc_lcd: SWITCH_REG2 { |
| 374 | regulator-always-on; |
| 375 | regulator-boot-on; |
| 376 | regulator-name = "vcc_lcd"; |
| 377 | regulator-state-mem { |
| 378 | regulator-on-in-suspend; |
| 379 | }; |
| 380 | }; |
| 381 | }; |
| 382 | }; |
| 383 | }; |
| 384 | |
| 385 | &i2c1 { |
| 386 | status = "okay"; |
| 387 | clock-frequency = <400000>; |
| 388 | |
| 389 | ak8963: ak8963@0d { |
| 390 | compatible = "asahi-kasei,ak8975"; |
| 391 | reg = <0x0d>; |
| 392 | interrupt-parent = <&gpio8>; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame^] | 393 | interrupts = <RK_PA1 IRQ_TYPE_EDGE_RISING>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 394 | pinctrl-names = "default"; |
| 395 | pinctrl-0 = <&comp_int>; |
Andy Yan | 4314f4b | 2016-09-04 16:34:27 +0800 | [diff] [blame] | 396 | vdd-supply = <&vcc_io>; |
| 397 | vid-supply = <&vcc_io>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 398 | }; |
| 399 | |
Andy Yan | 9369554 | 2016-09-04 16:34:27 +0800 | [diff] [blame] | 400 | l3g4200d: l3g4200d@69 { |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 401 | compatible = "st,l3g4200d-gyro"; |
| 402 | st,drdy-int-pin = <2>; |
Andy Yan | 9369554 | 2016-09-04 16:34:27 +0800 | [diff] [blame] | 403 | reg = <0x69>; |
Andy Yan | 4314f4b | 2016-09-04 16:34:27 +0800 | [diff] [blame] | 404 | vdd-supply = <&vcc_io>; |
| 405 | vddio-supply = <&vcc_io>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 406 | }; |
| 407 | |
| 408 | mma8452: mma8452@1d { |
| 409 | compatible = "fsl,mma8452"; |
| 410 | reg = <0x1d>; |
| 411 | interrupt-parent = <&gpio8>; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame^] | 412 | interrupts = <RK_PA0 IRQ_TYPE_EDGE_RISING>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 413 | pinctrl-names = "default"; |
| 414 | pinctrl-0 = <&gsensor_int>; |
| 415 | }; |
| 416 | }; |
| 417 | |
| 418 | &i2c2 { |
| 419 | status = "okay"; |
| 420 | }; |
| 421 | |
| 422 | &i2c3 { |
| 423 | status = "okay"; |
| 424 | }; |
| 425 | |
| 426 | &i2c4 { |
| 427 | status = "okay"; |
| 428 | }; |
| 429 | |
| 430 | &i2c5 { |
| 431 | status = "okay"; |
| 432 | }; |
| 433 | |
Heiko Stuebner | 3445b2f | 2016-05-21 01:36:17 +0200 | [diff] [blame] | 434 | &io_domains { |
| 435 | status = "okay"; |
| 436 | |
| 437 | audio-supply = <&vcca_33>; |
| 438 | bb-supply = <&vcc_io>; |
| 439 | dvp-supply = <&vcc18_dvp>; |
| 440 | flash0-supply = <&vcc_flash>; |
| 441 | flash1-supply = <&vcc_lan>; |
| 442 | gpio30-supply = <&vcc_io>; |
| 443 | gpio1830-supply = <&vcc_io>; |
| 444 | lcdc-supply = <&vcc_io>; |
| 445 | sdcard-supply = <&vccio_sd>; |
| 446 | wifi-supply = <&vccio_wl>; |
| 447 | }; |
| 448 | |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 449 | &pinctrl { |
| 450 | ak8963 { |
| 451 | comp_int: comp-int { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 452 | rockchip,pins = <8 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 453 | }; |
| 454 | }; |
| 455 | |
| 456 | buttons { |
| 457 | pwrbtn: pwrbtn { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 458 | rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 459 | }; |
| 460 | }; |
| 461 | |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 462 | dvp { |
| 463 | dvp_pwr: dvp-pwr { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 464 | rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
Heiko Stuebner | 90f9a54 | 2015-09-30 21:00:16 +0200 | [diff] [blame] | 465 | }; |
| 466 | }; |
| 467 | |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 468 | ir { |
| 469 | ir_int: ir-int { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 470 | rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 471 | }; |
| 472 | }; |
| 473 | |
| 474 | mma8452 { |
| 475 | gsensor_int: gsensor-int { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 476 | rockchip,pins = <8 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 477 | }; |
| 478 | }; |
| 479 | |
| 480 | pmic { |
| 481 | pmic_int: pmic-int { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 482 | rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 483 | }; |
| 484 | }; |
Heiko Stuebner | fa1c193 | 2015-09-30 20:58:53 +0200 | [diff] [blame] | 485 | |
| 486 | sdmmc { |
| 487 | sdmmc_pwr: sdmmc-pwr { |
Andy Yan | c959ab8 | 2016-09-07 09:02:13 +0800 | [diff] [blame] | 488 | rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; |
Heiko Stuebner | fa1c193 | 2015-09-30 20:58:53 +0200 | [diff] [blame] | 489 | }; |
| 490 | }; |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 491 | }; |
| 492 | |
Heiko Stuebner | 8c653f9 | 2015-04-05 11:15:01 +0200 | [diff] [blame] | 493 | &tsadc { |
| 494 | rockchip,hw-tshut-mode = <0>; |
| 495 | rockchip,hw-tshut-polarity = <0>; |
| 496 | status = "okay"; |
| 497 | }; |
| 498 | |
Andy Yan | c38e132 | 2015-03-01 17:32:33 +0800 | [diff] [blame] | 499 | &vopb { |
| 500 | status = "okay"; |
| 501 | }; |
| 502 | |
| 503 | &vopb_mmu { |
| 504 | status = "okay"; |
| 505 | }; |
| 506 | |
| 507 | &vopl { |
| 508 | status = "okay"; |
| 509 | }; |
| 510 | |
| 511 | &vopl_mmu { |
| 512 | status = "okay"; |
| 513 | }; |
| 514 | |
| 515 | &uart0 { |
| 516 | status = "okay"; |
| 517 | }; |
| 518 | |
| 519 | &uart1 { |
| 520 | status = "okay"; |
| 521 | }; |
| 522 | |
| 523 | &uart2 { |
| 524 | status = "okay"; |
| 525 | }; |
| 526 | |
| 527 | &uart3 { |
| 528 | status = "okay"; |
| 529 | }; |
| 530 | |
| 531 | &uart4 { |
| 532 | status = "okay"; |
| 533 | }; |
| 534 | |
| 535 | &usbphy { |
| 536 | status = "okay"; |
| 537 | }; |
Andy Yan | 5eb3fcf | 2016-09-04 16:33:10 +0800 | [diff] [blame] | 538 | |
| 539 | &usb_otg { |
| 540 | status = "okay"; |
| 541 | }; |