Arun Kumar K | 2eae613 | 2012-10-23 22:51:33 +0900 | [diff] [blame] | 1 | * Samsung Multi Format Codec (MFC) |
| 2 | |
| 3 | Multi Format Codec (MFC) is the IP present in Samsung SoCs which |
| 4 | supports high resolution decoding and encoding functionalities. |
| 5 | The MFC device driver is a v4l2 driver which can encode/decode |
| 6 | video raw/elementary streams and has support for all popular |
| 7 | video codecs. |
| 8 | |
| 9 | Required properties: |
| 10 | - compatible : value should be either one among the following |
| 11 | (a) "samsung,mfc-v5" for MFC v5 present in Exynos4 SoCs |
| 12 | (b) "samsung,mfc-v6" for MFC v6 present in Exynos5 SoCs |
Arun Kumar K | 5441e9d | 2013-07-09 01:24:38 -0300 | [diff] [blame] | 13 | (b) "samsung,mfc-v7" for MFC v7 present in Exynos5420 SoC |
Arun Kumar K | 2eae613 | 2012-10-23 22:51:33 +0900 | [diff] [blame] | 14 | |
| 15 | - reg : Physical base address of the IP registers and length of memory |
| 16 | mapped region. |
| 17 | |
| 18 | - interrupts : MFC interrupt number to the CPU. |
Arun Kumar K | 7763428 | 2013-08-19 04:43:00 +0900 | [diff] [blame] | 19 | - clocks : from common clock binding: handle to mfc clock. |
| 20 | - clock-names : from common clock binding: must contain "mfc", |
| 21 | corresponding to entry in the clocks property. |
Arun Kumar K | 2eae613 | 2012-10-23 22:51:33 +0900 | [diff] [blame] | 22 | |
| 23 | - samsung,mfc-r : Base address of the first memory bank used by MFC |
| 24 | for DMA contiguous memory allocation and its size. |
| 25 | |
| 26 | - samsung,mfc-l : Base address of the second memory bank used by MFC |
| 27 | for DMA contiguous memory allocation and its size. |
Sachin Kamat | 43afcba | 2013-02-08 13:56:06 -0800 | [diff] [blame] | 28 | |
| 29 | Optional properties: |
| 30 | - samsung,power-domain : power-domain property defined with a phandle |
| 31 | to respective power domain. |
| 32 | |
| 33 | Example: |
| 34 | SoC specific DT entry: |
| 35 | |
| 36 | mfc: codec@13400000 { |
| 37 | compatible = "samsung,mfc-v5"; |
| 38 | reg = <0x13400000 0x10000>; |
| 39 | interrupts = <0 94 0>; |
| 40 | samsung,power-domain = <&pd_mfc>; |
Arun Kumar K | 7763428 | 2013-08-19 04:43:00 +0900 | [diff] [blame] | 41 | clocks = <&clock 273>; |
| 42 | clock-names = "mfc"; |
Sachin Kamat | 43afcba | 2013-02-08 13:56:06 -0800 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | Board specific DT entry: |
| 46 | |
| 47 | codec@13400000 { |
| 48 | samsung,mfc-r = <0x43000000 0x800000>; |
| 49 | samsung,mfc-l = <0x51000000 0x800000>; |
| 50 | }; |