Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 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. |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "sun50i-a64-sopine.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "SoPine with baseboard"; |
| 12 | compatible = "pine64,sopine-baseboard", "pine64,sopine", |
| 13 | "allwinner,sun50i-a64"; |
| 14 | |
| 15 | aliases { |
| 16 | ethernet0 = &emac; |
| 17 | serial0 = &uart0; |
Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 18 | serial1 = &uart1; |
| 19 | serial2 = &uart2; |
| 20 | serial3 = &uart3; |
| 21 | serial4 = &uart4; |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | chosen { |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | }; |
| 27 | |
Andre Przywara | 1b39a18 | 2018-10-29 00:56:47 +0000 | [diff] [blame] | 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 | |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 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 | |
Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 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 | |
Andre Przywara | 1b39a18 | 2018-10-29 00:56:47 +0000 | [diff] [blame] | 67 | &de { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 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>; |
Andre Przywara | 85da558 | 2022-03-15 23:20:54 +0000 | [diff] [blame] | 82 | phy-mode = "rgmii-txid"; |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 83 | phy-handle = <&ext_rgmii_phy>; |
| 84 | phy-supply = <®_dc1sw>; |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
Andre Przywara | 1b39a18 | 2018-10-29 00:56:47 +0000 | [diff] [blame] | 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 | |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 99 | &mdio { |
| 100 | ext_rgmii_phy: ethernet-phy@1 { |
| 101 | compatible = "ethernet-phy-ieee802.3-c22"; |
| 102 | reg = <1>; |
| 103 | }; |
| 104 | }; |
| 105 | |
| 106 | &mmc2 { |
| 107 | pinctrl-names = "default"; |
| 108 | pinctrl-0 = <&mmc2_pins>; |
| 109 | vmmc-supply = <®_dcdc1>; |
| 110 | vqmmc-supply = <®_vcc1v8>; |
| 111 | bus-width = <8>; |
| 112 | non-removable; |
| 113 | cap-mmc-hw-reset; |
Andre Przywara | 647b392 | 2021-04-17 22:55:19 +0100 | [diff] [blame] | 114 | mmc-hs200-1_8v; |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 115 | status = "okay"; |
| 116 | }; |
| 117 | |
| 118 | &ohci0 { |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
| 122 | &ohci1 { |
| 123 | status = "okay"; |
| 124 | }; |
| 125 | |
| 126 | ®_dc1sw { |
Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 127 | /* |
| 128 | * Ethernet PHY needs 30ms to properly power up and some more |
| 129 | * to initialize. 100ms should be plenty of time to finish |
| 130 | * whole process. |
| 131 | */ |
| 132 | regulator-enable-ramp-delay = <100000>; |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 133 | regulator-name = "vcc-phy"; |
| 134 | }; |
| 135 | |
| 136 | ®_dldo1 { |
| 137 | regulator-min-microvolt = <3300000>; |
| 138 | regulator-max-microvolt = <3300000>; |
| 139 | regulator-name = "vcc-hdmi"; |
| 140 | }; |
| 141 | |
| 142 | ®_dldo2 { |
| 143 | regulator-min-microvolt = <3300000>; |
| 144 | regulator-max-microvolt = <3300000>; |
| 145 | regulator-name = "vcc-mipi"; |
| 146 | }; |
| 147 | |
| 148 | ®_dldo4 { |
| 149 | regulator-min-microvolt = <3300000>; |
| 150 | regulator-max-microvolt = <3300000>; |
| 151 | regulator-name = "vcc-wifi"; |
| 152 | }; |
| 153 | |
Andre Przywara | 1b39a18 | 2018-10-29 00:56:47 +0000 | [diff] [blame] | 154 | &simplefb_hdmi { |
| 155 | vcc-hdmi-supply = <®_dldo1>; |
| 156 | }; |
| 157 | |
Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 158 | &sound { |
| 159 | simple-audio-card,aux-devs = <&codec_analog>; |
| 160 | simple-audio-card,widgets = "Microphone", "Microphone Jack", |
| 161 | "Headphone", "Headphone Jack"; |
| 162 | simple-audio-card,routing = |
Andre Przywara | 647b392 | 2021-04-17 22:55:19 +0100 | [diff] [blame] | 163 | "Left DAC", "DACL", |
| 164 | "Right DAC", "DACR", |
Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 165 | "Headphone Jack", "HP", |
Andre Przywara | 647b392 | 2021-04-17 22:55:19 +0100 | [diff] [blame] | 166 | "ADCL", "Left ADC", |
| 167 | "ADCR", "Right ADC", |
Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 168 | "MIC2", "Microphone Jack"; |
| 169 | status = "okay"; |
| 170 | }; |
| 171 | |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 172 | &uart0 { |
| 173 | pinctrl-names = "default"; |
Andre Przywara | 1b39a18 | 2018-10-29 00:56:47 +0000 | [diff] [blame] | 174 | pinctrl-0 = <&uart0_pb_pins>; |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 175 | status = "okay"; |
| 176 | }; |
| 177 | |
Samuel Holland | e210ec0 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 178 | /* On Pi-2 connector */ |
| 179 | &uart2 { |
| 180 | pinctrl-names = "default"; |
| 181 | pinctrl-0 = <&uart2_pins>; |
| 182 | status = "disabled"; |
| 183 | }; |
| 184 | |
| 185 | /* On Euler connector */ |
| 186 | &uart3 { |
| 187 | pinctrl-names = "default"; |
| 188 | pinctrl-0 = <&uart3_pins>; |
| 189 | status = "disabled"; |
| 190 | }; |
| 191 | |
| 192 | /* On Euler connector, RTS/CTS optional */ |
| 193 | &uart4 { |
| 194 | pinctrl-names = "default"; |
| 195 | pinctrl-0 = <&uart4_pins>; |
| 196 | status = "disabled"; |
| 197 | }; |
| 198 | |
Andre Przywara | df3ebdc | 2018-07-04 14:16:39 +0100 | [diff] [blame] | 199 | &usb_otg { |
| 200 | dr_mode = "host"; |
| 201 | status = "okay"; |
| 202 | }; |
| 203 | |
| 204 | &usbphy { |
| 205 | status = "okay"; |
| 206 | }; |