Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | * Omnivision OV7740 CMOS image sensor |
| 2 | |
| 3 | The Omnivision OV7740 image sensor supports multiple output image |
| 4 | size, such as VGA, and QVGA, CIF and any size smaller. It also |
| 5 | supports the RAW RGB and YUV output formats. |
| 6 | |
| 7 | The common video interfaces bindings (see video-interfaces.txt) should |
| 8 | be used to specify link to the image data receiver. The OV7740 device |
| 9 | node should contain one 'port' child node with an 'endpoint' subnode. |
| 10 | |
| 11 | Required Properties: |
| 12 | - compatible: "ovti,ov7740". |
| 13 | - reg: I2C slave address of the sensor. |
| 14 | - clocks: Reference to the xvclk input clock. |
| 15 | - clock-names: "xvclk". |
| 16 | |
| 17 | Optional Properties: |
| 18 | - reset-gpios: Rreference to the GPIO connected to the reset_b pin, |
| 19 | if any. Active low with pull-ip resistor. |
| 20 | - powerdown-gpios: Reference to the GPIO connected to the pwdn pin, |
| 21 | if any. Active high with pull-down resistor. |
| 22 | |
| 23 | Endpoint node mandatory properties: |
| 24 | - remote-endpoint: A phandle to the bus receiver's endpoint node. |
| 25 | |
| 26 | Example: |
| 27 | |
| 28 | i2c1: i2c@fc028000 { |
| 29 | ov7740: camera@21 { |
| 30 | compatible = "ovti,ov7740"; |
| 31 | reg = <0x21>; |
| 32 | pinctrl-names = "default"; |
| 33 | pinctrl-0 = <&pinctrl_sensor_power &pinctrl_sensor_reset>; |
| 34 | clocks = <&isc>; |
| 35 | clock-names = "xvclk"; |
| 36 | assigned-clocks = <&isc>; |
| 37 | assigned-clock-rates = <24000000>; |
| 38 | reset-gpios = <&pioA 43 GPIO_ACTIVE_LOW>; |
| 39 | powerdown-gpios = <&pioA 44 GPIO_ACTIVE_HIGH>; |
| 40 | |
| 41 | port { |
| 42 | ov7740_0: endpoint { |
| 43 | remote-endpoint = <&isc_0>; |
| 44 | }; |
| 45 | }; |
| 46 | }; |
| 47 | }; |