hc
2023-11-07 5e8555e3ea324daaf0e38422bcba48c4df33a0d9
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
* techpoint,tpxxxx Decoder
 
Required Properties:
- compatible: should be "techpoint,tpxxxx"
- clocks: reference to the 27M xvclk input clock.
- clock-names: should be "xvclk".
- dovdd-supply: Digital I/O voltage supply, 1.8 volts
- avdd-supply: Analog voltage supply, 3.3 volts
- dvdd-supply: Digital core voltage supply, 1.2 volts
- reset-gpios: Low active reset gpio
- pwdn-gpios: High active power-down gpio
 
Attention:
techpoint device address (7bit)
techpoint + evb reuse the power bus
 
Example:
&i2c1 {
   status = "okay";
 
   // BT1120
   tp9930: tp9930@45 {
       compatible = "techpoint,tp9930";
       reg = <0x45>;
       clocks = <&cru CLK_MIPICSI_OUT>;
       clock-names = "xvclk";
       avdd-supply = <&vcc_avdd>;
       dovdd-supply = <&vcc_dovdd>;
       dvdd-supply = <&vcc_dvdd>;
       power-domains = <&power RV1126_PD_VI>;
       pinctrl-names = "rockchip,camera_default";
       pinctrl-0 = <&mipicsi_clk0 &cifm0_bt1120_ctl>;
       rockchip,grf = <&grf>;
       reset-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
       power-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
       rockchip,camera-module-index = <0>;
       rockchip,camera-module-facing = "back";
       rockchip,camera-module-name = "default";
       rockchip,camera-module-lens-name = "default";
       port {
           cam_para_out1: endpoint {
               remote-endpoint = <&cif_para_in>;
               bus-width = <16>;
               pclk-sample = <1>;
           };
       };
   };
 
   // MIPI
   tp2855: tp2855@44 {
       compatible = "techpoint,tp2855";
       reg = <0x44>;
       clocks = <&cru CLK_MIPICSI_OUT>;
       clock-names = "xvclk";
       avdd-supply = <&vcc_avdd>;
       dovdd-supply = <&vcc_dovdd>;
       dvdd-supply = <&vcc_dvdd>;
       power-domains = <&power RV1126_PD_VI>;
       pinctrl-names = "rockchip,camera_default";
       pinctrl-0 = <&mipicsi_clk0>;
       reset-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
       power-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
       rockchip,camera-module-index = <1>;
       rockchip,camera-module-facing = "front";
       rockchip,camera-module-name = "tp2855";
       rockchip,camera-module-lens-name = "tp2855";
 
       port {
           ucam_out0: endpoint {
               remote-endpoint = <&mipi_in_ucam0>;
               data-lanes = <1 2 3 4>;
           };
       };
   };
};