hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
 */
 
/dts-v1/;
#include "rk3399-sapphire-excavator-edp.dtsi"
 
/ {
   model = "Rockchip RK3399 Excavator Board edp avb (Android)";
   compatible = "rockchip,android", "rockchip,rk3399-excavator-edp-avb", "rockchip,rk3399";
   chosen: chosen {
   bootargs = "earlycon=uart8250,mmio32,0xff1a0000 console=ttyFIQ0 androidboot.baseband=N/A androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 init=/init initrd=0x62000001,0x00800000 coherent_pool=1m";
   };
 
   ext_cam_clk: external-camera-clock {
       compatible = "fixed-clock";
       clock-frequency = <27000000>;
       clock-output-names = "CLK_CAMERA_27MHZ";
       #clock-cells = <0>;
   };
};
 
&i2c1 {
   status = "okay";
 
   /delete-node/ tc358749x@f;
 
   tc35874x: tc35874x@f {
       status = "disabled";
       reg = <0x0f>;
       compatible = "toshiba,tc358749";
       clocks = <&ext_cam_clk>;
       clock-names = "refclk";
       reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
       /* interrupt-parent = <&gpio2>; */
       /* interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; */
       pinctrl-names = "default";
       pinctrl-0 = <&tc35874x_gpios>;
       rockchip,camera-module-index = <0>;
       rockchip,camera-module-facing = "back";
       rockchip,camera-module-name = "TC358749XBG";
       rockchip,camera-module-lens-name = "NC";
 
       port {
           hdmiin_out0: endpoint {
               remote-endpoint = <&hdmi_to_mipi_in>;
               data-lanes = <1 2 3 4>;
               clock-noncontinuous;
               link-frequencies =
                   /bits/ 64 <297000000>;
           };
       };
   };
};
 
&mipi_dphy_rx0 {
   status = "okay";
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@0 {
           reg = <0>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           mipi_in_ucam0: endpoint@1 {
               reg = <1>;
               remote-endpoint = <&ucam_out0>;
               data-lanes = <1 2>;
           };
 
           hdmi_to_mipi_in: endpoint@2 {
               reg = <2>;
               remote-endpoint = <&hdmiin_out0>;
               data-lanes = <1 2 3 4>;
           };
       };
 
       port@1 {
           reg = <1>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           dphy_rx0_out: endpoint@0 {
               reg = <0>;
               remote-endpoint = <&isp0_mipi_in>;
           };
       };
   };
};
 
&mipi_dphy_tx1rx1 {
   status = "disabled";
};
 
&pinctrl {
   hdmiin {
       tc35874x_gpios: tc35874x_gpios {
           rockchip,pins =
               /* PWREN_3.3 */
               <2 RK_PA5 RK_FUNC_GPIO &pcfg_output_high>,
               /* PWREN_1.2 */
               <2 RK_PA6 RK_FUNC_GPIO &pcfg_output_high>,
               /* HDMIIN_RST */
               <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>,
               /* HDMIIN_STBY */
               <2 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>,
               /* MIPI_RST */
               <2 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>,
               /* CSI_CTL */
               <2 RK_PB2 RK_FUNC_GPIO &pcfg_output_low>,
               /* HDMIIN_INT */
               <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
};
 
&rkisp1_0 {
   status = "okay";
};
 
&rkisp1_1 {
   status = "disabled";
};