Heiko Stuebner | 6ce0562 | 2014-07-15 20:09:44 +0200 | [diff] [blame] | 1 | /* |
Heiko Stuebner | cdcc8b6 | 2015-03-06 19:04:06 +0100 | [diff] [blame] | 2 | * This file is dual-licensed: you can use it either under the terms |
| 3 | * of the GPL or the X11 license, at your option. Note that this dual |
| 4 | * licensing only applies to this file, and not this project as a |
| 5 | * whole. |
Heiko Stuebner | 6ce0562 | 2014-07-15 20:09:44 +0200 | [diff] [blame] | 6 | * |
Heiko Stuebner | cdcc8b6 | 2015-03-06 19:04:06 +0100 | [diff] [blame] | 7 | * a) This file is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; either version 2 of the |
| 10 | * License, or (at your option) any later version. |
| 11 | * |
| 12 | * This file is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * Or, alternatively, |
| 18 | * |
| 19 | * b) Permission is hereby granted, free of charge, to any person |
| 20 | * obtaining a copy of this software and associated documentation |
| 21 | * files (the "Software"), to deal in the Software without |
| 22 | * restriction, including without limitation the rights to use, |
| 23 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 24 | * sell copies of the Software, and to permit persons to whom the |
| 25 | * Software is furnished to do so, subject to the following |
| 26 | * conditions: |
| 27 | * |
| 28 | * The above copyright notice and this permission notice shall be |
| 29 | * included in all copies or substantial portions of the Software. |
| 30 | * |
| 31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 32 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 33 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 34 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 35 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 36 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 37 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 38 | * OTHER DEALINGS IN THE SOFTWARE. |
Heiko Stuebner | 6ce0562 | 2014-07-15 20:09:44 +0200 | [diff] [blame] | 39 | */ |
| 40 | |
| 41 | /dts-v1/; |
| 42 | #include "rk3288-evb.dtsi" |
| 43 | |
| 44 | / { |
| 45 | compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288"; |
Heiko Stuebner | 3adb132 | 2014-09-13 00:34:30 +0200 | [diff] [blame] | 46 | }; |
| 47 | |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 48 | &i2c0 { |
Doug Anderson | 0f4fc38 | 2014-09-10 21:30:15 -0700 | [diff] [blame] | 49 | clock-frequency = <400000>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 50 | |
| 51 | rk808: pmic@1b { |
| 52 | compatible = "rockchip,rk808"; |
| 53 | reg = <0x1b>; |
| 54 | interrupt-parent = <&gpio0>; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame] | 55 | interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 56 | pinctrl-names = "default"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 57 | pinctrl-0 = <&pmic_int &global_pwroff>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 58 | rockchip,system-power-controller; |
| 59 | wakeup-source; |
| 60 | #clock-cells = <1>; |
| 61 | clock-output-names = "xin32k", "rk808-clkout2"; |
| 62 | |
Heiko Stuebner | 91d5cb7 | 2015-03-07 23:18:12 +0100 | [diff] [blame] | 63 | vcc1-supply = <&vcc_sys>; |
| 64 | vcc2-supply = <&vcc_sys>; |
| 65 | vcc3-supply = <&vcc_sys>; |
| 66 | vcc4-supply = <&vcc_sys>; |
| 67 | vcc6-supply = <&vcc_sys>; |
| 68 | vcc7-supply = <&vcc_sys>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 69 | vcc8-supply = <&vcc_18>; |
| 70 | vcc9-supply = <&vcc_io>; |
| 71 | vcc10-supply = <&vcc_io>; |
Heiko Stuebner | 91d5cb7 | 2015-03-07 23:18:12 +0100 | [diff] [blame] | 72 | vcc11-supply = <&vcc_sys>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 73 | vcc12-supply = <&vcc_io>; |
| 74 | vddio-supply = <&vccio_pmu>; |
| 75 | |
| 76 | regulators { |
| 77 | vdd_cpu: DCDC_REG1 { |
| 78 | regulator-always-on; |
| 79 | regulator-boot-on; |
| 80 | regulator-min-microvolt = <750000>; |
Heiko Stuebner | 3adb132 | 2014-09-13 00:34:30 +0200 | [diff] [blame] | 81 | regulator-max-microvolt = <1350000>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 82 | regulator-name = "vdd_arm"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 83 | regulator-state-mem { |
| 84 | regulator-off-in-suspend; |
| 85 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 86 | }; |
| 87 | |
| 88 | vdd_gpu: DCDC_REG2 { |
| 89 | regulator-always-on; |
| 90 | regulator-boot-on; |
| 91 | regulator-min-microvolt = <850000>; |
| 92 | regulator-max-microvolt = <1250000>; |
| 93 | regulator-name = "vdd_gpu"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 94 | regulator-state-mem { |
| 95 | regulator-on-in-suspend; |
| 96 | regulator-suspend-microvolt = <1000000>; |
| 97 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 98 | }; |
| 99 | |
| 100 | vcc_ddr: DCDC_REG3 { |
| 101 | regulator-always-on; |
| 102 | regulator-boot-on; |
| 103 | regulator-name = "vcc_ddr"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 104 | regulator-state-mem { |
| 105 | regulator-on-in-suspend; |
| 106 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 107 | }; |
| 108 | |
| 109 | vcc_io: DCDC_REG4 { |
| 110 | regulator-always-on; |
| 111 | regulator-boot-on; |
| 112 | regulator-min-microvolt = <3300000>; |
| 113 | regulator-max-microvolt = <3300000>; |
| 114 | regulator-name = "vcc_io"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 115 | regulator-state-mem { |
| 116 | regulator-on-in-suspend; |
| 117 | regulator-suspend-microvolt = <3300000>; |
| 118 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 119 | }; |
| 120 | |
| 121 | vccio_pmu: LDO_REG1 { |
| 122 | regulator-always-on; |
| 123 | regulator-boot-on; |
| 124 | regulator-min-microvolt = <3300000>; |
| 125 | regulator-max-microvolt = <3300000>; |
| 126 | regulator-name = "vccio_pmu"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 127 | regulator-state-mem { |
| 128 | regulator-on-in-suspend; |
| 129 | regulator-suspend-microvolt = <3300000>; |
| 130 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 131 | }; |
| 132 | |
| 133 | vcc_tp: LDO_REG2 { |
| 134 | regulator-always-on; |
| 135 | regulator-boot-on; |
| 136 | regulator-min-microvolt = <3300000>; |
| 137 | regulator-max-microvolt = <3300000>; |
| 138 | regulator-name = "vcc_tp"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 139 | regulator-state-mem { |
| 140 | regulator-off-in-suspend; |
| 141 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 142 | }; |
| 143 | |
| 144 | vdd_10: LDO_REG3 { |
| 145 | regulator-always-on; |
| 146 | regulator-boot-on; |
| 147 | regulator-min-microvolt = <1000000>; |
| 148 | regulator-max-microvolt = <1000000>; |
| 149 | regulator-name = "vdd_10"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 150 | regulator-state-mem { |
| 151 | regulator-on-in-suspend; |
| 152 | regulator-suspend-microvolt = <1000000>; |
| 153 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 154 | }; |
| 155 | |
| 156 | vcc18_lcd: LDO_REG4 { |
| 157 | regulator-always-on; |
| 158 | regulator-boot-on; |
| 159 | regulator-min-microvolt = <1800000>; |
| 160 | regulator-max-microvolt = <1800000>; |
| 161 | regulator-name = "vcc18_lcd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 162 | regulator-state-mem { |
| 163 | regulator-on-in-suspend; |
| 164 | regulator-suspend-microvolt = <1800000>; |
| 165 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 166 | }; |
| 167 | |
| 168 | vccio_sd: LDO_REG5 { |
| 169 | regulator-always-on; |
| 170 | regulator-boot-on; |
| 171 | regulator-min-microvolt = <1800000>; |
| 172 | regulator-max-microvolt = <3300000>; |
| 173 | regulator-name = "vccio_sd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 174 | regulator-state-mem { |
| 175 | regulator-on-in-suspend; |
| 176 | regulator-suspend-microvolt = <3300000>; |
| 177 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | vdd10_lcd: LDO_REG6 { |
| 181 | regulator-always-on; |
| 182 | regulator-boot-on; |
| 183 | regulator-min-microvolt = <1000000>; |
| 184 | regulator-max-microvolt = <1000000>; |
| 185 | regulator-name = "vdd10_lcd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 186 | regulator-state-mem { |
| 187 | regulator-on-in-suspend; |
| 188 | regulator-suspend-microvolt = <1000000>; |
| 189 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | vcc_18: LDO_REG7 { |
| 193 | regulator-always-on; |
| 194 | regulator-boot-on; |
| 195 | regulator-min-microvolt = <1800000>; |
| 196 | regulator-max-microvolt = <1800000>; |
| 197 | regulator-name = "vcc_18"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 198 | regulator-state-mem { |
| 199 | regulator-on-in-suspend; |
| 200 | regulator-suspend-microvolt = <1800000>; |
| 201 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 202 | }; |
| 203 | |
| 204 | vcca_codec: LDO_REG8 { |
| 205 | regulator-always-on; |
| 206 | regulator-boot-on; |
| 207 | regulator-min-microvolt = <3300000>; |
| 208 | regulator-max-microvolt = <3300000>; |
| 209 | regulator-name = "vcca_codec"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 210 | regulator-state-mem { |
| 211 | regulator-on-in-suspend; |
| 212 | regulator-suspend-microvolt = <3300000>; |
| 213 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 214 | }; |
| 215 | |
| 216 | vcc_wl: SWITCH_REG1 { |
| 217 | regulator-always-on; |
| 218 | regulator-boot-on; |
| 219 | regulator-name = "vcc_wl"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 220 | regulator-state-mem { |
| 221 | regulator-on-in-suspend; |
| 222 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 223 | }; |
| 224 | |
| 225 | vcc_lcd: SWITCH_REG2 { |
| 226 | regulator-always-on; |
| 227 | regulator-boot-on; |
| 228 | regulator-name = "vcc_lcd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame] | 229 | regulator-state-mem { |
| 230 | regulator-on-in-suspend; |
| 231 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 232 | }; |
| 233 | }; |
| 234 | }; |
| 235 | }; |
Yakir Yang | f9fa05b | 2016-06-28 12:51:24 +0800 | [diff] [blame] | 236 | |
| 237 | &panel { |
| 238 | power-supply = <&vcc_lcd>; |
| 239 | }; |