Skip to content

Commit 8eca2cf

Browse files
bivvyrkhuangtao
authored andcommitted
arm64: dts: rockchip: px30-z7-a0-rk618-dsi: include rk618.dtsi
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> Change-Id: Ifa30e5a170326af099197f407767c924663fa6c6
1 parent 80bbf43 commit 8eca2cf

1 file changed

Lines changed: 90 additions & 105 deletions

File tree

arch/arm64/boot/dts/rockchip/px30-z7-a0-rk618-dsi.dts

Lines changed: 90 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <dt-bindings/input/input.h>
1010
#include <dt-bindings/display/drm_mipi_dsi.h>
1111
#include <dt-bindings/display/media-bus-format.h>
12-
#include <dt-bindings/clock/rk618-cru.h>
1312
#include "px30.dtsi"
1413
#include "px30-android.dtsi"
1514

@@ -500,126 +499,112 @@
500499
};
501500
};
502501
};
502+
};
503503

504-
rk618@50 {
505-
compatible = "rockchip,rk618";
504+
&i2c0 {
505+
status = "okay";
506+
507+
rk618: rk618@50 {
506508
reg = <0x50>;
507509
interrupt-parent = <&gpio2>;
508510
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
509511
pinctrl-names = "default";
510512
pinctrl-0 = <&i2s1_2ch_mclk>;
511-
clocks = <&cru SCLK_I2S1_OUT>;
512-
clock-names = "clkin";
513513
assigned-clocks = <&cru SCLK_I2S1_OUT>;
514-
assigned-clock-rates = <12000000>;
514+
assigned-clock-rates = <11289600>;
515515
reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
516516
status = "okay";
517+
};
518+
};
517519

518-
clock: cru {
519-
compatible = "rockchip,rk618-cru";
520-
clocks = <&cru SCLK_I2S1_OUT>, <&cru DCLK_VOPL>;
521-
clock-names = "clkin", "lcdc0_dclkp";
522-
assigned-clocks = <&clock SCALER_PLLIN_CLK>,
523-
<&clock VIF_PLLIN_CLK>,
524-
<&clock SCALER_CLK>,
525-
<&clock VIF0_PRE_CLK>,
526-
<&clock CODEC_CLK>,
527-
<&clock DITHER_CLK>;
528-
assigned-clock-parents = <&cru SCLK_I2S1_OUT>,
529-
<&clock LCDC0_CLK>,
530-
<&clock SCALER_PLL_CLK>,
531-
<&clock VIF_PLL_CLK>,
532-
<&cru SCLK_I2S1_OUT>,
533-
<&clock VIF0_CLK>;
534-
#clock-cells = <1>;
535-
status = "okay";
536-
};
520+
#include <arm/rk618.dtsi>
537521

538-
dsi {
539-
compatible = "rockchip,rk618-dsi";
540-
clocks = <&clock MIPI_CLK>;
541-
clock-names = "dsi";
542-
#address-cells = <1>;
543-
#size-cells = <0>;
544-
status = "okay";
522+
&rk618_clkin {
523+
clocks = <&cru SCLK_I2S1_OUT>;
524+
};
545525

546-
ports {
547-
#address-cells = <1>;
548-
#size-cells = <0>;
526+
&rk618_lcdc0_dclkp {
527+
clocks = <&cru DCLK_VOPL>;
528+
};
549529

550-
port@0 {
551-
reg = <0>;
530+
&rk618_dsi {
531+
status = "okay";
552532

553-
dsi_in_rgb: endpoint {
554-
remote-endpoint = <&rgb_out_dsi>;
555-
};
556-
};
533+
ports {
534+
#address-cells = <1>;
535+
#size-cells = <0>;
536+
537+
port@0 {
538+
reg = <0>;
539+
540+
dsi_in_rgb: endpoint {
541+
remote-endpoint = <&rgb_out_dsi>;
557542
};
543+
};
544+
};
558545

559-
panel@0 {
560-
compatible = "simple-panel-dsi";
561-
reg = <0>;
562-
power-supply = <&vcc3v3_lcd>;
563-
backlight = <&backlight>;
564-
reset-gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
565-
prepare-delay-ms = <20>;
566-
reset-delay-ms = <20>;
567-
init-delay-ms = <20>;
568-
enable-delay-ms = <120>;
569-
disable-delay-ms = <20>;
570-
unprepare-delay-ms = <20>;
571-
572-
width-mm = <95>;
573-
height-mm = <151>;
574-
575-
dsi,flags = <(MIPI_DSI_MODE_VIDEO |
576-
MIPI_DSI_MODE_VIDEO_BURST |
577-
MIPI_DSI_MODE_LPM |
578-
MIPI_DSI_MODE_EOT_PACKET)>;
579-
dsi,format = <MIPI_DSI_FMT_RGB888>;
580-
dsi,lanes = <4>;
581-
582-
panel-init-sequence = [
583-
15 00 02 b0 00
584-
15 00 02 d6 01
585-
39 00 06 b3 14 08 00 22 00
586-
15 00 02 b4 0c
587-
15 00 02 DE 00
588-
39 00 03 b6 3a d3
589-
15 00 02 51 E0
590-
15 00 02 53 04
591-
15 00 02 3a 77
592-
15 00 02 35 01
593-
39 00 05 2A 00 00 04 AF
594-
39 00 05 2B 00 00 07 7F
595-
05 96 01 29
596-
05 14 01 11
597-
];
598-
599-
panel-exit-sequence = [
600-
05 00 01 28
601-
05 00 01 10
602-
];
603-
604-
display-timings {
605-
native-mode = <&timing1>;
606-
607-
timing1: timing1 {
608-
clock-frequency = <156000000>;
609-
hactive = <1200>;
610-
vactive = <1920>;
611-
hback-porch = <60>;
612-
hfront-porch = <80>;
613-
vback-porch = <4>;
614-
vfront-porch = <4>;
615-
hsync-len = <10>;
616-
vsync-len = <1>;
617-
hsync-active = <0>;
618-
vsync-active = <0>;
619-
de-active = <0>;
620-
pixelclk-active = <0>;
621-
};
622-
};
546+
panel@0 {
547+
compatible = "simple-panel-dsi";
548+
reg = <0>;
549+
power-supply = <&vcc3v3_lcd>;
550+
backlight = <&backlight>;
551+
reset-gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
552+
prepare-delay-ms = <20>;
553+
reset-delay-ms = <20>;
554+
init-delay-ms = <20>;
555+
enable-delay-ms = <120>;
556+
disable-delay-ms = <20>;
557+
unprepare-delay-ms = <20>;
558+
559+
width-mm = <95>;
560+
height-mm = <151>;
561+
562+
dsi,flags = <(MIPI_DSI_MODE_VIDEO |
563+
MIPI_DSI_MODE_VIDEO_BURST |
564+
MIPI_DSI_MODE_LPM |
565+
MIPI_DSI_MODE_EOT_PACKET)>;
566+
dsi,format = <MIPI_DSI_FMT_RGB888>;
567+
dsi,lanes = <4>;
568+
569+
panel-init-sequence = [
570+
15 00 02 b0 00
571+
15 00 02 d6 01
572+
39 00 06 b3 14 08 00 22 00
573+
15 00 02 b4 0c
574+
15 00 02 DE 00
575+
39 00 03 b6 3a d3
576+
15 00 02 51 E0
577+
15 00 02 53 04
578+
15 00 02 3a 77
579+
15 00 02 35 01
580+
39 00 05 2A 00 00 04 AF
581+
39 00 05 2B 00 00 07 7F
582+
05 96 01 29
583+
05 14 01 11
584+
];
585+
586+
panel-exit-sequence = [
587+
05 00 01 28
588+
05 00 01 10
589+
];
590+
591+
display-timings {
592+
native-mode = <&timing1>;
593+
594+
timing1: timing1 {
595+
clock-frequency = <156000000>;
596+
hactive = <1200>;
597+
vactive = <1920>;
598+
hback-porch = <60>;
599+
hfront-porch = <80>;
600+
vback-porch = <4>;
601+
vfront-porch = <4>;
602+
hsync-len = <10>;
603+
vsync-len = <1>;
604+
hsync-active = <0>;
605+
vsync-active = <0>;
606+
de-active = <0>;
607+
pixelclk-active = <0>;
623608
};
624609
};
625610
};

0 commit comments

Comments
 (0)