|
【Linux】
RK3566+Camera 设备树配置请教
发表于 2021-8-20 15:46:55
浏览:6543
|
回复:7
打印
只看该作者
[复制链接]
楼主
1.
从官网的资源来看,我需要配置这一路IIC
I2C2_M1 GPIO4_B5/I2C2_SCL_M1
GPIO4_B4/I2C2_SDA_M1 Camera
所以我怎么选择到这一路的IIC呢,因为这一路IIC有M0和M1,所以如下配置是对的吗?这样能否选到i2c2m1_xfer? 实际测式是IIC通讯不成功的。
&i2c2 {
status = "okay";
pinctrl-0 = <&i2c2m1_xfer>;
s5kgm1: s5kgm1@20{
status = "okay";
compatible = "samsung,s5kgm1";
reg = <0x20>;
clocks = <&cru CLK_CIF_OUT>;
clock-names = "xvclk";
//avdd-supply = <&vcc_mipi>;
pinctrl-names = "rockchip,camera_default";
pinctrl-0 = <&cif_clk>;
//mipi-pwr-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
pwdn-gpios = <&gpio4 RK_PB7 GPIO_ACTIVE_LOW>;
//firefly,clkout-enabled-index = <0>;
rockchip,camera-module-index = <1>;
rockchip,camera-module-facing = "front";
rockchip,camera-module-name = "NC";
rockchip,camera-module-lens-name = "NC";
port {
s5kgm1_out: endpoint {
remote-endpoint = <&dphy1_in>;
data-lanes = <1 2>;
};
};
};
2.
但是从你们提供的firefly的原理图上看,并没有上电比如iovdd,avdd,dvdd,请问这三个电源是需要外部供电吗?
|
|