Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2016 Rockchip Electronics Co., Ltd |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | #include <dt-bindings/pwm/pwm.h> |
| 9 | #include "rk3399.dtsi" |
Kever Yang | a82426e | 2017-02-22 16:56:36 +0800 | [diff] [blame] | 10 | #include "rk3399-sdram-lpddr3-4GB-1600.dtsi" |
Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | model = "Rockchip RK3399 Evaluation Board"; |
| 14 | compatible = "rockchip,rk3399-evb", "rockchip,rk3399", |
| 15 | "google,rk3399evb-rev2"; |
| 16 | |
| 17 | chosen { |
| 18 | stdout-path = &uart2; |
| 19 | }; |
| 20 | |
| 21 | vdd_center: vdd-center { |
| 22 | compatible = "pwm-regulator"; |
| 23 | pwms = <&pwm3 0 25000 0>; |
| 24 | regulator-name = "vdd_center"; |
| 25 | regulator-min-microvolt = <800000>; |
| 26 | regulator-max-microvolt = <1400000>; |
Kever Yang | c553de9 | 2016-09-23 15:57:22 +0800 | [diff] [blame] | 27 | regulator-init-microvolt = <950000>; |
Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 28 | regulator-always-on; |
| 29 | regulator-boot-on; |
| 30 | status = "okay"; |
| 31 | }; |
| 32 | |
eric.gao@rock-chips.com | d3cf9eb | 2017-04-10 10:41:46 +0800 | [diff] [blame] | 33 | vccsys: vccsys { |
| 34 | compatible = "regulator-fixed"; |
| 35 | regulator-name = "vccsys"; |
| 36 | regulator-boot-on; |
| 37 | regulator-always-on; |
| 38 | }; |
| 39 | |
Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 40 | vcc3v3_sys: vcc3v3-sys { |
| 41 | compatible = "regulator-fixed"; |
| 42 | regulator-name = "vcc3v3_sys"; |
| 43 | regulator-always-on; |
| 44 | regulator-boot-on; |
| 45 | regulator-min-microvolt = <3300000>; |
| 46 | regulator-max-microvolt = <3300000>; |
| 47 | }; |
| 48 | |
| 49 | vcc_phy: vcc-phy-regulator { |
| 50 | compatible = "regulator-fixed"; |
| 51 | regulator-name = "vcc_phy"; |
| 52 | regulator-always-on; |
| 53 | regulator-boot-on; |
| 54 | }; |
Kever Yang | b850d92 | 2016-08-24 12:02:21 +0800 | [diff] [blame] | 55 | |
| 56 | vcc5v0_host: vcc5v0-host-en { |
| 57 | compatible = "regulator-fixed"; |
| 58 | regulator-name = "vcc5v0_host"; |
| 59 | gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; |
| 60 | }; |
eric.gao@rock-chips.com | d3cf9eb | 2017-04-10 10:41:46 +0800 | [diff] [blame] | 61 | |
Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 62 | }; |
| 63 | |
| 64 | &emmc_phy { |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
| 68 | &pwm0 { |
| 69 | status = "okay"; |
| 70 | }; |
| 71 | |
| 72 | &pwm2 { |
| 73 | status = "okay"; |
| 74 | }; |
| 75 | |
| 76 | &pwm3 { |
| 77 | status = "okay"; |
| 78 | }; |
| 79 | |
Kever Yang | da8ff82 | 2016-08-04 11:44:59 +0800 | [diff] [blame] | 80 | &sdmmc { |
Kever Yang | a82426e | 2017-02-22 16:56:36 +0800 | [diff] [blame] | 81 | bus-width = <4>; |
Kever Yang | da8ff82 | 2016-08-04 11:44:59 +0800 | [diff] [blame] | 82 | status = "okay"; |
| 83 | }; |
| 84 | |
Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 85 | &sdhci { |
| 86 | bus-width = <8>; |
| 87 | mmc-hs400-1_8v; |
| 88 | mmc-hs400-enhanced-strobe; |
| 89 | non-removable; |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
| 93 | &uart2 { |
| 94 | status = "okay"; |
| 95 | }; |
| 96 | |
| 97 | &usb_host0_ehci { |
| 98 | status = "okay"; |
| 99 | }; |
| 100 | |
| 101 | &usb_host0_ohci { |
| 102 | status = "okay"; |
| 103 | }; |
| 104 | |
MengDongyang | fa5e2d1 | 2016-08-24 12:02:20 +0800 | [diff] [blame] | 105 | &dwc3_typec0 { |
Philipp Tomsich | aad10a0 | 2017-03-29 21:19:25 +0200 | [diff] [blame] | 106 | rockchip,vbus-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>; |
MengDongyang | fa5e2d1 | 2016-08-24 12:02:20 +0800 | [diff] [blame] | 107 | status = "okay"; |
| 108 | }; |
| 109 | |
Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 110 | &usb_host1_ehci { |
| 111 | status = "okay"; |
| 112 | }; |
| 113 | |
| 114 | &usb_host1_ohci { |
| 115 | status = "okay"; |
| 116 | }; |
| 117 | |
MengDongyang | fa5e2d1 | 2016-08-24 12:02:20 +0800 | [diff] [blame] | 118 | &dwc3_typec1 { |
Philipp Tomsich | aad10a0 | 2017-03-29 21:19:25 +0200 | [diff] [blame] | 119 | rockchip,vbus-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>; |
MengDongyang | fa5e2d1 | 2016-08-24 12:02:20 +0800 | [diff] [blame] | 120 | status = "okay"; |
| 121 | }; |
| 122 | |
eric.gao@rock-chips.com | d3cf9eb | 2017-04-10 10:41:46 +0800 | [diff] [blame] | 123 | &i2c0 { |
| 124 | status = "okay"; |
| 125 | clock-frequency = <400000>; |
| 126 | i2c-scl-falling-time-ns = <50>; |
| 127 | i2c-scl-rising-time-ns = <100>; |
| 128 | u-boot,dm-pre-reloc; |
| 129 | |
| 130 | rk808: pmic@1b { |
| 131 | compatible = "rockchip,rk808"; |
| 132 | clock-output-names = "xin32k", "wifibt_32kin"; |
| 133 | interrupt-parent = <&gpio0>; |
| 134 | interrupts = <4 IRQ_TYPE_LEVEL_LOW>; |
| 135 | pinctrl-names = "default"; |
| 136 | pinctrl-0 = <&pmic_int_l>; |
| 137 | reg = <0x1b>; |
| 138 | rockchip,system-power-controller; |
| 139 | #clock-cells = <1>; |
| 140 | u-boot,dm-pre-reloc; |
| 141 | status = "okay"; |
| 142 | |
| 143 | vcc12-supply = <&vcc3v3_sys>; |
| 144 | regulators { |
| 145 | vcc33_lcd: SWITCH_REG2 { |
| 146 | regulator-always-on; |
| 147 | regulator-boot-on; |
| 148 | regulator-name = "vcc33_lcd"; |
| 149 | }; |
| 150 | }; |
| 151 | }; |
| 152 | }; |
| 153 | |
Kever Yang | 777c834 | 2016-07-19 21:16:58 +0800 | [diff] [blame] | 154 | &pinctrl { |
| 155 | pmic { |
| 156 | pmic_int_l: pmic-int-l { |
| 157 | rockchip,pins = |
| 158 | <1 21 RK_FUNC_GPIO &pcfg_pull_up>; |
| 159 | }; |
| 160 | |
| 161 | pmic_dvs2: pmic-dvs2 { |
| 162 | rockchip,pins = |
| 163 | <1 18 RK_FUNC_GPIO &pcfg_pull_down>; |
| 164 | }; |
| 165 | }; |
| 166 | }; |