forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request torvalds#64 from mpredfearn/ci20-v3.18-camera
Ci20 v3.18 camera support
- Loading branch information
Showing
11 changed files
with
2,805 additions
and
1 deletion.
There are no files selected for viewing
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,40 @@ | ||
Omnivision 5Mp CMOS Digital Image Sensor | ||
|
||
The Omnivision OV5640 is a CMOS active pixel digital image sensor with an active | ||
array size of 2592H x 1944V. It is programmable through a simple two-wire serial | ||
interface. | ||
|
||
Required Properties: | ||
- compatible: value should be "omnivision,ov5640" | ||
- core-supply: phandle to regulator for core 1.5V | ||
- analog-supply: phandle to regulator for analog 2.8V | ||
|
||
Optional Properties: | ||
- gpio-enable: handle to GPIO connected to enable pin | ||
- gpio-reset: handle to GPIO connected to reset pin | ||
|
||
For further reading on port node refer to | ||
Documentation/devicetree/bindings/media/video-interfaces.txt. | ||
|
||
Example: | ||
|
||
i2c_master { | ||
ov5640@0x3C { | ||
compatible = "omnivision,ov5640"; | ||
reg = <0x3C>; | ||
|
||
core-supply = <&vcim1v5_reg>; | ||
analog-supply = <&vcim2v8_reg>; | ||
|
||
gpio-enable = <&gpb 18 0>; | ||
gpio-reset = <&gpb 26 0>; | ||
|
||
remote = <&pxa_camera>; | ||
port { | ||
ov5640_1: endpoint { | ||
bus-width = <8>; | ||
remote-endpoint = <&pxa_camera>; | ||
}; | ||
}; | ||
}; | ||
}; |
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,46 @@ | ||
Ingenic JZ4780 camera host interface | ||
|
||
Required properties: | ||
- compatible: Should be "ingenic,jz4780-cim" | ||
- reg: register base and size | ||
- interrupts: the interrupt number | ||
- clocks : phandles to the module & baud clocks. | ||
- clock-names: tuple listing input clock names. | ||
Required elements: "cim", "module" | ||
|
||
Optional properties: | ||
- clock-frequency: host interface is driving MCLK, and MCLK rate is this rate | ||
|
||
For further reading on port node refer to | ||
Documentation/devicetree/bindings/media/video-interfaces.txt. | ||
|
||
Example: | ||
cim: jz4780-cim@0x13060000 { | ||
compatible = "ingenic,jz4780-cim"; | ||
reg = <0x13060000 0x68>; | ||
reg-shift = <2>; | ||
|
||
interrupt-parent = <&intc>; | ||
interrupts = <30>; | ||
|
||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pins_cim>; | ||
|
||
clocks = <&cgu JZ4780_CLK_CIM>, <&cgu JZ4780_CLK_CIMMCLK>; | ||
clock-names = "cim", "module"; | ||
clock-frequency = <24000000>; | ||
|
||
port { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
/* Parallel bus endpoint */ | ||
camera: endpoint@0 { | ||
reg = <0>; /* Local endpoint # */ | ||
remote-endpoint = <&ov5640_1>; | ||
hsync-active = <1>; /* Active high */ | ||
vsync-active = <1>; /* Active high */ | ||
pclk-sample = <0>; /* Falling */ | ||
}; | ||
}; | ||
}; |
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
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
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
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
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
Oops, something went wrong.