rk3128 camera注册通过填写rk312x-cif-sensor.dtsi 实现。如下,后置gc2145,前置gc0328:
gc2145{
is_front = <0>;
rockchip,powerdown = <&gpio3 GPIO_B3 GPIO_ACTIVE_HIGH>;
pwdn_active = <gc2145_PWRDN_ACTIVE>;
pwr_active = <PWR_ACTIVE_HIGH>;
mir = <0>;
flash_attach = <0>;
resolution = <gc2145_FULL_RESOLUTION>;
powerup_sequence = <gc2145_PWRSEQ>;
orientation = <0>;
i2c_add = <gc2145_I2C_ADDR>;
i2c_rata = <100000>;
i2c_chl = <2>;
cif_chl = <0>;
mclk_rate = <24>;
};
gc0328{
is_front = <1>;
rockchip,powerdown = <&gpio3 GPIO_D7 GPIO_ACTIVE_HIGH>;
pwdn_active = <gc0328_PWRDN_ACTIVE>;
pwr_active = <PWR_ACTIVE_HIGH>;
mir = <0>;
flash_attach = <0>;
resolution = <gc0328_FULL_RE