Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] atmel-isc: DT binding for Image Sensor Controller driver

DT binding documentation for ISC driver.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Songjun Wu <songjun.wu@microchip.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Songjun Wu and committed by
Mauro Carvalho Chehab
3f75dc94 10626744

+65
+65
Documentation/devicetree/bindings/media/atmel-isc.txt
··· 1 + Atmel Image Sensor Controller (ISC) 2 + ---------------------------------------------- 3 + 4 + Required properties for ISC: 5 + - compatible 6 + Must be "atmel,sama5d2-isc". 7 + - reg 8 + Physical base address and length of the registers set for the device. 9 + - interrupts 10 + Should contain IRQ line for the ISC. 11 + - clocks 12 + List of clock specifiers, corresponding to entries in 13 + the clock-names property; 14 + Please refer to clock-bindings.txt. 15 + - clock-names 16 + Required elements: "hclock", "iscck", "gck". 17 + - #clock-cells 18 + Should be 0. 19 + - clock-output-names 20 + Should be "isc-mck". 21 + - pinctrl-names, pinctrl-0 22 + Please refer to pinctrl-bindings.txt. 23 + 24 + ISC supports a single port node with parallel bus. It should contain one 25 + 'port' child node with child 'endpoint' node. Please refer to the bindings 26 + defined in Documentation/devicetree/bindings/media/video-interfaces.txt. 27 + 28 + Example: 29 + isc: isc@f0008000 { 30 + compatible = "atmel,sama5d2-isc"; 31 + reg = <0xf0008000 0x4000>; 32 + interrupts = <46 IRQ_TYPE_LEVEL_HIGH 5>; 33 + clocks = <&isc_clk>, <&iscck>, <&isc_gclk>; 34 + clock-names = "hclock", "iscck", "gck"; 35 + #clock-cells = <0>; 36 + clock-output-names = "isc-mck"; 37 + pinctrl-names = "default"; 38 + pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>; 39 + 40 + port { 41 + isc_0: endpoint { 42 + remote-endpoint = <&ov7740_0>; 43 + hsync-active = <1>; 44 + vsync-active = <0>; 45 + pclk-sample = <1>; 46 + }; 47 + }; 48 + }; 49 + 50 + i2c1: i2c@fc028000 { 51 + ov7740: camera@21 { 52 + compatible = "ovti,ov7740"; 53 + reg = <0x21>; 54 + clocks = <&isc>; 55 + clock-names = "xvclk"; 56 + assigned-clocks = <&isc>; 57 + assigned-clock-rates = <24000000>; 58 + 59 + port { 60 + ov7740_0: endpoint { 61 + remote-endpoint = <&isc_0>; 62 + }; 63 + }; 64 + }; 65 + };