&i2c2 {
status = "okay";
pinctrl-0 = <&i2c2m4_xfer>;//裸的gpio gpio0-4 共5组bank,每组bank 0-31 共32个pin,每个ping有0-7 8种复用共能
//i2c2m4_xfer 里描述了 现在用到哪个pin 哪个复用的功能,具体怎么实现复用和选取特定复用共能
//就靠pinctrl 服务系统提供
ov5695_1: ov5695@36 {
status = "okay";
compatible = "ovti,ov5695";
reg = <0x36>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M1>;
clock-names = "xvclk";
power-domains = <&power RK3588_PD_VI>;
pinctrl-names = "default";//pinctl的client 有一种状态 state: default,还可能有 sleep等,这里没有
pinctrl-0 = <&mipim0_camera1_clk>;//第0个状态的名字是default,对应引脚在此定义:一组引脚mipim0_camera1_clk,位于rk3588-pinctl.dtsi中pinctl mipi节点中,在那里用rockchip,pins 属性制定了具体是哪些引脚
reset-gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_LOW>;//oringal//裸的gpio 使用是最纯粹的,没有pinctrl 包装MUX
//reset-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>;
pwdn-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "default";
rockchip,camera-module-lens-name = "default";
port {
ov5695_out_1: endpoint {
remote-endpoint = <&mipi_in_ucam0>;
data-lanes = <1 2>;
};
};
};
};