forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://linuxtv.org/sailus/media_tree into media_stage
* git://linuxtv.org/sailus/media_tree: (47 commits) media: i2c: ov4689: code cleanup media: ov9650: Drop platform data code path media: ov7670: Drop unused include media: ov2640: Drop legacy includes media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver media: dt-bindings: add bindings for Toshiba TC358746 phy: dphy: add support to calculate the timing based on hs_clk_rate phy: dphy: refactor get_default_config v4l: subdev: Warn if disabling streaming failed, return success dw9768: Enable low-power probe on ACPI media: i2c: imx290: Replace GAIN control with ANALOGUE_GAIN media: i2c: imx290: Add crop selection targets support media: i2c: imx290: Factor out format retrieval to separate function media: i2c: imx290: Move registers with fixed value to init array media: i2c: imx290: Create controls for fwnode properties media: i2c: imx290: Implement HBLANK and VBLANK controls media: i2c: imx290: Split control initialization to separate function media: i2c: imx290: Fix max gain value media: i2c: imx290: Add exposure time control media: i2c: imx290: Define more register macros ...
- Loading branch information
Showing
36 changed files
with
9,327 additions
and
524 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
134 changes: 134 additions & 0 deletions
134
Documentation/devicetree/bindings/media/i2c/ovti,ov4689.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/media/i2c/ovti,ov4689.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Omnivision OV4689 CMOS | ||
|
||
maintainers: | ||
- Mikhail Rudenko <[email protected]> | ||
|
||
description: | | ||
The Omnivision OV4689 is a high performance, 1/3-inch, 4 megapixel | ||
image sensor. Ihis chip supports high frame rate speeds up to 90 fps | ||
at 2688x1520 resolution. It is programmable through an I2C | ||
interface, and sensor output is sent via 1/2/4 lane MIPI CSI-2 | ||
connection. | ||
allOf: | ||
- $ref: /schemas/media/video-interface-devices.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: ovti,ov4689 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
description: | ||
External clock (XVCLK) for the sensor, 6-64 MHz | ||
maxItems: 1 | ||
|
||
dovdd-supply: | ||
description: | ||
Digital I/O voltage supply, 1.7-3.0 V | ||
|
||
avdd-supply: | ||
description: | ||
Analog voltage supply, 2.6-3.0 V | ||
|
||
dvdd-supply: | ||
description: | ||
Digital core voltage supply, 1.1-1.3 V | ||
|
||
powerdown-gpios: | ||
description: | ||
GPIO connected to the powerdown pin (active low) | ||
|
||
reset-gpios: | ||
maxItems: 1 | ||
description: | ||
GPIO connected to the reset pin (active low) | ||
|
||
orientation: true | ||
|
||
rotation: true | ||
|
||
port: | ||
$ref: /schemas/graph.yaml#/$defs/port-base | ||
additionalProperties: false | ||
description: | ||
Output port node, single endpoint describing the CSI-2 transmitter | ||
|
||
properties: | ||
endpoint: | ||
$ref: /schemas/media/video-interfaces.yaml# | ||
unevaluatedProperties: false | ||
|
||
properties: | ||
data-lanes: | ||
oneOf: | ||
- items: | ||
- const: 1 | ||
- const: 2 | ||
- const: 3 | ||
- const: 4 | ||
- items: | ||
- const: 1 | ||
- const: 2 | ||
- items: | ||
- const: 1 | ||
link-frequencies: true | ||
|
||
required: | ||
- data-lanes | ||
- link-frequencies | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- dovdd-supply | ||
- avdd-supply | ||
- dvdd-supply | ||
- port | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
ov4689: camera@36 { | ||
compatible = "ovti,ov4689"; | ||
reg = <0x36>; | ||
clocks = <&ov4689_clk>; | ||
avdd-supply = <&ov4689_avdd>; | ||
dovdd-supply = <&ov4689_dovdd>; | ||
dvdd-supply = <&ov4689_dvdd>; | ||
powerdown-gpios = <&pio 107 GPIO_ACTIVE_LOW>; | ||
reset-gpios = <&pio 109 GPIO_ACTIVE_LOW>; | ||
orientation = <2>; | ||
rotation = <0>; | ||
port { | ||
wcam_out: endpoint { | ||
remote-endpoint = <&mipi_in_wcam>; | ||
data-lanes = <1 2 3 4>; | ||
link-frequencies = /bits/ 64 <504000000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
... |
129 changes: 129 additions & 0 deletions
129
Documentation/devicetree/bindings/media/i2c/sony,imx290.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/media/i2c/sony,imx290.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Sony IMX290 1/2.8-Inch CMOS Image Sensor | ||
|
||
maintainers: | ||
- Manivannan Sadhasivam <[email protected]> | ||
- Laurent Pinchart <[email protected]> | ||
|
||
description: |- | ||
The Sony IMX290 is a 1/2.8-Inch CMOS Solid-state image sensor with Square | ||
Pixel for Color Cameras. It is programmable through I2C and 4-wire | ||
interfaces. The sensor output is available via CMOS logic parallel SDR | ||
output, Low voltage LVDS DDR output and CSI-2 serial data output. The CSI-2 | ||
bus is the default. No bindings have been defined for the other busses. | ||
properties: | ||
compatible: | ||
enum: | ||
- sony,imx290 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
clock-names: | ||
description: Input clock (37.125 MHz or 74.25 MHz) | ||
items: | ||
- const: xclk | ||
|
||
clock-frequency: | ||
description: Frequency of the xclk clock in Hz | ||
|
||
vdda-supply: | ||
description: Analog power supply (2.9V) | ||
|
||
vddd-supply: | ||
description: Digital core power supply (1.2V) | ||
|
||
vdddo-supply: | ||
description: Digital I/O power supply (1.8V) | ||
|
||
reset-gpios: | ||
description: Sensor reset (XCLR) GPIO | ||
maxItems: 1 | ||
|
||
port: | ||
$ref: /schemas/graph.yaml#/$defs/port-base | ||
description: | | ||
Video output port | ||
properties: | ||
endpoint: | ||
$ref: /schemas/media/video-interfaces.yaml# | ||
unevaluatedProperties: false | ||
|
||
properties: | ||
data-lanes: | ||
anyOf: | ||
- items: | ||
- const: 1 | ||
- const: 2 | ||
- items: | ||
- const: 1 | ||
- const: 2 | ||
- const: 3 | ||
- const: 4 | ||
|
||
link-frequencies: true | ||
|
||
required: | ||
- data-lanes | ||
- link-frequencies | ||
|
||
additionalProperties: false | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- clock-frequency | ||
- vdda-supply | ||
- vddd-supply | ||
- vdddo-supply | ||
- port | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
imx290: camera-sensor@1a { | ||
compatible = "sony,imx290"; | ||
reg = <0x1a>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&camera_rear_default>; | ||
clocks = <&gcc 90>; | ||
clock-names = "xclk"; | ||
clock-frequency = <37125000>; | ||
vdddo-supply = <&camera_vdddo_1v8>; | ||
vdda-supply = <&camera_vdda_2v8>; | ||
vddd-supply = <&camera_vddd_1v5>; | ||
reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; | ||
port { | ||
imx290_ep: endpoint { | ||
data-lanes = <1 2 3 4>; | ||
link-frequencies = /bits/ 64 <445500000>; | ||
remote-endpoint = <&csiphy0_ep>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
... |
Oops, something went wrong.