hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
 */
 
/ {
   memory: memory {
       device_type = "memory";
       reg = <0x00000000 0x08000000>;
   };
 
   ramdisk: ramdisk {
       compatible = "rockchip,ramdisk";
       memory-region = <&ramdisk_r>;
   };
 
   reserved-memory {
       #address-cells = <1>;
       #size-cells = <1>;
       ranges;
 
       rtos: rtos@40000 {
           reg = <0x40000 0x40000>;
       };
 
       meta: meta@800000 {
           /* reg's offset MUST match with RTOS */
           reg = <0x00800000 0x60000>;
       };
 
       rkisp_thunderboot: rkisp@860000 {
           /* reg's offset MUST match with RTOS */
           /*
            * vicap, capture raw10, ceil(w*10/8/256)*256*h *4(buf num)
            * e.g. 1920x1080: 0xa8c000
            */
           reg = <0x00860000 0xa8c000>;
       };
 
       ramdisk_r: ramdisk_r {
           reg = <0x12ec000 (10 * 0x00100000)>;
       };
 
       ramdisk_c: ramdisk_c {
           reg = <0x1cec000 (5 * 0x00100000)>;
       };
 
       rkisp1_thunderboot: rkisp1_thunderboot {
           /* vicap capture for other camera */
       };
   };
 
   thunder_boot_rkisp: thunder-boot-rkisp {
       compatible = "rockchip,thunder-boot-rkisp";
       clocks = <&cru ACLK_ISP3P2>, <&cru HCLK_ISP3P2>,
            <&cru CLK_CORE_ISP3P2>, <&cru ISP0CLK_VICAP>,
            <&cru ACLK_VICAP>, <&cru HCLK_VICAP>,
            <&cru DCLK_VICAP>, <&cru PCLK_VICAP>,
            <&cru I0CLK_VICAP>, <&cru I1CLK_VICAP>,
            <&cru RX0PCLK_VICAP>, <&cru RX1PCLK_VICAP>,
            <&cru ISP0CLK_VICAP>, <&cru SCLK_VICAP_M0>,
            <&cru SCLK_VICAP_M1>, <&cru PCLK_VICAP_VEPU>,
            <&cru PCLK_CSIHOST0>, <&cru CLK_RXBYTECLKHS_0>,
            <&cru PCLK_CSIHOST1>, <&cru CLK_RXBYTECLKHS_1>,
            <&cru CLK_I2C4>, <&cru PCLK_I2C4>;
       clock-names = "aclk_isp", "hclk_isp",
                 "clk_isp_core", "clk_isp_core_vicap",
                 "aclk_cif","hclk_cif",
                 "dclk_cif", "pclk_cif",
                 "i0clk_cif", "i1clk_cif",
                 "rx0clk_cif", "rx1clk_cif",
                 "isp0clk_cif", "sclk_m0_cif",
                 "sclk_m1_cif", "pclk_vepu_cif",
                 "pclk_csi2host0", "clk_rxbyte_hs0",
                 "pclk_csi2host1", "clk_rxbyte_hs1",
                 "i2c", "pclk";
       status = "okay";
   };
 
   thunder_boot_service: thunder-boot-service {
       compatible = "rockchip,thunder-boot-service";
       mbox-names = "amp-rx";
       mboxes = <&mailbox 1>;
       resets = <&cru SRST_CORE_MCU>, <&cru SRST_CORE_MCU_PWRUP>,
            <&cru SRST_CORE_MCU_CPU>, <&cru SRST_T_CORE_MCU_CPU>;
       reset-names = "core_mcu", "core_mcu_pwrup",
                 "core_mcu_cpu", "t_core_mcu_cpu";
       memory-region = <&rtos>;
       status = "disabled";
   };
};
 
&hw_decompress {
   status = "okay";
   memory-region = <&ramdisk_c>;
};
 
&rkisp_vir0 {
   memory-region-thunderboot = <&rkisp_thunderboot>;
};
 
&rkvenc {
   assigned-clocks = <&cru CLK_CORE_VEPU>;
   assigned-clock-rates = <410000000>;
};