Heiko Stuebner | 6ce0562 | 2014-07-15 20:09:44 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify |
| 3 | * it under the terms of the GNU General Public License as published by |
| 4 | * the Free Software Foundation; either version 2 of the License, or |
| 5 | * (at your option) any later version. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
| 14 | #include "rk3288-evb.dtsi" |
| 15 | |
| 16 | / { |
| 17 | compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288"; |
| 18 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 19 | |
Heiko Stuebner | 3adb132 | 2014-09-13 00:34:30 +0200 | [diff] [blame] | 20 | &cpu0 { |
| 21 | cpu0-supply = <&vdd_cpu>; |
| 22 | }; |
| 23 | |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 24 | &i2c0 { |
Doug Anderson | 0f4fc38 | 2014-09-10 21:30:15 -0700 | [diff] [blame] | 25 | clock-frequency = <400000>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 26 | status = "okay"; |
| 27 | |
| 28 | rk808: pmic@1b { |
| 29 | compatible = "rockchip,rk808"; |
| 30 | reg = <0x1b>; |
| 31 | interrupt-parent = <&gpio0>; |
| 32 | interrupts = <4 IRQ_TYPE_LEVEL_LOW>; |
| 33 | pinctrl-names = "default"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 34 | pinctrl-0 = <&pmic_int &global_pwroff>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 35 | rockchip,system-power-controller; |
| 36 | wakeup-source; |
| 37 | #clock-cells = <1>; |
| 38 | clock-output-names = "xin32k", "rk808-clkout2"; |
| 39 | |
| 40 | vcc8-supply = <&vcc_18>; |
| 41 | vcc9-supply = <&vcc_io>; |
| 42 | vcc10-supply = <&vcc_io>; |
| 43 | vcc12-supply = <&vcc_io>; |
| 44 | vddio-supply = <&vccio_pmu>; |
| 45 | |
| 46 | regulators { |
| 47 | vdd_cpu: DCDC_REG1 { |
| 48 | regulator-always-on; |
| 49 | regulator-boot-on; |
| 50 | regulator-min-microvolt = <750000>; |
Heiko Stuebner | 3adb132 | 2014-09-13 00:34:30 +0200 | [diff] [blame] | 51 | regulator-max-microvolt = <1350000>; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 52 | regulator-name = "vdd_arm"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 53 | regulator-state-mem { |
| 54 | regulator-off-in-suspend; |
| 55 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | vdd_gpu: DCDC_REG2 { |
| 59 | regulator-always-on; |
| 60 | regulator-boot-on; |
| 61 | regulator-min-microvolt = <850000>; |
| 62 | regulator-max-microvolt = <1250000>; |
| 63 | regulator-name = "vdd_gpu"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 64 | regulator-state-mem { |
| 65 | regulator-on-in-suspend; |
| 66 | regulator-suspend-microvolt = <1000000>; |
| 67 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | vcc_ddr: DCDC_REG3 { |
| 71 | regulator-always-on; |
| 72 | regulator-boot-on; |
| 73 | regulator-name = "vcc_ddr"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 74 | regulator-state-mem { |
| 75 | regulator-on-in-suspend; |
| 76 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | vcc_io: DCDC_REG4 { |
| 80 | regulator-always-on; |
| 81 | regulator-boot-on; |
| 82 | regulator-min-microvolt = <3300000>; |
| 83 | regulator-max-microvolt = <3300000>; |
| 84 | regulator-name = "vcc_io"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 85 | regulator-state-mem { |
| 86 | regulator-on-in-suspend; |
| 87 | regulator-suspend-microvolt = <3300000>; |
| 88 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 89 | }; |
| 90 | |
| 91 | vccio_pmu: LDO_REG1 { |
| 92 | regulator-always-on; |
| 93 | regulator-boot-on; |
| 94 | regulator-min-microvolt = <3300000>; |
| 95 | regulator-max-microvolt = <3300000>; |
| 96 | regulator-name = "vccio_pmu"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 97 | regulator-state-mem { |
| 98 | regulator-on-in-suspend; |
| 99 | regulator-suspend-microvolt = <3300000>; |
| 100 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | vcc_tp: LDO_REG2 { |
| 104 | regulator-always-on; |
| 105 | regulator-boot-on; |
| 106 | regulator-min-microvolt = <3300000>; |
| 107 | regulator-max-microvolt = <3300000>; |
| 108 | regulator-name = "vcc_tp"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 109 | regulator-state-mem { |
| 110 | regulator-off-in-suspend; |
| 111 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 112 | }; |
| 113 | |
| 114 | vdd_10: LDO_REG3 { |
| 115 | regulator-always-on; |
| 116 | regulator-boot-on; |
| 117 | regulator-min-microvolt = <1000000>; |
| 118 | regulator-max-microvolt = <1000000>; |
| 119 | regulator-name = "vdd_10"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 120 | regulator-state-mem { |
| 121 | regulator-on-in-suspend; |
| 122 | regulator-suspend-microvolt = <1000000>; |
| 123 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 124 | }; |
| 125 | |
| 126 | vcc18_lcd: LDO_REG4 { |
| 127 | regulator-always-on; |
| 128 | regulator-boot-on; |
| 129 | regulator-min-microvolt = <1800000>; |
| 130 | regulator-max-microvolt = <1800000>; |
| 131 | regulator-name = "vcc18_lcd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 132 | regulator-state-mem { |
| 133 | regulator-on-in-suspend; |
| 134 | regulator-suspend-microvolt = <1800000>; |
| 135 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 136 | }; |
| 137 | |
| 138 | vccio_sd: LDO_REG5 { |
| 139 | regulator-always-on; |
| 140 | regulator-boot-on; |
| 141 | regulator-min-microvolt = <1800000>; |
| 142 | regulator-max-microvolt = <3300000>; |
| 143 | regulator-name = "vccio_sd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 144 | regulator-state-mem { |
| 145 | regulator-on-in-suspend; |
| 146 | regulator-suspend-microvolt = <3300000>; |
| 147 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 148 | }; |
| 149 | |
| 150 | vdd10_lcd: LDO_REG6 { |
| 151 | regulator-always-on; |
| 152 | regulator-boot-on; |
| 153 | regulator-min-microvolt = <1000000>; |
| 154 | regulator-max-microvolt = <1000000>; |
| 155 | regulator-name = "vdd10_lcd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 156 | regulator-state-mem { |
| 157 | regulator-on-in-suspend; |
| 158 | regulator-suspend-microvolt = <1000000>; |
| 159 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 160 | }; |
| 161 | |
| 162 | vcc_18: LDO_REG7 { |
| 163 | regulator-always-on; |
| 164 | regulator-boot-on; |
| 165 | regulator-min-microvolt = <1800000>; |
| 166 | regulator-max-microvolt = <1800000>; |
| 167 | regulator-name = "vcc_18"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 168 | regulator-state-mem { |
| 169 | regulator-on-in-suspend; |
| 170 | regulator-suspend-microvolt = <1800000>; |
| 171 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 172 | }; |
| 173 | |
| 174 | vcca_codec: LDO_REG8 { |
| 175 | regulator-always-on; |
| 176 | regulator-boot-on; |
| 177 | regulator-min-microvolt = <3300000>; |
| 178 | regulator-max-microvolt = <3300000>; |
| 179 | regulator-name = "vcca_codec"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 180 | regulator-state-mem { |
| 181 | regulator-on-in-suspend; |
| 182 | regulator-suspend-microvolt = <3300000>; |
| 183 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 184 | }; |
| 185 | |
| 186 | vcc_wl: SWITCH_REG1 { |
| 187 | regulator-always-on; |
| 188 | regulator-boot-on; |
| 189 | regulator-name = "vcc_wl"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 190 | regulator-state-mem { |
| 191 | regulator-on-in-suspend; |
| 192 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | vcc_lcd: SWITCH_REG2 { |
| 196 | regulator-always-on; |
| 197 | regulator-boot-on; |
| 198 | regulator-name = "vcc_lcd"; |
Chris Zhong | 5963e10 | 2014-12-01 16:52:20 +0800 | [diff] [blame^] | 199 | regulator-state-mem { |
| 200 | regulator-on-in-suspend; |
| 201 | }; |
Doug Anderson | 60c2078 | 2014-08-26 10:28:43 -0700 | [diff] [blame] | 202 | }; |
| 203 | }; |
| 204 | }; |
| 205 | }; |