rockchip1106平台ov9281设备树
时间: 2023-06-15 21:03:18 浏览: 120
以下是Rockchip1106平台上OV9281设备树的示例:
```
&i2c0 {
ov9281@10 {
compatible = "ovti,ov9281";
reg = <0x10>;
clocks = <&clkc 3>;
clock-names = "xclk";
reset-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
gpio0-supply = <&vcc_io>;
avdd-supply = <&vcc_2v8>;
dvdd-supply = <&vcc_1v2>;
pvdd-supply = <&vcc_1v8>;
xshut-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
mclk = <24000000>;
mipi-csi2 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
ov9281_ep: endpoint {
remote-endpoint = <&mipi_csi2_ep>;
clock-lanes = <0>;
data-lanes = <1>;
data-lanes-hs = <1>;
csi-port = <1>;
bus-width = <0>;
mipi-mode = <1>;
};
};
};
};
};
```
这个设备树中,定义了OV9281相机模块的基本属性和寄存器信息,包括寄存器地址、时钟、复位GPIO、供电电压、MIPI CSI2接口等。其中,`compatible`属性指定了该设备节点所对应的设备驱动程序名字,`reg`属性指定了该设备在I2C总线上的地址,`mipi-csi2`属性指定了该设备的MIPI CSI2接口信息。
阅读全文