Vishnu Patekar | b9c3458 | 2016-01-06 21:11:54 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Vishnu Patekar |
| 3 | * Vishnu Patekar <vishnupatekar0510@gmail.com> |
| 4 | * |
| 5 | * This file is dual-licensed: you can use it either under the terms |
| 6 | * of the GPL or the X11 license, at your option. Note that this dual |
| 7 | * licensing only applies to this file, and not this project as a |
| 8 | * whole. |
| 9 | * |
| 10 | * a) This file is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU General Public License as |
| 12 | * published by the Free Software Foundation; either version 2 of the |
| 13 | * License, or (at your option) any later version. |
| 14 | * |
| 15 | * This file is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * Or, alternatively, |
| 21 | * |
| 22 | * b) Permission is hereby granted, free of charge, to any person |
| 23 | * obtaining a copy of this software and associated documentation |
| 24 | * files (the "Software"), to deal in the Software without |
| 25 | * restriction, including without limitation the rights to use, |
| 26 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 27 | * sell copies of the Software, and to permit persons to whom the |
| 28 | * Software is furnished to do so, subject to the following |
| 29 | * conditions: |
| 30 | * |
| 31 | * The above copyright notice and this permission notice shall be |
| 32 | * included in all copies or substantial portions of the Software. |
| 33 | * |
| 34 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 35 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 36 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 37 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 38 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 39 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 40 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 41 | * OTHER DEALINGS IN THE SOFTWARE. |
| 42 | */ |
| 43 | |
| 44 | /dts-v1/; |
| 45 | #include "sun8i-a83t.dtsi" |
Chen-Yu Tsai | f9573c0 | 2017-10-18 16:31:35 +0800 | [diff] [blame] | 46 | |
| 47 | #include <dt-bindings/gpio/gpio.h> |
Vishnu Patekar | b9c3458 | 2016-01-06 21:11:54 +0800 | [diff] [blame] | 48 | |
| 49 | / { |
| 50 | model = "Allwinner A83T H8Homlet Proto Dev Board v2.0"; |
| 51 | compatible = "allwinner,h8homlet-v2", "allwinner,sun8i-a83t"; |
| 52 | |
| 53 | aliases { |
| 54 | serial0 = &uart0; |
| 55 | }; |
| 56 | |
| 57 | chosen { |
| 58 | stdout-path = "serial0:115200n8"; |
| 59 | }; |
Chen-Yu Tsai | f9573c0 | 2017-10-18 16:31:35 +0800 | [diff] [blame] | 60 | |
| 61 | reg_usb0_vbus: reg-usb0-vbus { |
| 62 | compatible = "regulator-fixed"; |
| 63 | regulator-name = "usb0-vbus"; |
| 64 | regulator-min-microvolt = <5000000>; |
| 65 | regulator-max-microvolt = <5000000>; |
| 66 | regulator-boot-on; |
| 67 | enable-active-high; |
| 68 | gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ |
| 69 | }; |
| 70 | |
| 71 | reg_usb1_vbus: reg-usb1-vbus { |
| 72 | compatible = "regulator-fixed"; |
| 73 | regulator-name = "usb1-vbus"; |
| 74 | regulator-min-microvolt = <5000000>; |
| 75 | regulator-max-microvolt = <5000000>; |
| 76 | regulator-boot-on; |
| 77 | enable-active-high; |
| 78 | gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ |
| 79 | }; |
Vishnu Patekar | b9c3458 | 2016-01-06 21:11:54 +0800 | [diff] [blame] | 80 | }; |
| 81 | |
Chen-Yu Tsai | 75ab939 | 2018-06-27 10:27:09 +0800 | [diff] [blame] | 82 | &cpu0 { |
| 83 | cpu-supply = <®_dcdc2>; |
| 84 | }; |
| 85 | |
| 86 | &cpu100 { |
| 87 | cpu-supply = <®_dcdc3>; |
| 88 | }; |
| 89 | |
Chen-Yu Tsai | 75ce73f | 2017-08-03 16:14:11 +0800 | [diff] [blame] | 90 | &ehci0 { |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | |
Chen-Yu Tsai | 581ae76 | 2017-07-24 21:59:05 +0800 | [diff] [blame] | 94 | &mmc0 { |
| 95 | pinctrl-names = "default"; |
| 96 | pinctrl-0 = <&mmc0_pins>; |
Chen-Yu Tsai | f9573c0 | 2017-10-18 16:31:35 +0800 | [diff] [blame] | 97 | vmmc-supply = <®_dcdc1>; |
Tuomas Tynkkynen | 45e01f4 | 2017-12-22 22:57:37 +0200 | [diff] [blame] | 98 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ |
Chen-Yu Tsai | 581ae76 | 2017-07-24 21:59:05 +0800 | [diff] [blame] | 99 | bus-width = <4>; |
Chen-Yu Tsai | 581ae76 | 2017-07-24 21:59:05 +0800 | [diff] [blame] | 100 | status = "okay"; |
| 101 | }; |
| 102 | |
| 103 | &mmc2 { |
| 104 | pinctrl-names = "default"; |
| 105 | pinctrl-0 = <&mmc2_8bit_emmc_pins>; |
Chen-Yu Tsai | f9573c0 | 2017-10-18 16:31:35 +0800 | [diff] [blame] | 106 | vmmc-supply = <®_dcdc1>; |
| 107 | vqmmc-supply = <®_dcdc1>; |
Chen-Yu Tsai | 581ae76 | 2017-07-24 21:59:05 +0800 | [diff] [blame] | 108 | bus-width = <8>; |
| 109 | non-removable; |
| 110 | cap-mmc-hw-reset; |
| 111 | status = "okay"; |
| 112 | }; |
| 113 | |
Chen-Yu Tsai | 75ce73f | 2017-08-03 16:14:11 +0800 | [diff] [blame] | 114 | &ohci0 { |
| 115 | status = "okay"; |
| 116 | }; |
| 117 | |
Chen-Yu Tsai | 2906793 | 2017-07-20 16:01:02 +0800 | [diff] [blame] | 118 | &r_rsb { |
| 119 | status = "okay"; |
| 120 | |
| 121 | axp81x: pmic@3a3 { |
| 122 | compatible = "x-powers,axp818", "x-powers,axp813"; |
| 123 | reg = <0x3a3>; |
| 124 | interrupt-parent = <&r_intc>; |
| 125 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
Chen-Yu Tsai | f9573c0 | 2017-10-18 16:31:35 +0800 | [diff] [blame] | 126 | eldoin-supply = <®_dcdc1>; |
| 127 | swin-supply = <®_dcdc1>; |
Chen-Yu Tsai | 2906793 | 2017-07-20 16:01:02 +0800 | [diff] [blame] | 128 | }; |
Chen-Yu Tsai | 5bcfff2 | 2017-07-20 16:02:25 +0800 | [diff] [blame] | 129 | |
| 130 | ac100: codec@e89 { |
| 131 | compatible = "x-powers,ac100"; |
| 132 | reg = <0xe89>; |
| 133 | |
| 134 | ac100_codec: codec { |
| 135 | compatible = "x-powers,ac100-codec"; |
| 136 | interrupt-parent = <&r_pio>; |
| 137 | interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */ |
| 138 | #clock-cells = <0>; |
| 139 | clock-output-names = "4M_adda"; |
| 140 | }; |
| 141 | |
| 142 | ac100_rtc: rtc { |
| 143 | compatible = "x-powers,ac100-rtc"; |
| 144 | interrupt-parent = <&r_intc>; |
| 145 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 146 | clocks = <&ac100_codec>; |
| 147 | #clock-cells = <1>; |
| 148 | clock-output-names = "cko1_rtc", |
| 149 | "cko2_rtc", |
| 150 | "cko3_rtc"; |
| 151 | }; |
| 152 | }; |
Chen-Yu Tsai | 2906793 | 2017-07-20 16:01:02 +0800 | [diff] [blame] | 153 | }; |
| 154 | |
Chen-Yu Tsai | f9573c0 | 2017-10-18 16:31:35 +0800 | [diff] [blame] | 155 | #include "axp81x.dtsi" |
| 156 | |
| 157 | ®_aldo1 { |
| 158 | regulator-always-on; |
| 159 | regulator-min-microvolt = <1800000>; |
| 160 | regulator-max-microvolt = <1800000>; |
| 161 | regulator-name = "vcc-1v8"; |
| 162 | }; |
| 163 | |
| 164 | ®_aldo2 { |
| 165 | regulator-always-on; |
| 166 | regulator-min-microvolt = <1800000>; |
| 167 | regulator-max-microvolt = <1800000>; |
| 168 | regulator-name = "dram-pll"; |
| 169 | }; |
| 170 | |
| 171 | ®_aldo3 { |
| 172 | regulator-always-on; |
| 173 | regulator-min-microvolt = <3000000>; |
| 174 | regulator-max-microvolt = <3000000>; |
| 175 | regulator-name = "avcc"; |
| 176 | }; |
| 177 | |
| 178 | ®_dcdc1 { |
| 179 | regulator-always-on; |
| 180 | regulator-min-microvolt = <3300000>; |
| 181 | regulator-max-microvolt = <3300000>; |
| 182 | regulator-name = "vcc-3v3"; |
| 183 | }; |
| 184 | |
| 185 | ®_dcdc2 { |
| 186 | regulator-always-on; |
| 187 | regulator-min-microvolt = <700000>; |
| 188 | regulator-max-microvolt = <1100000>; |
| 189 | regulator-name = "vdd-cpua"; |
| 190 | }; |
| 191 | |
| 192 | ®_dcdc3 { |
| 193 | regulator-always-on; |
| 194 | regulator-min-microvolt = <700000>; |
| 195 | regulator-max-microvolt = <1100000>; |
| 196 | regulator-name = "vdd-cpub"; |
| 197 | }; |
| 198 | |
| 199 | ®_dcdc4 { |
| 200 | regulator-min-microvolt = <700000>; |
| 201 | regulator-max-microvolt = <1100000>; |
| 202 | regulator-name = "vdd-gpu"; |
| 203 | }; |
| 204 | |
| 205 | ®_dcdc5 { |
| 206 | regulator-always-on; |
| 207 | regulator-min-microvolt = <1500000>; |
| 208 | regulator-max-microvolt = <1500000>; |
| 209 | regulator-name = "vcc-dram"; |
| 210 | }; |
| 211 | |
| 212 | ®_dcdc6 { |
| 213 | regulator-always-on; |
| 214 | regulator-min-microvolt = <900000>; |
| 215 | regulator-max-microvolt = <900000>; |
| 216 | regulator-name = "vdd-sys"; |
| 217 | }; |
| 218 | |
| 219 | ®_dldo2 { |
| 220 | regulator-min-microvolt = <3300000>; |
| 221 | regulator-max-microvolt = <3300000>; |
| 222 | regulator-name = "vcc-mipi"; |
| 223 | }; |
| 224 | |
| 225 | ®_dldo4 { |
| 226 | /* |
| 227 | * The PHY requires 20ms after all voltages are applied until core |
| 228 | * logic is ready and 30ms after the reset pin is de-asserted. |
| 229 | * Set a 100ms delay to account for PMIC ramp time and board traces. |
| 230 | */ |
| 231 | regulator-enable-ramp-delay = <100000>; |
| 232 | regulator-min-microvolt = <3300000>; |
| 233 | regulator-max-microvolt = <3300000>; |
| 234 | regulator-name = "vcc-ephy"; |
| 235 | }; |
| 236 | |
| 237 | ®_fldo1 { |
| 238 | regulator-min-microvolt = <1080000>; |
| 239 | regulator-max-microvolt = <1320000>; |
| 240 | regulator-name = "vdd12-hsic"; |
| 241 | }; |
| 242 | |
| 243 | ®_fldo2 { |
| 244 | /* |
| 245 | * Despite the embedded CPUs core not being used in any way, |
| 246 | * this must remain on or the system will hang. |
| 247 | */ |
| 248 | regulator-always-on; |
| 249 | regulator-min-microvolt = <700000>; |
| 250 | regulator-max-microvolt = <1100000>; |
| 251 | regulator-name = "vdd-cpus"; |
| 252 | }; |
| 253 | |
| 254 | ®_rtc_ldo { |
| 255 | regulator-name = "vcc-rtc"; |
| 256 | }; |
| 257 | |
| 258 | ®_sw { |
| 259 | regulator-name = "vcc-wifi"; |
| 260 | }; |
| 261 | |
Vishnu Patekar | b9c3458 | 2016-01-06 21:11:54 +0800 | [diff] [blame] | 262 | &uart0 { |
| 263 | pinctrl-names = "default"; |
Chen-Yu Tsai | e53bfb0 | 2017-04-18 12:22:05 +0800 | [diff] [blame] | 264 | pinctrl-0 = <&uart0_pb_pins>; |
Vishnu Patekar | b9c3458 | 2016-01-06 21:11:54 +0800 | [diff] [blame] | 265 | status = "okay"; |
| 266 | }; |
Chen-Yu Tsai | 75ce73f | 2017-08-03 16:14:11 +0800 | [diff] [blame] | 267 | |
| 268 | &usbphy { |
| 269 | usb0_vbus-supply = <®_usb0_vbus>; |
| 270 | usb1_vbus-supply = <®_usb1_vbus>; |
| 271 | status = "okay"; |
| 272 | }; |
| 273 | |
| 274 | &usb_otg { |
| 275 | dr_mode = "host"; |
| 276 | status = "okay"; |
| 277 | }; |