1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2// Copyright (c) 2017 Icenowy Zheng <icenowy@aosc.xyz> 3// Based on sun50i-a64-pine64.dts, which is: 4// Copyright (c) 2016 ARM Ltd. 5 6/dts-v1/; 7 8#include "sun50i-a64-sopine.dtsi" 9 10/ { 11 model = "Pine64 SOPINE on Baseboard carrier board"; 12 compatible = "pine64,sopine-baseboard", "pine64,sopine", 13 "allwinner,sun50i-a64"; 14 15 aliases { 16 ethernet0 = &emac; 17 serial0 = &uart0; 18 serial1 = &uart1; 19 serial2 = &uart2; 20 serial3 = &uart3; 21 serial4 = &uart4; 22 }; 23 24 chosen { 25 stdout-path = "serial0:115200n8"; 26 }; 27 28 hdmi-connector { 29 compatible = "hdmi-connector"; 30 type = "a"; 31 32 port { 33 hdmi_con_in: endpoint { 34 remote-endpoint = <&hdmi_out_con>; 35 }; 36 }; 37 }; 38 39 reg_vcc1v8: vcc1v8 { 40 compatible = "regulator-fixed"; 41 regulator-name = "vcc1v8"; 42 regulator-min-microvolt = <1800000>; 43 regulator-max-microvolt = <1800000>; 44 }; 45}; 46 47&ac_power_supply { 48 status = "okay"; 49}; 50 51&battery_power_supply { 52 status = "okay"; 53}; 54 55&codec { 56 status = "okay"; 57}; 58 59&codec_analog { 60 status = "okay"; 61}; 62 63&dai { 64 status = "okay"; 65}; 66 67&de { 68 status = "okay"; 69}; 70 71&ehci0 { 72 status = "okay"; 73}; 74 75&ehci1 { 76 status = "okay"; 77}; 78 79&emac { 80 pinctrl-names = "default"; 81 pinctrl-0 = <&rgmii_pins>; 82 phy-mode = "rgmii-txid"; 83 phy-handle = <&ext_rgmii_phy>; 84 phy-supply = <®_dc1sw>; 85 status = "okay"; 86}; 87 88&hdmi { 89 hvcc-supply = <®_dldo1>; 90 status = "okay"; 91}; 92 93&hdmi_out { 94 hdmi_out_con: endpoint { 95 remote-endpoint = <&hdmi_con_in>; 96 }; 97}; 98 99&mdio { 100 ext_rgmii_phy: ethernet-phy@1 { 101 compatible = "ethernet-phy-ieee802.3-c22"; 102 reg = <1>; 103 }; 104}; 105 106/* On Wifi/BT connector */ 107&mmc1 { 108 pinctrl-names = "default"; 109 pinctrl-0 = <&mmc1_pins>; 110 vmmc-supply = <®_dldo4>; 111 vqmmc-supply = <®_eldo1>; 112 bus-width = <4>; 113 non-removable; 114 status = "disabled"; 115}; 116 117&mmc2 { 118 pinctrl-names = "default"; 119 pinctrl-0 = <&mmc2_pins>; 120 vmmc-supply = <®_dcdc1>; 121 vqmmc-supply = <®_vcc1v8>; 122 bus-width = <8>; 123 non-removable; 124 cap-mmc-hw-reset; 125 mmc-hs200-1_8v; 126 status = "okay"; 127}; 128 129&ohci0 { 130 status = "okay"; 131}; 132 133&ohci1 { 134 status = "okay"; 135}; 136 137®_dc1sw { 138 /* 139 * Ethernet PHY needs 30ms to properly power up and some more 140 * to initialize. 100ms should be plenty of time to finish 141 * whole process. 142 */ 143 regulator-enable-ramp-delay = <100000>; 144 regulator-name = "vcc-phy"; 145}; 146 147®_dldo1 { 148 regulator-min-microvolt = <3300000>; 149 regulator-max-microvolt = <3300000>; 150 regulator-name = "vcc-hdmi"; 151}; 152 153®_dldo2 { 154 regulator-min-microvolt = <3300000>; 155 regulator-max-microvolt = <3300000>; 156 regulator-name = "vcc-mipi"; 157}; 158 159®_dldo4 { 160 regulator-min-microvolt = <3300000>; 161 regulator-max-microvolt = <3300000>; 162 regulator-name = "vcc-wifi"; 163}; 164 165&simplefb_hdmi { 166 vcc-hdmi-supply = <®_dldo1>; 167}; 168 169&sound { 170 simple-audio-card,aux-devs = <&codec_analog>; 171 simple-audio-card,widgets = "Microphone", "Microphone Jack", 172 "Headphone", "Headphone Jack"; 173 simple-audio-card,routing = 174 "Left DAC", "DACL", 175 "Right DAC", "DACR", 176 "Headphone Jack", "HP", 177 "ADCL", "Left ADC", 178 "ADCR", "Right ADC", 179 "MIC2", "Microphone Jack"; 180 status = "okay"; 181}; 182 183&uart0 { 184 pinctrl-names = "default"; 185 pinctrl-0 = <&uart0_pb_pins>; 186 status = "okay"; 187}; 188 189/* On Wifi/BT connector, with RTS/CTS */ 190&uart1 { 191 pinctrl-names = "default"; 192 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; 193 uart-has-rtscts; 194 status = "disabled"; 195}; 196 197/* On Pi-2 connector */ 198&uart2 { 199 pinctrl-names = "default"; 200 pinctrl-0 = <&uart2_pins>; 201 status = "disabled"; 202}; 203 204/* On Euler connector */ 205&uart3 { 206 pinctrl-names = "default"; 207 pinctrl-0 = <&uart3_pins>; 208 status = "disabled"; 209}; 210 211/* On Euler connector, RTS/CTS optional */ 212&uart4 { 213 pinctrl-names = "default"; 214 pinctrl-0 = <&uart4_pins>; 215 status = "disabled"; 216}; 217 218&usb_otg { 219 dr_mode = "host"; 220 status = "okay"; 221}; 222 223&usbphy { 224 status = "okay"; 225}; 226