|
72 | 72 | };
|
73 | 73 | };
|
74 | 74 |
|
| 75 | +&cpu0 { |
| 76 | + cpu-supply = <®_dcdc3>; |
| 77 | +}; |
| 78 | + |
75 | 79 | &ehci0 {
|
76 | 80 | status = "okay";
|
77 | 81 | };
|
|
85 | 89 | pinctrl-0 = <&gmac_pins_mii_a>;
|
86 | 90 | phy = <&phy1>;
|
87 | 91 | phy-mode = "mii";
|
| 92 | + phy-supply = <®_dldo1>; |
88 | 93 | status = "okay";
|
89 | 94 |
|
90 | 95 | phy1: ethernet-phy@1 {
|
|
101 | 106 | &mmc0 {
|
102 | 107 | pinctrl-names = "default";
|
103 | 108 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>;
|
104 |
| - vmmc-supply = <®_vcc3v3>; |
| 109 | + vmmc-supply = <®_dcdc1>; |
105 | 110 | bus-width = <4>;
|
106 | 111 | cd-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
|
107 | 112 | cd-inverted;
|
108 | 113 | status = "okay";
|
109 | 114 | };
|
110 | 115 |
|
| 116 | +&p2wi { |
| 117 | + status = "okay"; |
| 118 | + |
| 119 | + axp22x: pmic@68 { |
| 120 | + compatible = "x-powers,axp221"; |
| 121 | + reg = <0x68>; |
| 122 | + interrupt-parent = <&nmi_intc>; |
| 123 | + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 124 | + }; |
| 125 | +}; |
| 126 | + |
| 127 | +#include "axp22x.dtsi" |
| 128 | + |
111 | 129 | &pio {
|
112 | 130 | led_pins_m9: led_pins@0 {
|
113 | 131 | allwinner,pins = "PH13";
|
|
131 | 149 | };
|
132 | 150 | };
|
133 | 151 |
|
| 152 | +®_aldo1 { |
| 153 | + regulator-min-microvolt = <3300000>; |
| 154 | + regulator-max-microvolt = <3300000>; |
| 155 | + regulator-name = "vcc-wifi"; |
| 156 | +}; |
| 157 | + |
| 158 | +®_aldo3 { |
| 159 | + regulator-always-on; |
| 160 | + regulator-min-microvolt = <2700000>; |
| 161 | + regulator-max-microvolt = <3300000>; |
| 162 | + regulator-name = "avcc"; |
| 163 | +}; |
| 164 | + |
| 165 | +®_dc5ldo { |
| 166 | + regulator-always-on; |
| 167 | + regulator-min-microvolt = <700000>; |
| 168 | + regulator-max-microvolt = <1320000>; |
| 169 | + regulator-name = "vdd-cpus"; /* This is an educated guess */ |
| 170 | +}; |
| 171 | + |
| 172 | +®_dcdc1 { |
| 173 | + regulator-always-on; |
| 174 | + regulator-min-microvolt = <3300000>; |
| 175 | + regulator-max-microvolt = <3300000>; |
| 176 | + regulator-name = "vcc-3v3"; |
| 177 | +}; |
| 178 | + |
| 179 | +®_dcdc2 { |
| 180 | + regulator-min-microvolt = <700000>; |
| 181 | + regulator-max-microvolt = <1320000>; |
| 182 | + regulator-name = "vdd-gpu"; |
| 183 | +}; |
| 184 | + |
| 185 | +®_dcdc3 { |
| 186 | + regulator-always-on; |
| 187 | + regulator-min-microvolt = <700000>; |
| 188 | + regulator-max-microvolt = <1320000>; |
| 189 | + regulator-name = "vdd-cpu"; |
| 190 | +}; |
| 191 | + |
| 192 | +®_dcdc4 { |
| 193 | + regulator-always-on; |
| 194 | + regulator-min-microvolt = <700000>; |
| 195 | + regulator-max-microvolt = <1320000>; |
| 196 | + regulator-name = "vdd-sys-dll"; |
| 197 | +}; |
| 198 | + |
| 199 | +®_dcdc5 { |
| 200 | + regulator-always-on; |
| 201 | + regulator-min-microvolt = <1500000>; |
| 202 | + regulator-max-microvolt = <1500000>; |
| 203 | + regulator-name = "vcc-dram"; |
| 204 | +}; |
| 205 | + |
| 206 | +®_dldo1 { |
| 207 | + regulator-min-microvolt = <3300000>; |
| 208 | + regulator-max-microvolt = <3300000>; |
| 209 | + regulator-name = "vcc-ethernet-phy"; |
| 210 | +}; |
| 211 | + |
| 212 | +/* |
| 213 | + * Both reg_usb1_vbus and reg_dldo4 need to be on for the hub attached |
| 214 | + * to usb1 to work, and we can list only one usb1_vbus-supply, so dldo4 is |
| 215 | + * marked as regulator-always-on. |
| 216 | + */ |
| 217 | +®_dldo4 { |
| 218 | + regulator-always-on; |
| 219 | + regulator-min-microvolt = <3300000>; |
| 220 | + regulator-max-microvolt = <3300000>; |
| 221 | + regulator-name = "vcc-usb-hub"; |
| 222 | +}; |
| 223 | + |
134 | 224 | ®_usb1_vbus {
|
135 | 225 | pinctrl-names = "default";
|
136 | 226 | pinctrl-0 = <&usb1_vbus_pin_m9>;
|
|
151 | 241 |
|
152 | 242 | &usbphy {
|
153 | 243 | usb1_vbus-supply = <®_usb1_vbus>;
|
| 244 | + usb2_vbus-supply = <®_aldo1>; |
154 | 245 | status = "okay";
|
155 | 246 | };
|
0 commit comments