ba229c9fd8176aea5f6d587ecc180ed7a601e340
[platform/kernel/linux-starfive.git] / arch / riscv / boot / dts / starfive / jh7110-visionfive-v2.dtsi
1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2 /*
3  * Copyright (C) 2022 StarFive Technology Co., Ltd.
4  * Copyright (C) 2022 Hal Feng <hal.feng@starfivetech.com>
5  */
6
7 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/pinctrl/starfive,jh7110-pinfunc.h>
10 #include "jh7110.dtsi"
11 #include "codecs/sf_pwmdac.dtsi"
12
13 / {
14         model = "StarFive VisionFive V2";
15         compatible = "starfive,visionfive-v2", "starfive,jh7110";
16
17         aliases {
18                 spi0 = &qspi;
19                 gpio0 = &gpio;
20                 ethernet0 = &gmac0;
21                 ethernet1 = &gmac1;
22                 mmc0 = &sdio0;
23                 mmc1 = &sdio1;
24                 serial0 = &uart0;
25                 serial3 = &uart3;
26                 i2c0 = &i2c0;
27                 i2c1 = &i2c1;
28                 i2c2 = &i2c2;
29                 i2c3 = &i2c3;
30                 i2c4 = &i2c4;
31                 i2c5 = &i2c5;
32                 i2c6 = &i2c6;
33         };
34
35         chosen {
36                 linux,initrd-start = <0x0 0x46100000>;
37                 linux,initrd-end = <0x0 0x4c000000>;
38                 stdout-path = "serial0:115200";
39                 #bootargs = "debug console=ttyS0 rootwait";
40         };
41
42         cpus {
43                 timebase-frequency = <4000000>;
44         };
45
46         memory@40000000 {
47                 device_type = "memory";
48                 reg = <0x0 0x40000000 0x1 0x0>;
49         };
50
51         reserved-memory {
52                 #address-cells = <2>;
53                 #size-cells = <2>;
54                 ranges;
55
56                 linux,cma {
57                         compatible = "shared-dma-pool";
58                         reusable;
59                         size = <0x0 0x20000000>;
60                         alignment = <0x0 0x1000>;
61                         alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
62                         linux,cma-default;
63                 };
64
65                 e24_mem: e24@c0000000 {
66                         no-map;
67                         reg = <0x0 0xc0110000 0x0 0xf0000>;
68                 };
69
70                 xrp_reserved: xrpbuffer@f0000000 {
71                         reg = <0x0 0xf0000000 0x0 0x01ffffff
72                                 0x0 0xf2000000 0x0 0x00001000
73                                 0x0 0xf2001000 0x0 0x00fff000
74                                 0x0 0xf3000000 0x0 0x00001000>;
75                 };
76
77         };
78 };
79
80 &gpio {
81         i2c0_pins: i2c0-pins {
82                 i2c0-pins-scl {
83                         starfive,pins = <PAD_GPIO57>;
84                         starfive,pinmux = <PAD_GPIO57_FUNC_SEL 0>;
85                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
86                         starfive,pin-gpio-dout = <GPO_LOW>;
87                         starfive,pin-gpio-doen = <OEN_I2C0_IC_CLK_OE>;
88                         starfive,pin-gpio-din =  <GPI_I2C0_IC_CLK_IN_A>;
89                 };
90
91                 i2c0-pins-sda {
92                         starfive,pins = <PAD_GPIO58>;
93                         starfive,pinmux = <PAD_GPIO58_FUNC_SEL 0>;
94                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
95                         starfive,pin-gpio-dout = <GPO_LOW>;
96                         starfive,pin-gpio-doen = <OEN_I2C0_IC_DATA_OE>;
97                         starfive,pin-gpio-din =  <GPI_I2C0_IC_DATA_IN_A>;
98                 };
99         };
100
101         i2c5_pins: i2c5-pins {
102                 i2c5-pins-scl {
103                         starfive,pins = <PAD_GPIO19>;
104                         starfive,pinmux = <PAD_GPIO19_FUNC_SEL 0>;
105                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
106                         starfive,pin-gpio-dout = <GPO_LOW>;
107                         starfive,pin-gpio-doen = <OEN_I2C5_IC_CLK_OE>;
108                         starfive,pin-gpio-din =  <GPI_I2C5_IC_CLK_IN_A>;
109                 };
110
111                 i2c5-pins-sda {
112                         starfive,pins = <PAD_GPIO20>;
113                         starfive,pinmux = <PAD_GPIO20_FUNC_SEL 0>;
114                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
115                         starfive,pin-gpio-dout = <GPO_LOW>;
116                         starfive,pin-gpio-doen = <OEN_I2C5_IC_DATA_OE>;
117                         starfive,pin-gpio-din =  <GPI_I2C5_IC_DATA_IN_A>;
118                 };
119         };
120
121         i2c6_pins: i2c6-pins {
122                 i2c6-pins-scl {
123                         starfive,pins = <PAD_GPIO16>;
124                         starfive,pinmux = <PAD_GPIO16_FUNC_SEL 0>;
125                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
126                         starfive,pin-gpio-dout = <GPO_LOW>;
127                         starfive,pin-gpio-doen = <OEN_I2C6_IC_CLK_OE>;
128                         starfive,pin-gpio-din =  <GPI_I2C6_IC_CLK_IN_A>;
129                 };
130
131                 i2c6-pins-sda {
132                         starfive,pins = <PAD_GPIO17>;
133                         starfive,pinmux = <PAD_GPIO17_FUNC_SEL 0>;
134                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
135                         starfive,pin-gpio-dout = <GPO_LOW>;
136                         starfive,pin-gpio-doen = <OEN_I2C6_IC_DATA_OE>;
137                         starfive,pin-gpio-din =  <GPI_I2C6_IC_DATA_IN_A>;
138                 };
139         };
140
141         csi_pins: csi-pins {
142                 csi-pins-pwdn {
143                         starfive,pins = <PAD_GPIO18>;
144                         starfive,pinmux = <PAD_GPIO18_FUNC_SEL 0>;
145                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
146                         starfive,pin-gpio-dout = <GPO_HIGH>;
147                         starfive,pin-gpio-doen = <OEN_LOW>;
148                 };
149         };
150
151         pwmdac0_pins: pwmdac0-pins {
152                 pwmdac0-pins-left {
153                         starfive,pins = <PAD_GPIO33>;
154                         starfive,pinmux = <PAD_GPIO33_FUNC_SEL 0>;
155                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
156                         starfive,pin-gpio-dout = <GPO_PWMDAC0_LEFT_OUTPUT>;
157                         starfive,pin-gpio-doen = <OEN_LOW>;
158                 };
159
160                 pwmdac0-pins-right {
161                         starfive,pins = <PAD_GPIO34>;
162                         starfive,pinmux = <PAD_GPIO34_FUNC_SEL 0>;
163                         starfive,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
164                         starfive,pin-gpio-dout = <GPO_PWMDAC0_RIGHT_OUTPUT>;
165                         starfive,pin-gpio-doen = <OEN_LOW>;
166                 };
167         };
168
169         pwm_pins: pwm-pins {
170                 pwm_ch0-pins {
171                         starfive,pins = <PAD_GPIO46>;
172                         starfive,pinmux = <PAD_GPIO46_FUNC_SEL 0>;
173                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
174                         starfive,pin-gpio-dout = <GPO_PTC0_PWM_0>;
175                         starfive,pin-gpio-doen = <OEN_PTC0_PWM_0_OE_N>;
176                 };
177
178                 pwm_ch1-pins {
179                         starfive,pins = <PAD_GPIO59>;
180                         starfive,pinmux = <PAD_GPIO59_FUNC_SEL 0>;
181                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
182                         starfive,pin-gpio-dout = <GPO_PTC0_PWM_1>;
183                         starfive,pin-gpio-doen = <OEN_PTC0_PWM_1_OE_N>;
184                 };
185         };
186
187         ssp0_pins: ssp0-pins {
188                 ssp0-pins_tx {
189                         starfive,pins = <PAD_GPIO52>;
190                         starfive,pinmux = <PAD_GPIO52_FUNC_SEL 0>;
191                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
192                         starfive,pin-gpio-dout = <GPO_SPI0_SSPTXD>;
193                         starfive,pin-gpio-doen = <OEN_LOW>;
194                 };
195
196                 ssp0-pins_rx {
197                         starfive,pins = <PAD_GPIO53>;
198                         starfive,pinmux = <PAD_GPIO53_FUNC_SEL 0>;
199                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
200                         starfive,pin-gpio-doen = <OEN_HIGH>;
201                         starfive,pin-gpio-din =  <GPI_SPI0_SSPRXD>;
202                 };
203
204                 ssp0-pins_clk {
205                         starfive,pins = <PAD_GPIO48>;
206                         starfive,pinmux = <PAD_GPIO48_FUNC_SEL 0>;
207                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
208                         starfive,pin-gpio-dout = <GPO_SPI0_SSPCLKOUT>;
209                         starfive,pin-gpio-doen = <OEN_LOW>;
210                 };
211
212                 ssp0-pins_cs {
213                         starfive,pins = <PAD_GPIO49>;
214                         starfive,pinmux = <PAD_GPIO49_FUNC_SEL 0>;
215                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
216                         starfive,pin-gpio-dout = <GPO_SPI0_SSPFSSOUT>;
217                         starfive,pin-gpio-doen = <OEN_LOW>;
218                 };
219         };
220
221         pcie0_perst_default: pcie0_perst_default {
222                 perst-pins {
223                         starfive,pins = <PAD_GPIO26>;
224                         starfive,pinmux = <PAD_GPIO26_FUNC_SEL 0>;
225                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
226                         starfive,pin-gpio-dout = <GPO_HIGH>;
227                         starfive,pin-gpio-doen = <OEN_LOW>;
228                 };
229         };
230
231         pcie0_perst_active: pcie0_perst_active {
232                 perst-pins {
233                         starfive,pins = <PAD_GPIO26>;
234                         starfive,pinmux = <PAD_GPIO26_FUNC_SEL 0>;
235                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
236                         starfive,pin-gpio-dout = <GPO_LOW>;
237                         starfive,pin-gpio-doen = <OEN_LOW>;
238                 };
239         };
240
241         pcie0_wake_default: pcie0_wake_default {
242                 wake-pins {
243                         starfive,pins = <PAD_GPIO32>;
244                         starfive,pinmux = <PAD_GPIO32_FUNC_SEL 0>;
245                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
246                         starfive,pin-gpio-doen = <OEN_HIGH>;
247                 };
248         };
249
250         pcie0_clkreq_default: pcie0_clkreq_default {
251                 clkreq-pins {
252                         starfive,pins = <PAD_GPIO27>;
253                         starfive,pinmux = <PAD_GPIO27_FUNC_SEL 0>;
254                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
255                         starfive,pin-gpio-doen = <OEN_HIGH>;
256                 };
257         };
258
259         pcie0_vbus_default: pcie0_vbus_default {
260                 drive-vbus-pin {
261                         starfive,pins = <PAD_GPIO25>;
262                         starfive,pinmux = <PAD_GPIO25_FUNC_SEL 0>;
263                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
264                         starfive,pin-gpio-dout = <GPO_HIGH>;
265                         starfive,pin-gpio-doen = <OEN_LOW>;
266                 };
267         };
268
269         pcie1_perst_default: pcie1_perst_default {
270                 perst-pins {
271                         starfive,pins = <PAD_GPIO28>;
272                         starfive,pinmux = <PAD_GPIO28_FUNC_SEL 0>;
273                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
274                         starfive,pin-gpio-dout = <GPO_HIGH>;
275                         starfive,pin-gpio-doen = <OEN_LOW>;
276                 };
277         };
278
279         pcie1_perst_active: pcie1_perst_active {
280                 perst-pins {
281                         starfive,pins = <PAD_GPIO28>;
282                         starfive,pinmux = <PAD_GPIO28_FUNC_SEL 0>;
283                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
284                         starfive,pin-gpio-dout = <GPO_LOW>;
285                         starfive,pin-gpio-doen = <OEN_LOW>;
286                 };
287         };
288
289         pcie1_wake_default: pcie1_wake_default {
290                 wake-pins {
291                         starfive,pins = <PAD_GPIO21>;
292                         starfive,pinmux = <PAD_GPIO21_FUNC_SEL 0>;
293                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
294                         starfive,pin-gpio-doen = <OEN_HIGH>;
295                 };
296         };
297
298         pcie1_clkreq_default: pcie1_clkreq_default {
299                 clkreq-pins {
300                         starfive,pins = <PAD_GPIO29>;
301                         starfive,pinmux = <PAD_GPIO29_FUNC_SEL 0>;
302                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
303                         starfive,pin-gpio-doen = <OEN_HIGH>;
304                 };
305         };
306
307         usb_pins: usb-pins {
308                 drive-vbus-pin {
309                         starfive,pins = <PAD_GPIO25>;
310                         starfive,pinmux = <PAD_GPIO25_FUNC_SEL 0>;
311                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
312                         starfive,pin-gpio-dout = <GPO_USB0_DRIVE_VBUS_IO>;
313                         starfive,pin-gpio-doen = <OEN_LOW>;
314                 };
315         };
316
317         i2srx_pins: i2srx-pins {
318                 i2srx-pins0 {
319                         starfive,pins = <PAD_GPIO61>;
320                         starfive,pinmux = <PAD_GPIO61_FUNC_SEL 0>;
321                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
322                         starfive,pin-gpio-doen = <OEN_HIGH>;
323                         starfive,pin-gpio-din =  <GPI_I2SRX0_EXT_SDIN0>;
324                 };
325         };
326
327         i2s_clk_pins: i2s-clk0 {
328                 i2s-clk0_bclk {
329                         starfive,pins = <PAD_GPIO38>;
330                         starfive,pinmux = <PAD_GPIO38_FUNC_SEL 0>;
331                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
332                         starfive,pin-gpio-din = <GPI_I2STX0_BCLK_SLV GPI_I2SRX0_BCLK_SLV>;
333                         starfive,pin-gpio-doen = <OEN_HIGH>;
334                 };
335
336                 i2s-clk0_lrclk {
337                         starfive,pins = <PAD_GPIO63>;
338                         starfive,pinmux = <PAD_GPIO63_FUNC_SEL 0>;
339                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
340                         starfive,pin-gpio-din = <GPI_I2STX0_LRCK_SLV GPI_I2SRX0_LRCK_SLV>;
341                         starfive,pin-gpio-doen = <OEN_HIGH>;
342                 };
343         };
344
345         i2stx_pins: i2stx-pins {
346                 i2stx-pins0 {
347                         starfive,pins = <PAD_GPIO44>;
348                         starfive,pinmux = <PAD_GPIO44_FUNC_SEL 0>;
349                         starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
350                         starfive,pin-gpio-dout = <GPO_I2STX_4CH1_SDO0>;
351                         starfive,pin-gpio-doen = <OEN_LOW>;
352                 };
353         };
354 };
355
356 &uart0 {
357         status = "okay";
358 };
359
360 &dma {
361         status = "okay";
362 };
363
364 &trng {
365         status = "okay";
366 };
367
368 &crypto {
369         status = "okay";
370 };
371
372 &sec_dma {
373         status = "okay";
374 };
375
376 &i2c0 {
377         clock-frequency = <100000>;
378         i2c-sda-hold-time-ns = <300>;
379         i2c-sda-falling-time-ns = <510>;
380         i2c-scl-falling-time-ns = <510>;
381         auto_calc_scl_lhcnt;
382         pinctrl-names = "default";
383         pinctrl-0 = <&i2c0_pins>;
384         status = "okay";
385
386         ac108_a: ac108@3b {
387                 compatible = "x-power,ac108_0";
388                 reg = <0x3b>;
389                 #sound-dai-cells = <0>;
390                 data-protocol = <0>;
391         };
392
393         wm8960: codec@1a {
394                 compatible = "wlf,wm8960";
395                 reg = <0x1a>;
396                 #sound-dai-cells = <0>;
397
398                 wlf,shared-lrclk;
399         };
400 };
401
402 &i2c2 {
403         clock-frequency = <100000>;
404         i2c-sda-hold-time-ns = <300>;
405         i2c-sda-falling-time-ns = <510>;
406         i2c-scl-falling-time-ns = <510>;
407         auto_calc_scl_lhcnt;
408         status = "okay";
409
410         seeed_plane_i2c@45 {
411                 compatible = "seeed_panel";
412                 reg = <0x45>;
413
414                 port {
415                         panel_dsi_port: endpoint {
416                                 remote-endpoint = <&dsi_out_port>;
417                         };
418                 };
419         };
420
421 };
422
423 &i2c5 {
424         clock-frequency = <100000>;
425         i2c-sda-hold-time-ns = <300>;
426         i2c-sda-falling-time-ns = <510>;
427         i2c-scl-falling-time-ns = <510>;
428         auto_calc_scl_lhcnt;
429         pinctrl-names = "default";
430         pinctrl-0 = <&i2c5_pins>;
431         status = "okay";
432
433         eeprom@50 {
434                 compatible = "atmel,24c04";
435                 reg = <0x50>;
436                 pagesize = <16>;
437         };
438
439         pmic: axp15060_reg@36 {
440                 compatible = "stf,axp15060-regulator";
441                 reg = <0x36>;
442
443                 regulators {
444                         mipi_0p9: ALDO1 {
445                                 regulator-boot-on;
446                                 regulator-compatible = "mipi_0p9";
447                                 regulator-name = "mipi_0p9";
448                                 regulator-min-microvolt = <900000>;
449                                 regulator-max-microvolt = <900000>;
450                         };
451                         hdmi_0p9: ALDO5 {
452                                 regulator-boot-on;
453                                 regulator-compatible = "hdmi_0p9";
454                                 regulator-name = "hdmi_0p9";
455                                 regulator-min-microvolt = <900000>;
456                                 regulator-max-microvolt = <900000>;
457                         };
458                         hdmi_1p8: ALDO3 {
459                                 regulator-boot-on;
460                                 regulator-compatible = "hdmi_1p8";
461                                 regulator-name = "hdmi_1p8";
462                                 regulator-min-microvolt = <1800000>;
463                                 regulator-max-microvolt = <1800000>;
464                         };
465                         sdio_vdd: ALDO4 {
466                                 regulator-boot-on;
467                                 regulator-compatible = "sdio_vdd";
468                                 regulator-name = "sdio_vdd";
469                                 regulator-min-microvolt = <1800000>;
470                                 regulator-max-microvolt = <3300000>;
471                         };
472                         cpu_vdd: DCDC2 {
473                                 regulator-boot-on;
474                                 regulator-always-on;
475                                 regulator-compatible = "cpu_vdd";
476                                 regulator-name = "cpu_vdd";
477                                 regulator-min-microvolt = <500000>;
478                                 regulator-max-microvolt = <1540000>;
479                         };
480                 };
481         };
482 };
483
484 &i2c6 {
485         clock-frequency = <100000>;
486         i2c-sda-hold-time-ns = <300>;
487         i2c-sda-falling-time-ns = <510>;
488         i2c-scl-falling-time-ns = <510>;
489         auto_calc_scl_lhcnt;
490         pinctrl-names = "default";
491         pinctrl-0 = <&i2c6_pins>;
492         status = "okay";
493
494         imx219@10 {
495                 compatible = "imx219";
496                 reg = <0x10>;
497                 clocks = <&clk_ext_camera>;
498                 clock-names = "xclk";
499                 //reset-gpio = <&gpio 18 0>;
500                 //DOVDD-supply = <&v2v8>;
501                 pinctrl-names = "default";
502                 pinctrl-0 = <&csi_pins>;
503                 rotation = <0>;
504                 orientation = <1>; //CAMERA_ORIENTATION_BACK
505
506                 port {
507                         /* CSI2 bus endpoint */
508                         imx219_to_csi2rx0: endpoint {
509                                 remote-endpoint = <&csi2rx0_from_imx219>;
510                                 bus-type = <4>;      /* MIPI CSI-2 D-PHY */
511                                 clock-lanes = <4>;
512                                 data-lanes = <0 1>;
513                                 lane-polarities = <0 0 0>;
514                                 link-frequencies = /bits/ 64 <456000000>;
515                         };
516                 };
517         };
518 };
519
520 &sdio0 {
521         clock-frequency = <102400000>;
522         max-frequency = <100000000>;
523         card-detect-delay = <300>;
524         bus-width = <8>;
525         cap-mmc-highspeed;
526         mmc-hs400-1_8v;
527         mmc-hs400-enhanced-strobe;
528         non-removable;
529         cap-mmc-hw-reset;
530         post-power-on-delay-ms = <200>;
531         vqmmc-supply = <&sdio_vdd>;
532         status = "okay";
533 };
534
535 &sdio1 {
536         clock-frequency = <102400000>;
537         max-frequency = <200000000>;
538         card-detect-delay = <300>;
539         bus-width = <4>;
540         broken-cd;
541         cap-sd-highspeed;
542         post-power-on-delay-ms = <200>;
543         status = "okay";
544 };
545
546 &vin_sysctl {
547         /* when use dvp open this pinctrl*/
548         status = "okay";
549
550         ports {
551                 #address-cells = <1>;
552                 #size-cells = <0>;
553
554                 port@1 {
555                         reg = <1>;
556                         #address-cells = <1>;
557                         #size-cells = <0>;
558
559                         /* CSI2 bus endpoint */
560                         csi2rx0_from_imx219: endpoint@0 {
561                                 reg = <0>;
562                                 remote-endpoint = <&imx219_to_csi2rx0>;
563                                 bus-type = <4>;      /* MIPI CSI-2 D-PHY */
564                                 clock-lanes = <4>;
565                                 data-lanes = <0 1>;
566                                 lane-polarities = <0 0 0>;
567                                 status = "okay";
568                         };
569                 };
570         };
571 };
572
573 &sfctemp {
574         status = "okay";
575 };
576
577 &jpu {
578         status = "okay";
579 };
580
581 &vpu_dec {
582         status = "okay";
583 };
584
585 &vpu_enc {
586         status = "okay";
587 };
588
589 &gmac0 {
590         status = "okay";
591         #address-cells = <1>;
592         #size-cells = <0>;
593         phy0: ethernet-phy@0 {
594                 rxc_dly_en = <1>;
595                 tx_delay_sel_fe = <5>;
596                 tx_delay_sel = <9>;
597         };
598 };
599
600 &gmac1 {
601         #address-cells = <1>;
602         #size-cells = <0>;
603         status = "okay";
604         phy1: ethernet-phy@1 {
605                 tx_delay_sel_fe = <5>;
606                 tx_delay_sel = <9>;
607                 rxc_dly_en = <0>;
608         };
609 };
610
611 &gpu {
612         status = "okay";
613 };
614
615 &pwmdac {
616         pinctrl-names = "default";
617         pinctrl-0 = <&pwmdac0_pins>;
618         status = "okay";
619 };
620
621 &i2srx_3ch {
622         pinctrl-names = "default";
623         pinctrl-0 = <&i2s_clk_pins &i2srx_pins>;
624         status = "disabled";
625 };
626
627 &i2stx_4ch1 {
628         pinctrl-names = "default";
629         pinctrl-0 = <&i2stx_pins>;
630         status = "disabled";
631 };
632
633 &pwmdac_codec {
634         status = "okay";
635 };
636
637 &spi0 {
638         pinctrl-names = "default";
639         pinctrl-0 = <&ssp0_pins>;
640         status = "okay";
641
642         spi_dev0: spi@0 {
643                 compatible = "rohm,dh2228fv";
644                 pl022,com-mode = <1>;
645                 spi-max-frequency = <10000000>;
646                 reg = <0>;
647                 status = "okay";
648         };
649 };
650
651 &pcie0 {
652         pinctrl-names = "default", "perst-default", "perst-active";
653         pinctrl-0 = <&pcie0_wake_default>,
654                     <&pcie0_clkreq_default>,
655                     <&pcie0_vbus_default>;
656         pinctrl-1 = <&pcie0_perst_default>;
657         pinctrl-2 = <&pcie0_perst_active>;
658         status = "okay";
659 };
660
661 &pcie1 {
662         pinctrl-names = "default", "perst-default", "perst-active";
663         pinctrl-0 = <&pcie1_wake_default>,
664                     <&pcie1_clkreq_default>;
665         pinctrl-1 = <&pcie1_perst_default>;
666         pinctrl-2 = <&pcie1_perst_active>;
667         status = "okay";
668 };
669
670 &mailbox_contrl0 {
671         status = "okay";
672 };
673
674 &mailbox_client0 {
675         status = "okay";
676 };
677
678 &display {
679         status = "okay";
680 };
681
682 &hdmi {
683         status = "okay";
684
685         hdmi_in: port {
686                 #address-cells = <1>;
687                 #size-cells = <0>;
688                 hdmi_in_lcdc: endpoint@0 {
689                         reg = <0>;
690                         remote-endpoint = <&dc_out_dpi1>;
691                 };
692         };
693 };
694
695 &dc8200 {
696         status = "okay";
697
698         dc_out: port {
699                 #address-cells = <1>;
700                 #size-cells = <0>;
701                 dc_out_dpi0: endpoint@0 {
702                         reg = <0>;
703                         remote-endpoint = <&hdmi_input0>;
704                 };
705                 dc_out_dpi1: endpoint@1 {
706                         reg = <1>;
707                         remote-endpoint = <&hdmi_in_lcdc>;
708                 };
709
710                 dc_out_dpi2: endpoint@2 {
711                         reg = <2>;
712                         remote-endpoint = <&mipi_in>;
713                 };
714         };
715 };
716
717 &rgb_output {
718         status = "okay";
719
720         ports {
721                 #address-cells = <1>;
722                 #size-cells = <0>;
723                 port@0 {
724                         #address-cells = <1>;
725                         #size-cells = <0>;
726                         reg = <0>;
727                         hdmi_input0:endpoint@0 {
728                                 reg = <0>;
729                                 remote-endpoint = <&dc_out_dpi0>;
730                         };
731                 };
732         };
733 };
734
735 &dsi_output {
736         status = "okay";
737
738         ports {
739                 #address-cells = <1>;
740                 #size-cells = <0>;
741
742                 port@0 {
743                         reg = <0>;
744                         mipi_in: endpoint {
745                                 remote-endpoint = <&dc_out_dpi2>;
746                         };
747                 };
748
749                 port@1 {
750                         reg = <1>;
751                         mipi_out: endpoint {
752                                 remote-endpoint = <&dsi_in_port>;
753                         };
754                 };
755         };
756 };
757
758 &mipi_dsi {
759         status = "okay";
760 };
761
762 &mipi_dphy {
763         status = "okay";
764 };
765
766 &co_process {
767         status = "okay";
768 };
769
770 &usbdrd30 {
771         pinctrl-names = "default";
772         pinctrl-0 = <&usb_pins>;
773         dr_mode = "host"; /*host or peripheral*/
774         status = "disabled";
775 };
776
777 &xrp {
778         status = "okay";
779 };
780
781 &ptc {
782         pinctrl-names = "default";
783         pinctrl-0 = <&pwm_pins>;
784         status = "okay";
785 };