blob: 945387e579f0e4dca9fe7e7a2551bb850b5a40b1 [file] [log] [blame]
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Kever Yange94ffee2017-02-23 15:37:50 +08002/*
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08003 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
Kever Yange94ffee2017-02-23 15:37:50 +08004 */
5
6#include <dt-bindings/clock/rk3328-cru.h>
7#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/interrupt-controller/arm-gic.h>
9#include <dt-bindings/interrupt-controller/irq.h>
10#include <dt-bindings/pinctrl/rockchip.h>
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080011#include <dt-bindings/power/rk3328-power.h>
12#include <dt-bindings/soc/rockchip,boot-mode.h>
13#include <dt-bindings/thermal/thermal.h>
Kever Yange94ffee2017-02-23 15:37:50 +080014
15/ {
16 compatible = "rockchip,rk3328";
17
18 interrupt-parent = <&gic>;
19 #address-cells = <2>;
20 #size-cells = <2>;
21
22 aliases {
23 serial0 = &uart0;
24 serial1 = &uart1;
25 serial2 = &uart2;
26 i2c0 = &i2c0;
27 i2c1 = &i2c1;
28 i2c2 = &i2c2;
29 i2c3 = &i2c3;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080030 ethernet0 = &gmac2io;
31 ethernet1 = &gmac2phy;
Kever Yange94ffee2017-02-23 15:37:50 +080032 };
33
34 cpus {
35 #address-cells = <2>;
36 #size-cells = <0>;
37
38 cpu0: cpu@0 {
39 device_type = "cpu";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080040 compatible = "arm,cortex-a53";
Kever Yange94ffee2017-02-23 15:37:50 +080041 reg = <0x0 0x0>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080042 clocks = <&cru ARMCLK>;
43 #cooling-cells = <2>;
44 cpu-idle-states = <&CPU_SLEEP>;
45 dynamic-power-coefficient = <120>;
Kever Yange94ffee2017-02-23 15:37:50 +080046 enable-method = "psci";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080047 next-level-cache = <&l2>;
Kever Yange94ffee2017-02-23 15:37:50 +080048 operating-points-v2 = <&cpu0_opp_table>;
49 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080050
Kever Yange94ffee2017-02-23 15:37:50 +080051 cpu1: cpu@1 {
52 device_type = "cpu";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080053 compatible = "arm,cortex-a53";
Kever Yange94ffee2017-02-23 15:37:50 +080054 reg = <0x0 0x1>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080055 clocks = <&cru ARMCLK>;
56 #cooling-cells = <2>;
57 cpu-idle-states = <&CPU_SLEEP>;
58 dynamic-power-coefficient = <120>;
Kever Yange94ffee2017-02-23 15:37:50 +080059 enable-method = "psci";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080060 next-level-cache = <&l2>;
61 operating-points-v2 = <&cpu0_opp_table>;
Kever Yange94ffee2017-02-23 15:37:50 +080062 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080063
Kever Yange94ffee2017-02-23 15:37:50 +080064 cpu2: cpu@2 {
65 device_type = "cpu";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080066 compatible = "arm,cortex-a53";
Kever Yange94ffee2017-02-23 15:37:50 +080067 reg = <0x0 0x2>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080068 clocks = <&cru ARMCLK>;
69 #cooling-cells = <2>;
70 cpu-idle-states = <&CPU_SLEEP>;
71 dynamic-power-coefficient = <120>;
Kever Yange94ffee2017-02-23 15:37:50 +080072 enable-method = "psci";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080073 next-level-cache = <&l2>;
74 operating-points-v2 = <&cpu0_opp_table>;
Kever Yange94ffee2017-02-23 15:37:50 +080075 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080076
Kever Yange94ffee2017-02-23 15:37:50 +080077 cpu3: cpu@3 {
78 device_type = "cpu";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080079 compatible = "arm,cortex-a53";
Kever Yange94ffee2017-02-23 15:37:50 +080080 reg = <0x0 0x3>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080081 clocks = <&cru ARMCLK>;
82 #cooling-cells = <2>;
83 cpu-idle-states = <&CPU_SLEEP>;
84 dynamic-power-coefficient = <120>;
Kever Yange94ffee2017-02-23 15:37:50 +080085 enable-method = "psci";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +080086 next-level-cache = <&l2>;
87 operating-points-v2 = <&cpu0_opp_table>;
88 };
89
90 idle-states {
91 entry-method = "psci";
92
93 CPU_SLEEP: cpu-sleep {
94 compatible = "arm,idle-state";
95 local-timer-stop;
96 arm,psci-suspend-param = <0x0010000>;
97 entry-latency-us = <120>;
98 exit-latency-us = <250>;
99 min-residency-us = <900>;
100 };
101 };
102
103 l2: l2-cache0 {
104 compatible = "cache";
Kever Yange94ffee2017-02-23 15:37:50 +0800105 };
106 };
107
108 cpu0_opp_table: opp_table0 {
109 compatible = "operating-points-v2";
110 opp-shared;
111
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800112 opp-408000000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800113 opp-hz = /bits/ 64 <408000000>;
114 opp-microvolt = <950000>;
115 clock-latency-ns = <40000>;
116 opp-suspend;
117 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800118 opp-600000000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800119 opp-hz = /bits/ 64 <600000000>;
120 opp-microvolt = <950000>;
121 clock-latency-ns = <40000>;
122 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800123 opp-816000000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800124 opp-hz = /bits/ 64 <816000000>;
125 opp-microvolt = <1000000>;
126 clock-latency-ns = <40000>;
127 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800128 opp-1008000000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800129 opp-hz = /bits/ 64 <1008000000>;
130 opp-microvolt = <1100000>;
131 clock-latency-ns = <40000>;
132 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800133 opp-1200000000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800134 opp-hz = /bits/ 64 <1200000000>;
135 opp-microvolt = <1225000>;
136 clock-latency-ns = <40000>;
137 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800138 opp-1296000000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800139 opp-hz = /bits/ 64 <1296000000>;
140 opp-microvolt = <1300000>;
141 clock-latency-ns = <40000>;
142 };
143 };
144
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800145 amba: bus {
146 compatible = "simple-bus";
147 #address-cells = <2>;
148 #size-cells = <2>;
149 ranges;
150
151 dmac: dmac@ff1f0000 {
152 compatible = "arm,pl330", "arm,primecell";
153 reg = <0x0 0xff1f0000 0x0 0x4000>;
154 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
155 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
156 clocks = <&cru ACLK_DMAC>;
157 clock-names = "apb_pclk";
158 #dma-cells = <1>;
159 };
160 };
161
162 analog_sound: analog-sound {
163 compatible = "simple-audio-card";
164 simple-audio-card,format = "i2s";
165 simple-audio-card,mclk-fs = <256>;
166 simple-audio-card,name = "Analog";
167 status = "disabled";
168
169 simple-audio-card,cpu {
170 sound-dai = <&i2s1>;
171 };
172
173 simple-audio-card,codec {
174 sound-dai = <&codec>;
175 };
176 };
177
Kever Yange94ffee2017-02-23 15:37:50 +0800178 arm-pmu {
179 compatible = "arm,cortex-a53-pmu";
180 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
181 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
182 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
183 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
184 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
185 };
186
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800187 display_subsystem: display-subsystem {
188 compatible = "rockchip,display-subsystem";
189 ports = <&vop_out>;
190 };
191
192 hdmi_sound: hdmi-sound {
193 compatible = "simple-audio-card";
194 simple-audio-card,format = "i2s";
195 simple-audio-card,mclk-fs = <128>;
196 simple-audio-card,name = "HDMI";
197 status = "disabled";
198
199 simple-audio-card,cpu {
200 sound-dai = <&i2s0>;
201 };
202
203 simple-audio-card,codec {
204 sound-dai = <&hdmi>;
205 };
206 };
207
Kever Yange94ffee2017-02-23 15:37:50 +0800208 psci {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800209 compatible = "arm,psci-1.0", "arm,psci-0.2";
Kever Yange94ffee2017-02-23 15:37:50 +0800210 method = "smc";
211 };
212
213 timer {
214 compatible = "arm,armv8-timer";
215 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
216 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
217 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
218 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
219 };
220
221 xin24m: xin24m {
222 compatible = "fixed-clock";
223 #clock-cells = <0>;
224 clock-frequency = <24000000>;
225 clock-output-names = "xin24m";
226 };
227
228 i2s0: i2s@ff000000 {
229 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
230 reg = <0x0 0xff000000 0x0 0x1000>;
231 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
232 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
233 clock-names = "i2s_clk", "i2s_hclk";
234 dmas = <&dmac 11>, <&dmac 12>;
Kever Yange94ffee2017-02-23 15:37:50 +0800235 dma-names = "tx", "rx";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800236 #sound-dai-cells = <0>;
Kever Yange94ffee2017-02-23 15:37:50 +0800237 status = "disabled";
238 };
239
240 i2s1: i2s@ff010000 {
241 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
242 reg = <0x0 0xff010000 0x0 0x1000>;
243 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
244 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
245 clock-names = "i2s_clk", "i2s_hclk";
246 dmas = <&dmac 14>, <&dmac 15>;
Kever Yange94ffee2017-02-23 15:37:50 +0800247 dma-names = "tx", "rx";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800248 #sound-dai-cells = <0>;
Kever Yange94ffee2017-02-23 15:37:50 +0800249 status = "disabled";
250 };
251
252 i2s2: i2s@ff020000 {
253 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
254 reg = <0x0 0xff020000 0x0 0x1000>;
255 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
256 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
257 clock-names = "i2s_clk", "i2s_hclk";
258 dmas = <&dmac 0>, <&dmac 1>;
Kever Yange94ffee2017-02-23 15:37:50 +0800259 dma-names = "tx", "rx";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800260 #sound-dai-cells = <0>;
Kever Yange94ffee2017-02-23 15:37:50 +0800261 status = "disabled";
262 };
263
264 spdif: spdif@ff030000 {
265 compatible = "rockchip,rk3328-spdif";
266 reg = <0x0 0xff030000 0x0 0x1000>;
267 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
268 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
269 clock-names = "mclk", "hclk";
270 dmas = <&dmac 10>;
Kever Yange94ffee2017-02-23 15:37:50 +0800271 dma-names = "tx";
272 pinctrl-names = "default";
273 pinctrl-0 = <&spdifm2_tx>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800274 #sound-dai-cells = <0>;
275 status = "disabled";
276 };
277
278 pdm: pdm@ff040000 {
279 compatible = "rockchip,pdm";
280 reg = <0x0 0xff040000 0x0 0x1000>;
281 clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
282 clock-names = "pdm_clk", "pdm_hclk";
283 dmas = <&dmac 16>;
284 dma-names = "rx";
285 pinctrl-names = "default", "sleep";
286 pinctrl-0 = <&pdmm0_clk
287 &pdmm0_sdi0
288 &pdmm0_sdi1
289 &pdmm0_sdi2
290 &pdmm0_sdi3>;
291 pinctrl-1 = <&pdmm0_clk_sleep
292 &pdmm0_sdi0_sleep
293 &pdmm0_sdi1_sleep
294 &pdmm0_sdi2_sleep
295 &pdmm0_sdi3_sleep>;
Kever Yange94ffee2017-02-23 15:37:50 +0800296 status = "disabled";
297 };
298
299 grf: syscon@ff100000 {
300 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
301 reg = <0x0 0xff100000 0x0 0x1000>;
Kever Yange94ffee2017-02-23 15:37:50 +0800302
303 io_domains: io-domains {
304 compatible = "rockchip,rk3328-io-voltage-domain";
305 status = "disabled";
306 };
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800307
308 grf_gpio: grf-gpio {
309 compatible = "rockchip,rk3328-grf-gpio";
310 gpio-controller;
311 #gpio-cells = <2>;
312 };
313
314 power: power-controller {
315 compatible = "rockchip,rk3328-power-controller";
316 #power-domain-cells = <1>;
317 #address-cells = <1>;
318 #size-cells = <0>;
319
320 pd_hevc@RK3328_PD_HEVC {
321 reg = <RK3328_PD_HEVC>;
322 };
323 pd_video@RK3328_PD_VIDEO {
324 reg = <RK3328_PD_VIDEO>;
325 };
326 pd_vpu@RK3328_PD_VPU {
327 reg = <RK3328_PD_VPU>;
328 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
329 };
330 };
331
332 reboot-mode {
333 compatible = "syscon-reboot-mode";
334 offset = <0x5c8>;
335 mode-normal = <BOOT_NORMAL>;
336 mode-recovery = <BOOT_RECOVERY>;
337 mode-bootloader = <BOOT_FASTBOOT>;
338 mode-loader = <BOOT_BL_DOWNLOAD>;
339 };
Kever Yange94ffee2017-02-23 15:37:50 +0800340 };
341
342 uart0: serial@ff110000 {
343 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
344 reg = <0x0 0xff110000 0x0 0x100>;
345 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
346 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
347 clock-names = "baudclk", "apb_pclk";
Kever Yange94ffee2017-02-23 15:37:50 +0800348 dmas = <&dmac 2>, <&dmac 3>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800349 dma-names = "tx", "rx";
Kever Yange94ffee2017-02-23 15:37:50 +0800350 pinctrl-names = "default";
351 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800352 reg-io-width = <4>;
353 reg-shift = <2>;
Kever Yange94ffee2017-02-23 15:37:50 +0800354 status = "disabled";
355 };
356
357 uart1: serial@ff120000 {
358 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
359 reg = <0x0 0xff120000 0x0 0x100>;
360 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
361 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800362 clock-names = "baudclk", "apb_pclk";
Kever Yange94ffee2017-02-23 15:37:50 +0800363 dmas = <&dmac 4>, <&dmac 5>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800364 dma-names = "tx", "rx";
Kever Yange94ffee2017-02-23 15:37:50 +0800365 pinctrl-names = "default";
366 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800367 reg-io-width = <4>;
368 reg-shift = <2>;
Kever Yange94ffee2017-02-23 15:37:50 +0800369 status = "disabled";
370 };
371
372 uart2: serial@ff130000 {
373 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
374 reg = <0x0 0xff130000 0x0 0x100>;
375 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
376 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
377 clock-names = "baudclk", "apb_pclk";
Kever Yange94ffee2017-02-23 15:37:50 +0800378 dmas = <&dmac 6>, <&dmac 7>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800379 dma-names = "tx", "rx";
Kever Yange94ffee2017-02-23 15:37:50 +0800380 pinctrl-names = "default";
381 pinctrl-0 = <&uart2m1_xfer>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800382 reg-io-width = <4>;
383 reg-shift = <2>;
Kever Yange94ffee2017-02-23 15:37:50 +0800384 status = "disabled";
385 };
386
Kever Yange94ffee2017-02-23 15:37:50 +0800387 i2c0: i2c@ff150000 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800388 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
Kever Yange94ffee2017-02-23 15:37:50 +0800389 reg = <0x0 0xff150000 0x0 0x1000>;
390 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
391 #address-cells = <1>;
392 #size-cells = <0>;
393 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
394 clock-names = "i2c", "pclk";
395 pinctrl-names = "default";
396 pinctrl-0 = <&i2c0_xfer>;
397 status = "disabled";
398 };
399
400 i2c1: i2c@ff160000 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800401 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
Kever Yange94ffee2017-02-23 15:37:50 +0800402 reg = <0x0 0xff160000 0x0 0x1000>;
403 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
404 #address-cells = <1>;
405 #size-cells = <0>;
406 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
407 clock-names = "i2c", "pclk";
408 pinctrl-names = "default";
409 pinctrl-0 = <&i2c1_xfer>;
410 status = "disabled";
411 };
412
413 i2c2: i2c@ff170000 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800414 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
Kever Yange94ffee2017-02-23 15:37:50 +0800415 reg = <0x0 0xff170000 0x0 0x1000>;
416 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
417 #address-cells = <1>;
418 #size-cells = <0>;
419 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
420 clock-names = "i2c", "pclk";
421 pinctrl-names = "default";
422 pinctrl-0 = <&i2c2_xfer>;
423 status = "disabled";
424 };
425
426 i2c3: i2c@ff180000 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800427 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
Kever Yange94ffee2017-02-23 15:37:50 +0800428 reg = <0x0 0xff180000 0x0 0x1000>;
429 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
430 #address-cells = <1>;
431 #size-cells = <0>;
432 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
433 clock-names = "i2c", "pclk";
434 pinctrl-names = "default";
435 pinctrl-0 = <&i2c3_xfer>;
436 status = "disabled";
437 };
438
439 spi0: spi@ff190000 {
440 compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi";
441 reg = <0x0 0xff190000 0x0 0x1000>;
442 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
443 #address-cells = <1>;
444 #size-cells = <0>;
445 clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
446 clock-names = "spiclk", "apb_pclk";
447 dmas = <&dmac 8>, <&dmac 9>;
Kever Yange94ffee2017-02-23 15:37:50 +0800448 dma-names = "tx", "rx";
449 pinctrl-names = "default";
450 pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>;
451 status = "disabled";
452 };
453
454 wdt: watchdog@ff1a0000 {
455 compatible = "snps,dw-wdt";
456 reg = <0x0 0xff1a0000 0x0 0x100>;
457 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800458 clocks = <&cru PCLK_WDT>;
459 };
460
461 pwm0: pwm@ff1b0000 {
462 compatible = "rockchip,rk3328-pwm";
463 reg = <0x0 0xff1b0000 0x0 0x10>;
464 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
465 clock-names = "pwm", "pclk";
466 pinctrl-names = "default";
467 pinctrl-0 = <&pwm0_pin>;
468 #pwm-cells = <3>;
Kever Yange94ffee2017-02-23 15:37:50 +0800469 status = "disabled";
470 };
471
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800472 pwm1: pwm@ff1b0010 {
473 compatible = "rockchip,rk3328-pwm";
474 reg = <0x0 0xff1b0010 0x0 0x10>;
475 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
476 clock-names = "pwm", "pclk";
477 pinctrl-names = "default";
478 pinctrl-0 = <&pwm1_pin>;
479 #pwm-cells = <3>;
480 status = "disabled";
481 };
Kever Yange94ffee2017-02-23 15:37:50 +0800482
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800483 pwm2: pwm@ff1b0020 {
484 compatible = "rockchip,rk3328-pwm";
485 reg = <0x0 0xff1b0020 0x0 0x10>;
486 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
487 clock-names = "pwm", "pclk";
488 pinctrl-names = "default";
489 pinctrl-0 = <&pwm2_pin>;
490 #pwm-cells = <3>;
491 status = "disabled";
492 };
493
494 pwm3: pwm@ff1b0030 {
495 compatible = "rockchip,rk3328-pwm";
496 reg = <0x0 0xff1b0030 0x0 0x10>;
497 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
498 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
499 clock-names = "pwm", "pclk";
500 pinctrl-names = "default";
501 pinctrl-0 = <&pwmir_pin>;
502 #pwm-cells = <3>;
503 status = "disabled";
504 };
505
506 thermal-zones {
507 soc_thermal: soc-thermal {
508 polling-delay-passive = <20>;
509 polling-delay = <1000>;
510 sustainable-power = <1000>;
511
512 thermal-sensors = <&tsadc 0>;
513
514 trips {
515 threshold: trip-point0 {
516 temperature = <70000>;
517 hysteresis = <2000>;
518 type = "passive";
519 };
520 target: trip-point1 {
521 temperature = <85000>;
522 hysteresis = <2000>;
523 type = "passive";
524 };
525 soc_crit: soc-crit {
526 temperature = <95000>;
527 hysteresis = <2000>;
528 type = "critical";
529 };
530 };
531
532 cooling-maps {
533 map0 {
534 trip = <&target>;
535 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
536 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
537 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
538 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
539 contribution = <4096>;
540 };
541 };
542 };
543
544 };
545
546 tsadc: tsadc@ff250000 {
547 compatible = "rockchip,rk3328-tsadc";
548 reg = <0x0 0xff250000 0x0 0x100>;
549 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
550 assigned-clocks = <&cru SCLK_TSADC>;
551 assigned-clock-rates = <50000>;
552 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
553 clock-names = "tsadc", "apb_pclk";
554 pinctrl-names = "init", "default", "sleep";
555 pinctrl-0 = <&otp_gpio>;
556 pinctrl-1 = <&otp_out>;
557 pinctrl-2 = <&otp_gpio>;
558 resets = <&cru SRST_TSADC>;
559 reset-names = "tsadc-apb";
560 rockchip,grf = <&grf>;
561 rockchip,hw-tshut-temp = <100000>;
562 #thermal-sensor-cells = <1>;
563 status = "disabled";
564 };
565
566 efuse: efuse@ff260000 {
567 compatible = "rockchip,rk3328-efuse";
568 reg = <0x0 0xff260000 0x0 0x50>;
569 #address-cells = <1>;
570 #size-cells = <1>;
571 clocks = <&cru SCLK_EFUSE>;
572 clock-names = "pclk_efuse";
573 rockchip,efuse-size = <0x20>;
574
575 /* Data cells */
576 efuse_id: id@7 {
577 reg = <0x07 0x10>;
578 };
579 cpu_leakage: cpu-leakage@17 {
580 reg = <0x17 0x1>;
581 };
582 logic_leakage: logic-leakage@19 {
583 reg = <0x19 0x1>;
584 };
585 efuse_cpu_version: cpu-version@1a {
586 reg = <0x1a 0x1>;
587 bits = <3 3>;
Kever Yange94ffee2017-02-23 15:37:50 +0800588 };
589 };
590
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800591 saradc: adc@ff280000 {
592 compatible = "rockchip,rk3328-saradc", "rockchip,rk3399-saradc";
Kever Yange94ffee2017-02-23 15:37:50 +0800593 reg = <0x0 0xff280000 0x0 0x100>;
594 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
595 #io-channel-cells = <1>;
596 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
597 clock-names = "saradc", "apb_pclk";
598 resets = <&cru SRST_SARADC_P>;
599 reset-names = "saradc-apb";
600 status = "disabled";
601 };
602
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800603 gpu: gpu@ff300000 {
604 compatible = "rockchip,rk3328-mali", "arm,mali-450";
605 reg = <0x0 0xff300000 0x0 0x40000>;
606 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
607 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
608 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
609 <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
610 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
611 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
612 <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
613 interrupt-names = "gp",
614 "gpmmu",
615 "pp",
616 "pp0",
617 "ppmmu0",
618 "pp1",
619 "ppmmu1";
620 clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
621 clock-names = "bus", "core";
622 resets = <&cru SRST_GPU_A>;
623 };
624
625 h265e_mmu: iommu@ff330200 {
626 compatible = "rockchip,iommu";
627 reg = <0x0 0xff330200 0 0x100>;
628 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
629 interrupt-names = "h265e_mmu";
630 clocks = <&cru ACLK_H265>, <&cru PCLK_H265>;
631 clock-names = "aclk", "iface";
632 #iommu-cells = <0>;
633 status = "disabled";
634 };
635
636 vepu_mmu: iommu@ff340800 {
637 compatible = "rockchip,iommu";
638 reg = <0x0 0xff340800 0x0 0x40>;
639 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
640 interrupt-names = "vepu_mmu";
641 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
642 clock-names = "aclk", "iface";
643 #iommu-cells = <0>;
644 status = "disabled";
645 };
646
647 vpu: video-codec@ff350000 {
648 compatible = "rockchip,rk3328-vpu";
649 reg = <0x0 0xff350000 0x0 0x800>;
650 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
651 interrupt-names = "vdpu";
652 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
653 clock-names = "aclk", "hclk";
654 iommus = <&vpu_mmu>;
655 power-domains = <&power RK3328_PD_VPU>;
656 };
657
658 vpu_mmu: iommu@ff350800 {
659 compatible = "rockchip,iommu";
660 reg = <0x0 0xff350800 0x0 0x40>;
661 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
662 interrupt-names = "vpu_mmu";
663 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
664 clock-names = "aclk", "iface";
665 #iommu-cells = <0>;
666 power-domains = <&power RK3328_PD_VPU>;
667 };
668
669 rkvdec_mmu: iommu@ff360480 {
670 compatible = "rockchip,iommu";
671 reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>;
672 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
673 interrupt-names = "rkvdec_mmu";
674 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
675 clock-names = "aclk", "iface";
676 #iommu-cells = <0>;
677 status = "disabled";
678 };
679
680 vop: vop@ff370000 {
681 compatible = "rockchip,rk3328-vop";
682 reg = <0x0 0xff370000 0x0 0x3efc>;
683 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
684 clocks = <&cru ACLK_VOP>, <&cru DCLK_LCDC>, <&cru HCLK_VOP>;
685 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
686 resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
687 reset-names = "axi", "ahb", "dclk";
688 iommus = <&vop_mmu>;
689 status = "disabled";
690
691 vop_out: port {
692 #address-cells = <1>;
693 #size-cells = <0>;
694
695 vop_out_hdmi: endpoint@0 {
696 reg = <0>;
697 remote-endpoint = <&hdmi_in_vop>;
698 };
699 };
700 };
701
702 vop_mmu: iommu@ff373f00 {
703 compatible = "rockchip,iommu";
704 reg = <0x0 0xff373f00 0x0 0x100>;
705 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
706 interrupt-names = "vop_mmu";
707 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
708 clock-names = "aclk", "iface";
709 #iommu-cells = <0>;
710 status = "disabled";
711 };
712
713 hdmi: hdmi@ff3c0000 {
714 compatible = "rockchip,rk3328-dw-hdmi";
715 reg = <0x0 0xff3c0000 0x0 0x20000>;
716 reg-io-width = <4>;
717 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
718 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
719 clocks = <&cru PCLK_HDMI>,
720 <&cru SCLK_HDMI_SFC>,
721 <&cru SCLK_RTC32K>;
722 clock-names = "iahb",
723 "isfr",
724 "cec";
725 phys = <&hdmiphy>;
726 phy-names = "hdmi";
727 pinctrl-names = "default";
728 pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>;
729 rockchip,grf = <&grf>;
730 #sound-dai-cells = <0>;
731 status = "disabled";
732
733 ports {
734 hdmi_in: port {
735 hdmi_in_vop: endpoint {
736 remote-endpoint = <&vop_out_hdmi>;
737 };
738 };
739 };
740 };
741
742 codec: codec@ff410000 {
743 compatible = "rockchip,rk3328-codec";
744 reg = <0x0 0xff410000 0x0 0x1000>;
745 clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
746 clock-names = "pclk", "mclk";
747 rockchip,grf = <&grf>;
748 #sound-dai-cells = <0>;
749 status = "disabled";
750 };
751
752 hdmiphy: phy@ff430000 {
753 compatible = "rockchip,rk3328-hdmi-phy";
754 reg = <0x0 0xff430000 0x0 0x10000>;
755 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
756 clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>;
757 clock-names = "sysclk", "refoclk", "refpclk";
758 clock-output-names = "hdmi_phy";
759 #clock-cells = <0>;
760 nvmem-cells = <&efuse_cpu_version>;
761 nvmem-cell-names = "cpu-version";
762 #phy-cells = <0>;
763 status = "disabled";
764 };
765
Kever Yange94ffee2017-02-23 15:37:50 +0800766 cru: clock-controller@ff440000 {
767 compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
768 reg = <0x0 0xff440000 0x0 0x1000>;
769 rockchip,grf = <&grf>;
770 #clock-cells = <1>;
771 #reset-cells = <1>;
772 assigned-clocks =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800773 /*
774 * CPLL should run at 1200, but that is to high for
775 * the initial dividers of most of its children.
776 * We need set cpll child clk div first,
777 * and then set the cpll frequency.
778 */
Kever Yange94ffee2017-02-23 15:37:50 +0800779 <&cru DCLK_LCDC>, <&cru SCLK_PDM>,
780 <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
781 <&cru SCLK_UART1>, <&cru SCLK_UART2>,
782 <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
783 <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
784 <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
785 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
786 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
787 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
788 <&cru SCLK_SDIO>, <&cru SCLK_TSP>,
789 <&cru SCLK_WIFI>, <&cru ARMCLK>,
790 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
791 <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
792 <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
793 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800794 <&cru SCLK_RTC32K>;
Kever Yange94ffee2017-02-23 15:37:50 +0800795 assigned-clock-parents =
796 <&cru HDMIPHY>, <&cru PLL_APLL>,
797 <&cru PLL_GPLL>, <&xin24m>,
798 <&xin24m>, <&xin24m>;
799 assigned-clock-rates =
800 <0>, <61440000>,
801 <0>, <24000000>,
802 <24000000>, <24000000>,
803 <15000000>, <15000000>,
804 <100000000>, <100000000>,
805 <100000000>, <100000000>,
806 <50000000>, <100000000>,
807 <100000000>, <100000000>,
808 <50000000>, <50000000>,
809 <50000000>, <50000000>,
810 <24000000>, <600000000>,
811 <491520000>, <1200000000>,
812 <150000000>, <75000000>,
813 <75000000>, <150000000>,
814 <75000000>, <75000000>,
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800815 <32768>;
Kever Yange94ffee2017-02-23 15:37:50 +0800816 };
817
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800818 usb2phy_grf: syscon@ff450000 {
819 compatible = "rockchip,rk3328-usb2phy-grf", "syscon",
820 "simple-mfd";
821 reg = <0x0 0xff450000 0x0 0x10000>;
822 #address-cells = <1>;
823 #size-cells = <1>;
824
825 u2phy: usb2-phy@100 {
826 compatible = "rockchip,rk3328-usb2phy";
827 reg = <0x100 0x10>;
828 clocks = <&xin24m>;
829 clock-names = "phyclk";
830 clock-output-names = "usb480m_phy";
831 #clock-cells = <0>;
832 assigned-clocks = <&cru USB480M>;
833 assigned-clock-parents = <&u2phy>;
834 status = "disabled";
835
836 u2phy_otg: otg-port {
837 #phy-cells = <0>;
838 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
839 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
840 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
841 interrupt-names = "otg-bvalid", "otg-id",
842 "linestate";
843 status = "disabled";
844 };
845
846 u2phy_host: host-port {
847 #phy-cells = <0>;
848 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
849 interrupt-names = "linestate";
850 status = "disabled";
851 };
852 };
853 };
854
855 sdmmc: mmc@ff500000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800856 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
857 reg = <0x0 0xff500000 0x0 0x4000>;
Kever Yange94ffee2017-02-23 15:37:50 +0800858 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800859 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
860 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
861 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
862 fifo-depth = <0x100>;
863 max-frequency = <150000000>;
Kever Yange94ffee2017-02-23 15:37:50 +0800864 status = "disabled";
865 };
866
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800867 sdio: mmc@ff510000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800868 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
869 reg = <0x0 0xff510000 0x0 0x4000>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800870 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
Kever Yange94ffee2017-02-23 15:37:50 +0800871 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
872 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800873 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
Kever Yange94ffee2017-02-23 15:37:50 +0800874 fifo-depth = <0x100>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800875 max-frequency = <150000000>;
Kever Yange94ffee2017-02-23 15:37:50 +0800876 status = "disabled";
877 };
878
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800879 emmc: mmc@ff520000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800880 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
881 reg = <0x0 0xff520000 0x0 0x4000>;
Kever Yange94ffee2017-02-23 15:37:50 +0800882 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800883 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
884 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
885 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
886 fifo-depth = <0x100>;
887 max-frequency = <150000000>;
Kever Yange94ffee2017-02-23 15:37:50 +0800888 status = "disabled";
889 };
890
David Wu832762c2018-01-13 14:03:56 +0800891 gmac2io: ethernet@ff540000 {
892 compatible = "rockchip,rk3328-gmac";
893 reg = <0x0 0xff540000 0x0 0x10000>;
David Wu832762c2018-01-13 14:03:56 +0800894 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
895 interrupt-names = "macirq";
896 clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>,
897 <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>,
898 <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>,
899 <&cru PCLK_MAC2IO>;
900 clock-names = "stmmaceth", "mac_clk_rx",
901 "mac_clk_tx", "clk_mac_ref",
902 "clk_mac_refout", "aclk_mac",
903 "pclk_mac";
904 resets = <&cru SRST_GMAC2IO_A>;
905 reset-names = "stmmaceth";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800906 rockchip,grf = <&grf>;
907 snps,txpbl = <0x4>;
David Wu832762c2018-01-13 14:03:56 +0800908 status = "disabled";
909 };
910
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800911 gmac2phy: ethernet@ff550000 {
912 compatible = "rockchip,rk3328-gmac";
913 reg = <0x0 0xff550000 0x0 0x10000>;
914 rockchip,grf = <&grf>;
915 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
916 interrupt-names = "macirq";
917 clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>,
918 <&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>,
919 <&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>,
920 <&cru SCLK_MAC2PHY_OUT>;
921 clock-names = "stmmaceth", "mac_clk_rx",
922 "mac_clk_tx", "clk_mac_ref",
923 "aclk_mac", "pclk_mac",
924 "clk_macphy";
925 resets = <&cru SRST_GMAC2PHY_A>, <&cru SRST_MACPHY>;
926 reset-names = "stmmaceth", "mac-phy";
927 phy-mode = "rmii";
928 phy-handle = <&phy>;
929 snps,txpbl = <0x4>;
930 status = "disabled";
931
932 mdio {
933 compatible = "snps,dwmac-mdio";
934 #address-cells = <1>;
935 #size-cells = <0>;
936
937 phy: phy@0 {
938 compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
939 reg = <0>;
940 clocks = <&cru SCLK_MAC2PHY_OUT>;
941 resets = <&cru SRST_MACPHY>;
942 pinctrl-names = "default";
943 pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>;
944 phy-is-integrated;
945 };
946 };
947 };
948
Meng Dongyangef82a0d2017-05-17 18:21:46 +0800949 usb_host0_ehci: usb@ff5c0000 {
950 compatible = "generic-ehci";
951 reg = <0x0 0xff5c0000 0x0 0x10000>;
952 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800953 clocks = <&cru HCLK_HOST0>, <&u2phy>;
954 phys = <&u2phy_host>;
955 phy-names = "usb";
Meng Dongyangef82a0d2017-05-17 18:21:46 +0800956 status = "disabled";
957 };
958
959 usb_host0_ohci: usb@ff5d0000 {
960 compatible = "generic-ohci";
961 reg = <0x0 0xff5d0000 0x0 0x10000>;
962 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800963 clocks = <&cru HCLK_HOST0>, <&u2phy>;
964 phys = <&u2phy_host>;
965 phy-names = "usb";
Meng Dongyangef82a0d2017-05-17 18:21:46 +0800966 status = "disabled";
967 };
968
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800969 /*
970 * U-boot Specific Change
971 *
972 * The OTG controller must come after the USB host pair for it
973 * to work. This is likely due to lack of support for the USB
974 * PHYs. This must be manually changed after each device tree
975 * sync. There is no clean way to handle this in -u-boot.dtsi
976 * files.
977 */
Meng Dongyang863456a2017-06-28 19:22:45 +0800978 usb20_otg: usb@ff580000 {
979 compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
980 "snps,dwc2";
981 reg = <0x0 0xff580000 0x0 0x40000>;
982 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800983 clocks = <&cru HCLK_OTG>;
984 clock-names = "otg";
Meng Dongyang863456a2017-06-28 19:22:45 +0800985 dr_mode = "otg";
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800986 g-np-tx-fifo-size = <16>;
987 g-rx-fifo-size = <280>;
988 g-tx-fifo-size = <256 128 128 64 32 16>;
989 phys = <&u2phy_otg>;
990 phy-names = "usb2-phy";
Meng Dongyang863456a2017-06-28 19:22:45 +0800991 status = "disabled";
992 };
993
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +0800994 gic: interrupt-controller@ff811000 {
Kever Yange94ffee2017-02-23 15:37:50 +0800995 compatible = "arm,gic-400";
996 #interrupt-cells = <3>;
997 #address-cells = <0>;
998 interrupt-controller;
999 reg = <0x0 0xff811000 0 0x1000>,
1000 <0x0 0xff812000 0 0x2000>,
1001 <0x0 0xff814000 0 0x2000>,
1002 <0x0 0xff816000 0 0x2000>;
1003 interrupts = <GIC_PPI 9
1004 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1005 };
1006
1007 pinctrl: pinctrl {
1008 compatible = "rockchip,rk3328-pinctrl";
1009 rockchip,grf = <&grf>;
1010 #address-cells = <2>;
1011 #size-cells = <2>;
1012 ranges;
1013
1014 gpio0: gpio0@ff210000 {
1015 compatible = "rockchip,gpio-bank";
1016 reg = <0x0 0xff210000 0x0 0x100>;
1017 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1018 clocks = <&cru PCLK_GPIO0>;
1019
1020 gpio-controller;
1021 #gpio-cells = <2>;
1022
1023 interrupt-controller;
1024 #interrupt-cells = <2>;
1025 };
1026
1027 gpio1: gpio1@ff220000 {
1028 compatible = "rockchip,gpio-bank";
1029 reg = <0x0 0xff220000 0x0 0x100>;
1030 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1031 clocks = <&cru PCLK_GPIO1>;
1032
1033 gpio-controller;
1034 #gpio-cells = <2>;
1035
1036 interrupt-controller;
1037 #interrupt-cells = <2>;
1038 };
1039
1040 gpio2: gpio2@ff230000 {
1041 compatible = "rockchip,gpio-bank";
1042 reg = <0x0 0xff230000 0x0 0x100>;
1043 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
1044 clocks = <&cru PCLK_GPIO2>;
1045
1046 gpio-controller;
1047 #gpio-cells = <2>;
1048
1049 interrupt-controller;
1050 #interrupt-cells = <2>;
1051 };
1052
1053 gpio3: gpio3@ff240000 {
1054 compatible = "rockchip,gpio-bank";
1055 reg = <0x0 0xff240000 0x0 0x100>;
1056 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
1057 clocks = <&cru PCLK_GPIO3>;
1058
1059 gpio-controller;
1060 #gpio-cells = <2>;
1061
1062 interrupt-controller;
1063 #interrupt-cells = <2>;
1064 };
1065
1066 pcfg_pull_up: pcfg-pull-up {
1067 bias-pull-up;
1068 };
1069
1070 pcfg_pull_down: pcfg-pull-down {
1071 bias-pull-down;
1072 };
1073
1074 pcfg_pull_none: pcfg-pull-none {
1075 bias-disable;
1076 };
1077
1078 pcfg_pull_none_2ma: pcfg-pull-none-2ma {
1079 bias-disable;
1080 drive-strength = <2>;
1081 };
1082
1083 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1084 bias-pull-up;
1085 drive-strength = <2>;
1086 };
1087
1088 pcfg_pull_up_4ma: pcfg-pull-up-4ma {
1089 bias-pull-up;
1090 drive-strength = <4>;
1091 };
1092
1093 pcfg_pull_none_4ma: pcfg-pull-none-4ma {
1094 bias-disable;
1095 drive-strength = <4>;
1096 };
1097
1098 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1099 bias-pull-down;
1100 drive-strength = <4>;
1101 };
1102
1103 pcfg_pull_none_8ma: pcfg-pull-none-8ma {
1104 bias-disable;
1105 drive-strength = <8>;
1106 };
1107
1108 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1109 bias-pull-up;
1110 drive-strength = <8>;
1111 };
1112
1113 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1114 bias-disable;
1115 drive-strength = <12>;
1116 };
1117
1118 pcfg_pull_up_12ma: pcfg-pull-up-12ma {
1119 bias-pull-up;
1120 drive-strength = <12>;
1121 };
1122
1123 pcfg_output_high: pcfg-output-high {
1124 output-high;
1125 };
1126
1127 pcfg_output_low: pcfg-output-low {
1128 output-low;
1129 };
1130
1131 pcfg_input_high: pcfg-input-high {
1132 bias-pull-up;
1133 input-enable;
1134 };
1135
1136 pcfg_input: pcfg-input {
1137 input-enable;
1138 };
1139
1140 i2c0 {
1141 i2c0_xfer: i2c0-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001142 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>,
1143 <2 RK_PD1 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001144 };
1145 };
1146
1147 i2c1 {
1148 i2c1_xfer: i2c1-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001149 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>,
1150 <2 RK_PA5 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001151 };
1152 };
1153
1154 i2c2 {
1155 i2c2_xfer: i2c2-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001156 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>,
1157 <2 RK_PB6 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001158 };
1159 };
1160
1161 i2c3 {
1162 i2c3_xfer: i2c3-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001163 rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
1164 <0 RK_PA6 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001165 };
1166 i2c3_gpio: i2c3-gpio {
1167 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001168 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
1169 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001170 };
1171 };
1172
1173 hdmi_i2c {
1174 hdmii2c_xfer: hdmii2c-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001175 rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>,
1176 <0 RK_PA6 1 &pcfg_pull_none>;
1177 };
1178 };
1179
1180 pdm-0 {
1181 pdmm0_clk: pdmm0-clk {
1182 rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>;
1183 };
1184
1185 pdmm0_fsync: pdmm0-fsync {
1186 rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>;
1187 };
1188
1189 pdmm0_sdi0: pdmm0-sdi0 {
1190 rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>;
1191 };
1192
1193 pdmm0_sdi1: pdmm0-sdi1 {
1194 rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>;
1195 };
1196
1197 pdmm0_sdi2: pdmm0-sdi2 {
1198 rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>;
1199 };
1200
1201 pdmm0_sdi3: pdmm0-sdi3 {
1202 rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>;
1203 };
1204
1205 pdmm0_clk_sleep: pdmm0-clk-sleep {
Kever Yange94ffee2017-02-23 15:37:50 +08001206 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001207 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>;
1208 };
1209
1210 pdmm0_sdi0_sleep: pdmm0-sdi0-sleep {
1211 rockchip,pins =
1212 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>;
1213 };
1214
1215 pdmm0_sdi1_sleep: pdmm0-sdi1-sleep {
1216 rockchip,pins =
1217 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>;
1218 };
1219
1220 pdmm0_sdi2_sleep: pdmm0-sdi2-sleep {
1221 rockchip,pins =
1222 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>;
1223 };
1224
1225 pdmm0_sdi3_sleep: pdmm0-sdi3-sleep {
1226 rockchip,pins =
1227 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>;
1228 };
1229
1230 pdmm0_fsync_sleep: pdmm0-fsync-sleep {
1231 rockchip,pins =
1232 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1233 };
1234 };
1235
1236 tsadc {
1237 otp_gpio: otp-gpio {
1238 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1239 };
1240
1241 otp_out: otp-out {
1242 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001243 };
1244 };
1245
1246 uart0 {
1247 uart0_xfer: uart0-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001248 rockchip,pins = <1 RK_PB1 1 &pcfg_pull_up>,
1249 <1 RK_PB0 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001250 };
1251
1252 uart0_cts: uart0-cts {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001253 rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001254 };
1255
1256 uart0_rts: uart0-rts {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001257 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001258 };
1259
1260 uart0_rts_gpio: uart0-rts-gpio {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001261 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001262 };
1263 };
1264
1265 uart1 {
1266 uart1_xfer: uart1-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001267 rockchip,pins = <3 RK_PA4 4 &pcfg_pull_up>,
1268 <3 RK_PA6 4 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001269 };
1270
1271 uart1_cts: uart1-cts {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001272 rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001273 };
1274
1275 uart1_rts: uart1-rts {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001276 rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001277 };
1278
1279 uart1_rts_gpio: uart1-rts-gpio {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001280 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001281 };
1282 };
1283
1284 uart2-0 {
1285 uart2m0_xfer: uart2m0-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001286 rockchip,pins = <1 RK_PA0 2 &pcfg_pull_up>,
1287 <1 RK_PA1 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001288 };
1289 };
1290
1291 uart2-1 {
1292 uart2m1_xfer: uart2m1-xfer {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001293 rockchip,pins = <2 RK_PA0 1 &pcfg_pull_up>,
1294 <2 RK_PA1 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001295 };
1296 };
1297
1298 spi0-0 {
1299 spi0m0_clk: spi0m0-clk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001300 rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001301 };
1302
1303 spi0m0_cs0: spi0m0-cs0 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001304 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001305 };
1306
1307 spi0m0_tx: spi0m0-tx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001308 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001309 };
1310
1311 spi0m0_rx: spi0m0-rx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001312 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001313 };
1314
1315 spi0m0_cs1: spi0m0-cs1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001316 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001317 };
1318 };
1319
1320 spi0-1 {
1321 spi0m1_clk: spi0m1-clk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001322 rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001323 };
1324
1325 spi0m1_cs0: spi0m1-cs0 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001326 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001327 };
1328
1329 spi0m1_tx: spi0m1-tx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001330 rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001331 };
1332
1333 spi0m1_rx: spi0m1-rx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001334 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001335 };
1336
1337 spi0m1_cs1: spi0m1-cs1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001338 rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001339 };
1340 };
1341
1342 spi0-2 {
1343 spi0m2_clk: spi0m2-clk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001344 rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001345 };
1346
1347 spi0m2_cs0: spi0m2-cs0 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001348 rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001349 };
1350
1351 spi0m2_tx: spi0m2-tx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001352 rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001353 };
1354
1355 spi0m2_rx: spi0m2-rx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001356 rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>;
Kever Yange94ffee2017-02-23 15:37:50 +08001357 };
1358 };
1359
1360 i2s1 {
1361 i2s1_mclk: i2s1-mclk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001362 rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001363 };
1364
1365 i2s1_sclk: i2s1-sclk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001366 rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001367 };
1368
1369 i2s1_lrckrx: i2s1-lrckrx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001370 rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001371 };
1372
1373 i2s1_lrcktx: i2s1-lrcktx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001374 rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001375 };
1376
1377 i2s1_sdi: i2s1-sdi {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001378 rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001379 };
1380
1381 i2s1_sdo: i2s1-sdo {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001382 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001383 };
1384
1385 i2s1_sdio1: i2s1-sdio1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001386 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001387 };
1388
1389 i2s1_sdio2: i2s1-sdio2 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001390 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001391 };
1392
1393 i2s1_sdio3: i2s1-sdio3 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001394 rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001395 };
1396
1397 i2s1_sleep: i2s1-sleep {
1398 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001399 <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>,
1400 <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>,
1401 <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>,
1402 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
1403 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
1404 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
1405 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1406 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1407 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
Kever Yange94ffee2017-02-23 15:37:50 +08001408 };
1409 };
1410
1411 i2s2-0 {
1412 i2s2m0_mclk: i2s2m0-mclk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001413 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001414 };
1415
1416 i2s2m0_sclk: i2s2m0-sclk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001417 rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001418 };
1419
1420 i2s2m0_lrckrx: i2s2m0-lrckrx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001421 rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001422 };
1423
1424 i2s2m0_lrcktx: i2s2m0-lrcktx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001425 rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001426 };
1427
1428 i2s2m0_sdi: i2s2m0-sdi {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001429 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001430 };
1431
1432 i2s2m0_sdo: i2s2m0-sdo {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001433 rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001434 };
1435
1436 i2s2m0_sleep: i2s2m0-sleep {
1437 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001438 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1439 <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1440 <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>,
1441 <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>,
1442 <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>,
1443 <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>;
Kever Yange94ffee2017-02-23 15:37:50 +08001444 };
1445 };
1446
1447 i2s2-1 {
1448 i2s2m1_mclk: i2s2m1-mclk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001449 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001450 };
1451
1452 i2s2m1_sclk: i2s2m1-sclk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001453 rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001454 };
1455
1456 i2s2m1_lrckrx: i2sm1-lrckrx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001457 rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001458 };
1459
1460 i2s2m1_lrcktx: i2s2m1-lrcktx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001461 rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001462 };
1463
1464 i2s2m1_sdi: i2s2m1-sdi {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001465 rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001466 };
1467
1468 i2s2m1_sdo: i2s2m1-sdo {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001469 rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001470 };
1471
1472 i2s2m1_sleep: i2s2m1-sleep {
1473 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001474 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1475 <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>,
1476 <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>,
1477 <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>,
1478 <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>;
Kever Yange94ffee2017-02-23 15:37:50 +08001479 };
1480 };
1481
1482 spdif-0 {
1483 spdifm0_tx: spdifm0-tx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001484 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001485 };
1486 };
1487
1488 spdif-1 {
1489 spdifm1_tx: spdifm1-tx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001490 rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001491 };
1492 };
1493
1494 spdif-2 {
1495 spdifm2_tx: spdifm2-tx {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001496 rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001497 };
1498 };
1499
1500 sdmmc0-0 {
1501 sdmmc0m0_pwren: sdmmc0m0-pwren {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001502 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001503 };
1504
1505 sdmmc0m0_gpio: sdmmc0m0-gpio {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001506 rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001507 };
1508 };
1509
1510 sdmmc0-1 {
1511 sdmmc0m1_pwren: sdmmc0m1-pwren {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001512 rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001513 };
1514
1515 sdmmc0m1_gpio: sdmmc0m1-gpio {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001516 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001517 };
1518 };
1519
1520 sdmmc0 {
1521 sdmmc0_clk: sdmmc0-clk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001522 rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001523 };
1524
1525 sdmmc0_cmd: sdmmc0-cmd {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001526 rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001527 };
1528
1529 sdmmc0_dectn: sdmmc0-dectn {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001530 rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001531 };
1532
1533 sdmmc0_wrprt: sdmmc0-wrprt {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001534 rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001535 };
1536
1537 sdmmc0_bus1: sdmmc0-bus1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001538 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001539 };
1540
1541 sdmmc0_bus4: sdmmc0-bus4 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001542 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>,
1543 <1 RK_PA1 1 &pcfg_pull_up_8ma>,
1544 <1 RK_PA2 1 &pcfg_pull_up_8ma>,
1545 <1 RK_PA3 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001546 };
1547
1548 sdmmc0_gpio: sdmmc0-gpio {
1549 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001550 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1551 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1552 <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1553 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1554 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1555 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1556 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1557 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001558 };
1559 };
1560
1561 sdmmc0ext {
1562 sdmmc0ext_clk: sdmmc0ext-clk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001563 rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001564 };
1565
1566 sdmmc0ext_cmd: sdmmc0ext-cmd {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001567 rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001568 };
1569
1570 sdmmc0ext_wrprt: sdmmc0ext-wrprt {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001571 rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001572 };
1573
1574 sdmmc0ext_dectn: sdmmc0ext-dectn {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001575 rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001576 };
1577
1578 sdmmc0ext_bus1: sdmmc0ext-bus1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001579 rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001580 };
1581
1582 sdmmc0ext_bus4: sdmmc0ext-bus4 {
1583 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001584 <3 RK_PA4 3 &pcfg_pull_up_4ma>,
1585 <3 RK_PA5 3 &pcfg_pull_up_4ma>,
1586 <3 RK_PA6 3 &pcfg_pull_up_4ma>,
1587 <3 RK_PA7 3 &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001588 };
1589
1590 sdmmc0ext_gpio: sdmmc0ext-gpio {
1591 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001592 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1593 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1594 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1595 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1596 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1597 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1598 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1599 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001600 };
1601 };
1602
1603 sdmmc1 {
1604 sdmmc1_clk: sdmmc1-clk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001605 rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001606 };
1607
1608 sdmmc1_cmd: sdmmc1-cmd {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001609 rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001610 };
1611
1612 sdmmc1_pwren: sdmmc1-pwren {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001613 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001614 };
1615
1616 sdmmc1_wrprt: sdmmc1-wrprt {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001617 rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001618 };
1619
1620 sdmmc1_dectn: sdmmc1-dectn {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001621 rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001622 };
1623
1624 sdmmc1_bus1: sdmmc1-bus1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001625 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001626 };
1627
1628 sdmmc1_bus4: sdmmc1-bus4 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001629 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>,
1630 <1 RK_PB7 1 &pcfg_pull_up_8ma>,
1631 <1 RK_PC0 1 &pcfg_pull_up_8ma>,
1632 <1 RK_PC1 1 &pcfg_pull_up_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001633 };
1634
1635 sdmmc1_gpio: sdmmc1-gpio {
1636 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001637 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1638 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1639 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1640 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1641 <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1642 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1643 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1644 <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1645 <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001646 };
1647 };
1648
1649 emmc {
1650 emmc_clk: emmc-clk {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001651 rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001652 };
1653
1654 emmc_cmd: emmc-cmd {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001655 rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001656 };
1657
1658 emmc_pwren: emmc-pwren {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001659 rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001660 };
1661
1662 emmc_rstnout: emmc-rstnout {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001663 rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001664 };
1665
1666 emmc_bus1: emmc-bus1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001667 rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001668 };
1669
1670 emmc_bus4: emmc-bus4 {
1671 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001672 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1673 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1674 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1675 <2 RK_PD6 2 &pcfg_pull_up_12ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001676 };
1677
1678 emmc_bus8: emmc-bus8 {
1679 rockchip,pins =
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001680 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1681 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1682 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1683 <2 RK_PD6 2 &pcfg_pull_up_12ma>,
1684 <2 RK_PD7 2 &pcfg_pull_up_12ma>,
1685 <3 RK_PC0 2 &pcfg_pull_up_12ma>,
1686 <3 RK_PC1 2 &pcfg_pull_up_12ma>,
1687 <3 RK_PC2 2 &pcfg_pull_up_12ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001688 };
1689 };
1690
1691 pwm0 {
1692 pwm0_pin: pwm0-pin {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001693 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001694 };
1695 };
1696
1697 pwm1 {
1698 pwm1_pin: pwm1-pin {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001699 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001700 };
1701 };
1702
1703 pwm2 {
1704 pwm2_pin: pwm2-pin {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001705 rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001706 };
1707 };
1708
1709 pwmir {
1710 pwmir_pin: pwmir-pin {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001711 rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001712 };
1713 };
1714
1715 gmac-1 {
1716 rgmiim1_pins: rgmiim1-pins {
1717 rockchip,pins =
1718 /* mac_txclk */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001719 <1 RK_PB4 2 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001720 /* mac_rxclk */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001721 <1 RK_PB5 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001722 /* mac_mdio */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001723 <1 RK_PC3 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001724 /* mac_txen */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001725 <1 RK_PD1 2 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001726 /* mac_clk */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001727 <1 RK_PC5 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001728 /* mac_rxdv */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001729 <1 RK_PC6 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001730 /* mac_mdc */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001731 <1 RK_PC7 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001732 /* mac_rxd1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001733 <1 RK_PB2 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001734 /* mac_rxd0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001735 <1 RK_PB3 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001736 /* mac_txd1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001737 <1 RK_PB0 2 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001738 /* mac_txd0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001739 <1 RK_PB1 2 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001740 /* mac_rxd3 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001741 <1 RK_PB6 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001742 /* mac_rxd2 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001743 <1 RK_PB7 2 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001744 /* mac_txd3 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001745 <1 RK_PC0 2 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001746 /* mac_txd2 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001747 <1 RK_PC1 2 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001748
1749 /* mac_txclk */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001750 <0 RK_PB0 1 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001751 /* mac_txen */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001752 <0 RK_PB4 1 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001753 /* mac_clk */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001754 <0 RK_PD0 1 &pcfg_pull_none_4ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001755 /* mac_txd1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001756 <0 RK_PC0 1 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001757 /* mac_txd0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001758 <0 RK_PC1 1 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001759 /* mac_txd3 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001760 <0 RK_PC7 1 &pcfg_pull_none_8ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001761 /* mac_txd2 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001762 <0 RK_PC6 1 &pcfg_pull_none_8ma>;
Kever Yange94ffee2017-02-23 15:37:50 +08001763 };
1764
1765 rmiim1_pins: rmiim1-pins {
1766 rockchip,pins =
1767 /* mac_mdio */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001768 <1 RK_PC3 2 &pcfg_pull_none_2ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001769 /* mac_txen */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001770 <1 RK_PD1 2 &pcfg_pull_none_12ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001771 /* mac_clk */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001772 <1 RK_PC5 2 &pcfg_pull_none_2ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001773 /* mac_rxer */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001774 <1 RK_PD0 2 &pcfg_pull_none_2ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001775 /* mac_rxdv */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001776 <1 RK_PC6 2 &pcfg_pull_none_2ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001777 /* mac_mdc */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001778 <1 RK_PC7 2 &pcfg_pull_none_2ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001779 /* mac_rxd1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001780 <1 RK_PB2 2 &pcfg_pull_none_2ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001781 /* mac_rxd0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001782 <1 RK_PB3 2 &pcfg_pull_none_2ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001783 /* mac_txd1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001784 <1 RK_PB0 2 &pcfg_pull_none_12ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001785 /* mac_txd0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001786 <1 RK_PB1 2 &pcfg_pull_none_12ma>,
Kever Yange94ffee2017-02-23 15:37:50 +08001787
1788 /* mac_mdio */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001789 <0 RK_PB3 1 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001790 /* mac_txen */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001791 <0 RK_PB4 1 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001792 /* mac_clk */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001793 <0 RK_PD0 1 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001794 /* mac_mdc */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001795 <0 RK_PC3 1 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001796 /* mac_txd1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001797 <0 RK_PC0 1 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001798 /* mac_txd0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001799 <0 RK_PC1 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001800 };
1801 };
1802
1803 gmac2phy {
Kever Yange94ffee2017-02-23 15:37:50 +08001804 fephyled_speed10: fephyled-speed10 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001805 rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001806 };
1807
1808 fephyled_duplex: fephyled-duplex {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001809 rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001810 };
1811
1812 fephyled_rxm1: fephyled-rxm1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001813 rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001814 };
1815
1816 fephyled_txm1: fephyled-txm1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001817 rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001818 };
1819
1820 fephyled_linkm1: fephyled-linkm1 {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001821 rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001822 };
1823 };
1824
1825 tsadc_pin {
1826 tsadc_int: tsadc-int {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001827 rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001828 };
1829 tsadc_gpio: tsadc-gpio {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001830 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001831 };
1832 };
1833
1834 hdmi_pin {
1835 hdmi_cec: hdmi-cec {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001836 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001837 };
1838
1839 hdmi_hpd: hdmi-hpd {
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001840 rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>;
Kever Yange94ffee2017-02-23 15:37:50 +08001841 };
1842 };
1843
1844 cif-0 {
1845 dvp_d2d9_m0:dvp-d2d9-m0 {
1846 rockchip,pins =
1847 /* cif_d0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001848 <3 RK_PA4 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001849 /* cif_d1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001850 <3 RK_PA5 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001851 /* cif_d2 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001852 <3 RK_PA6 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001853 /* cif_d3 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001854 <3 RK_PA7 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001855 /* cif_d4 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001856 <3 RK_PB0 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001857 /* cif_d5m0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001858 <3 RK_PB1 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001859 /* cif_d6m0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001860 <3 RK_PB2 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001861 /* cif_d7m0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001862 <3 RK_PB3 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001863 /* cif_href */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001864 <3 RK_PA1 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001865 /* cif_vsync */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001866 <3 RK_PA0 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001867 /* cif_clkoutm0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001868 <3 RK_PA3 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001869 /* cif_clkin */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001870 <3 RK_PA2 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001871 };
1872 };
1873
1874 cif-1 {
1875 dvp_d2d9_m1:dvp-d2d9-m1 {
1876 rockchip,pins =
1877 /* cif_d0 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001878 <3 RK_PA4 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001879 /* cif_d1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001880 <3 RK_PA5 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001881 /* cif_d2 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001882 <3 RK_PA6 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001883 /* cif_d3 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001884 <3 RK_PA7 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001885 /* cif_d4 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001886 <3 RK_PB0 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001887 /* cif_d5m1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001888 <2 RK_PC0 4 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001889 /* cif_d6m1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001890 <2 RK_PC1 4 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001891 /* cif_d7m1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001892 <2 RK_PC2 4 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001893 /* cif_href */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001894 <3 RK_PA1 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001895 /* cif_vsync */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001896 <3 RK_PA0 2 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001897 /* cif_clkoutm1 */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001898 <2 RK_PB7 4 &pcfg_pull_none>,
Kever Yange94ffee2017-02-23 15:37:50 +08001899 /* cif_clkin */
Chen-Yu Tsai50cbff72020-04-27 14:52:52 +08001900 <3 RK_PA2 2 &pcfg_pull_none>;
Kever Yange94ffee2017-02-23 15:37:50 +08001901 };
1902 };
1903 };
1904};