| @@ -1,641 +1,692 @@ | | | @@ -1,641 +1,692 @@ |
1 | $NetBSD: patch-arch_arm_dts_rk3399-pinebook-pro.dts,v 1.1 2020/01/06 08:41:44 mrg Exp $ | | 1 | $NetBSD: patch-arch_arm_dts_rk3399-pinebook-pro.dts,v 1.2 2020/01/14 08:44:03 mrg Exp $ |
2 | | | 2 | |
3 | Pinebook Pro support from https://patchwork.ozlabs.org/patch/1194525/ | | 3 | Pinebook Pro support from https://patchwork.ozlabs.org/patch/1194525/ |
4 | | | 4 | |
5 | diff --git arch/arm/dts/rk3399-pinebook-pro.dts arch/arm/dts/rk3399-pinebook-pro.dts | | 5 | commit 2778aa7cb70946c4729ed6ae13dea5bd1cc688dc |
6 | new file mode 100644 | | 6 | Author: dhivael <dhivael.git@eno.space> |
7 | index 0000000000..85ce0206d7 | | 7 | Date: Sat Jan 11 15:02:44 2020 +0100 |
8 | --- /dev/null | | 8 | |
9 | +++ arch/arm/dts/rk3399-pinebook-pro.dts | | 9 | rk3399: pinebook: fix sdcard boot from emmc |
10 | @@ -0,0 +1,631 @@ | | 10 | |
| | | 11 | booting from emmc does not set all DT properties required for the sd |
| | | 12 | slot to function properly. this is a copy of the linux DT configuration |
| | | 13 | for the slot now. |
| | | 14 | |
| | | 15 | commit fd41e9330cf1635fa3bf4dabdfac42ee1bba963c |
| | | 16 | Author: Emmanuel Vadot <manu@freebsd.org> |
| | | 17 | Date: Tue Dec 31 22:13:03 2019 +0100 |
| | | 18 | |
| | | 19 | PBP: Add regulator needed for usb |
| | | 20 | |
| | | 21 | The schematics indicate that the vcc3v3_s0 voltage is controlled by |
| | | 22 | the LDO2 of the RK808 but this isn't true. |
| | | 23 | It's controller by a gpio (named lcdvcc_en). |
| | | 24 | Remove the name from the RK808 regulator and add a regulator-fixed |
| | | 25 | controller by this gpio. |
| | | 26 | |
| | | 27 | Signed-off-by: Emmanuel Vadot <manu@freebsd.org> |
| | | 28 | |
| | | 29 | |
| | | 30 | --- arch/arm/dts/rk3399-pinebook-pro.dts.orig 2020-01-13 16:59:26.353181190 -0800 |
| | | 31 | +++ arch/arm/dts/rk3399-pinebook-pro.dts 2020-01-13 23:16:08.263344492 -0800 |
| | | 32 | @@ -0,0 +1,660 @@ |
11 | +/* | | 33 | +/* |
12 | + * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. | | 34 | + * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. |
13 | + * | | 35 | + * |
14 | + * SPDX-License-Identifier: GPL-2.0+ | | 36 | + * SPDX-License-Identifier: GPL-2.0+ |
15 | + */ | | 37 | + */ |
16 | + | | 38 | + |
17 | +/dts-v1/; | | 39 | +/dts-v1/; |
18 | +#include <dt-bindings/input/linux-event-codes.h> | | 40 | +#include <dt-bindings/input/linux-event-codes.h> |
19 | +#include <dt-bindings/pwm/pwm.h> | | 41 | +#include <dt-bindings/pwm/pwm.h> |
20 | +#include <dt-bindings/pinctrl/rockchip.h> | | 42 | +#include <dt-bindings/pinctrl/rockchip.h> |
21 | +#include "rk3399.dtsi" | | 43 | +#include "rk3399.dtsi" |
22 | +#include "rk3399-opp.dtsi" | | 44 | +#include "rk3399-opp.dtsi" |
23 | + | | 45 | + |
24 | +/ { | | 46 | +/ { |
25 | + model = "Pine64 Pinebook Pro"; | | 47 | + model = "Pine64 Pinebook Pro"; |
26 | + compatible = "pine64,pinebook-pro", "rockchip,rk3399"; | | 48 | + compatible = "pine64,pinebook-pro", "rockchip,rk3399"; |
27 | + | | 49 | + |
28 | + chosen { | | 50 | + chosen { |
29 | + stdout-path = &uart2; | | 51 | + stdout-path = &uart2; |
30 | + }; | | 52 | + }; |
31 | + | | 53 | + |
32 | + aliases { | | 54 | + aliases { |
33 | + spi0 = &spi1; | | 55 | + spi0 = &spi1; |
34 | + }; | | 56 | + }; |
35 | + | | 57 | + |
36 | + backlight: backlight { | | 58 | + backlight: backlight { |
37 | + compatible = "pwm-backlight"; | | 59 | + compatible = "pwm-backlight"; |
38 | + enable-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; | | 60 | + enable-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; |
39 | + pwms = <&pwm0 0 740740 0>; | | 61 | + pwms = <&pwm0 0 740740 0>; |
40 | + }; | | 62 | + }; |
41 | + | | 63 | + |
42 | + gpio-keys { | | 64 | + gpio-keys { |
43 | + compatible = "gpio-keys"; | | 65 | + compatible = "gpio-keys"; |
44 | + autorepeat; | | 66 | + autorepeat; |
45 | + pinctrl-names = "default"; | | 67 | + pinctrl-names = "default"; |
46 | + pinctrl-0 = <&pwrbtn>; | | 68 | + pinctrl-0 = <&pwrbtn>; |
47 | + | | 69 | + |
48 | + power { | | 70 | + power { |
49 | + debounce-interval = <100>; | | 71 | + debounce-interval = <100>; |
50 | + gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; | | 72 | + gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; |
51 | + label = "GPIO Key Power"; | | 73 | + label = "GPIO Key Power"; |
52 | + linux,code = <KEY_POWER>; | | 74 | + linux,code = <KEY_POWER>; |
53 | + wakeup-source; | | 75 | + wakeup-source; |
54 | + }; | | 76 | + }; |
55 | + }; | | 77 | + }; |
56 | + | | 78 | + |
| | | 79 | + /* |
57 | + leds { | | 80 | + leds { |
58 | + status = "okay"; | | 81 | + status = "okay"; |
59 | + compatible = "gpio-leds"; | | 82 | + compatible = "gpio-leds"; |
60 | + | | 83 | + |
61 | + work-led { | | 84 | + work-led { |
62 | + label = "work"; | | 85 | + label = "work"; |
63 | + gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; | | 86 | + gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; |
64 | + }; | | 87 | + }; |
65 | + | | 88 | + |
66 | + standby-led { | | 89 | + standby-led { |
67 | + label = "standby"; | | 90 | + label = "standby"; |
68 | + gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; | | 91 | + gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; |
69 | + }; | | 92 | + }; |
70 | + }; | | 93 | + }; |
| | | 94 | + */ |
71 | + | | 95 | + |
72 | + sdio_pwrseq: sdio-pwrseq { | | 96 | + sdio_pwrseq: sdio-pwrseq { |
73 | + compatible = "mmc-pwrseq-simple"; | | 97 | + compatible = "mmc-pwrseq-simple"; |
74 | + clocks = <&rk808 1>; | | 98 | + clocks = <&rk808 1>; |
75 | + clock-names = "ext_clock"; | | 99 | + clock-names = "ext_clock"; |
76 | + pinctrl-names = "default"; | | 100 | + pinctrl-names = "default"; |
77 | + pinctrl-0 = <&wifi_enable_h>; | | 101 | + pinctrl-0 = <&wifi_enable_h>; |
| | | 102 | + power-off-delay-us = <500000>; |
| | | 103 | + post-power-on-delay-ms = <100>; |
78 | + | | 104 | + |
79 | + /* | | 105 | + /* |
80 | + * On the module itself this is one of these (depending | | 106 | + * On the module itself this is one of these (depending |
81 | + * on the actual card populated): | | 107 | + * on the actual card populated): |
82 | + * - SDIO_RESET_L_WL_REG_ON | | 108 | + * - SDIO_RESET_L_WL_REG_ON |
83 | + * - PDN (power down when low) | | 109 | + * - PDN (power down when low) |
84 | + */ | | 110 | + */ |
85 | + reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; | | 111 | + reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; |
86 | + }; | | 112 | + }; |
87 | + | | 113 | + |
88 | + /* switched by pmic_sleep */ | | 114 | + /* switched by pmic_sleep */ |
89 | + vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { | | 115 | + vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { |
90 | + compatible = "regulator-fixed"; | | 116 | + compatible = "regulator-fixed"; |
91 | + regulator-name = "vcc1v8_s3"; | | 117 | + regulator-name = "vcc1v8_s3"; |
92 | + regulator-always-on; | | 118 | + regulator-always-on; |
93 | + regulator-boot-on; | | 119 | + regulator-boot-on; |
94 | + regulator-min-microvolt = <1800000>; | | 120 | + regulator-min-microvolt = <1800000>; |
95 | + regulator-max-microvolt = <1800000>; | | 121 | + regulator-max-microvolt = <1800000>; |
96 | + vin-supply = <&vcc_1v8>; | | 122 | + vin-supply = <&vcc_1v8>; |
97 | + }; | | 123 | + }; |
98 | + | | 124 | + |
99 | + dc_12v: dc-12v { | | 125 | + dc_12v: dc-12v { |
100 | + compatible = "regulator-fixed"; | | 126 | + compatible = "regulator-fixed"; |
101 | + regulator-name = "dc_12v"; | | 127 | + regulator-name = "dc_12v"; |
102 | + regulator-always-on; | | 128 | + regulator-always-on; |
103 | + regulator-boot-on; | | 129 | + regulator-boot-on; |
104 | + regulator-min-microvolt = <12000000>; | | 130 | + regulator-min-microvolt = <12000000>; |
105 | + regulator-max-microvolt = <12000000>; | | 131 | + regulator-max-microvolt = <12000000>; |
106 | + }; | | 132 | + }; |
107 | + | | 133 | + |
108 | + vcc3v3_sys: vcc3v3-sys { | | 134 | + vcc3v3_sys: vcc3v3-sys { |
109 | + compatible = "regulator-fixed"; | | 135 | + compatible = "regulator-fixed"; |
110 | + regulator-name = "vcc3v3_sys"; | | 136 | + regulator-name = "vcc3v3_sys"; |
111 | + regulator-always-on; | | 137 | + regulator-always-on; |
112 | + regulator-boot-on; | | 138 | + regulator-boot-on; |
113 | + regulator-min-microvolt = <3300000>; | | 139 | + regulator-min-microvolt = <3300000>; |
114 | + regulator-max-microvolt = <3300000>; | | 140 | + regulator-max-microvolt = <3300000>; |
115 | + vin-supply = <&vcc_sys>; | | 141 | + vin-supply = <&vcc_sys>; |
116 | + }; | | 142 | + }; |
117 | + | | 143 | + |
118 | + vcc5v0_host: vcc5v0-host-regulator { | | 144 | + vcc5v0_host: vcc5v0-host-regulator { |
119 | + compatible = "regulator-fixed"; | | 145 | + compatible = "regulator-fixed"; |
120 | + gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; | | 146 | + gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; |
121 | + pinctrl-names = "default"; | | 147 | + pinctrl-names = "default"; |
122 | + pinctrl-0 = <&host_vbus_drv>; | | 148 | + pinctrl-0 = <&host_vbus_drv>; |
123 | + regulator-name = "vcc5v0_host"; | | 149 | + regulator-name = "vcc5v0_host"; |
124 | + }; | | 150 | + }; |
125 | + | | 151 | + |
126 | + vcc5v0_usb3_host: vcc5v0-usb3-host-regulator { | | 152 | + vcc5v0_usb3_host: vcc5v0-usb3-host-regulator { |
127 | + compatible = "regulator-fixed"; | | 153 | + compatible = "regulator-fixed"; |
128 | + enable-active-high; | | 154 | + enable-active-high; |
129 | + gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; | | 155 | + gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; |
130 | + pinctrl-names = "default"; | | 156 | + pinctrl-names = "default"; |
131 | + pinctrl-0 = <&host_usb3_drv>; | | 157 | + pinctrl-0 = <&host_usb3_drv>; |
132 | + regulator-name = "vcc5v0_usb3_host"; | | 158 | + regulator-name = "vcc5v0_usb3_host"; |
133 | + regulator-always-on; | | 159 | + regulator-always-on; |
134 | + }; | | 160 | + }; |
135 | + | | 161 | + |
| | | 162 | + vcc3v3_s0: vcc3v3-s0-regulator { |
| | | 163 | + compatible = "regulator-fixed"; |
| | | 164 | + enable-active-high; |
| | | 165 | + gpio = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>; |
| | | 166 | + pinctrl-names = "default"; |
| | | 167 | + pinctrl-0 = <&lcdvcc_en>; |
| | | 168 | + regulator-name = "vcc3v3_s0"; |
| | | 169 | + regulator-always-on; |
| | | 170 | + }; |
| | | 171 | + |
136 | + vcc_sys: vcc-sys { | | 172 | + vcc_sys: vcc-sys { |
137 | + compatible = "regulator-fixed"; | | 173 | + compatible = "regulator-fixed"; |
138 | + regulator-name = "vcc_sys"; | | 174 | + regulator-name = "vcc_sys"; |
139 | + regulator-always-on; | | 175 | + regulator-always-on; |
140 | + regulator-boot-on; | | 176 | + regulator-boot-on; |
141 | + regulator-min-microvolt = <5000000>; | | 177 | + regulator-min-microvolt = <5000000>; |
142 | + regulator-max-microvolt = <5000000>; | | 178 | + regulator-max-microvolt = <5000000>; |
143 | + vin-supply = <&dc_12v>; | | 179 | + vin-supply = <&dc_12v>; |
144 | + }; | | 180 | + }; |
145 | + | | 181 | + |
146 | + vdd_log: vdd-log { | | 182 | + vdd_log: vdd-log { |
147 | + compatible = "pwm-regulator"; | | 183 | + compatible = "pwm-regulator"; |
148 | + pwms = <&pwm2 0 25000 1>; | | 184 | + pwms = <&pwm2 0 25000 1>; |
149 | + pwm-supply = <&vcc_sys>; | | 185 | + pwm-supply = <&vcc_sys>; |
150 | + regulator-name = "vdd_log"; | | 186 | + regulator-name = "vdd_log"; |
151 | + regulator-always-on; | | 187 | + regulator-always-on; |
152 | + regulator-boot-on; | | 188 | + regulator-boot-on; |
153 | + regulator-init-microvolt = <950000>; | | 189 | + regulator-init-microvolt = <950000>; |
154 | + regulator-min-microvolt = <800000>; | | 190 | + regulator-min-microvolt = <800000>; |
155 | + regulator-max-microvolt = <1400000>; | | 191 | + regulator-max-microvolt = <1400000>; |
156 | + }; | | 192 | + }; |
157 | +}; | | 193 | +}; |
158 | + | | 194 | + |
159 | +&cpu_l0 { | | 195 | +&cpu_l0 { |
160 | + cpu-supply = <&vdd_cpu_l>; | | 196 | + cpu-supply = <&vdd_cpu_l>; |
161 | +}; | | 197 | +}; |
162 | + | | 198 | + |
163 | +&cpu_l1 { | | 199 | +&cpu_l1 { |
164 | + cpu-supply = <&vdd_cpu_l>; | | 200 | + cpu-supply = <&vdd_cpu_l>; |
165 | +}; | | 201 | +}; |
166 | + | | 202 | + |
167 | +&cpu_l2 { | | 203 | +&cpu_l2 { |
168 | + cpu-supply = <&vdd_cpu_l>; | | 204 | + cpu-supply = <&vdd_cpu_l>; |
169 | +}; | | 205 | +}; |
170 | + | | 206 | + |
171 | +&cpu_l3 { | | 207 | +&cpu_l3 { |
172 | + cpu-supply = <&vdd_cpu_l>; | | 208 | + cpu-supply = <&vdd_cpu_l>; |
173 | +}; | | 209 | +}; |
174 | + | | 210 | + |
175 | +&emmc_phy { | | 211 | +&emmc_phy { |
176 | + status = "okay"; | | 212 | + status = "okay"; |
177 | +}; | | 213 | +}; |
178 | + | | 214 | + |
179 | +&i2c0 { | | 215 | +&i2c0 { |
180 | + clock-frequency = <400000>; | | 216 | + clock-frequency = <400000>; |
181 | + i2c-scl-rising-time-ns = <168>; | | 217 | + i2c-scl-rising-time-ns = <168>; |
182 | + i2c-scl-falling-time-ns = <4>; | | 218 | + i2c-scl-falling-time-ns = <4>; |
183 | + status = "okay"; | | 219 | + status = "okay"; |
184 | + | | 220 | + |
185 | + rk808: pmic@1b { | | 221 | + rk808: pmic@1b { |
186 | + compatible = "rockchip,rk808"; | | 222 | + compatible = "rockchip,rk808"; |
187 | + reg = <0x1b>; | | 223 | + reg = <0x1b>; |
188 | + interrupt-parent = <&gpio1>; | | 224 | + interrupt-parent = <&gpio1>; |
189 | + interrupts = <21 IRQ_TYPE_LEVEL_LOW>; | | 225 | + interrupts = <21 IRQ_TYPE_LEVEL_LOW>; |
190 | + #clock-cells = <1>; | | 226 | + #clock-cells = <1>; |
191 | + clock-output-names = "xin32k", "rk808-clkout2"; | | 227 | + clock-output-names = "xin32k", "rk808-clkout2"; |
192 | + pinctrl-names = "default"; | | 228 | + pinctrl-names = "default"; |
193 | + pinctrl-0 = <&pmic_int_l>; | | 229 | + pinctrl-0 = <&pmic_int_l>; |
194 | + rockchip,system-power-controller; | | 230 | + rockchip,system-power-controller; |
195 | + wakeup-source; | | 231 | + wakeup-source; |
196 | + | | 232 | + |
197 | + vcc1-supply = <&vcc_sys>; | | 233 | + vcc1-supply = <&vcc_sys>; |
198 | + vcc2-supply = <&vcc_sys>; | | 234 | + vcc2-supply = <&vcc_sys>; |
199 | + vcc3-supply = <&vcc_sys>; | | 235 | + vcc3-supply = <&vcc_sys>; |
200 | + vcc4-supply = <&vcc_sys>; | | 236 | + vcc4-supply = <&vcc_sys>; |
201 | + vcc6-supply = <&vcc_sys>; | | 237 | + vcc6-supply = <&vcc_sys>; |
202 | + vcc7-supply = <&vcc_sys>; | | 238 | + vcc7-supply = <&vcc_sys>; |
203 | + vcc8-supply = <&vcc3v3_sys>; | | 239 | + vcc8-supply = <&vcc3v3_sys>; |
204 | + vcc9-supply = <&vcc_sys>; | | 240 | + vcc9-supply = <&vcc_sys>; |
205 | + vcc10-supply = <&vcc_sys>; | | 241 | + vcc10-supply = <&vcc_sys>; |
206 | + vcc11-supply = <&vcc_sys>; | | 242 | + vcc11-supply = <&vcc_sys>; |
207 | + vcc12-supply = <&vcc3v3_sys>; | | 243 | + vcc12-supply = <&vcc3v3_sys>; |
208 | + vddio-supply = <&vcc_1v8>; | | 244 | + vddio-supply = <&vcc_1v8>; |
209 | + | | 245 | + |
210 | + regulators { | | 246 | + regulators { |
211 | + vdd_center: DCDC_REG1 { | | 247 | + vdd_center: DCDC_REG1 { |
212 | + regulator-name = "vdd_center"; | | 248 | + regulator-name = "vdd_center"; |
213 | + regulator-always-on; | | 249 | + regulator-always-on; |
214 | + regulator-boot-on; | | 250 | + regulator-boot-on; |
215 | + regulator-min-microvolt = <750000>; | | 251 | + regulator-min-microvolt = <750000>; |
216 | + regulator-max-microvolt = <1350000>; | | 252 | + regulator-max-microvolt = <1350000>; |
217 | + regulator-ramp-delay = <6001>; | | 253 | + regulator-ramp-delay = <6001>; |
218 | + regulator-state-mem { | | 254 | + regulator-state-mem { |
219 | + regulator-off-in-suspend; | | 255 | + regulator-off-in-suspend; |
220 | + }; | | 256 | + }; |
221 | + }; | | 257 | + }; |
222 | + | | 258 | + |
223 | + vdd_cpu_l: DCDC_REG2 { | | 259 | + vdd_cpu_l: DCDC_REG2 { |
224 | + regulator-name = "vdd_cpu_l"; | | 260 | + regulator-name = "vdd_cpu_l"; |
225 | + regulator-always-on; | | 261 | + regulator-always-on; |
226 | + regulator-boot-on; | | 262 | + regulator-boot-on; |
227 | + regulator-min-microvolt = <750000>; | | 263 | + regulator-min-microvolt = <750000>; |
228 | + regulator-max-microvolt = <1350000>; | | 264 | + regulator-max-microvolt = <1350000>; |
229 | + regulator-ramp-delay = <6001>; | | 265 | + regulator-ramp-delay = <6001>; |
230 | + regulator-state-mem { | | 266 | + regulator-state-mem { |
231 | + regulator-off-in-suspend; | | 267 | + regulator-off-in-suspend; |
232 | + }; | | 268 | + }; |
233 | + }; | | 269 | + }; |
234 | + | | 270 | + |
235 | + vcc_ddr: DCDC_REG3 { | | 271 | + vcc_ddr: DCDC_REG3 { |
236 | + regulator-name = "vcc_ddr"; | | 272 | + regulator-name = "vcc_ddr"; |
237 | + regulator-always-on; | | 273 | + regulator-always-on; |
238 | + regulator-boot-on; | | 274 | + regulator-boot-on; |
239 | + regulator-state-mem { | | 275 | + regulator-state-mem { |
240 | + regulator-on-in-suspend; | | 276 | + regulator-on-in-suspend; |
241 | + }; | | 277 | + }; |
242 | + }; | | 278 | + }; |
243 | + | | 279 | + |
244 | + vcc_1v8: DCDC_REG4 { | | 280 | + vcc_1v8: DCDC_REG4 { |
245 | + regulator-name = "vcc_1v8"; | | 281 | + regulator-name = "vcc_1v8"; |
246 | + regulator-always-on; | | 282 | + regulator-always-on; |
247 | + regulator-boot-on; | | 283 | + regulator-boot-on; |
248 | + regulator-min-microvolt = <1800000>; | | 284 | + regulator-min-microvolt = <1800000>; |
249 | + regulator-max-microvolt = <1800000>; | | 285 | + regulator-max-microvolt = <1800000>; |
250 | + regulator-state-mem { | | 286 | + regulator-state-mem { |
251 | + regulator-on-in-suspend; | | 287 | + regulator-on-in-suspend; |
252 | + regulator-suspend-microvolt = <1800000>; | | 288 | + regulator-suspend-microvolt = <1800000>; |
253 | + }; | | 289 | + }; |
254 | + }; | | 290 | + }; |
255 | + | | 291 | + |
256 | + vcc1v8_dvp: LDO_REG1 { | | 292 | + vcc1v8_dvp: LDO_REG1 { |
257 | + regulator-name = "vcc1v8_dvp"; | | 293 | + regulator-name = "vcc1v8_dvp"; |
258 | + regulator-always-on; | | 294 | + regulator-always-on; |
259 | + regulator-boot-on; | | 295 | + regulator-boot-on; |
260 | + regulator-min-microvolt = <1800000>; | | 296 | + regulator-min-microvolt = <1800000>; |
261 | + regulator-max-microvolt = <1800000>; | | 297 | + regulator-max-microvolt = <1800000>; |
262 | + regulator-state-mem { | | 298 | + regulator-state-mem { |
263 | + regulator-off-in-suspend; | | 299 | + regulator-off-in-suspend; |
264 | + }; | | 300 | + }; |
265 | + }; | | 301 | + }; |
266 | + | | 302 | + |
267 | + vcc3v0_touch: LDO_REG2 { | | 303 | + vcc3v0_touch: LDO_REG2 { |
268 | + regulator-name = "vcc3v0_touch"; | | 304 | + regulator-name = "vcc3v0_touch"; |
269 | + regulator-min-microvolt = <3000000>; | | 305 | + regulator-min-microvolt = <3000000>; |
270 | + regulator-max-microvolt = <3000000>; | | 306 | + regulator-max-microvolt = <3000000>; |
271 | + regulator-always-on; | | 307 | + regulator-always-on; |
272 | + regulator-boot-on; | | 308 | + regulator-boot-on; |
273 | + regulator-state-mem { | | 309 | + regulator-state-mem { |
274 | + regulator-on-in-suspend; | | 310 | + regulator-on-in-suspend; |
275 | + regulator-suspend-microvolt = <3000000>; | | 311 | + regulator-suspend-microvolt = <3000000>; |
276 | + }; | | 312 | + }; |
277 | + }; | | 313 | + }; |
278 | + | | 314 | + |
279 | + vcc1v8_pmu: LDO_REG3 { | | 315 | + vcc1v8_pmu: LDO_REG3 { |
280 | + regulator-name = "vcc1v8_pmu"; | | 316 | + regulator-name = "vcc1v8_pmu"; |
281 | + regulator-always-on; | | 317 | + regulator-always-on; |
282 | + regulator-boot-on; | | 318 | + regulator-boot-on; |
283 | + regulator-min-microvolt = <1800000>; | | 319 | + regulator-min-microvolt = <1800000>; |
284 | + regulator-max-microvolt = <1800000>; | | 320 | + regulator-max-microvolt = <1800000>; |
285 | + regulator-state-mem { | | 321 | + regulator-state-mem { |
286 | + regulator-on-in-suspend; | | 322 | + regulator-on-in-suspend; |
287 | + regulator-suspend-microvolt = <1800000>; | | 323 | + regulator-suspend-microvolt = <1800000>; |
288 | + }; | | 324 | + }; |
289 | + }; | | 325 | + }; |
290 | + | | 326 | + |
291 | + vcc_sdio: LDO_REG4 { | | 327 | + vcc_sdio: LDO_REG4 { |
292 | + regulator-name = "vcc_sdio"; | | 328 | + regulator-name = "vcc_sdio"; |
293 | + regulator-always-on; | | 329 | + regulator-always-on; |
294 | + regulator-boot-on; | | 330 | + regulator-boot-on; |
295 | + regulator-min-microvolt = <3300000>; | | 331 | + regulator-min-microvolt = <3300000>; |
296 | + regulator-max-microvolt = <3300000>; | | 332 | + regulator-max-microvolt = <3300000>; |
297 | + regulator-state-mem { | | 333 | + regulator-state-mem { |
298 | + regulator-on-in-suspend; | | 334 | + regulator-on-in-suspend; |
299 | + regulator-suspend-microvolt = <3300000>; | | 335 | + regulator-suspend-microvolt = <3300000>; |
300 | + }; | | 336 | + }; |
301 | + }; | | 337 | + }; |
302 | + | | 338 | + |
303 | + vcca3v0_codec: LDO_REG5 { | | 339 | + vcca3v0_codec: LDO_REG5 { |
304 | + regulator-name = "vcca3v0_codec"; | | 340 | + regulator-name = "vcca3v0_codec"; |
305 | + regulator-always-on; | | 341 | + regulator-always-on; |
306 | + regulator-boot-on; | | 342 | + regulator-boot-on; |
307 | + regulator-min-microvolt = <3000000>; | | 343 | + regulator-min-microvolt = <3000000>; |
308 | + regulator-max-microvolt = <3000000>; | | 344 | + regulator-max-microvolt = <3000000>; |
309 | + regulator-state-mem { | | 345 | + regulator-state-mem { |
310 | + regulator-off-in-suspend; | | 346 | + regulator-off-in-suspend; |
311 | + }; | | 347 | + }; |
312 | + }; | | 348 | + }; |
313 | + | | 349 | + |
314 | + vcc_1v5: LDO_REG6 { | | 350 | + vcc_1v5: LDO_REG6 { |
315 | + regulator-name = "vcc_1v5"; | | 351 | + regulator-name = "vcc_1v5"; |
316 | + regulator-always-on; | | 352 | + regulator-always-on; |
317 | + regulator-boot-on; | | 353 | + regulator-boot-on; |
318 | + regulator-min-microvolt = <1500000>; | | 354 | + regulator-min-microvolt = <1500000>; |
319 | + regulator-max-microvolt = <1500000>; | | 355 | + regulator-max-microvolt = <1500000>; |
320 | + regulator-state-mem { | | 356 | + regulator-state-mem { |
321 | + regulator-on-in-suspend; | | 357 | + regulator-on-in-suspend; |
322 | + regulator-suspend-microvolt = <1500000>; | | 358 | + regulator-suspend-microvolt = <1500000>; |
323 | + }; | | 359 | + }; |
324 | + }; | | 360 | + }; |
325 | + | | 361 | + |
326 | + vcca1v8_codec: LDO_REG7 { | | 362 | + vcca1v8_codec: LDO_REG7 { |
327 | + regulator-name = "vcca1v8_codec"; | | 363 | + regulator-name = "vcca1v8_codec"; |
328 | + regulator-always-on; | | 364 | + regulator-always-on; |
329 | + regulator-boot-on; | | 365 | + regulator-boot-on; |
330 | + regulator-min-microvolt = <1800000>; | | 366 | + regulator-min-microvolt = <1800000>; |
331 | + regulator-max-microvolt = <1800000>; | | 367 | + regulator-max-microvolt = <1800000>; |
332 | + regulator-state-mem { | | 368 | + regulator-state-mem { |
333 | + regulator-off-in-suspend; | | 369 | + regulator-off-in-suspend; |
334 | + }; | | 370 | + }; |
335 | + }; | | 371 | + }; |
336 | + | | 372 | + |
337 | + vcc_3v0: LDO_REG8 { | | 373 | + vcc_3v0: LDO_REG8 { |
338 | + regulator-name = "vcc_3v0"; | | 374 | + regulator-name = "vcc_3v0"; |
339 | + regulator-always-on; | | 375 | + regulator-always-on; |
340 | + regulator-boot-on; | | 376 | + regulator-boot-on; |
341 | + regulator-min-microvolt = <3000000>; | | 377 | + regulator-min-microvolt = <3000000>; |
342 | + regulator-max-microvolt = <3000000>; | | 378 | + regulator-max-microvolt = <3000000>; |
343 | + regulator-state-mem { | | 379 | + regulator-state-mem { |
344 | + regulator-on-in-suspend; | | 380 | + regulator-on-in-suspend; |
345 | + regulator-suspend-microvolt = <3000000>; | | 381 | + regulator-suspend-microvolt = <3000000>; |
346 | + }; | | 382 | + }; |
347 | + }; | | 383 | + }; |
348 | + | | 384 | + |
349 | + vcc3v3_s3: SWITCH_REG1 { | | 385 | + vcc3v3_s3: SWITCH_REG1 { |
350 | + regulator-name = "vcc3v3_s3"; | | 386 | + regulator-name = "vcc3v3_s3"; |
351 | + regulator-always-on; | | 387 | + regulator-always-on; |
352 | + regulator-boot-on; | | 388 | + regulator-boot-on; |
353 | + regulator-state-mem { | | 389 | + regulator-state-mem { |
354 | + regulator-off-in-suspend; | | 390 | + regulator-off-in-suspend; |
355 | + }; | | 391 | + }; |
356 | + }; | | 392 | + }; |
357 | + | | 393 | + |
358 | + vcc3v3_s0: SWITCH_REG2 { | | 394 | + unused: SWITCH_REG2 { |
359 | + regulator-name = "vcc3v3_s0"; | | 395 | + regulator-name = "SWITCH_REG2"; |
360 | + regulator-always-on; | | 396 | + regulator-always-on; |
361 | + regulator-boot-on; | | 397 | + regulator-boot-on; |
362 | + regulator-state-mem { | | 398 | + regulator-state-mem { |
363 | + regulator-off-in-suspend; | | 399 | + regulator-off-in-suspend; |
364 | + }; | | 400 | + }; |
365 | + }; | | 401 | + }; |
366 | + }; | | 402 | + }; |
367 | + }; | | 403 | + }; |
368 | + | | 404 | + |
369 | + vdd_cpu_b: regulator@40 { | | 405 | + vdd_cpu_b: regulator@40 { |
370 | + compatible = "silergy,syr827"; | | 406 | + compatible = "silergy,syr827"; |
371 | + reg = <0x40>; | | 407 | + reg = <0x40>; |
372 | + fcs,suspend-voltage-selector = <1>; | | 408 | + fcs,suspend-voltage-selector = <1>; |
373 | + pinctrl-names = "default"; | | 409 | + pinctrl-names = "default"; |
374 | + pinctrl-0 = <&vsel1_gpio>; | | 410 | + pinctrl-0 = <&vsel1_gpio>; |
375 | + vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; | | 411 | + vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; |
376 | + regulator-compatible = "fan53555-reg"; | | 412 | + regulator-compatible = "fan53555-reg"; |
377 | + regulator-name = "vdd_cpu_b"; | | 413 | + regulator-name = "vdd_cpu_b"; |
378 | + regulator-min-microvolt = <712500>; | | 414 | + regulator-min-microvolt = <712500>; |
379 | + regulator-max-microvolt = <1500000>; | | 415 | + regulator-max-microvolt = <1500000>; |
380 | + regulator-ramp-delay = <1000>; | | 416 | + regulator-ramp-delay = <1000>; |
381 | + regulator-always-on; | | 417 | + regulator-always-on; |
382 | + regulator-boot-on; | | 418 | + regulator-boot-on; |
383 | + vin-supply = <&vcc_sys>; | | 419 | + vin-supply = <&vcc_sys>; |
384 | + | | 420 | + |
385 | + regulator-state-mem { | | 421 | + regulator-state-mem { |
386 | + regulator-off-in-suspend; | | 422 | + regulator-off-in-suspend; |
387 | + }; | | 423 | + }; |
388 | + }; | | 424 | + }; |
389 | + | | 425 | + |
390 | + vdd_gpu: regulator@41 { | | 426 | + vdd_gpu: regulator@41 { |
391 | + compatible = "silergy,syr828"; | | 427 | + compatible = "silergy,syr828"; |
392 | + reg = <0x41>; | | 428 | + reg = <0x41>; |
393 | + fcs,suspend-voltage-selector = <1>; | | 429 | + fcs,suspend-voltage-selector = <1>; |
394 | + pinctrl-names = "default"; | | 430 | + pinctrl-names = "default"; |
395 | + pinctrl-0 = <&vsel2_gpio>; | | 431 | + pinctrl-0 = <&vsel2_gpio>; |
396 | + vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; | | 432 | + vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; |
397 | + regulator-compatible = "fan53555-reg"; | | 433 | + regulator-compatible = "fan53555-reg"; |
398 | + regulator-name = "vdd_gpu"; | | 434 | + regulator-name = "vdd_gpu"; |
399 | + regulator-min-microvolt = <712500>; | | 435 | + regulator-min-microvolt = <712500>; |
400 | + regulator-max-microvolt = <1500000>; | | 436 | + regulator-max-microvolt = <1500000>; |
401 | + regulator-ramp-delay = <1000>; | | 437 | + regulator-ramp-delay = <1000>; |
402 | + regulator-always-on; | | 438 | + regulator-always-on; |
403 | + regulator-boot-on; | | 439 | + regulator-boot-on; |
404 | + vin-supply = <&vcc_sys>; | | 440 | + vin-supply = <&vcc_sys>; |
405 | + | | 441 | + |
406 | + regulator-state-mem { | | 442 | + regulator-state-mem { |
407 | + regulator-off-in-suspend; | | 443 | + regulator-off-in-suspend; |
408 | + }; | | 444 | + }; |
409 | + }; | | 445 | + }; |
410 | + | | 446 | + |
411 | +}; | | 447 | +}; |
412 | + | | 448 | + |
413 | +&i2c4 { | | 449 | +&i2c4 { |
414 | + i2c-scl-rising-time-ns = <600>; | | 450 | + i2c-scl-rising-time-ns = <600>; |
415 | + i2c-scl-falling-time-ns = <20>; | | 451 | + i2c-scl-falling-time-ns = <20>; |
416 | + status = "okay"; | | 452 | + status = "okay"; |
417 | + | | 453 | + |
418 | + fusb0: typec-portc@22 { | | 454 | + fusb0: typec-portc@22 { |
419 | + compatible = "fcs,fusb302"; | | 455 | + compatible = "fcs,fusb302"; |
420 | + reg = <0x22>; | | 456 | + reg = <0x22>; |
421 | + interrupt-parent = <&gpio1>; | | 457 | + interrupt-parent = <&gpio1>; |
422 | + interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; | | 458 | + interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; |
423 | + pinctrl-names = "default"; | | 459 | + pinctrl-names = "default"; |
424 | + pinctrl-0 = <&fusb0_int>; | | 460 | + pinctrl-0 = <&fusb0_int>; |
425 | + vbus-supply = <&vcc5v0_usb3_host>; | | 461 | + vbus-supply = <&vcc5v0_usb3_host>; |
426 | + status = "okay"; | | 462 | + status = "okay"; |
427 | + }; | | 463 | + }; |
428 | +}; | | 464 | +}; |
429 | + | | 465 | + |
430 | +&io_domains { | | 466 | +&io_domains { |
431 | + status = "okay"; | | 467 | + status = "okay"; |
432 | + | | 468 | + |
433 | + bt656-supply = <&vcc1v8_dvp>; | | 469 | + bt656-supply = <&vcc1v8_dvp>; |
434 | + audio-supply = <&vcca1v8_codec>; | | 470 | + audio-supply = <&vcca1v8_codec>; |
435 | + sdmmc-supply = <&vcc_sdio>; | | 471 | + sdmmc-supply = <&vcc_sdio>; |
436 | + gpio1830-supply = <&vcc_3v0>; | | 472 | + gpio1830-supply = <&vcc_3v0>; |
437 | +}; | | 473 | +}; |
438 | + | | 474 | + |
439 | +&pmu_io_domains { | | 475 | +&pmu_io_domains { |
440 | + pmu1830-supply = <&vcc_3v0>; | | 476 | + pmu1830-supply = <&vcc_3v0>; |
441 | + status = "okay"; | | 477 | + status = "okay"; |
442 | +}; | | 478 | +}; |
443 | + | | 479 | + |
444 | +&pinctrl { | | 480 | +&pinctrl { |
445 | + buttons { | | 481 | + buttons { |
446 | + pwrbtn: pwrbtn { | | 482 | + pwrbtn: pwrbtn { |
447 | + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; | | 483 | + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; |
448 | + }; | | 484 | + }; |
449 | + }; | | 485 | + }; |
450 | + | | 486 | + |
451 | + fusb302x { | | 487 | + fusb302x { |
452 | + fusb0_int: fusb0-int { | | 488 | + fusb0_int: fusb0-int { |
453 | + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; | | 489 | + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
454 | + }; | | 490 | + }; |
455 | + }; | | 491 | + }; |
456 | + | | 492 | + |
457 | + pmic { | | 493 | + pmic { |
458 | + pmic_int_l: pmic-int-l { | | 494 | + pmic_int_l: pmic-int-l { |
459 | + rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; | | 495 | + rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; |
460 | + }; | | 496 | + }; |
461 | + | | 497 | + |
462 | + vsel1_gpio: vsel1-gpio { | | 498 | + vsel1_gpio: vsel1-gpio { |
463 | + rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; | | 499 | + rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; |
464 | + }; | | 500 | + }; |
465 | + | | 501 | + |
466 | + vsel2_gpio: vsel2-gpio { | | 502 | + vsel2_gpio: vsel2-gpio { |
467 | + rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; | | 503 | + rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; |
468 | + }; | | 504 | + }; |
469 | + }; | | 505 | + }; |
470 | + | | 506 | + |
471 | + sdio-pwrseq { | | 507 | + sdio-pwrseq { |
472 | + wifi_enable_h: wifi-enable-h { | | 508 | + wifi_enable_h: wifi-enable-h { |
473 | + rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; | | 509 | + rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
474 | + }; | | 510 | + }; |
475 | + }; | | 511 | + }; |
476 | + | | 512 | + |
477 | + usb-typec { | | 513 | + usb-typec { |
478 | + vcc5v0_typec_en: vcc5v0_typec_en { | | 514 | + vcc5v0_typec_en: vcc5v0_typec_en { |
479 | + rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; | | 515 | + rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; |
480 | + }; | | 516 | + }; |
481 | + }; | | 517 | + }; |
482 | + | | 518 | + |
483 | + usb2 { | | 519 | + usb2 { |
484 | + vcc5v0_host_en: vcc5v0-host-en { | | 520 | + vcc5v0_host_en: vcc5v0-host-en { |
485 | + rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; | | 521 | + rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; |
486 | + }; | | 522 | + }; |
487 | + | | 523 | + |
488 | + host_vbus_drv: host-vbus-drv { | | 524 | + host_vbus_drv: host-vbus-drv { |
489 | + rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; | | 525 | + rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
490 | + }; | | 526 | + }; |
491 | + | | 527 | + |
492 | + host_usb3_drv: host-usb3-drv { | | 528 | + host_usb3_drv: host-usb3-drv { |
493 | + rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; | | 529 | + rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
494 | + }; | | 530 | + }; |
| | | 531 | + |
| | | 532 | + /* Shared between LCD and usb */ |
| | | 533 | + lcdvcc_en: lcdvcc-en { |
| | | 534 | + rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
| | | 535 | + }; |
495 | + }; | | 536 | + }; |
496 | +}; | | 537 | +}; |
497 | + | | 538 | + |
498 | +&pwm0 { | | 539 | +&pwm0 { |
499 | + status = "okay"; | | 540 | + status = "okay"; |
500 | +}; | | 541 | +}; |
501 | + | | 542 | + |
502 | +&pwm1 { | | 543 | +&pwm1 { |
503 | + status = "okay"; | | 544 | + status = "okay"; |
504 | +}; | | 545 | +}; |
505 | + | | 546 | + |
506 | +&pwm2 { | | 547 | +&pwm2 { |
507 | + status = "okay"; | | 548 | + status = "okay"; |
508 | +}; | | 549 | +}; |
509 | + | | 550 | + |
510 | +&saradc { | | 551 | +&saradc { |
511 | + status = "okay"; | | 552 | + status = "okay"; |
512 | +}; | | 553 | +}; |
513 | + | | 554 | + |
514 | +&sdmmc { | | 555 | +&sdmmc { |
515 | + bus-width = <4>; | | 556 | + bus-width = <4>; |
516 | + status = "okay"; | | 557 | + cap-mmc-highspeed; |
| | | 558 | + cap-sd-highspeed; |
| | | 559 | + cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; |
| | | 560 | + disable-wp; |
| | | 561 | + sd-uhs-sdr104; |
517 | + max-frequency = <20000000>; | | 562 | + max-frequency = <20000000>; |
| | | 563 | + vqmmc-supply = <&vcc_sdio>; |
| | | 564 | + pinctrl-names = "default"; |
| | | 565 | + pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; |
| | | 566 | + status = "okay"; |
518 | +}; | | 567 | +}; |
519 | + | | 568 | + |
520 | +&sdhci { | | 569 | +&sdhci { |
521 | + bus-width = <8>; | | 570 | + bus-width = <8>; |
522 | + max-frequency = <25000000>; | | 571 | + max-frequency = <25000000>; |
523 | + mmc-hs400-1_8v; | | 572 | + mmc-hs400-1_8v; |
524 | + mmc-hs400-enhanced-strobe; | | 573 | + mmc-hs400-enhanced-strobe; |
525 | + non-removable; | | 574 | + non-removable; |
526 | + status = "okay"; | | 575 | + status = "okay"; |
527 | +}; | | 576 | +}; |
528 | + | | 577 | + |
529 | +&tcphy0 { | | 578 | +&tcphy0 { |
530 | + status = "okay"; | | 579 | + status = "okay"; |
531 | +}; | | 580 | +}; |
532 | + | | 581 | + |
533 | +&tcphy1 { | | 582 | +&tcphy1 { |
534 | + status = "okay"; | | 583 | + status = "okay"; |
535 | +}; | | 584 | +}; |
536 | + | | 585 | + |
537 | +&tsadc { | | 586 | +&tsadc { |
538 | + /* tshut mode 0:CRU 1:GPIO */ | | 587 | + /* tshut mode 0:CRU 1:GPIO */ |
539 | + rockchip,hw-tshut-mode = <1>; | | 588 | + rockchip,hw-tshut-mode = <1>; |
540 | + /* tshut polarity 0:LOW 1:HIGH */ | | 589 | + /* tshut polarity 0:LOW 1:HIGH */ |
541 | + rockchip,hw-tshut-polarity = <1>; | | 590 | + rockchip,hw-tshut-polarity = <1>; |
542 | + status = "okay"; | | 591 | + status = "okay"; |
543 | +}; | | 592 | +}; |
544 | + | | 593 | + |
545 | +&u2phy0 { | | 594 | +&u2phy0 { |
546 | + status = "okay"; | | 595 | + status = "okay"; |
547 | + | | 596 | + |
548 | + u2phy0_otg: otg-port { | | 597 | + u2phy0_otg: otg-port { |
549 | + status = "okay"; | | 598 | + status = "okay"; |
550 | + }; | | 599 | + }; |
551 | + | | 600 | + |
552 | + u2phy0_host: host-port { | | 601 | + u2phy0_host: host-port { |
553 | + phy-supply = <&vcc5v0_host>; | | 602 | + phy-supply = <&vcc5v0_host>; |
554 | + status = "okay"; | | 603 | + status = "okay"; |
555 | + }; | | 604 | + }; |
556 | +}; | | 605 | +}; |
557 | + | | 606 | + |
558 | +&u2phy1 { | | 607 | +&u2phy1 { |
559 | + status = "okay"; | | 608 | + status = "okay"; |
560 | + | | 609 | + |
561 | + u2phy1_otg: otg-port { | | 610 | + u2phy1_otg: otg-port { |
562 | + status = "okay"; | | 611 | + status = "okay"; |
563 | + }; | | 612 | + }; |
564 | + | | 613 | + |
565 | + u2phy1_host: host-port { | | 614 | + u2phy1_host: host-port { |
566 | + phy-supply = <&vcc5v0_host>; | | 615 | + phy-supply = <&vcc5v0_host>; |
567 | + status = "okay"; | | 616 | + status = "okay"; |
568 | + }; | | 617 | + }; |
569 | +}; | | 618 | +}; |
570 | + | | 619 | + |
571 | +&uart2 { | | 620 | +&uart2 { |
572 | + status = "okay"; | | 621 | + status = "okay"; |
573 | +}; | | 622 | +}; |
574 | + | | 623 | + |
575 | +&usb_host0_ehci { | | 624 | +&usb_host0_ehci { |
576 | + status = "okay"; | | 625 | + status = "okay"; |
577 | +}; | | 626 | +}; |
578 | + | | 627 | + |
579 | +&usb_host0_ohci { | | 628 | +&usb_host0_ohci { |
580 | + status = "okay"; | | 629 | + status = "okay"; |
581 | +}; | | 630 | +}; |
582 | + | | 631 | + |
583 | +&usb_host1_ehci { | | 632 | +&usb_host1_ehci { |
| | | 633 | + phy-supply = <&vcc3v3_s0>; |
584 | + status = "okay"; | | 634 | + status = "okay"; |
585 | +}; | | 635 | +}; |
586 | + | | 636 | + |
587 | +&usb_host1_ohci { | | 637 | +&usb_host1_ohci { |
| | | 638 | + phy-supply = <&vcc3v3_s0>; |
588 | + status = "okay"; | | 639 | + status = "okay"; |
589 | +}; | | 640 | +}; |
590 | + | | 641 | + |
591 | +&usbdrd3_0 { | | 642 | +&usbdrd3_0 { |
592 | + status = "okay"; | | 643 | + status = "okay"; |
593 | +}; | | 644 | +}; |
594 | + | | 645 | + |
595 | +&usbdrd_dwc3_0 { | | 646 | +&usbdrd_dwc3_0 { |
596 | + status = "okay"; | | 647 | + status = "okay"; |
597 | + dr_mode = "otg"; | | 648 | + dr_mode = "otg"; |
598 | +}; | | 649 | +}; |
599 | + | | 650 | + |
600 | +&usbdrd3_1 { | | 651 | +&usbdrd3_1 { |
601 | + status = "okay"; | | 652 | + status = "okay"; |
602 | +}; | | 653 | +}; |
603 | + | | 654 | + |
604 | +&usbdrd_dwc3_1 { | | 655 | +&usbdrd_dwc3_1 { |
605 | + status = "okay"; | | 656 | + status = "okay"; |
606 | + dr_mode = "host"; | | 657 | + dr_mode = "host"; |
607 | +}; | | 658 | +}; |
608 | + | | 659 | + |
609 | +&spi1 { | | 660 | +&spi1 { |
610 | + status = "okay"; | | 661 | + status = "okay"; |
611 | + | | 662 | + |
612 | + spiflash: spi-flash@0 { | | 663 | + spiflash: spi-flash@0 { |
613 | + #address-cells = <0x1>; | | 664 | + #address-cells = <0x1>; |
614 | + #size-cells = <1>; | | 665 | + #size-cells = <1>; |
615 | + compatible = "jedec,spi-nor"; | | 666 | + compatible = "jedec,spi-nor"; |
616 | + reg = <0x0>; | | 667 | + reg = <0x0>; |
617 | + spi-max-frequency = <10000000>; | | 668 | + spi-max-frequency = <10000000>; |
618 | + status = "okay"; | | 669 | + status = "okay"; |
619 | + | | 670 | + |
620 | + partitions { | | 671 | + partitions { |
621 | + compatible = "fixed-partitions"; | | 672 | + compatible = "fixed-partitions"; |
622 | + #address-cells = <1>; | | 673 | + #address-cells = <1>; |
623 | + #size-cells = <1>; | | 674 | + #size-cells = <1>; |
624 | + | | 675 | + |
625 | + loader@8000 { | | 676 | + loader@8000 { |
626 | + label = "loader"; | | 677 | + label = "loader"; |
627 | + reg = <0x0 0x3F8000>; | | 678 | + reg = <0x0 0x3F8000>; |
628 | + }; | | 679 | + }; |
629 | + | | 680 | + |
630 | + env@3f8000 { | | 681 | + env@3f8000 { |
631 | + label = "env"; | | 682 | + label = "env"; |
632 | + reg = <0x3F8000 0x8000>; | | 683 | + reg = <0x3F8000 0x8000>; |
633 | + }; | | 684 | + }; |
634 | + | | 685 | + |
635 | + vendor@7c0000 { | | 686 | + vendor@7c0000 { |
636 | + label = "vendor"; | | 687 | + label = "vendor"; |
637 | + reg = <0x7C0000 0x40000>; | | 688 | + reg = <0x7C0000 0x40000>; |
638 | + }; | | 689 | + }; |
639 | + }; | | 690 | + }; |
640 | + }; | | 691 | + }; |
641 | +}; | | 692 | +}; |