-
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.
[media] media: i2c: adv7343: add OF support
add OF support for the adv7343 driver. Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
- Loading branch information
Lad, Prabhakar
authored and
Mauro Carvalho Chehab
committed
Jul 26, 2013
1 parent
5e95814
commit 187d42d
Showing
2 changed files
with
93 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,48 @@ | ||
* Analog Devices adv7343 video encoder | ||
|
||
The ADV7343 are high speed, digital-to-analog video encoders in a 64-lead LQFP | ||
package. Six high speed, 3.3 V, 11-bit video DACs provide support for composite | ||
(CVBS), S-Video (Y-C), and component (YPrPb/RGB) analog outputs in standard | ||
definition (SD), enhanced definition (ED), or high definition (HD) video | ||
formats. | ||
|
||
Required Properties : | ||
- compatible: Must be "adi,adv7343" | ||
|
||
Optional Properties : | ||
- adi,power-mode-sleep-mode: on enable the current consumption is reduced to | ||
micro ampere level. All DACs and the internal PLL | ||
circuit are disabled. | ||
- adi,power-mode-pll-ctrl: PLL and oversampling control. This control allows | ||
internal PLL 1 circuit to be powered down and the | ||
oversampling to be switched off. | ||
- ad,adv7343-power-mode-dac: array configuring the power on/off DAC's 1..6, | ||
0 = OFF and 1 = ON, Default value when this | ||
property is not specified is <0 0 0 0 0 0>. | ||
- ad,adv7343-sd-config-dac-out: array configure SD DAC Output's 1 and 2, 0 = OFF | ||
and 1 = ON, Default value when this property is | ||
not specified is <0 0>. | ||
|
||
Example: | ||
|
||
i2c0@1c22000 { | ||
... | ||
... | ||
|
||
adv7343@2a { | ||
compatible = "adi,adv7343"; | ||
reg = <0x2a>; | ||
|
||
port { | ||
adv7343_1: endpoint { | ||
adi,power-mode-sleep-mode; | ||
adi,power-mode-pll-ctrl; | ||
/* Use DAC1..3, DAC6 */ | ||
adi,dac-enable = <1 1 1 0 0 1>; | ||
/* Use SD DAC output 1 */ | ||
adi,sd-dac-enable = <1 0>; | ||
}; | ||
}; | ||
}; | ||
... | ||
}; |
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