1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) !! 1 /* 2 // Copyright (c) 2016 ARM Ltd. !! 2 * Copyright (c) 2016 ARM Ltd. >> 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 library 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 library 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 */ 3 42 4 /dts-v1/; 43 /dts-v1/; 5 44 6 #include "sun50i-a64.dtsi" 45 #include "sun50i-a64.dtsi" 7 #include "sun50i-a64-cpu-opp.dtsi" << 8 46 9 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/gpio/gpio.h> 10 48 11 / { 49 / { 12 model = "Pine64 PINE A64"; !! 50 model = "Pine64"; 13 compatible = "pine64,pine64", "allwinn 51 compatible = "pine64,pine64", "allwinner,sun50i-a64"; 14 52 15 aliases { 53 aliases { 16 ethernet0 = &emac; 54 ethernet0 = &emac; 17 serial0 = &uart0; 55 serial0 = &uart0; 18 serial1 = &uart1; 56 serial1 = &uart1; 19 serial2 = &uart2; 57 serial2 = &uart2; 20 serial3 = &uart3; 58 serial3 = &uart3; 21 serial4 = &uart4; 59 serial4 = &uart4; 22 }; 60 }; 23 61 24 chosen { 62 chosen { 25 stdout-path = "serial0:115200n 63 stdout-path = "serial0:115200n8"; 26 }; 64 }; 27 65 28 hdmi-connector { 66 hdmi-connector { 29 compatible = "hdmi-connector"; 67 compatible = "hdmi-connector"; 30 type = "a"; 68 type = "a"; 31 69 32 port { 70 port { 33 hdmi_con_in: endpoint 71 hdmi_con_in: endpoint { 34 remote-endpoin 72 remote-endpoint = <&hdmi_out_con>; 35 }; 73 }; 36 }; 74 }; 37 }; 75 }; 38 }; 76 }; 39 77 40 &codec { 78 &codec { 41 status = "okay"; 79 status = "okay"; 42 }; 80 }; 43 81 44 &codec_analog { 82 &codec_analog { 45 cpvdd-supply = <®_eldo1>; 83 cpvdd-supply = <®_eldo1>; 46 status = "okay"; 84 status = "okay"; 47 }; 85 }; 48 86 49 &cpu0 { << 50 cpu-supply = <®_dcdc2>; << 51 }; << 52 << 53 &cpu1 { << 54 cpu-supply = <®_dcdc2>; << 55 }; << 56 << 57 &cpu2 { << 58 cpu-supply = <®_dcdc2>; << 59 }; << 60 << 61 &cpu3 { << 62 cpu-supply = <®_dcdc2>; << 63 }; << 64 << 65 &dai { 87 &dai { 66 status = "okay"; 88 status = "okay"; 67 }; 89 }; 68 90 69 &de { 91 &de { 70 status = "okay"; 92 status = "okay"; 71 }; 93 }; 72 94 73 &ehci0 { 95 &ehci0 { 74 status = "okay"; 96 status = "okay"; 75 }; 97 }; 76 98 77 &ehci1 { 99 &ehci1 { 78 status = "okay"; 100 status = "okay"; 79 }; 101 }; 80 102 81 &emac { 103 &emac { 82 pinctrl-names = "default"; 104 pinctrl-names = "default"; 83 pinctrl-0 = <&rmii_pins>; 105 pinctrl-0 = <&rmii_pins>; 84 phy-mode = "rmii"; 106 phy-mode = "rmii"; 85 phy-handle = <&ext_rmii_phy1>; 107 phy-handle = <&ext_rmii_phy1>; 86 phy-supply = <®_dc1sw>; 108 phy-supply = <®_dc1sw>; 87 status = "okay"; 109 status = "okay"; 88 110 89 }; 111 }; 90 112 91 &hdmi { 113 &hdmi { 92 hvcc-supply = <®_dldo1>; 114 hvcc-supply = <®_dldo1>; 93 status = "okay"; 115 status = "okay"; 94 }; 116 }; 95 117 96 &hdmi_out { 118 &hdmi_out { 97 hdmi_out_con: endpoint { 119 hdmi_out_con: endpoint { 98 remote-endpoint = <&hdmi_con_i 120 remote-endpoint = <&hdmi_con_in>; 99 }; 121 }; 100 }; 122 }; 101 123 102 &i2c1 { 124 &i2c1 { 103 status = "okay"; 125 status = "okay"; 104 }; 126 }; 105 127 106 &i2c1_pins { 128 &i2c1_pins { 107 bias-pull-up; 129 bias-pull-up; 108 }; 130 }; 109 131 110 &mdio { 132 &mdio { 111 ext_rmii_phy1: ethernet-phy@1 { 133 ext_rmii_phy1: ethernet-phy@1 { 112 compatible = "ethernet-phy-iee 134 compatible = "ethernet-phy-ieee802.3-c22"; 113 reg = <1>; 135 reg = <1>; 114 }; 136 }; 115 }; 137 }; 116 138 117 &mmc0 { 139 &mmc0 { 118 pinctrl-names = "default"; 140 pinctrl-names = "default"; 119 pinctrl-0 = <&mmc0_pins>; 141 pinctrl-0 = <&mmc0_pins>; 120 vmmc-supply = <®_dcdc1>; 142 vmmc-supply = <®_dcdc1>; 121 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 143 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 122 disable-wp; 144 disable-wp; 123 bus-width = <4>; 145 bus-width = <4>; 124 status = "okay"; 146 status = "okay"; 125 }; 147 }; 126 148 127 &ohci0 { 149 &ohci0 { 128 status = "okay"; 150 status = "okay"; 129 }; 151 }; 130 152 131 &ohci1 { 153 &ohci1 { 132 status = "okay"; 154 status = "okay"; 133 }; 155 }; 134 156 135 &r_rsb { 157 &r_rsb { 136 status = "okay"; 158 status = "okay"; 137 159 138 axp803: pmic@3a3 { 160 axp803: pmic@3a3 { 139 compatible = "x-powers,axp803" 161 compatible = "x-powers,axp803"; 140 reg = <0x3a3>; 162 reg = <0x3a3>; 141 interrupt-parent = <&r_intc>; 163 interrupt-parent = <&r_intc>; 142 interrupts = <GIC_SPI 32 IRQ_T !! 164 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 143 }; 165 }; 144 }; 166 }; 145 167 146 #include "axp803.dtsi" 168 #include "axp803.dtsi" 147 169 148 &ac_power_supply { 170 &ac_power_supply { 149 status = "okay"; 171 status = "okay"; 150 }; 172 }; 151 173 152 &battery_power_supply { 174 &battery_power_supply { 153 status = "okay"; 175 status = "okay"; 154 }; 176 }; 155 177 156 ®_aldo2 { 178 ®_aldo2 { 157 regulator-always-on; 179 regulator-always-on; 158 regulator-min-microvolt = <1800000>; 180 regulator-min-microvolt = <1800000>; 159 regulator-max-microvolt = <3300000>; 181 regulator-max-microvolt = <3300000>; 160 regulator-name = "vcc-pl"; 182 regulator-name = "vcc-pl"; 161 }; 183 }; 162 184 163 ®_aldo3 { 185 ®_aldo3 { 164 regulator-always-on; 186 regulator-always-on; 165 regulator-min-microvolt = <3000000>; 187 regulator-min-microvolt = <3000000>; 166 regulator-max-microvolt = <3000000>; 188 regulator-max-microvolt = <3000000>; 167 regulator-name = "vcc-pll-avcc"; 189 regulator-name = "vcc-pll-avcc"; 168 }; 190 }; 169 191 170 ®_dc1sw { 192 ®_dc1sw { 171 regulator-name = "vcc-phy"; 193 regulator-name = "vcc-phy"; 172 }; 194 }; 173 195 174 ®_dcdc1 { 196 ®_dcdc1 { 175 regulator-always-on; 197 regulator-always-on; 176 regulator-min-microvolt = <3300000>; 198 regulator-min-microvolt = <3300000>; 177 regulator-max-microvolt = <3300000>; 199 regulator-max-microvolt = <3300000>; 178 regulator-name = "vcc-3v3"; 200 regulator-name = "vcc-3v3"; 179 }; 201 }; 180 202 181 ®_dcdc2 { 203 ®_dcdc2 { 182 regulator-always-on; 204 regulator-always-on; 183 regulator-min-microvolt = <1040000>; 205 regulator-min-microvolt = <1040000>; 184 regulator-max-microvolt = <1300000>; 206 regulator-max-microvolt = <1300000>; 185 regulator-name = "vdd-cpux"; 207 regulator-name = "vdd-cpux"; 186 }; 208 }; 187 209 188 /* DCDC3 is polyphased with DCDC2 */ 210 /* DCDC3 is polyphased with DCDC2 */ 189 211 190 /* 212 /* 191 * The DRAM chips used by Pine64 boards are DD 213 * The DRAM chips used by Pine64 boards are DDR3L-compatible, so they can 192 * work at 1.35V with less power consumption. 214 * work at 1.35V with less power consumption. 193 * As AXP803 DCDC5 cannot reach 1.35V accurate 215 * As AXP803 DCDC5 cannot reach 1.35V accurately, use 1.36V instead. 194 */ 216 */ 195 ®_dcdc5 { 217 ®_dcdc5 { 196 regulator-always-on; 218 regulator-always-on; 197 regulator-min-microvolt = <1360000>; 219 regulator-min-microvolt = <1360000>; 198 regulator-max-microvolt = <1360000>; 220 regulator-max-microvolt = <1360000>; 199 regulator-name = "vcc-dram"; 221 regulator-name = "vcc-dram"; 200 }; 222 }; 201 223 202 ®_dcdc6 { 224 ®_dcdc6 { 203 regulator-always-on; 225 regulator-always-on; 204 regulator-min-microvolt = <1100000>; 226 regulator-min-microvolt = <1100000>; 205 regulator-max-microvolt = <1100000>; 227 regulator-max-microvolt = <1100000>; 206 regulator-name = "vdd-sys"; 228 regulator-name = "vdd-sys"; 207 }; 229 }; 208 230 209 ®_dldo1 { 231 ®_dldo1 { 210 regulator-min-microvolt = <3300000>; 232 regulator-min-microvolt = <3300000>; 211 regulator-max-microvolt = <3300000>; 233 regulator-max-microvolt = <3300000>; 212 regulator-name = "vcc-hdmi"; 234 regulator-name = "vcc-hdmi"; 213 }; 235 }; 214 236 215 ®_dldo2 { 237 ®_dldo2 { 216 regulator-min-microvolt = <3300000>; 238 regulator-min-microvolt = <3300000>; 217 regulator-max-microvolt = <3300000>; 239 regulator-max-microvolt = <3300000>; 218 regulator-name = "vcc-mipi"; 240 regulator-name = "vcc-mipi"; 219 }; 241 }; 220 242 221 ®_dldo4 { 243 ®_dldo4 { 222 regulator-min-microvolt = <3300000>; 244 regulator-min-microvolt = <3300000>; 223 regulator-max-microvolt = <3300000>; 245 regulator-max-microvolt = <3300000>; 224 regulator-name = "vcc-wifi"; 246 regulator-name = "vcc-wifi"; 225 }; 247 }; 226 248 227 ®_eldo1 { 249 ®_eldo1 { 228 regulator-min-microvolt = <1800000>; 250 regulator-min-microvolt = <1800000>; 229 regulator-max-microvolt = <1800000>; 251 regulator-max-microvolt = <1800000>; 230 regulator-name = "cpvdd"; 252 regulator-name = "cpvdd"; 231 }; 253 }; 232 254 233 ®_fldo1 { 255 ®_fldo1 { 234 regulator-min-microvolt = <1200000>; 256 regulator-min-microvolt = <1200000>; 235 regulator-max-microvolt = <1200000>; 257 regulator-max-microvolt = <1200000>; 236 regulator-name = "vcc-1v2-hsic"; 258 regulator-name = "vcc-1v2-hsic"; 237 }; 259 }; 238 260 239 /* 261 /* 240 * The A64 chip cannot work without this regul 262 * The A64 chip cannot work without this regulator off, although 241 * it seems to be only driving the AR100 core. 263 * it seems to be only driving the AR100 core. 242 * Maybe we don't still know well about CPUs d 264 * Maybe we don't still know well about CPUs domain. 243 */ 265 */ 244 ®_fldo2 { 266 ®_fldo2 { 245 regulator-always-on; 267 regulator-always-on; 246 regulator-min-microvolt = <1100000>; 268 regulator-min-microvolt = <1100000>; 247 regulator-max-microvolt = <1100000>; 269 regulator-max-microvolt = <1100000>; 248 regulator-name = "vdd-cpus"; 270 regulator-name = "vdd-cpus"; 249 }; 271 }; 250 272 251 ®_rtc_ldo { 273 ®_rtc_ldo { 252 regulator-name = "vcc-rtc"; 274 regulator-name = "vcc-rtc"; 253 }; 275 }; 254 276 255 &simplefb_hdmi { 277 &simplefb_hdmi { 256 vcc-hdmi-supply = <®_dldo1>; 278 vcc-hdmi-supply = <®_dldo1>; 257 }; 279 }; 258 280 259 &sound { 281 &sound { 260 simple-audio-card,aux-devs = <&codec_a 282 simple-audio-card,aux-devs = <&codec_analog>; 261 simple-audio-card,widgets = "Microphon 283 simple-audio-card,widgets = "Microphone", "Microphone Jack", 262 "Headphone 284 "Headphone", "Headphone Jack"; 263 simple-audio-card,routing = 285 simple-audio-card,routing = 264 "Left DAC", "DACL", !! 286 "Left DAC", "AIF1 Slot 0 Left", 265 "Right DAC", "DACR", !! 287 "Right DAC", "AIF1 Slot 0 Right", 266 "Headphone Jack", "HP" 288 "Headphone Jack", "HP", 267 "ADCL", "Left ADC", !! 289 "AIF1 Slot 0 Left ADC", "Left ADC", 268 "ADCR", "Right ADC", !! 290 "AIF1 Slot 0 Right ADC", "Right ADC", 269 "MIC2", "Microphone Ja 291 "MIC2", "Microphone Jack"; 270 status = "okay"; 292 status = "okay"; 271 }; 293 }; 272 294 273 /* On Euler connector */ 295 /* On Euler connector */ 274 &spdif { 296 &spdif { 275 status = "disabled"; 297 status = "disabled"; 276 }; 298 }; 277 299 278 /* On Exp and Euler connectors */ 300 /* On Exp and Euler connectors */ 279 &uart0 { 301 &uart0 { 280 pinctrl-names = "default"; 302 pinctrl-names = "default"; 281 pinctrl-0 = <&uart0_pb_pins>; 303 pinctrl-0 = <&uart0_pb_pins>; 282 status = "okay"; 304 status = "okay"; 283 }; 305 }; 284 306 285 /* On Wifi/BT connector, with RTS/CTS */ 307 /* On Wifi/BT connector, with RTS/CTS */ 286 &uart1 { 308 &uart1 { 287 pinctrl-names = "default"; 309 pinctrl-names = "default"; 288 pinctrl-0 = <&uart1_pins>, <&uart1_rts 310 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; 289 status = "disabled"; 311 status = "disabled"; 290 }; 312 }; 291 313 292 /* On Pi-2 connector */ 314 /* On Pi-2 connector */ 293 &uart2 { 315 &uart2 { 294 pinctrl-names = "default"; 316 pinctrl-names = "default"; 295 pinctrl-0 = <&uart2_pins>; 317 pinctrl-0 = <&uart2_pins>; 296 status = "disabled"; 318 status = "disabled"; 297 }; 319 }; 298 320 299 /* On Euler connector */ 321 /* On Euler connector */ 300 &uart3 { 322 &uart3 { 301 pinctrl-names = "default"; 323 pinctrl-names = "default"; 302 pinctrl-0 = <&uart3_pins>; 324 pinctrl-0 = <&uart3_pins>; 303 status = "disabled"; 325 status = "disabled"; 304 }; 326 }; 305 327 306 /* On Euler connector, RTS/CTS optional */ 328 /* On Euler connector, RTS/CTS optional */ 307 &uart4 { 329 &uart4 { 308 pinctrl-names = "default"; 330 pinctrl-names = "default"; 309 pinctrl-0 = <&uart4_pins>; 331 pinctrl-0 = <&uart4_pins>; 310 status = "disabled"; 332 status = "disabled"; 311 }; 333 }; 312 334 313 &usb_otg { 335 &usb_otg { 314 dr_mode = "host"; 336 dr_mode = "host"; 315 status = "okay"; 337 status = "okay"; 316 }; 338 }; 317 339 318 &usbphy { 340 &usbphy { 319 status = "okay"; 341 status = "okay"; 320 }; 342 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.