blob: 72c06abd27ea7f18669995a0a10793f728afb72a [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/ {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020011 leds {
12 compatible = "gpio-leds";
13 pinctrl-names = "default";
Jagan Teki5cc21182020-04-28 15:30:17 +053014 pinctrl-0 = <&led_pin_module>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020015
Jagan Teki5cc21182020-04-28 15:30:17 +053016 module-led {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020017 label = "module_led";
Klaus Gogerde02bc62017-11-06 23:02:54 +010018 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020019 linux,default-trigger = "heartbeat";
Jagan Teki5cc21182020-04-28 15:30:17 +053020 panic-indicator;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020021 };
22 };
23
Jagan Teki5cc21182020-04-28 15:30:17 +053024 /*
25 * Overwrite the opp-table for CPUB as this board uses a different
26 * regulator (FAN53555) that only allows 10mV steps and therefore
27 * can't reach the operation point target voltages from rk3399-opp.dtsi
28 */
29 /delete-node/ opp-table1;
30 cluster1_opp: opp-table1 {
31 compatible = "operating-points-v2";
32 opp-shared;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020033
Jagan Teki5cc21182020-04-28 15:30:17 +053034 opp00 {
35 opp-hz = /bits/ 64 <408000000>;
36 opp-microvolt = <800000>;
37 clock-latency-ns = <40000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020038 };
Jagan Teki5cc21182020-04-28 15:30:17 +053039 opp01 {
40 opp-hz = /bits/ 64 <600000000>;
41 opp-microvolt = <800000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020042 };
Jagan Teki5cc21182020-04-28 15:30:17 +053043 opp02 {
44 opp-hz = /bits/ 64 <816000000>;
45 opp-microvolt = <830000>;
46 opp-suspend;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020047 };
Jagan Teki5cc21182020-04-28 15:30:17 +053048 opp03 {
49 opp-hz = /bits/ 64 <1008000000>;
50 opp-microvolt = <880000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020051 };
Jagan Teki5cc21182020-04-28 15:30:17 +053052 opp04 {
53 opp-hz = /bits/ 64 <1200000000>;
54 opp-microvolt = <950000>;
55 };
56 opp05 {
57 opp-hz = /bits/ 64 <1416000000>;
58 opp-microvolt = <1030000>;
59 };
60 opp06 {
61 opp-hz = /bits/ 64 <1608000000>;
62 opp-microvolt = <1100000>;
63 };
64 opp07 {
65 opp-hz = /bits/ 64 <1800000000>;
66 opp-microvolt = <1200000>;
67 };
68 opp08 {
69 opp-hz = /bits/ 64 <1992000000>;
70 opp-microvolt = <1230000>;
71 turbo-mode;
72 };
Philipp Tomsich0502b812017-09-12 17:30:57 +020073 };
74
Jagan Teki5cc21182020-04-28 15:30:17 +053075 clkin_gmac: external-gmac-clock {
76 compatible = "fixed-clock";
77 clock-frequency = <125000000>;
78 clock-output-names = "clkin_gmac";
79 #clock-cells = <0>;
Philipp Tomsich75fc2082017-09-29 19:28:01 +020080 };
81
Jagan Teki5cc21182020-04-28 15:30:17 +053082 vcc1v2_phy: vcc1v2-phy {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +020083 compatible = "regulator-fixed";
Jagan Teki5cc21182020-04-28 15:30:17 +053084 regulator-name = "vcc1v2_phy";
Philipp Tomsich3093d202017-03-28 18:48:51 +020085 regulator-always-on;
86 regulator-boot-on;
Jagan Teki5cc21182020-04-28 15:30:17 +053087 regulator-min-microvolt = <1200000>;
88 regulator-max-microvolt = <1200000>;
89 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +020090 };
91
92 vcc3v3_sys: vcc3v3-sys {
93 compatible = "regulator-fixed";
94 regulator-name = "vcc3v3_sys";
95 regulator-always-on;
96 regulator-boot-on;
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
Jagan Teki5cc21182020-04-28 15:30:17 +053099 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200100 };
101
Jagan Teki5cc21182020-04-28 15:30:17 +0530102 vcc5v0_host: vcc5v0-host-regulator {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200103 compatible = "regulator-fixed";
Heiko Stuebneredfd0362020-06-05 12:06:37 +0200104 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530105 enable-active-low;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200106 pinctrl-names = "default";
Jagan Teki5cc21182020-04-28 15:30:17 +0530107 pinctrl-0 = <&vcc5v0_host_en>;
108 regulator-name = "vcc5v0_host";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200109 regulator-always-on;
Jagan Teki5cc21182020-04-28 15:30:17 +0530110 vin-supply = <&vcc5v0_sys>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200111 };
112
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200113 vcc5v0_sys: vcc5v0-sys {
114 compatible = "regulator-fixed";
115 regulator-name = "vcc5v0_sys";
116 regulator-always-on;
117 regulator-boot-on;
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200120 };
Jagan Teki5cc21182020-04-28 15:30:17 +0530121};
Philipp Tomsich3093d202017-03-28 18:48:51 +0200122
Jagan Teki5cc21182020-04-28 15:30:17 +0530123&cpu_b0 {
124 cpu-supply = <&vdd_cpu_b>;
125};
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200126
Jagan Teki5cc21182020-04-28 15:30:17 +0530127&cpu_b1 {
128 cpu-supply = <&vdd_cpu_b>;
129};
130
131&cpu_l0 {
132 cpu-supply = <&vdd_cpu_l>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200133};
134
Jagan Teki5cc21182020-04-28 15:30:17 +0530135&cpu_l1 {
136 cpu-supply = <&vdd_cpu_l>;
137};
138
139&cpu_l2 {
140 cpu-supply = <&vdd_cpu_l>;
141};
142
143&cpu_l3 {
144 cpu-supply = <&vdd_cpu_l>;
145};
146
Philipp Tomsich3093d202017-03-28 18:48:51 +0200147&emmc_phy {
148 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530149 drive-impedance-ohm = <33>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200150};
151
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200152&gmac {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200153 assigned-clocks = <&cru SCLK_RMII_SRC>;
154 assigned-clock-parents = <&clkin_gmac>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530155 clock_in_out = "input";
156 phy-supply = <&vcc1v2_phy>;
157 phy-mode = "rgmii";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200158 pinctrl-names = "default";
159 pinctrl-0 = <&rgmii_pins>;
Heiko Stuebner3febd56e2020-06-05 12:06:36 +0200160 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530161 snps,reset-active-low;
162 snps,reset-delays-us = <0 10000 50000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200163 tx_delay = <0x10>;
164 rx_delay = <0x10>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200165 status = "okay";
166};
167
Jagan Teki5cc21182020-04-28 15:30:17 +0530168&gpu {
169 mali-supply = <&vdd_gpu>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200170 status = "okay";
171};
172
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200173&i2c0 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200174 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200175 i2c-scl-rising-time-ns = <168>;
176 i2c-scl-falling-time-ns = <4>;
177 clock-frequency = <400000>;
178
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200179 rk808: pmic@1b {
180 compatible = "rockchip,rk808";
181 reg = <0x1b>;
182 interrupt-parent = <&gpio1>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530183 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
184 #clock-cells = <1>;
185 clock-output-names = "xin32k", "rk808-clkout2";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200186 pinctrl-names = "default";
187 pinctrl-0 = <&pmic_int_l>;
188 rockchip,system-power-controller;
189 wakeup-source;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200190
191 vcc1-supply = <&vcc5v0_sys>;
192 vcc2-supply = <&vcc5v0_sys>;
193 vcc3-supply = <&vcc5v0_sys>;
194 vcc4-supply = <&vcc5v0_sys>;
195 vcc6-supply = <&vcc5v0_sys>;
196 vcc7-supply = <&vcc5v0_sys>;
197 vcc8-supply = <&vcc3v3_sys>;
198 vcc9-supply = <&vcc5v0_sys>;
199 vcc10-supply = <&vcc5v0_sys>;
200 vcc11-supply = <&vcc5v0_sys>;
201 vcc12-supply = <&vcc3v3_sys>;
202 vddio-supply = <&vcc1v8_pmu>;
203
204 regulators {
205 vdd_center: DCDC_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530206 regulator-name = "vdd_center";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200207 regulator-min-microvolt = <750000>;
208 regulator-max-microvolt = <1350000>;
209 regulator-ramp-delay = <6001>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530210 regulator-always-on;
211 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200212 regulator-state-mem {
213 regulator-off-in-suspend;
214 };
215 };
216
217 vdd_cpu_l: DCDC_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530218 regulator-name = "vdd_cpu_l";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200219 regulator-min-microvolt = <750000>;
220 regulator-max-microvolt = <1350000>;
221 regulator-ramp-delay = <6001>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530222 regulator-always-on;
223 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200224 regulator-state-mem {
225 regulator-off-in-suspend;
226 };
227 };
228
229 vcc_ddr: DCDC_REG3 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530230 regulator-name = "vcc_ddr";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200231 regulator-always-on;
232 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200233 regulator-state-mem {
234 regulator-on-in-suspend;
235 };
236 };
237
238 vcc_1v8: DCDC_REG4 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530239 regulator-name = "vcc_1v8";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530242 regulator-always-on;
243 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200244 regulator-state-mem {
245 regulator-on-in-suspend;
246 regulator-suspend-microvolt = <1800000>;
247 };
248 };
249
250 vcc_ldo1: LDO_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530251 regulator-name = "vcc_ldo1";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530254 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200255 regulator-state-mem {
256 regulator-off-in-suspend;
257 };
258 };
259
260 vcc1v8_hdmi: LDO_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530261 regulator-name = "vcc1v8_hdmi";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200262 regulator-min-microvolt = <1800000>;
263 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530264 regulator-always-on;
265 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200266 regulator-state-mem {
267 regulator-off-in-suspend;
268 };
269 };
270
271 vcc1v8_pmu: LDO_REG3 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530272 regulator-name = "vcc1v8_pmu";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530275 regulator-always-on;
276 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200277 regulator-state-mem {
278 regulator-on-in-suspend;
279 regulator-suspend-microvolt = <1800000>;
280 };
281 };
282
283 vcc_sd: LDO_REG4 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530284 regulator-name = "vcc_sd";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200285 regulator-min-microvolt = <1800000>;
Klaus Gogere7b89402017-11-06 23:02:55 +0100286 regulator-max-microvolt = <3000000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530287 regulator-always-on;
288 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200289 regulator-state-mem {
290 regulator-on-in-suspend;
Klaus Gogere7b89402017-11-06 23:02:55 +0100291 regulator-suspend-microvolt = <3000000>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200292 };
293 };
294
295 vcc_ldo5: LDO_REG5 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530296 regulator-name = "vcc_ldo5";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200297 regulator-min-microvolt = <3000000>;
298 regulator-max-microvolt = <3000000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530299 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200300 regulator-state-mem {
301 regulator-off-in-suspend;
302 };
303 };
304
305 vcc_ldo6: LDO_REG6 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530306 regulator-name = "vcc_ldo6";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200307 regulator-min-microvolt = <1500000>;
308 regulator-max-microvolt = <1500000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530309 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200310 regulator-state-mem {
311 regulator-off-in-suspend;
312 };
313 };
314
315 vcc0v9_hdmi: LDO_REG7 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530316 regulator-name = "vcc0v9_hdmi";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200317 regulator-min-microvolt = <900000>;
318 regulator-max-microvolt = <900000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530319 regulator-always-on;
320 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200321 regulator-state-mem {
322 regulator-off-in-suspend;
323 };
324 };
325
326 vcc_efuse: LDO_REG8 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530327 regulator-name = "vcc_efuse";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200328 regulator-min-microvolt = <1800000>;
329 regulator-max-microvolt = <1800000>;
Jagan Teki5cc21182020-04-28 15:30:17 +0530330 regulator-always-on;
331 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200332 regulator-state-mem {
333 regulator-off-in-suspend;
334 };
335 };
336
337 vcc3v3_s3: SWITCH_REG1 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530338 regulator-name = "vcc3v3_s3";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200339 regulator-always-on;
340 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200341 regulator-state-mem {
342 regulator-off-in-suspend;
343 };
344 };
345
346 vcc3v3_s0: SWITCH_REG2 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530347 regulator-name = "vcc3v3_s0";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200348 regulator-always-on;
349 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200350 regulator-state-mem {
351 regulator-off-in-suspend;
352 };
353 };
354 };
355 };
Jagan Teki5cc21182020-04-28 15:30:17 +0530356
357 vdd_gpu: regulator@60 {
358 compatible = "fcs,fan53555";
359 reg = <0x60>;
360 fcs,suspend-voltage-selector = <1>;
361 regulator-name = "vdd_gpu";
362 regulator-min-microvolt = <600000>;
363 regulator-max-microvolt = <1230000>;
364 regulator-ramp-delay = <1000>;
365 regulator-always-on;
366 regulator-boot-on;
367 vin-supply = <&vcc5v0_sys>;
368 };
369};
370
371&i2c7 {
372 status = "okay";
373 clock-frequency = <400000>;
374
375 fan: fan@18 {
376 compatible = "ti,amc6821";
377 reg = <0x18>;
378 #cooling-cells = <2>;
379 };
380
381 rtc_twi: rtc@6f {
382 compatible = "isil,isl1208";
383 reg = <0x6f>;
384 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200385};
386
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200387&i2c8 {
388 status = "okay";
389 clock-frequency = <400000>;
390
Jagan Teki5cc21182020-04-28 15:30:17 +0530391 vdd_cpu_b: regulator@60 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200392 compatible = "fcs,fan53555";
393 reg = <0x60>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200394 vin-supply = <&vcc5v0_sys>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200395 regulator-name = "vdd_cpu_b";
396 regulator-min-microvolt = <600000>;
397 regulator-max-microvolt = <1230000>;
398 regulator-ramp-delay = <1000>;
399 fcs,suspend-voltage-selector = <1>;
400 regulator-always-on;
401 regulator-boot-on;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200402 };
403};
404
405&i2s0 {
Jagan Teki5cc21182020-04-28 15:30:17 +0530406 pinctrl-0 = <&i2s0_2ch_bus>;
407 rockchip,playback-channels = <2>;
408 rockchip,capture-channels = <2>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200409 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200410};
411
Jagan Teki5cc21182020-04-28 15:30:17 +0530412/*
413 * As Q7 does not specify neither a global nor a RX clock for I2S these
414 * signals are not used. Furthermore I2S0_LRCK_RX is used as GPIO.
415 * Therefore we have to redefine the i2s0_2ch_bus definition to prevent
416 * conflicts.
417 */
418&i2s0_2ch_bus {
419 rockchip,pins =
420 <3 RK_PD0 1 &pcfg_pull_none>,
421 <3 RK_PD2 1 &pcfg_pull_none>,
422 <3 RK_PD3 1 &pcfg_pull_none>,
423 <3 RK_PD7 1 &pcfg_pull_none>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200424};
425
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200426&io_domains {
427 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530428 bt656-supply = <&vcc_1v8>;
429 audio-supply = <&vcc_1v8>;
430 sdmmc-supply = <&vcc_sd>;
431 gpio1830-supply = <&vcc_1v8>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200432};
433
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200434&pmu_io_domains {
435 status = "okay";
436 pmu1830-supply = <&vcc_1v8>;
437};
438
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200439&pwm2 {
440 status = "okay";
441};
442
Philipp Tomsich3093d202017-03-28 18:48:51 +0200443&pinctrl {
Jagan Teki5cc21182020-04-28 15:30:17 +0530444 i2c8 {
445 i2c8_xfer_a: i2c8-xfer {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200446 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530447 <1 RK_PC4 1 &pcfg_pull_up>,
448 <1 RK_PC5 1 &pcfg_pull_up>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200449 };
450 };
451
Jagan Teki5cc21182020-04-28 15:30:17 +0530452 leds {
453 led_pin_module: led-module-gpio {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200454 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530455 <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200456 };
457 };
458
Jagan Teki5cc21182020-04-28 15:30:17 +0530459 pmic {
460 pmic_int_l: pmic-int-l {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200461 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530462 <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
Philipp Tomsich3093d202017-03-28 18:48:51 +0200463 };
464 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200465
Jagan Teki5cc21182020-04-28 15:30:17 +0530466 usb2 {
467 vcc5v0_host_en: vcc5v0-host-en {
Klaus Gogerde02bc62017-11-06 23:02:54 +0100468 rockchip,pins =
Jagan Teki5cc21182020-04-28 15:30:17 +0530469 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200470 };
471 };
Philipp Tomsich3093d202017-03-28 18:48:51 +0200472};
473
Jagan Teki5cc21182020-04-28 15:30:17 +0530474&sdhci {
475 bus-width = <8>;
476 mmc-hs400-1_8v;
477 mmc-hs400-enhanced-strobe;
478 non-removable;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200479 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200480};
Jagan Teki5cc21182020-04-28 15:30:17 +0530481
482&sdmmc {
483 vqmmc-supply = <&vcc_sd>;
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200484};
Jagan Teki5cc21182020-04-28 15:30:17 +0530485
486&spi1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200487 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530488
489 norflash: flash@0 {
490 compatible = "jedec,spi-nor";
491 reg = <0>;
492 spi-max-frequency = <50000000>;
493 };
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200494};
Jagan Teki5cc21182020-04-28 15:30:17 +0530495
496&tcphy1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200497 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200498};
499
Jagan Teki5cc21182020-04-28 15:30:17 +0530500&tsadc {
501 rockchip,hw-tshut-mode = <1>;
502 rockchip,hw-tshut-polarity = <1>;
503 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200504};
505
Jagan Teki5cc21182020-04-28 15:30:17 +0530506&u2phy1 {
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200507 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200508
Jagan Teki5cc21182020-04-28 15:30:17 +0530509 u2phy1_otg: otg-port {
510 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200511 };
Jagan Teki5cc21182020-04-28 15:30:17 +0530512
513 u2phy1_host: host-port {
514 phy-supply = <&vcc5v0_host>;
515 status = "okay";
Philipp Tomsichc687e1d2017-06-06 15:42:32 +0200516 };
517};
518
Jagan Teki5cc21182020-04-28 15:30:17 +0530519&usbdrd3_1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200520 status = "okay";
521};
522
Jagan Teki5cc21182020-04-28 15:30:17 +0530523&usbdrd_dwc3_1 {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200524 status = "okay";
Jagan Teki5cc21182020-04-28 15:30:17 +0530525 dr_mode = "host";
526};
Philipp Tomsich3093d202017-03-28 18:48:51 +0200527
Jagan Teki5cc21182020-04-28 15:30:17 +0530528&usb_host1_ehci {
529 status = "okay";
Philipp Tomsich3093d202017-03-28 18:48:51 +0200530};
531
Jagan Teki5cc21182020-04-28 15:30:17 +0530532&usb_host1_ohci {
Philipp Tomsich3093d202017-03-28 18:48:51 +0200533 status = "okay";
534};