给我一个rockchip1106平台的ov9281设备树
时间: 2023-06-15 20:03:34 浏览: 338
以下是一个基于rockchip1106平台的ov9281设备树示例:
```
/ {
model = "Rockchip RK1106 SOM";
compatible = "rockchip,rk1106", "rockchip,rk1106-som";
memory@0 {
device_type = "memory";
reg = <0x00000000 0x80000000>;
};
chosen {
bootargs = "console=ttyS0,115200n8 earlycon=uart8250,mmio32,0xff130000 swiotlb=1";
};
uart0: serial@ff130000 {
compatible = "snps,dw-apb-uart";
reg = <0xff130000 0x100>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>;
reg-io-width = <4>;
clock-frequency = <24000000>;
status = "okay";
};
ov9281@10 {
compatible = "ovti,ov9281";
reg = <0x10>;
clocks = <&cru SCLK_VIO_MCLK>;
clock-names = "mclk";
io-channels = <&mipi_csi2_rx>;
pwn-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
port {
ov9281_ep: endpoint {
remote-endpoint = <&mipi_csi2_tx_ep>;
data-lanes = <0 1>;
clock-lanes = <2>;
bus-width = <2>;
mipi-phy-enable = <1>;
};
};
};
mipi_csi2_rx: mipi_csi2@ff1b0000 {
compatible = "rockchip,rk1106-mipi-csi2-rx";
reg = <0xff1b0000 0x1000>;
interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "csi0_mclk", "csi0_esc";
clocks = <&cru SCLK_CSI0_MCLK>, <&cru SCLK_CSI0_ESC>;
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
mipi_csi2_rx_ep: endpoint {
remote-endpoint = <&ov9281_ep>;
};
};
};
};
};
```
注意:这只是一个示例设备树,具体的设备树需要根据具体的硬件平台和接口来进行调整。
阅读全文