hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
 */
 
#include <dt-bindings/display/mipi_dsi.h>
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/display/media-bus-format.h>
 
/ {
   chosen: chosen {
       bootargs = "earlycon=uart8250,mmio32,0x20068000";
   };
 
   cpuinfo {
       compatible = "rockchip,cpuinfo";
       nvmem-cells = <&efuse_id>;
       nvmem-cell-names = "id";
   };
 
   fiq-debugger {
       compatible = "rockchip,fiq-debugger";
       rockchip,serial-id = <2>;
       rockchip,signal-irq = <159>;
       rockchip,wake-irq = <0>;
       /* If enable uart uses irq instead of fiq */
       rockchip,irq-mode-enable = <1>;
       rockchip,baudrate = <115200>;  /* Only 115200 and 1500000 */
       interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
       status = "okay";
   };
 
   firmware {
       firmware_android: android {};
   };
 
   reserved-memory {
       #address-cells = <1>;
       #size-cells = <1>;
       ranges;
 
       cma_region: region@63000000 {
           compatible = "shared-dma-pool";
           reusable;
           reg = <0x63000000 0x1800000>;
       };
 
       ramoops: ramoops@62e00000 {
           compatible = "ramoops";
           reg = <0x62e00000 0xf0000>;
           record-size = <0x20000>;
           console-size = <0x80000>;
           ftrace-size = <0x00000>;
           pmsg-size = <0x50000>;
       };
 
       drm_logo: drm-logo@00000000 {
           compatible = "rockchip,drm-logo";
           reg = <0x0 0x0>;
       };
   };
};
 
&cif_new {
   memory-region = <&cma_region>;
};
 
&dfi {
   status = "okay";
};
 
&display_subsystem {
   memory-region = <&cma_region>;
   logo-memory-region = <&drm_logo>;
   status = "okay";
 
   route {
       route_dsi: route-dsi {
           status = "disabled";
           logo,uboot = "logo.bmp";
           logo,kernel = "logo_kernel.bmp";
           logo,mode = "center";
           charge_logo,mode = "center";
           connect = <&vop_out_dsi>;
       };
 
       route_lvds: route-lvds {
           status = "disabled";
           logo,uboot = "logo.bmp";
           logo,kernel = "logo_kernel.bmp";
           logo,mode = "center";
           charge_logo,mode = "center";
           connect = <&vop_out_lvds>;
       };
 
       route_rgb: route-rgb {
           status = "disabled";
           logo,uboot = "logo.bmp";
           logo,kernel = "logo_kernel.bmp";
           logo,mode = "center";
           charge_logo,mode = "center";
           connect = <&vop_out_rgb>;
       };
   };
};
 
&dmc {
   vop-dclk-mode = <1>;
   status = "okay";
};
 
&dsi {
   panel@0 {
       reg = <0>;
 
       ports {
           #address-cells = <1>;
           #size-cells = <0>;
 
           port@0 {
               reg = <0>;
 
               panel_in_dsi: endpoint {
                   remote-endpoint = <&dsi_out_panel>;
               };
           };
       };
   };
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@1 {
           reg = <1>;
 
           dsi_out_panel: endpoint {
               remote-endpoint = <&panel_in_dsi>;
           };
       };
   };
};
 
&video_phy {
   status = "okay";
};