blob: c08e69391c015405a5ea7de34e211ee12ee6c58a [file] [log] [blame]
Jagan Teki5cc21182020-04-28 15:30:17 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Philipp Tomsich3093d202017-03-28 18:48:51 +02002/*
Jagan Teki5cc21182020-04-28 15:30:17 +05303 * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
Philipp Tomsich3093d202017-03-28 18:48:51 +02004 */
5
Philipp Tomsich3093d202017-03-28 18:48:51 +02006#include <dt-bindings/pwm/pwm.h>
7#include "rk3399.dtsi"
Jagan Teki5cc21182020-04-28 15:30:17 +05308#include "rk3399-opp.dtsi"
Philipp Tomsich3093d202017-03-28 18:48:51 +02009
10/ {
Peter Robinson7c79b872021-07-22 16:20:42 +010011 aliases {
Jonas Karlmanf9f26de2024-05-01 16:22:24 +000012 ethernet0 = &gmac;
Peter Robinson7c79b872021-07-22 16:20:42 +010013 mmc0 = &sdhci;
14 };
15
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020016 leds {
17 compatible = "gpio-leds";
18 pinctrl-names = "default";
Peter Robinson7c79b872021-07-22 16:20:42 +010019 pinctrl-0 = <&module_led_pin>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020020
Peter Robinson7c79b872021-07-22 16:20:42 +010021 module_led: led-0 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020022 label = "module_led";
Klaus Gogerde02bc62017-11-06 23:02:54 +010023 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020024 linux,default-trigger = "heartbeat";
Jagan Teki5cc21182020-04-28 15:30:17 +053025 panic-indicator;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020026 };
27 };
28
Quentin Schulz67ec9312022-11-15 15:46:23 +010029 extcon_usb3: extcon-usb3 {
30 compatible = "linux,extcon-usb-gpio";
Jonas Karlmanf9f26de2024-05-01 16:22:24 +000031 id-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
Quentin Schulz67ec9312022-11-15 15:46:23 +010032 pinctrl-names = "default";
33 pinctrl-0 = <&usb3_id>;
34 };
35
Jagan Teki5cc21182020-04-28 15:30:17 +053036 clkin_gmac: external-gmac-clock {
37 compatible = "fixed-clock";
38 clock-frequency = <125000000>;
39 clock-output-names = "clkin_gmac";
40 #clock-cells = <0>;
Philipp Tomsich75fc2082017-09-29 19:28:01 +020041 };
42
Jagan Teki5cc21182020-04-28 15:30:17 +053043 vcc1v2_phy: vcc1v2-phy {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020044 compatible = "regulator-fixed";
Jagan Teki5cc21182020-04-28 15:30:17 +053045 regulator-name = "vcc1v2_phy";
Philipp Tomsich3093d202017-03-28 18:48:51 +020046 regulator-always-on;
47 regulator-boot-on;
Jagan Teki5cc21182020-04-28 15:30:17 +053048 regulator-min-microvolt = <1200000>;
49 regulator-max-microvolt = <1200000>;
50 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020051 };
52
53 vcc3v3_sys: vcc3v3-sys {
54 compatible = "regulator-fixed";
55 regulator-name = "vcc3v3_sys";
56 regulator-always-on;
57 regulator-boot-on;
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
Jagan Teki5cc21182020-04-28 15:30:17 +053060 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020061 };
62
Jagan Teki5cc21182020-04-28 15:30:17 +053063 vcc5v0_host: vcc5v0-host-regulator {
Philipp Tomsich3093d202017-03-28 18:48:51 +020064 compatible = "regulator-fixed";
Heiko Stuebneredfd0362020-06-05 12:06:37 +020065 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020066 pinctrl-names = "default";
Jagan Teki5cc21182020-04-28 15:30:17 +053067 pinctrl-0 = <&vcc5v0_host_en>;
68 regulator-name = "vcc5v0_host";
Philipp Tomsich3093d202017-03-28 18:48:51 +020069 regulator-always-on;
Jagan Teki5cc21182020-04-28 15:30:17 +053070 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020071 };
72
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020073 vcc5v0_sys: vcc5v0-sys {
74 compatible = "regulator-fixed";
75 regulator-name = "vcc5v0_sys";
76 regulator-always-on;
77 regulator-boot-on;
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020080 };
Quentin Schulz67ec9312022-11-15 15:46:23 +010081
82 vdd_log: vdd-log {
83 compatible = "pwm-regulator";
84 pwms = <&pwm2 0 25000 1>;
85 pwm-supply = <&vcc5v0_sys>;
86 regulator-name = "vdd_log";
87 regulator-min-microvolt = <800000>;
88 regulator-max-microvolt = <1400000>;
89 regulator-always-on;
90 regulator-boot-on;
91 };
Jagan Teki5cc21182020-04-28 15:30:17 +053092};
Philipp Tomsich3093d202017-03-28 18:48:51 +020093
Jagan Teki5cc21182020-04-28 15:30:17 +053094&cpu_b0 {
95 cpu-supply = <&vdd_cpu_b>;
96};
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020097
Jagan Teki5cc21182020-04-28 15:30:17 +053098&cpu_b1 {
99 cpu-supply = <&vdd_cpu_b>;
100};
101
102&cpu_l0 {
103 cpu-supply = <&vdd_cpu_l>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200104};
105
Jagan Teki5cc21182020-04-28 15:30:17 +0530106&cpu_l1 {
107 cpu-supply = <&vdd_cpu_l>;
108};
109
110&cpu_l2 {
111 cpu-supply = <&vdd_cpu_l>;
112};
113
114&cpu_l3 {
115 cpu-supply = <&vdd_cpu_l>;
116};
117
Philipp Tomsich3093d202017-03-28 18:48:51 +0200118&emmc_phy {
119 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530120 drive-impedance-ohm = <33>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200121};
122
Jonas Karlmanf9f26de2024-05-01 16:22:24 +0000123&gpio0 {
124 /*
125 * The BIOS_DISABLE hog is a feedback pin for the actual status of the
126 * signal. This usually represents the state of a switch on the baseboard.
127 * The pin has a 10k pull-up resistor connected, so no pull-up setting is needed.
128 */
129 bios-disable-hog {
130 gpios = <RK_PB0 GPIO_ACTIVE_HIGH>;
131 gpio-hog;
132 input;
133 line-name = "bios_disable";
134 };
135};
136
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200137&gmac {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200138 assigned-clocks = <&cru SCLK_RMII_SRC>;
139 assigned-clock-parents = <&clkin_gmac>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530140 clock_in_out = "input";
141 phy-supply = <&vcc1v2_phy>;
142 phy-mode = "rgmii";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200143 pinctrl-names = "default";
144 pinctrl-0 = <&rgmii_pins>;
Heiko Stuebner3febd56e2020-06-05 12:06:36 +0200145 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530146 snps,reset-active-low;
147 snps,reset-delays-us = <0 10000 50000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200148 tx_delay = <0x10>;
149 rx_delay = <0x10>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200150 status = "okay";
151};
152
Jagan Teki5cc21182020-04-28 15:30:17 +0530153&gpu {
154 mali-supply = <&vdd_gpu>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200155 status = "okay";
156};
157
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200158&i2c0 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200159 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200160 i2c-scl-rising-time-ns = <168>;
161 i2c-scl-falling-time-ns = <4>;
162 clock-frequency = <400000>;
163
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200164 rk808: pmic@1b {
165 compatible = "rockchip,rk808";
166 reg = <0x1b>;
167 interrupt-parent = <&gpio1>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530168 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
169 #clock-cells = <1>;
170 clock-output-names = "xin32k", "rk808-clkout2";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200171 pinctrl-names = "default";
172 pinctrl-0 = <&pmic_int_l>;
173 rockchip,system-power-controller;
174 wakeup-source;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200175
176 vcc1-supply = <&vcc5v0_sys>;
177 vcc2-supply = <&vcc5v0_sys>;
178 vcc3-supply = <&vcc5v0_sys>;
179 vcc4-supply = <&vcc5v0_sys>;
180 vcc6-supply = <&vcc5v0_sys>;
181 vcc7-supply = <&vcc5v0_sys>;
182 vcc8-supply = <&vcc3v3_sys>;
183 vcc9-supply = <&vcc5v0_sys>;
184 vcc10-supply = <&vcc5v0_sys>;
185 vcc11-supply = <&vcc5v0_sys>;
186 vcc12-supply = <&vcc3v3_sys>;
187 vddio-supply = <&vcc1v8_pmu>;
188
189 regulators {
190 vdd_center: DCDC_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530191 regulator-name = "vdd_center";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200192 regulator-min-microvolt = <750000>;
193 regulator-max-microvolt = <1350000>;
194 regulator-ramp-delay = <6001>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530195 regulator-always-on;
196 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200197 regulator-state-mem {
198 regulator-off-in-suspend;
199 };
200 };
201
202 vdd_cpu_l: DCDC_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530203 regulator-name = "vdd_cpu_l";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200204 regulator-min-microvolt = <750000>;
205 regulator-max-microvolt = <1350000>;
206 regulator-ramp-delay = <6001>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530207 regulator-always-on;
208 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200209 regulator-state-mem {
210 regulator-off-in-suspend;
211 };
212 };
213
214 vcc_ddr: DCDC_REG3 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530215 regulator-name = "vcc_ddr";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200216 regulator-always-on;
217 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200218 regulator-state-mem {
219 regulator-on-in-suspend;
220 };
221 };
222
223 vcc_1v8: DCDC_REG4 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530224 regulator-name = "vcc_1v8";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530227 regulator-always-on;
228 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200229 regulator-state-mem {
230 regulator-on-in-suspend;
231 regulator-suspend-microvolt = <1800000>;
232 };
233 };
234
235 vcc_ldo1: LDO_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530236 regulator-name = "vcc_ldo1";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200237 regulator-min-microvolt = <1800000>;
238 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530239 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200240 regulator-state-mem {
241 regulator-off-in-suspend;
242 };
243 };
244
245 vcc1v8_hdmi: LDO_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530246 regulator-name = "vcc1v8_hdmi";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530249 regulator-always-on;
250 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200251 regulator-state-mem {
252 regulator-off-in-suspend;
253 };
254 };
255
256 vcc1v8_pmu: LDO_REG3 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530257 regulator-name = "vcc1v8_pmu";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530260 regulator-always-on;
261 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200262 regulator-state-mem {
263 regulator-on-in-suspend;
264 regulator-suspend-microvolt = <1800000>;
265 };
266 };
267
268 vcc_sd: LDO_REG4 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530269 regulator-name = "vcc_sd";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200270 regulator-min-microvolt = <1800000>;
Klaus Gogere7b89402017-11-06 23:02:55 +0100271 regulator-max-microvolt = <3000000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530272 regulator-always-on;
273 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200274 regulator-state-mem {
275 regulator-on-in-suspend;
Klaus Gogere7b89402017-11-06 23:02:55 +0100276 regulator-suspend-microvolt = <3000000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200277 };
278 };
279
280 vcc_ldo5: LDO_REG5 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530281 regulator-name = "vcc_ldo5";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200282 regulator-min-microvolt = <3000000>;
283 regulator-max-microvolt = <3000000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530284 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200285 regulator-state-mem {
286 regulator-off-in-suspend;
287 };
288 };
289
290 vcc_ldo6: LDO_REG6 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530291 regulator-name = "vcc_ldo6";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200292 regulator-min-microvolt = <1500000>;
293 regulator-max-microvolt = <1500000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530294 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200295 regulator-state-mem {
296 regulator-off-in-suspend;
297 };
298 };
299
300 vcc0v9_hdmi: LDO_REG7 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530301 regulator-name = "vcc0v9_hdmi";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200302 regulator-min-microvolt = <900000>;
303 regulator-max-microvolt = <900000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530304 regulator-always-on;
305 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200306 regulator-state-mem {
307 regulator-off-in-suspend;
308 };
309 };
310
311 vcc_efuse: LDO_REG8 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530312 regulator-name = "vcc_efuse";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530315 regulator-always-on;
316 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200317 regulator-state-mem {
318 regulator-off-in-suspend;
319 };
320 };
321
322 vcc3v3_s3: SWITCH_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530323 regulator-name = "vcc3v3_s3";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200324 regulator-always-on;
325 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200326 regulator-state-mem {
327 regulator-off-in-suspend;
328 };
329 };
330
331 vcc3v3_s0: SWITCH_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530332 regulator-name = "vcc3v3_s0";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200333 regulator-always-on;
334 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200335 regulator-state-mem {
336 regulator-off-in-suspend;
337 };
338 };
339 };
340 };
Jagan Teki5cc21182020-04-28 15:30:17 +0530341
342 vdd_gpu: regulator@60 {
343 compatible = "fcs,fan53555";
344 reg = <0x60>;
345 fcs,suspend-voltage-selector = <1>;
346 regulator-name = "vdd_gpu";
347 regulator-min-microvolt = <600000>;
348 regulator-max-microvolt = <1230000>;
349 regulator-ramp-delay = <1000>;
350 regulator-always-on;
351 regulator-boot-on;
352 vin-supply = <&vcc5v0_sys>;
353 };
354};
355
356&i2c7 {
357 status = "okay";
358 clock-frequency = <400000>;
359
360 fan: fan@18 {
361 compatible = "ti,amc6821";
362 reg = <0x18>;
363 #cooling-cells = <2>;
364 };
365
366 rtc_twi: rtc@6f {
367 compatible = "isil,isl1208";
368 reg = <0x6f>;
369 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200370};
371
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200372&i2c8 {
373 status = "okay";
374 clock-frequency = <400000>;
375
Jagan Teki5cc21182020-04-28 15:30:17 +0530376 vdd_cpu_b: regulator@60 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200377 compatible = "fcs,fan53555";
378 reg = <0x60>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200379 vin-supply = <&vcc5v0_sys>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200380 regulator-name = "vdd_cpu_b";
381 regulator-min-microvolt = <600000>;
382 regulator-max-microvolt = <1230000>;
383 regulator-ramp-delay = <1000>;
384 fcs,suspend-voltage-selector = <1>;
385 regulator-always-on;
386 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200387 };
388};
389
390&i2s0 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530391 pinctrl-0 = <&i2s0_2ch_bus>;
392 rockchip,playback-channels = <2>;
393 rockchip,capture-channels = <2>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200394 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200395};
396
Jagan Teki5cc21182020-04-28 15:30:17 +0530397/*
398 * As Q7 does not specify neither a global nor a RX clock for I2S these
399 * signals are not used. Furthermore I2S0_LRCK_RX is used as GPIO.
400 * Therefore we have to redefine the i2s0_2ch_bus definition to prevent
401 * conflicts.
402 */
403&i2s0_2ch_bus {
404 rockchip,pins =
405 <3 RK_PD0 1 &pcfg_pull_none>,
406 <3 RK_PD2 1 &pcfg_pull_none>,
407 <3 RK_PD3 1 &pcfg_pull_none>,
408 <3 RK_PD7 1 &pcfg_pull_none>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200409};
410
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200411&io_domains {
412 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530413 bt656-supply = <&vcc_1v8>;
414 audio-supply = <&vcc_1v8>;
415 sdmmc-supply = <&vcc_sd>;
416 gpio1830-supply = <&vcc_1v8>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200417};
418
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200419&pmu_io_domains {
420 status = "okay";
421 pmu1830-supply = <&vcc_1v8>;
422};
423
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200424&pwm2 {
425 status = "okay";
426};
427
Philipp Tomsich3093d202017-03-28 18:48:51 +0200428&pinctrl {
Jagan Teki5cc21182020-04-28 15:30:17 +0530429 i2c8 {
430 i2c8_xfer_a: i2c8-xfer {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200431 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530432 <1 RK_PC4 1 &pcfg_pull_up>,
433 <1 RK_PC5 1 &pcfg_pull_up>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200434 };
435 };
436
Jagan Teki5cc21182020-04-28 15:30:17 +0530437 leds {
Peter Robinson7c79b872021-07-22 16:20:42 +0100438 module_led_pin: module-led-pin {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200439 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530440 <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200441 };
442 };
443
Jagan Teki5cc21182020-04-28 15:30:17 +0530444 pmic {
445 pmic_int_l: pmic-int-l {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200446 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530447 <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200448 };
449 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200450
Jagan Teki5cc21182020-04-28 15:30:17 +0530451 usb2 {
452 vcc5v0_host_en: vcc5v0-host-en {
Klaus Gogerde02bc62017-11-06 23:02:54 +0100453 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530454 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200455 };
456 };
Quentin Schulz67ec9312022-11-15 15:46:23 +0100457
458 usb3 {
459 usb3_id: usb3-id {
460 rockchip,pins =
461 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
462 };
463 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200464};
465
Jagan Teki5cc21182020-04-28 15:30:17 +0530466&sdhci {
Quentin Schulz67ec9312022-11-15 15:46:23 +0100467 /*
468 * Signal integrity isn't great at 200MHz but 100MHz has proven stable
469 * enough.
470 */
471 max-frequency = <100000000>;
472
Jagan Teki5cc21182020-04-28 15:30:17 +0530473 bus-width = <8>;
474 mmc-hs400-1_8v;
475 mmc-hs400-enhanced-strobe;
476 non-removable;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200477 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200478};
Jagan Teki5cc21182020-04-28 15:30:17 +0530479
480&sdmmc {
481 vqmmc-supply = <&vcc_sd>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200482};
Jagan Teki5cc21182020-04-28 15:30:17 +0530483
484&spi1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200485 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530486
487 norflash: flash@0 {
488 compatible = "jedec,spi-nor";
489 reg = <0>;
490 spi-max-frequency = <50000000>;
491 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200492};
Jagan Teki5cc21182020-04-28 15:30:17 +0530493
494&tcphy1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200495 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200496};
497
Jagan Teki5cc21182020-04-28 15:30:17 +0530498&tsadc {
499 rockchip,hw-tshut-mode = <1>;
500 rockchip,hw-tshut-polarity = <1>;
501 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200502};
503
Jagan Teki5cc21182020-04-28 15:30:17 +0530504&u2phy1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200505 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200506
Jagan Teki5cc21182020-04-28 15:30:17 +0530507 u2phy1_otg: otg-port {
508 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200509 };
Jagan Teki5cc21182020-04-28 15:30:17 +0530510
511 u2phy1_host: host-port {
512 phy-supply = <&vcc5v0_host>;
513 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200514 };
515};
516
Jagan Teki5cc21182020-04-28 15:30:17 +0530517&usbdrd3_1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200518 status = "okay";
519};
520
Jagan Teki5cc21182020-04-28 15:30:17 +0530521&usbdrd_dwc3_1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200522 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530523 dr_mode = "host";
524};
Philipp Tomsich3093d202017-03-28 18:48:51 +0200525
Jagan Teki5cc21182020-04-28 15:30:17 +0530526&usb_host1_ehci {
527 status = "okay";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200528};
529
Jagan Teki5cc21182020-04-28 15:30:17 +0530530&usb_host1_ohci {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200531 status = "okay";
532};