Pull media updates from Mauro Carvalho Chehab: - a major reorg at platform Kconfig/Makefile files, organizing them per vendor. The other media Kconfig/Makefile files also sorted - New sensor drivers: hi847, isl7998x, ov08d10 - New Amphion vpu decoder stateful driver - New Atmel microchip csi2dc driver - tegra-vde driver promoted from staging - atomisp: some fixes for it to work on BYT - imx7-mipi-csis driver promoted from staging and renamed - camss driver got initial support for VFE hardware version Titan 480 - mtk-vcodec has gained support for MT8192 - lots of driver changes, fixes and improvements * tag 'media/v5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (417 commits) media: nxp: Restrict VIDEO_IMX_MIPI_CSIS to ARCH_MXC or COMPILE_TEST media: amphion: cleanup media device if register it fail media: amphion: fix some issues to improve robust media: amphion: fix some error related with undefined reference to __divdi3 media: amphion: fix an issue that using pm_runtime_get_sync incorrectly media: vidtv: use vfree() for memory allocated with vzalloc() media: m5mols/m5mols.h: document new reset field media: pixfmt-yuv-planar.rst: fix PIX_FMT labels media: platform: Remove unnecessary print function dev_err() media: amphion: Add missing of_node_put() in vpu_core_parse_dt() media: mtk-vcodec: Add missing of_node_put() in mtk_vdec_hw_prob_done() media: platform: amphion: Fix build error without MAILBOX media: spi: Kconfig: Place SPI drivers on a single menu media: i2c: Kconfig: move camera drivers to the top media: atomisp: fix bad usage at error handling logic media: platform: rename mediatek/mtk-jpeg/ to mediatek/jpeg/ media: media/*/Kconfig: sort entries media: Kconfig: cleanup VIDEO_DEV dependencies media: platform/*/Kconfig: make manufacturer menus more uniform media: platform: Create vendor/{Makefile,Kconfig} files ...
Unified · Split
| @@ -14,7 +14,7 @@ data from LCD controller (FIMD) through the SoC internal writeback data · 13 unmodified lines | |||
| 14 | path. There are multiple FIMC instances in the SoCs (up to 4), having | 14 | path. There are multiple FIMC instances in the SoCs (up to 4), having |
| 15 | slightly different capabilities, like pixel alignment constraints, rotator | 15 | slightly different capabilities, like pixel alignment constraints, rotator |
| 16 | availability, LCD writeback support, etc. The driver is located at | 16 | availability, LCD writeback support, etc. The driver is located at |
| 17 | drivers/media/platform/exynos4-is directory. | 17 | drivers/media/platform/samsung/exynos4-is directory. |
| 18 | 18 | ||
| 19 | Supported SoCs | 19 | Supported SoCs |
| 20 | -------------- | 20 | -------------- |
| @@ -284,7 +284,7 @@ tda9887 TDA 9885/6/7 analog IF demodulator · 283 unmodified lines | |||
| 284 | tea5761 TEA 5761 radio tuner | 284 | tea5761 TEA 5761 radio tuner |
| 285 | tea5767 TEA 5767 radio tuner | 285 | tea5767 TEA 5767 radio tuner |
| 286 | tua9001 Infineon TUA9001 silicon tuner | 286 | tua9001 Infineon TUA9001 silicon tuner |
| 287 | tuner-xc2028 XCeive xc2028/xc3028 tuners | 287 | xc2028 XCeive xc2028/xc3028 tuners |
| 288 | xc4000 Xceive XC4000 silicon tuner | 288 | xc4000 Xceive XC4000 silicon tuner |
| 289 | xc5000 Xceive XC5000 silicon tuner | 289 | xc5000 Xceive XC5000 silicon tuner |
| 290 | ============ ================================================== | 290 | ============ ================================================== |
| @@ -33,7 +33,7 @@ reference manual [#f1]_. · 32 unmodified lines | |||
| 33 | Entities | 33 | Entities |
| 34 | -------- | 34 | -------- |
| 35 | 35 | ||
| 36 | imx7-mipi-csi2 | 36 | imx-mipi-csi2 |
| 37 | -------------- | 37 | -------------- |
| 38 | 38 | ||
| 39 | This is the MIPI CSI-2 receiver entity. It has one sink pad to receive the pixel | 39 | This is the MIPI CSI-2 receiver entity. It has one sink pad to receive the pixel |
| @@ -17,7 +17,7 @@ Introduction · 16 unmodified lines | |||
| 17 | ------------ | 17 | ------------ |
| 18 | 18 | ||
| 19 | This file documents the Texas Instruments OMAP 3 Image Signal Processor (ISP) | 19 | This file documents the Texas Instruments OMAP 3 Image Signal Processor (ISP) |
| 20 | driver located under drivers/media/platform/omap3isp. The original driver was | 20 | driver located under drivers/media/platform/ti/omap3isp. The original driver was |
| 21 | written by Texas Instruments but since that it has been rewritten (twice) at | 21 | written by Texas Instruments but since that it has been rewritten (twice) at |
| 22 | Nokia. | 22 | Nokia. |
| 23 | 23 | ||
| @@ -25,7 +25,7 @@ As of Revision AB, the ISS is described in detail in section 8. · 24 unmodified lines | |||
| 25 | This driver is supporting **only** the CSI2-A/B interfaces for now. | 25 | This driver is supporting **only** the CSI2-A/B interfaces for now. |
| 26 | 26 | ||
| 27 | It makes use of the Media Controller framework [#f2]_, and inherited most of the | 27 | It makes use of the Media Controller framework [#f2]_, and inherited most of the |
| 28 | code from OMAP3 ISP driver (found under drivers/media/platform/omap3isp/\*), | 28 | code from OMAP3 ISP driver (found under drivers/media/platform/ti/omap3isp/\*), |
| 29 | except that it doesn't need an IOMMU now for ISS buffers memory mapping. | 29 | except that it doesn't need an IOMMU now for ISS buffers memory mapping. |
| 30 | 30 | ||
| 31 | Supports usage of MMAP buffers only (for now). | 31 | Supports usage of MMAP buffers only (for now). |
| @@ -76,3 +76,16 @@ vimc-capture: · 75 unmodified lines | |||
| 76 | 76 | ||
| 77 | * 1 Pad sink | 77 | * 1 Pad sink |
| 78 | * 1 Pad source | 78 | * 1 Pad source |
| 79 | |||
| 80 | Module options | ||
| 81 | -------------- | ||
| 82 | |||
| 83 | Vimc has a module parameter to configure the driver. | ||
| 84 | |||
| 85 | * ``allocator=<unsigned int>`` | ||
| 86 | |||
| 87 | memory allocator selection, default is 0. It specifies the way buffers | ||
| 88 | will be allocated. | ||
| 89 | |||
| 90 | - 0: vmalloc | ||
| 91 | - 1: dma-contig | ||
| @@ -61,8 +61,6 @@ Required properties (DMA function blocks): · 60 unmodified lines | |||
| 61 | "mediatek,<chip>-disp-rdma" | 61 | "mediatek,<chip>-disp-rdma" |
| 62 | "mediatek,<chip>-disp-wdma" | 62 | "mediatek,<chip>-disp-wdma" |
| 63 | the supported chips are mt2701, mt8167 and mt8173. | 63 | the supported chips are mt2701, mt8167 and mt8173. |
| 64 | - larb: Should contain a phandle pointing to the local arbiter device as defined | ||
| 65 | in Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml | ||
| 66 | - iommus: Should point to the respective IOMMU block with master port as | 64 | - iommus: Should point to the respective IOMMU block with master port as |
| 67 | argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 65 | argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml |
| 68 | for details. | 66 | for details. |
| @@ -91,7 +89,6 @@ ovl0: ovl@1400c000 { · 22 unmodified lines | |||
| 91 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 89 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 92 | clocks = <&mmsys CLK_MM_DISP_OVL0>; | 90 | clocks = <&mmsys CLK_MM_DISP_OVL0>; |
| 93 | iommus = <&iommu M4U_PORT_DISP_OVL0>; | 91 | iommus = <&iommu M4U_PORT_DISP_OVL0>; |
| 94 | mediatek,larb = <&larb0>; | ||
| 95 | }; | 92 | }; |
| 96 | 93 | ||
| 97 | ovl1: ovl@1400d000 { | 94 | ovl1: ovl@1400d000 { |
| @@ -101,7 +98,6 @@ ovl1: ovl@1400d000 { · 3 unmodified lines | |||
| 101 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 98 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 102 | clocks = <&mmsys CLK_MM_DISP_OVL1>; | 99 | clocks = <&mmsys CLK_MM_DISP_OVL1>; |
| 103 | iommus = <&iommu M4U_PORT_DISP_OVL1>; | 100 | iommus = <&iommu M4U_PORT_DISP_OVL1>; |
| 104 | mediatek,larb = <&larb4>; | ||
| 105 | }; | 101 | }; |
| 106 | 102 | ||
| 107 | rdma0: rdma@1400e000 { | 103 | rdma0: rdma@1400e000 { |
| @@ -111,7 +107,6 @@ rdma0: rdma@1400e000 { · 3 unmodified lines | |||
| 111 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 107 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 112 | clocks = <&mmsys CLK_MM_DISP_RDMA0>; | 108 | clocks = <&mmsys CLK_MM_DISP_RDMA0>; |
| 113 | iommus = <&iommu M4U_PORT_DISP_RDMA0>; | 109 | iommus = <&iommu M4U_PORT_DISP_RDMA0>; |
| 114 | mediatek,larb = <&larb0>; | ||
| 115 | mediatek,rdma-fifosize = <8192>; | 110 | mediatek,rdma-fifosize = <8192>; |
| 116 | }; | 111 | }; |
| 117 | 112 | ||
| @@ -122,7 +117,6 @@ rdma1: rdma@1400f000 { · 4 unmodified lines | |||
| 122 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 117 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 123 | clocks = <&mmsys CLK_MM_DISP_RDMA1>; | 118 | clocks = <&mmsys CLK_MM_DISP_RDMA1>; |
| 124 | iommus = <&iommu M4U_PORT_DISP_RDMA1>; | 119 | iommus = <&iommu M4U_PORT_DISP_RDMA1>; |
| 125 | mediatek,larb = <&larb4>; | ||
| 126 | }; | 120 | }; |
| 127 | 121 | ||
| 128 | rdma2: rdma@14010000 { | 122 | rdma2: rdma@14010000 { |
| @@ -132,7 +126,6 @@ rdma2: rdma@14010000 { · 3 unmodified lines | |||
| 132 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 126 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 133 | clocks = <&mmsys CLK_MM_DISP_RDMA2>; | 127 | clocks = <&mmsys CLK_MM_DISP_RDMA2>; |
| 134 | iommus = <&iommu M4U_PORT_DISP_RDMA2>; | 128 | iommus = <&iommu M4U_PORT_DISP_RDMA2>; |
| 135 | mediatek,larb = <&larb4>; | ||
| 136 | }; | 129 | }; |
| 137 | 130 | ||
| 138 | wdma0: wdma@14011000 { | 131 | wdma0: wdma@14011000 { |
| @@ -142,7 +135,6 @@ wdma0: wdma@14011000 { · 3 unmodified lines | |||
| 142 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 135 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 143 | clocks = <&mmsys CLK_MM_DISP_WDMA0>; | 136 | clocks = <&mmsys CLK_MM_DISP_WDMA0>; |
| 144 | iommus = <&iommu M4U_PORT_DISP_WDMA0>; | 137 | iommus = <&iommu M4U_PORT_DISP_WDMA0>; |
| 145 | mediatek,larb = <&larb0>; | ||
| 146 | }; | 138 | }; |
| 147 | 139 | ||
| 148 | wdma1: wdma@14012000 { | 140 | wdma1: wdma@14012000 { |
| @@ -152,7 +144,6 @@ wdma1: wdma@14012000 { · 3 unmodified lines | |||
| 152 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 144 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 153 | clocks = <&mmsys CLK_MM_DISP_WDMA1>; | 145 | clocks = <&mmsys CLK_MM_DISP_WDMA1>; |
| 154 | iommus = <&iommu M4U_PORT_DISP_WDMA1>; | 146 | iommus = <&iommu M4U_PORT_DISP_WDMA1>; |
| 155 | mediatek,larb = <&larb4>; | ||
| 156 | }; | 147 | }; |
| 157 | 148 | ||
| 158 | color0: color@14013000 { | 149 | color0: color@14013000 { |
| @@ -0,0 +1,180 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
| 2 | |||
| 3 | %YAML 1.2 | ||
| 4 | --- | ||
| 5 | $id: http://devicetree.org/schemas/media/amphion,vpu.yaml# | ||
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
| 7 | |||
| 8 | title: Amphion VPU codec IP | ||
| 9 | |||
| 10 | maintainers: | ||
| 11 | - Ming Qian <ming.qian@nxp.com> | ||
| 12 | - Shijie Qin <shijie.qin@nxp.com> | ||
| 13 | |||
| 14 | description: |- | ||
| 15 | The Amphion MXC video encoder(Windsor) and decoder(Malone) accelerators present | ||
| 16 | on NXP i.MX8Q SoCs. | ||
| 17 | |||
| 18 | properties: | ||
| 19 | $nodename: | ||
| 20 | pattern: "^vpu@[0-9a-f]+$" | ||
| 21 | |||
| 22 | compatible: | ||
| 23 | items: | ||
| 24 | - enum: | ||
| 25 | - nxp,imx8qm-vpu | ||
| 26 | - nxp,imx8qxp-vpu | ||
| 27 | |||
| 28 | reg: | ||
| 29 | maxItems: 1 | ||
| 30 | |||
| 31 | power-domains: | ||
| 32 | maxItems: 1 | ||
| 33 | |||
| 34 | "#address-cells": | ||
| 35 | const: 1 | ||
| 36 | |||
| 37 | "#size-cells": | ||
| 38 | const: 1 | ||
| 39 | |||
| 40 | ranges: true | ||
| 41 | |||
| 42 | patternProperties: | ||
| 43 | "^mailbox@[0-9a-f]+$": | ||
| 44 | description: | ||
| 45 | Each vpu encoder or decoder correspond a MU, which used for communication | ||
| 46 | between driver and firmware. Implement via mailbox on driver. | ||
| 47 | $ref: ../mailbox/fsl,mu.yaml# | ||
| 48 | |||
| 49 | |||
| 50 | "^vpu_core@[0-9a-f]+$": | ||
| 51 | description: | ||
| 52 | Each core correspond a decoder or encoder, need to configure them | ||
| 53 | separately. NXP i.MX8QM SoC has one decoder and two encoder, i.MX8QXP SoC | ||
| 54 | has one decoder and one encoder. | ||
| 55 | type: object | ||
| 56 | |||
| 57 | properties: | ||
| 58 | compatible: | ||
| 59 | items: | ||
| 60 | - enum: | ||
| 61 | - nxp,imx8q-vpu-decoder | ||
| 62 | - nxp,imx8q-vpu-encoder | ||
| 63 | |||
| 64 | reg: | ||
| 65 | maxItems: 1 | ||
| 66 | |||
| 67 | power-domains: | ||
| 68 | maxItems: 1 | ||
| 69 | |||
| 70 | mbox-names: | ||
| 71 | items: | ||
| 72 | - const: tx0 | ||
| 73 | - const: tx1 | ||
| 74 | - const: rx | ||
| 75 | |||
| 76 | mboxes: | ||
| 77 | description: | ||
| 78 | List of phandle of 2 MU channels for tx, 1 MU channel for rx. | ||
| 79 | maxItems: 3 | ||
| 80 | |||
| 81 | memory-region: | ||
| 82 | description: | ||
| 83 | Phandle to the reserved memory nodes to be associated with the | ||
| 84 | remoteproc device. The reserved memory nodes should be carveout nodes, | ||
| 85 | and should be defined as per the bindings in | ||
| 86 | Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt | ||
| 87 | items: | ||
| 88 | - description: region reserved for firmware image sections. | ||
| 89 | - description: region used for RPC shared memory between firmware and | ||
| 90 | driver. | ||
| 91 | |||
| 92 | required: | ||
| 93 | - compatible | ||
| 94 | - reg | ||
| 95 | - power-domains | ||
| 96 | - mbox-names | ||
| 97 | - mboxes | ||
| 98 | - memory-region | ||
| 99 | |||
| 100 | additionalProperties: false | ||
| 101 | |||
| 102 | required: | ||
| 103 | - compatible | ||
| 104 | - reg | ||
| 105 | - power-domains | ||
| 106 | |||
| 107 | additionalProperties: false | ||
| 108 | |||
| 109 | examples: | ||
| 110 | # Device node example for i.MX8QM platform: | ||
| 111 | - | | ||
| 112 | #include <dt-bindings/firmware/imx/rsrc.h> | ||
| 113 | |||
| 114 | vpu: vpu@2c000000 { | ||
| 115 | compatible = "nxp,imx8qm-vpu"; | ||
| 116 | ranges = <0x2c000000 0x2c000000 0x2000000>; | ||
| 117 | reg = <0x2c000000 0x1000000>; | ||
| 118 | #address-cells = <1>; | ||
| 119 | #size-cells = <1>; | ||
| 120 | power-domains = <&pd IMX_SC_R_VPU>; | ||
| 121 | |||
| 122 | mu_m0: mailbox@2d000000 { | ||
| 123 | compatible = "fsl,imx6sx-mu"; | ||
| 124 | reg = <0x2d000000 0x20000>; | ||
| 125 | interrupts = <0 472 4>; | ||
| 126 | #mbox-cells = <2>; | ||
| 127 | power-domains = <&pd IMX_SC_R_VPU_MU_0>; | ||
| 128 | }; | ||
| 129 | |||
| 130 | mu1_m0: mailbox@2d020000 { | ||
| 131 | compatible = "fsl,imx6sx-mu"; | ||
| 132 | reg = <0x2d020000 0x20000>; | ||
| 133 | interrupts = <0 473 4>; | ||
| 134 | #mbox-cells = <2>; | ||
| 135 | power-domains = <&pd IMX_SC_R_VPU_MU_1>; | ||
| 136 | }; | ||
| 137 | |||
| 138 | mu2_m0: mailbox@2d040000 { | ||
| 139 | compatible = "fsl,imx6sx-mu"; | ||
| 140 | reg = <0x2d040000 0x20000>; | ||
| 141 | interrupts = <0 474 4>; | ||
| 142 | #mbox-cells = <2>; | ||
| 143 | power-domains = <&pd IMX_SC_R_VPU_MU_2>; | ||
| 144 | }; | ||
| 145 | |||
| 146 | vpu_core0: vpu_core@2d080000 { | ||
| 147 | compatible = "nxp,imx8q-vpu-decoder"; | ||
| 148 | reg = <0x2d080000 0x10000>; | ||
| 149 | power-domains = <&pd IMX_SC_R_VPU_DEC_0>; | ||
| 150 | mbox-names = "tx0", "tx1", "rx"; | ||
| 151 | mboxes = <&mu_m0 0 0>, | ||
| 152 | <&mu_m0 0 1>, | ||
| 153 | <&mu_m0 1 0>; | ||
| 154 | memory-region = <&decoder_boot>, <&decoder_rpc>; | ||
| 155 | }; | ||
| 156 | |||
| 157 | vpu_core1: vpu_core@2d090000 { | ||
| 158 | compatible = "nxp,imx8q-vpu-encoder"; | ||
| 159 | reg = <0x2d090000 0x10000>; | ||
| 160 | power-domains = <&pd IMX_SC_R_VPU_ENC_0>; | ||
| 161 | mbox-names = "tx0", "tx1", "rx"; | ||
| 162 | mboxes = <&mu1_m0 0 0>, | ||
| 163 | <&mu1_m0 0 1>, | ||
| 164 | <&mu1_m0 1 0>; | ||
| 165 | memory-region = <&encoder1_boot>, <&encoder1_rpc>; | ||
| 166 | }; | ||
| 167 | |||
| 168 | vpu_core2: vpu_core@2d0a0000 { | ||
| 169 | reg = <0x2d0a0000 0x10000>; | ||
| 170 | compatible = "nxp,imx8q-vpu-encoder"; | ||
| 171 | power-domains = <&pd IMX_SC_R_VPU_ENC_1>; | ||
| 172 | mbox-names = "tx0", "tx1", "rx"; | ||
| 173 | mboxes = <&mu2_m0 0 0>, | ||
| 174 | <&mu2_m0 0 1>, | ||
| 175 | <&mu2_m0 1 0>; | ||
| 176 | memory-region = <&encoder2_boot>, <&encoder2_rpc>; | ||
| 177 | }; | ||
| 178 | }; | ||
| 179 | |||
| 180 | ... | ||
| @@ -49,7 +49,8 @@ properties: · 48 unmodified lines | |||
| 49 | description: Definition of the regulator used for the VDDD power supply. | 49 | description: Definition of the regulator used for the VDDD power supply. |
| 50 | 50 | ||
| 51 | port: | 51 | port: |
| 52 | $ref: /schemas/graph.yaml#/properties/port | 52 | $ref: /schemas/graph.yaml#/$defs/port-base |
| 53 | unevaluatedProperties: false | ||
| 53 | 54 | ||
| 54 | properties: | 55 | properties: |
| 55 | endpoint: | 56 | endpoint: |
| @@ -68,8 +69,11 @@ properties: · 12 unmodified lines | |||
| 68 | - const: 1 | 69 | - const: 1 |
| 69 | - const: 2 | 70 | - const: 2 |
| 70 | 71 | ||
| 72 | link-frequencies: true | ||
| 73 | |||
| 71 | required: | 74 | required: |
| 72 | - data-lanes | 75 | - data-lanes |
| 76 | - link-frequencies | ||
| 73 | 77 | ||
| 74 | required: | 78 | required: |
| 75 | - compatible | 79 | - compatible |
| @@ -0,0 +1,113 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| 2 | %YAML 1.2 | ||
| 3 | --- | ||
| 4 | $id: http://devicetree.org/schemas/media/i2c/isil,isl79987.yaml# | ||
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
| 6 | |||
| 7 | title: Intersil ISL79987 Analog to MIPI CSI-2 decoder | ||
| 8 | |||
| 9 | maintainers: | ||
| 10 | - Michael Tretter <m.tretter@pengutronix.de> | ||
| 11 | - Marek Vasut <marex@denx.de> | ||
| 12 | |||
| 13 | description: | ||
| 14 | The Intersil ISL79987 is an analog to MIPI CSI-2 decoder which is capable of | ||
| 15 | receiving up to four analog stream and multiplexing them into up to four MIPI | ||
| 16 | CSI-2 virtual channels, using one MIPI clock lane and 1/2 data lanes. | ||
| 17 | |||
| 18 | properties: | ||
| 19 | compatible: | ||
| 20 | enum: | ||
| 21 | - isil,isl79987 | ||
| 22 | |||
| 23 | reg: | ||
| 24 | maxItems: 1 | ||
| 25 | |||
| 26 | reset-gpios: | ||
| 27 | maxItems: 1 | ||
| 28 | description: | ||
| 29 | A GPIO spec for the RSTB pin (active high) | ||
| 30 | |||
| 31 | powerdown-gpios: | ||
| 32 | maxItems: 1 | ||
| 33 | description: | ||
| 34 | A GPIO spec for the Power Down pin (active high) | ||
| 35 | |||
| 36 | ports: | ||
| 37 | $ref: /schemas/graph.yaml#/properties/ports | ||
| 38 | properties: | ||
| 39 | port@0: | ||
| 40 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 41 | unevaluatedProperties: false | ||
| 42 | description: Output port | ||
| 43 | |||
| 44 | properties: | ||
| 45 | endpoint: | ||
| 46 | $ref: /schemas/media/video-interfaces.yaml# | ||
| 47 | unevaluatedProperties: false | ||
| 48 | |||
| 49 | properties: | ||
| 50 | data-lanes: | ||
| 51 | minItems: 1 | ||
| 52 | maxItems: 2 | ||
| 53 | |||
| 54 | required: | ||
| 55 | - data-lanes | ||
| 56 | |||
| 57 | patternProperties: | ||
| 58 | "^port@[1-4]$": | ||
| 59 | $ref: /schemas/graph.yaml#/properties/port | ||
| 60 | description: Input ports | ||
| 61 | |||
| 62 | required: | ||
| 63 | - port@0 | ||
| 64 | |||
| 65 | additionalProperties: false | ||
| 66 | |||
| 67 | required: | ||
| 68 | - compatible | ||
| 69 | - reg | ||
| 70 | - ports | ||
| 71 | |||
| 72 | examples: | ||
| 73 | - | | ||
| 74 | #include <dt-bindings/gpio/gpio.h> | ||
| 75 | |||
| 76 | i2c { | ||
| 77 | #address-cells = <1>; | ||
| 78 | #size-cells = <0>; | ||
| 79 | |||
| 80 | isl7998x_mipi@44 { | ||
| 81 | compatible = "isil,isl79987"; | ||
| 82 | reg = <0x44>; | ||
| 83 | powerdown-gpios = <&gpio3 27 GPIO_ACTIVE_HIGH>; | ||
| 84 | reset-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>; | ||
| 85 | |||
| 86 | ports { | ||
| 87 | #address-cells = <1>; | ||
| 88 | #size-cells = <0>; | ||
| 89 | |||
| 90 | port@0 { | ||
| 91 | reg = <0>; | ||
| 92 | isl79987_out: endpoint { | ||
| 93 | remote-endpoint = <&mipi_csi2_in>; | ||
| 94 | data-lanes = <1 2>; | ||
| 95 | }; | ||
| 96 | }; | ||
| 97 | |||
| 98 | port@1 { | ||
| 99 | reg = <1>; | ||
| 100 | endpoint { | ||
| 101 | remote-endpoint = <&camera_0>; | ||
| 102 | }; | ||
| 103 | }; | ||
| 104 | |||
| 105 | port@2 { | ||
| 106 | reg = <2>; | ||
| 107 | endpoint { | ||
| 108 | remote-endpoint = <&camera_1>; | ||
| 109 | }; | ||
| 110 | }; | ||
| 111 | }; | ||
| 112 | }; | ||
| 113 | }; | ||
| @@ -70,6 +70,28 @@ properties: · 69 unmodified lines | |||
| 70 | a remote serializer whose high-threshold noise immunity is not enabled | 70 | a remote serializer whose high-threshold noise immunity is not enabled |
| 71 | is 100000 micro volts | 71 | is 100000 micro volts |
| 72 | 72 | ||
| 73 | maxim,gpio-poc: | ||
| 74 | $ref: '/schemas/types.yaml#/definitions/uint32-array' | ||
| 75 | minItems: 2 | ||
| 76 | maxItems: 2 | ||
| 77 | description: | | ||
| 78 | Index of the MAX9286 gpio output line (0 or 1) that controls Power over | ||
| 79 | Coax to the cameras and its associated polarity flag. | ||
| 80 | |||
| 81 | The property accepts an array of two unsigned integers, the first being | ||
| 82 | the gpio line index (0 or 1) and the second being the gpio line polarity | ||
| 83 | flag (GPIO_ACTIVE_HIGH or GPIO_ACTIVE_LOW) as defined in | ||
| 84 | <include/dt-bindings/gpio/gpio.h>. | ||
| 85 | |||
| 86 | When the remote cameras power is controlled by one of the MAX9286 gpio | ||
| 87 | lines, this property has to be used to specify which line among the two | ||
| 88 | available ones controls the remote camera power enablement. | ||
| 89 | |||
| 90 | When this property is used it is not possible to register a gpio | ||
| 91 | controller as the gpio lines are controlled directly by the MAX9286 and | ||
| 92 | not available for consumers, nor the 'poc-supply' property should be | ||
| 93 | specified. | ||
| 94 | |||
| 73 | ports: | 95 | ports: |
| 74 | $ref: /schemas/graph.yaml#/properties/ports | 96 | $ref: /schemas/graph.yaml#/properties/ports |
| 75 | 97 | ||
| @@ -165,7 +187,16 @@ required: · 89 unmodified lines | |||
| 165 | - reg | 187 | - reg |
| 166 | - ports | 188 | - ports |
| 167 | - i2c-mux | 189 | - i2c-mux |
| 168 | - gpio-controller | 190 | |
| 191 | # If 'maxim,gpio-poc' is present, then 'poc-supply' and 'gpio-controller' | ||
| 192 | # are not allowed. | ||
| 193 | if: | ||
| 194 | required: | ||
| 195 | - maxim,gpio-poc | ||
| 196 | then: | ||
| 197 | properties: | ||
| 198 | poc-supply: false | ||
| 199 | gpio-controller: false | ||
| 169 | 200 | ||
| 170 | additionalProperties: false | 201 | additionalProperties: false |
| 171 | 202 | ||
| @@ -174,140 +205,174 @@ examples: · 2 unmodified lines | |||
| 174 | #include <dt-bindings/gpio/gpio.h> | 205 | #include <dt-bindings/gpio/gpio.h> |
| 175 | 206 | ||
| 176 | i2c@e66d8000 { | 207 | i2c@e66d8000 { |
| 177 | #address-cells = <1>; | 208 | #address-cells = <1>; |
| 178 | #size-cells = <0>; | 209 | #size-cells = <0>; |
| 179 | 210 | ||
| 180 | reg = <0 0xe66d8000>; | 211 | reg = <0 0xe66d8000>; |
| 181 | 212 | ||
| 182 | gmsl-deserializer@2c { | 213 | gmsl-deserializer@2c { |
| 183 | compatible = "maxim,max9286"; | 214 | compatible = "maxim,max9286"; |
| 184 | reg = <0x2c>; | 215 | reg = <0x2c>; |
| 185 | poc-supply = <&camera_poc_12v>; | 216 | poc-supply = <&camera_poc_12v>; |
| 186 | enable-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; | 217 | enable-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; |
| 187 | 218 | ||
| 188 | gpio-controller; | 219 | gpio-controller; |
| 189 | #gpio-cells = <2>; | 220 | #gpio-cells = <2>; |
| 190 | 221 | ||
| 191 | maxim,reverse-channel-microvolt = <170000>; | 222 | maxim,reverse-channel-microvolt = <170000>; |
| 192 | 223 | ||
| 193 | ports { | 224 | ports { |
| 194 | #address-cells = <1>; | 225 | #address-cells = <1>; |
| 195 | #size-cells = <0>; | 226 | #size-cells = <0>; |
| 196 | 227 | ||
| 197 | port@0 { | 228 | port@0 { |
| 198 | reg = <0>; | 229 | reg = <0>; |
| 199 | 230 | ||
| 200 | max9286_in0: endpoint { | 231 | max9286_in0: endpoint { |
| 201 | remote-endpoint = <&rdacm20_out0>; | 232 | remote-endpoint = <&rdacm20_out0>; |
| 202 | }; | 233 | }; |
| 203 | }; | 234 | }; |
| 204 | 235 | ||
| 205 | port@1 { | 236 | port@1 { |
| 206 | reg = <1>; | 237 | reg = <1>; |
| 207 | 238 | ||
| 208 | max9286_in1: endpoint { | 239 | max9286_in1: endpoint { |
| 209 | remote-endpoint = <&rdacm20_out1>; | 240 | remote-endpoint = <&rdacm20_out1>; |
| 210 | }; | 241 | }; |
| 211 | }; | 242 | }; |
| 212 | 243 | ||
| 213 | port@2 { | 244 | port@2 { |
| 214 | reg = <2>; | 245 | reg = <2>; |
| 215 | 246 | ||
| 216 | max9286_in2: endpoint { | 247 | max9286_in2: endpoint { |
| 217 | remote-endpoint = <&rdacm20_out2>; | 248 | remote-endpoint = <&rdacm20_out2>; |
| 218 | }; | 249 | }; |
| 219 | }; | 250 | }; |
| 220 | 251 | ||
| 221 | port@3 { | 252 | port@3 { |
| 222 | reg = <3>; | 253 | reg = <3>; |
| 223 | 254 | ||
| 224 | max9286_in3: endpoint { | 255 | max9286_in3: endpoint { |
| 225 | remote-endpoint = <&rdacm20_out3>; | 256 | remote-endpoint = <&rdacm20_out3>; |
| 226 | }; | 257 | }; |
| 227 | }; | 258 | }; |
| 228 | 259 | ||
| 229 | port@4 { | 260 | port@4 { |
| 230 | reg = <4>; | 261 | reg = <4>; |
| 231 | 262 | ||
| 232 | max9286_out: endpoint { | 263 | max9286_out: endpoint { |
| 233 | data-lanes = <1 2 3 4>; | 264 | data-lanes = <1 2 3 4>; |
| 234 | remote-endpoint = <&csi40_in>; | 265 | remote-endpoint = <&csi40_in>; |
| 266 | }; | ||
| 267 | }; | ||
| 235 | }; | 268 | }; |
| 236 | }; | ||
| 237 | }; | ||
| 238 | 269 | ||
| 239 | i2c-mux { | 270 | i2c-mux { |
| 240 | #address-cells = <1>; | 271 | #address-cells = <1>; |
| 241 | #size-cells = <0>; | 272 | #size-cells = <0>; |
| 242 | 273 | ||
| 243 | i2c@0 { | 274 | i2c@0 { |
| 244 | #address-cells = <1>; | 275 | #address-cells = <1>; |
| 245 | #size-cells = <0>; | 276 | #size-cells = <0>; |
| 246 | reg = <0>; | 277 | reg = <0>; |
| 247 | 278 | ||
| 248 | camera@51 { | 279 | camera@51 { |
| 249 | compatible = "imi,rdacm20"; | 280 | compatible = "imi,rdacm20"; |
| 250 | reg = <0x51>, <0x61>; | 281 | reg = <0x51>, <0x61>; |
| 251 | 282 | ||
| 252 | port { | 283 | port { |
| 253 | rdacm20_out0: endpoint { | 284 | rdacm20_out0: endpoint { |
| 254 | remote-endpoint = <&max9286_in0>; | 285 | remote-endpoint = <&max9286_in0>; |
| 255 | }; | 286 | }; |
| 256 | }; | 287 | }; |
| 257 | 288 | ||
| 258 | }; | 289 | }; |
| 259 | }; | 290 | }; |
| 260 | 291 | ||
| 261 | i2c@1 { | 292 | i2c@1 { |
| 262 | #address-cells = <1>; | 293 | #address-cells = <1>; |
| 263 | #size-cells = <0>; | 294 | #size-cells = <0>; |
| 264 | reg = <1>; | 295 | reg = <1>; |
| 296 | |||
| 297 | camera@52 { | ||
| 298 | compatible = "imi,rdacm20"; | ||
| 299 | reg = <0x52>, <0x62>; | ||
| 300 | |||
| 301 | port { | ||
| 302 | rdacm20_out1: endpoint { | ||
| 303 | remote-endpoint = <&max9286_in1>; | ||
| 304 | }; | ||
| 305 | }; | ||
| 306 | }; | ||
| 307 | }; | ||
| 265 | 308 | ||
| 266 | camera@52 { | 309 | i2c@2 { |
| 267 | compatible = "imi,rdacm20"; | 310 | #address-cells = <1>; |
| 268 | reg = <0x52>, <0x62>; | 311 | #size-cells = <0>; |
| 312 | reg = <2>; | ||
| 313 | |||
| 314 | camera@53 { | ||
| 315 | compatible = "imi,rdacm20"; | ||
| 316 | reg = <0x53>, <0x63>; | ||
| 317 | |||
| 318 | port { | ||
| 319 | rdacm20_out2: endpoint { | ||
| 320 | remote-endpoint = <&max9286_in2>; | ||
| 321 | }; | ||
| 322 | }; | ||
| 323 | }; | ||
| 324 | }; | ||
| 269 | 325 | ||
| 270 | port { | 326 | i2c@3 { |
| 271 | rdacm20_out1: endpoint { | 327 | #address-cells = <1>; |
| 272 | remote-endpoint = <&max9286_in1>; | 328 | #size-cells = <0>; |
| 329 | reg = <3>; | ||
| 330 | |||
| 331 | camera@54 { | ||
| 332 | compatible = "imi,rdacm20"; | ||
| 333 | reg = <0x54>, <0x64>; | ||
| 334 | |||
| 335 | port { | ||
| 336 | rdacm20_out3: endpoint { | ||
| 337 | remote-endpoint = <&max9286_in3>; | ||
| 338 | }; | ||
| 339 | }; | ||
| 340 | }; | ||
| 273 | }; | 341 | }; |
| 274 | }; | ||
| 275 | }; | 342 | }; |
| 276 | }; | 343 | }; |
| 277 | |||
| 278 | i2c@2 { | ||
| 279 | #address-cells = <1>; | ||
| 280 | #size-cells = <0>; | ||
| 281 | reg = <2>; | ||
| 282 | |||
| 283 | camera@53 { | ||
| 284 | compatible = "imi,rdacm20"; | ||
| 285 | reg = <0x53>, <0x63>; | ||
| 286 | 344 | ||
| 287 | port { | 345 | /* |
| 288 | rdacm20_out2: endpoint { | 346 | * Example of a deserializer that controls the camera Power over Coax |
| 289 | remote-endpoint = <&max9286_in2>; | 347 | * through one of its gpio lines. |
| 348 | */ | ||
| 349 | gmsl-deserializer@6c { | ||
| 350 | compatible = "maxim,max9286"; | ||
| 351 | reg = <0x6c>; | ||
| 352 | enable-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; | ||
| 353 | |||
| 354 | /* | ||
| 355 | * The remote camera power is controlled by MAX9286 GPIO line #0. | ||
| 356 | * No 'poc-supply' nor 'gpio-controller' are specified. | ||
| 357 | */ | ||
| 358 | maxim,gpio-poc = <0 GPIO_ACTIVE_LOW>; | ||
| 359 | |||
| 360 | /* | ||
| 361 | * Do not describe connections as they're the same as in the previous | ||
| 362 | * example. | ||
| 363 | */ | ||
| 364 | ports { | ||
| 365 | #address-cells = <1>; | ||
| 366 | #size-cells = <0>; | ||
| 367 | |||
| 368 | port@4 { | ||
| 369 | reg = <4>; | ||
| 290 | }; | 370 | }; |
| 291 | }; | ||
| 292 | }; | 371 | }; |
| 293 | }; | ||
| 294 | 372 | ||
| 295 | i2c@3 { | 373 | i2c-mux { |
| 296 | #address-cells = <1>; | 374 | #address-cells = <1>; |
| 297 | #size-cells = <0>; | 375 | #size-cells = <0>; |
| 298 | reg = <3>; | ||
| 299 | |||
| 300 | camera@54 { | ||
| 301 | compatible = "imi,rdacm20"; | ||
| 302 | reg = <0x54>, <0x64>; | ||
| 303 | |||
| 304 | port { | ||
| 305 | rdacm20_out3: endpoint { | ||
| 306 | remote-endpoint = <&max9286_in3>; | ||
| 307 | }; | ||
| 308 | }; | ||
| 309 | }; | 376 | }; |
| 310 | }; | ||
| 311 | }; | 377 | }; |
| 312 | }; | ||
| 313 | }; | 378 | }; |
| @@ -0,0 +1,169 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| 2 | |||
| 3 | %YAML 1.2 | ||
| 4 | --- | ||
| 5 | $id: http://devicetree.org/schemas/media/mediatek,vcodec-decoder.yaml# | ||
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
| 7 | |||
| 8 | title: Mediatek Video Decode Accelerator | ||
| 9 | |||
| 10 | maintainers: | ||
| 11 | - Yunfei Dong <yunfei.dong@mediatek.com> | ||
| 12 | |||
| 13 | description: |+ | ||
| 14 | Mediatek Video Decode is the video decode hardware present in Mediatek | ||
| 15 | SoCs which supports high resolution decoding functionalities. | ||
| 16 | |||
| 17 | properties: | ||
| 18 | compatible: | ||
| 19 | enum: | ||
| 20 | - mediatek,mt8173-vcodec-dec | ||
| 21 | - mediatek,mt8183-vcodec-dec | ||
| 22 | |||
| 23 | reg: | ||
| 24 | maxItems: 12 | ||
| 25 | |||
| 26 | interrupts: | ||
| 27 | maxItems: 1 | ||
| 28 | |||
| 29 | clocks: | ||
| 30 | maxItems: 8 | ||
| 31 | |||
| 32 | clock-names: | ||
| 33 | items: | ||
| 34 | - const: vcodecpll | ||
| 35 | - const: univpll_d2 | ||
| 36 | - const: clk_cci400_sel | ||
| 37 | - const: vdec_sel | ||
| 38 | - const: vdecpll | ||
| 39 | - const: vencpll | ||
| 40 | - const: venc_lt_sel | ||
| 41 | - const: vdec_bus_clk_src | ||
| 42 | |||
| 43 | assigned-clocks: true | ||
| 44 | |||
| 45 | assigned-clock-parents: true | ||
| 46 | |||
| 47 | assigned-clock-rates: true | ||
| 48 | |||
| 49 | power-domains: | ||
| 50 | maxItems: 1 | ||
| 51 | |||
| 52 | iommus: | ||
| 53 | minItems: 1 | ||
| 54 | maxItems: 32 | ||
| 55 | description: | | ||
| 56 | List of the hardware port in respective IOMMU block for current Socs. | ||
| 57 | Refer to bindings/iommu/mediatek,iommu.yaml. | ||
| 58 | |||
| 59 | dma-ranges: | ||
| 60 | maxItems: 1 | ||
| 61 | description: | | ||
| 62 | Describes the physical address space of IOMMU maps to memory. | ||
| 63 | |||
| 64 | mediatek,vpu: | ||
| 65 | $ref: /schemas/types.yaml#/definitions/phandle | ||
| 66 | maxItems: 1 | ||
| 67 | description: | ||
| 68 | Describes point to vpu. | ||
| 69 | |||
| 70 | mediatek,scp: | ||
| 71 | $ref: /schemas/types.yaml#/definitions/phandle | ||
| 72 | maxItems: 1 | ||
| 73 | description: | ||
| 74 | Describes point to scp. | ||
| 75 | |||
| 76 | required: | ||
| 77 | - compatible | ||
| 78 | - reg | ||
| 79 | - interrupts | ||
| 80 | - clocks | ||
| 81 | - clock-names | ||
| 82 | - iommus | ||
| 83 | - assigned-clocks | ||
| 84 | - assigned-clock-parents | ||
| 85 | |||
| 86 | allOf: | ||
| 87 | - if: | ||
| 88 | properties: | ||
| 89 | compatible: | ||
| 90 | contains: | ||
| 91 | enum: | ||
| 92 | - mediatek,mt8183-vcodec-dec | ||
| 93 | |||
| 94 | then: | ||
| 95 | required: | ||
| 96 | - mediatek,scp | ||
| 97 | |||
| 98 | - if: | ||
| 99 | properties: | ||
| 100 | compatible: | ||
| 101 | contains: | ||
| 102 | enum: | ||
| 103 | - mediatek,mt8173-vcodec-dec | ||
| 104 | |||
| 105 | then: | ||
| 106 | required: | ||
| 107 | - mediatek,vpu | ||
| 108 | |||
| 109 | additionalProperties: false | ||
| 110 | |||
| 111 | examples: | ||
| 112 | - | | ||
| 113 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
| 114 | #include <dt-bindings/clock/mt8173-clk.h> | ||
| 115 | #include <dt-bindings/memory/mt8173-larb-port.h> | ||
| 116 | #include <dt-bindings/interrupt-controller/irq.h> | ||
| 117 | #include <dt-bindings/power/mt8173-power.h> | ||
| 118 | |||
| 119 | vcodec_dec: vcodec@16000000 { | ||
| 120 | compatible = "mediatek,mt8173-vcodec-dec"; | ||
| 121 | reg = <0x16000000 0x100>, /*VDEC_SYS*/ | ||
| 122 | <0x16020000 0x1000>, /*VDEC_MISC*/ | ||
| 123 | <0x16021000 0x800>, /*VDEC_LD*/ | ||
| 124 | <0x16021800 0x800>, /*VDEC_TOP*/ | ||
| 125 | <0x16022000 0x1000>, /*VDEC_CM*/ | ||
| 126 | <0x16023000 0x1000>, /*VDEC_AD*/ | ||
| 127 | <0x16024000 0x1000>, /*VDEC_AV*/ | ||
| 128 | <0x16025000 0x1000>, /*VDEC_PP*/ | ||
| 129 | <0x16026800 0x800>, /*VP8_VD*/ | ||
| 130 | <0x16027000 0x800>, /*VP6_VD*/ | ||
| 131 | <0x16027800 0x800>, /*VP8_VL*/ | ||
| 132 | <0x16028400 0x400>; /*VP9_VD*/ | ||
| 133 | interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_LOW>; | ||
| 134 | iommus = <&iommu M4U_PORT_HW_VDEC_MC_EXT>, | ||
| 135 | <&iommu M4U_PORT_HW_VDEC_PP_EXT>, | ||
| 136 | <&iommu M4U_PORT_HW_VDEC_AVC_MV_EXT>, | ||
| 137 | <&iommu M4U_PORT_HW_VDEC_PRED_RD_EXT>, | ||
| 138 | <&iommu M4U_PORT_HW_VDEC_PRED_WR_EXT>, | ||
| 139 | <&iommu M4U_PORT_HW_VDEC_UFO_EXT>, | ||
| 140 | <&iommu M4U_PORT_HW_VDEC_VLD_EXT>, | ||
| 141 | <&iommu M4U_PORT_HW_VDEC_VLD2_EXT>; | ||
| 142 | mediatek,vpu = <&vpu>; | ||
| 143 | power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>; | ||
| 144 | clocks = <&apmixedsys CLK_APMIXED_VCODECPLL>, | ||
| 145 | <&topckgen CLK_TOP_UNIVPLL_D2>, | ||
| 146 | <&topckgen CLK_TOP_CCI400_SEL>, | ||
| 147 | <&topckgen CLK_TOP_VDEC_SEL>, | ||
| 148 | <&topckgen CLK_TOP_VCODECPLL>, | ||
| 149 | <&apmixedsys CLK_APMIXED_VENCPLL>, | ||
| 150 | <&topckgen CLK_TOP_VENC_LT_SEL>, | ||
| 151 | <&topckgen CLK_TOP_VCODECPLL_370P5>; | ||
| 152 | clock-names = "vcodecpll", | ||
| 153 | "univpll_d2", | ||
| 154 | "clk_cci400_sel", | ||
| 155 | "vdec_sel", | ||
| 156 | "vdecpll", | ||
| 157 | "vencpll", | ||
| 158 | "venc_lt_sel", | ||
| 159 | "vdec_bus_clk_src"; | ||
| 160 | assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>, | ||
| 161 | <&topckgen CLK_TOP_CCI400_SEL>, | ||
| 162 | <&topckgen CLK_TOP_VDEC_SEL>, | ||
| 163 | <&apmixedsys CLK_APMIXED_VCODECPLL>, | ||
| 164 | <&apmixedsys CLK_APMIXED_VENCPLL>; | ||
| 165 | assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL_370P5>, | ||
| 166 | <&topckgen CLK_TOP_UNIVPLL_D2>, | ||
| 167 | <&topckgen CLK_TOP_VCODECPLL>; | ||
| 168 | assigned-clock-rates = <0>, <0>, <0>, <1482000000>, <800000000>; | ||
| 169 | }; | ||
| @@ -0,0 +1,179 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| 2 | |||
| 3 | %YAML 1.2 | ||
| 4 | --- | ||
| 5 | $id: http://devicetree.org/schemas/media/mediatek,vcodec-encoder.yaml# | ||
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
| 7 | |||
| 8 | title: Mediatek Video Encode Accelerator | ||
| 9 | |||
| 10 | maintainers: | ||
| 11 | - Yunfei Dong <yunfei.dong@mediatek.com> | ||
| 12 | |||
| 13 | description: |+ | ||
| 14 | Mediatek Video Encode is the video encode hardware present in Mediatek | ||
| 15 | SoCs which supports high resolution encoding functionalities. | ||
| 16 | |||
| 17 | properties: | ||
| 18 | compatible: | ||
| 19 | enum: | ||
| 20 | - mediatek,mt8173-vcodec-enc-vp8 | ||
| 21 | - mediatek,mt8173-vcodec-enc | ||
| 22 | - mediatek,mt8183-vcodec-enc | ||
| 23 | - mediatek,mt8192-vcodec-enc | ||
| 24 | - mediatek,mt8195-vcodec-enc | ||
| 25 | |||
| 26 | reg: | ||
| 27 | maxItems: 1 | ||
| 28 | |||
| 29 | interrupts: | ||
| 30 | maxItems: 1 | ||
| 31 | |||
| 32 | clocks: | ||
| 33 | minItems: 1 | ||
| 34 | maxItems: 5 | ||
| 35 | |||
| 36 | clock-names: | ||
| 37 | minItems: 1 | ||
| 38 | maxItems: 5 | ||
| 39 | |||
| 40 | assigned-clocks: true | ||
| 41 | |||
| 42 | assigned-clock-parents: true | ||
| 43 | |||
| 44 | iommus: | ||
| 45 | minItems: 1 | ||
| 46 | maxItems: 32 | ||
| 47 | description: | | ||
| 48 | List of the hardware port in respective IOMMU block for current Socs. | ||
| 49 | Refer to bindings/iommu/mediatek,iommu.yaml. | ||
| 50 | |||
| 51 | dma-ranges: | ||
| 52 | maxItems: 1 | ||
| 53 | description: | | ||
| 54 | Describes the physical address space of IOMMU maps to memory. | ||
| 55 | |||
| 56 | mediatek,vpu: | ||
| 57 | $ref: /schemas/types.yaml#/definitions/phandle | ||
| 58 | maxItems: 1 | ||
| 59 | description: | ||
| 60 | Describes point to vpu. | ||
| 61 | |||
| 62 | mediatek,scp: | ||
| 63 | $ref: /schemas/types.yaml#/definitions/phandle | ||
| 64 | maxItems: 1 | ||
| 65 | description: | ||
| 66 | Describes point to scp. | ||
| 67 | |||
| 68 | required: | ||
| 69 | - compatible | ||
| 70 | - reg | ||
| 71 | - interrupts | ||
| 72 | - clocks | ||
| 73 | - clock-names | ||
| 74 | - iommus | ||
| 75 | - assigned-clocks | ||
| 76 | - assigned-clock-parents | ||
| 77 | |||
| 78 | allOf: | ||
| 79 | - if: | ||
| 80 | properties: | ||
| 81 | compatible: | ||
| 82 | contains: | ||
| 83 | enum: | ||
| 84 | - mediatek,mt8183-vcodec-enc | ||
| 85 | - mediatek,mt8192-vcodec-enc | ||
| 86 | |||
| 87 | then: | ||
| 88 | required: | ||
| 89 | - mediatek,scp | ||
| 90 | |||
| 91 | - if: | ||
| 92 | properties: | ||
| 93 | compatible: | ||
| 94 | contains: | ||
| 95 | enum: | ||
| 96 | - mediatek,mt8173-vcodec-enc-vp8 | ||
| 97 | - mediatek,mt8173-vcodec-enc | ||
| 98 | |||
| 99 | then: | ||
| 100 | required: | ||
| 101 | - mediatek,vpu | ||
| 102 | |||
| 103 | - if: | ||
| 104 | properties: | ||
| 105 | compatible: | ||
| 106 | enum: | ||
| 107 | - mediatek,mt8173-vcodec-enc | ||
| 108 | - mediatek,mt8192-vcodec-enc | ||
| 109 | - mediatek,mt8173-vcodec-enc | ||
| 110 | |||
| 111 | then: | ||
| 112 | properties: | ||
| 113 | clock: | ||
| 114 | items: | ||
| 115 | minItems: 1 | ||
| 116 | maxItems: 1 | ||
| 117 | clock-names: | ||
| 118 | items: | ||
| 119 | - const: venc_sel | ||
| 120 | else: # for vp8 hw decoder | ||
| 121 | properties: | ||
| 122 | clock: | ||
| 123 | items: | ||
| 124 | minItems: 1 | ||
| 125 | maxItems: 1 | ||
| 126 | clock-names: | ||
| 127 | items: | ||
| 128 | - const: venc_lt_sel | ||
| 129 | |||
| 130 | additionalProperties: false | ||
| 131 | |||
| 132 | examples: | ||
| 133 | - | | ||
| 134 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
| 135 | #include <dt-bindings/clock/mt8173-clk.h> | ||
| 136 | #include <dt-bindings/memory/mt8173-larb-port.h> | ||
| 137 | #include <dt-bindings/interrupt-controller/irq.h> | ||
| 138 | |||
| 139 | vcodec_enc_avc: vcodec@18002000 { | ||
| 140 | compatible = "mediatek,mt8173-vcodec-enc"; | ||
| 141 | reg = <0x18002000 0x1000>; | ||
| 142 | interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>; | ||
| 143 | iommus = <&iommu M4U_PORT_VENC_RCPU>, | ||
| 144 | <&iommu M4U_PORT_VENC_REC>, | ||
| 145 | <&iommu M4U_PORT_VENC_BSDMA>, | ||
| 146 | <&iommu M4U_PORT_VENC_SV_COMV>, | ||
| 147 | <&iommu M4U_PORT_VENC_RD_COMV>, | ||
| 148 | <&iommu M4U_PORT_VENC_CUR_LUMA>, | ||
| 149 | <&iommu M4U_PORT_VENC_CUR_CHROMA>, | ||
| 150 | <&iommu M4U_PORT_VENC_REF_LUMA>, | ||
| 151 | <&iommu M4U_PORT_VENC_REF_CHROMA>, | ||
| 152 | <&iommu M4U_PORT_VENC_NBM_RDMA>, | ||
| 153 | <&iommu M4U_PORT_VENC_NBM_WDMA>; | ||
| 154 | mediatek,vpu = <&vpu>; | ||
| 155 | clocks = <&topckgen CLK_TOP_VENC_SEL>; | ||
| 156 | clock-names = "venc_sel"; | ||
| 157 | assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>; | ||
| 158 | assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>; | ||
| 159 | }; | ||
| 160 | |||
| 161 | vcodec_enc_vp8: vcodec@19002000 { | ||
| 162 | compatible = "mediatek,mt8173-vcodec-enc-vp8"; | ||
| 163 | reg = <0x19002000 0x1000>; /* VENC_LT_SYS */ | ||
| 164 | interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_LOW>; | ||
| 165 | iommus = <&iommu M4U_PORT_VENC_RCPU_SET2>, | ||
| 166 | <&iommu M4U_PORT_VENC_REC_FRM_SET2>, | ||
| 167 | <&iommu M4U_PORT_VENC_BSDMA_SET2>, | ||
| 168 | <&iommu M4U_PORT_VENC_SV_COMA_SET2>, | ||
| 169 | <&iommu M4U_PORT_VENC_RD_COMA_SET2>, | ||
| 170 | <&iommu M4U_PORT_VENC_CUR_LUMA_SET2>, | ||
| 171 | <&iommu M4U_PORT_VENC_CUR_CHROMA_SET2>, | ||
| 172 | <&iommu M4U_PORT_VENC_REF_LUMA_SET2>, | ||
| 173 | <&iommu M4U_PORT_VENC_REC_CHROMA_SET2>; | ||
| 174 | mediatek,vpu = <&vpu>; | ||
| 175 | clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; | ||
| 176 | clock-names = "venc_lt_sel"; | ||
| 177 | assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; | ||
| 178 | assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL_370P5>; | ||
| 179 | }; | ||
| @@ -0,0 +1,265 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| 2 | |||
| 3 | %YAML 1.2 | ||
| 4 | --- | ||
| 5 | $id: "http://devicetree.org/schemas/media/mediatek,vcodec-subdev-decoder.yaml#" | ||
| 6 | $schema: "http://devicetree.org/meta-schemas/core.yaml#" | ||
| 7 | |||
| 8 | title: Mediatek Video Decode Accelerator With Multi Hardware | ||
| 9 | |||
| 10 | maintainers: | ||
| 11 | - Yunfei Dong <yunfei.dong@mediatek.com> | ||
| 12 | |||
| 13 | description: | | ||
| 14 | Mediatek Video Decode is the video decode hardware present in Mediatek | ||
| 15 | SoCs which supports high resolution decoding functionalities. Required | ||
| 16 | parent and child device node. | ||
| 17 | |||
| 18 | About the Decoder Hardware Block Diagram, please check below: | ||
| 19 | |||
| 20 | +---------------------------------+------------------------------------+ | ||
| 21 | | | | | ||
| 22 | | input -> lat HW -> lat buffer --|--> lat buffer -> core HW -> output | | ||
| 23 | | || | || | | ||
| 24 | +------------||-------------------+---------------------||-------------+ | ||
| 25 | lat workqueue | core workqueue <parent> | ||
| 26 | -------------||-----------------------------------------||------------------ | ||
| 27 | || || <child> | ||
| 28 | \/ <----------------HW index-------------->\/ | ||
| 29 | +------------------------------------------------------+ | ||
| 30 | | enable/disable | | ||
| 31 | | clk power irq iommu | | ||
| 32 | | (lat/lat soc/core0/core1) | | ||
| 33 | +------------------------------------------------------+ | ||
| 34 | |||
| 35 | As above, there are parent and child devices, child mean each hardware. The child device | ||
| 36 | controls the information of each hardware independent which include clk/power/irq. | ||
| 37 | |||
| 38 | There are two workqueues in parent device: lat workqueue and core workqueue. They are used | ||
| 39 | to lat and core hardware deocder. Lat workqueue need to get input bitstream and lat buffer, | ||
| 40 | then enable lat to decode, writing the result to lat buffer, dislabe hardware when lat decode | ||
| 41 | done. Core workqueue need to get lat buffer and output buffer, then enable core to decode, | ||
| 42 | writing the result to output buffer, disable hardware when core decode done. These two | ||
| 43 | hardwares will decode each frame cyclically. | ||
| 44 | |||
| 45 | For the smi common may not the same for each hardware, can't combine all hardware in one node, | ||
| 46 | or leading to iommu fault when access dram data. | ||
| 47 | |||
| 48 | properties: | ||
| 49 | compatible: | ||
| 50 | const: mediatek,mt8192-vcodec-dec | ||
| 51 | |||
| 52 | reg: | ||
| 53 | maxItems: 1 | ||
| 54 | |||
| 55 | iommus: | ||
| 56 | minItems: 1 | ||
| 57 | maxItems: 32 | ||
| 58 | description: | | ||
| 59 | List of the hardware port in respective IOMMU block for current Socs. | ||
| 60 | Refer to bindings/iommu/mediatek,iommu.yaml. | ||
| 61 | |||
| 62 | mediatek,scp: | ||
| 63 | $ref: /schemas/types.yaml#/definitions/phandle | ||
| 64 | maxItems: 1 | ||
| 65 | description: | | ||
| 66 | The node of system control processor (SCP), using | ||
| 67 | the remoteproc & rpmsg framework. | ||
| 68 | |||
| 69 | dma-ranges: | ||
| 70 | maxItems: 1 | ||
| 71 | description: | | ||
| 72 | Describes the physical address space of IOMMU maps to memory. | ||
| 73 | |||
| 74 | "#address-cells": | ||
| 75 | const: 1 | ||
| 76 | |||
| 77 | "#size-cells": | ||
| 78 | const: 1 | ||
| 79 | |||
| 80 | ranges: true | ||
| 81 | |||
| 82 | # Required child node: | ||
| 83 | patternProperties: | ||
| 84 | '^vcodec-lat@[0-9a-f]+$': | ||
| 85 | type: object | ||
| 86 | |||
| 87 | properties: | ||
| 88 | compatible: | ||
| 89 | const: mediatek,mtk-vcodec-lat | ||
| 90 | |||
| 91 | reg: | ||
| 92 | maxItems: 1 | ||
| 93 | |||
| 94 | interrupts: | ||
| 95 | maxItems: 1 | ||
| 96 | |||
| 97 | iommus: | ||
| 98 | minItems: 1 | ||
| 99 | maxItems: 32 | ||
| 100 | description: | | ||
| 101 | List of the hardware port in respective IOMMU block for current Socs. | ||
| 102 | Refer to bindings/iommu/mediatek,iommu.yaml. | ||
| 103 | |||
| 104 | clocks: | ||
| 105 | maxItems: 5 | ||
| 106 | |||
| 107 | clock-names: | ||
| 108 | items: | ||
| 109 | - const: sel | ||
| 110 | - const: soc-vdec | ||
| 111 | - const: soc-lat | ||
| 112 | - const: vdec | ||
| 113 | - const: top | ||
| 114 | |||
| 115 | assigned-clocks: | ||
| 116 | maxItems: 1 | ||
| 117 | |||
| 118 | assigned-clock-parents: | ||
| 119 | maxItems: 1 | ||
| 120 | |||
| 121 | power-domains: | ||
| 122 | maxItems: 1 | ||
| 123 | |||
| 124 | required: | ||
| 125 | - compatible | ||
| 126 | - reg | ||
| 127 | - interrupts | ||
| 128 | - iommus | ||
| 129 | - clocks | ||
| 130 | - clock-names | ||
| 131 | - assigned-clocks | ||
| 132 | - assigned-clock-parents | ||
| 133 | - power-domains | ||
| 134 | |||
| 135 | additionalProperties: false | ||
| 136 | |||
| 137 | '^vcodec-core@[0-9a-f]+$': | ||
| 138 | type: object | ||
| 139 | |||
| 140 | properties: | ||
| 141 | compatible: | ||
| 142 | const: mediatek,mtk-vcodec-core | ||
| 143 | |||
| 144 | reg: | ||
| 145 | maxItems: 1 | ||
| 146 | |||
| 147 | interrupts: | ||
| 148 | maxItems: 1 | ||
| 149 | |||
| 150 | iommus: | ||
| 151 | minItems: 1 | ||
| 152 | maxItems: 32 | ||
| 153 | description: | | ||
| 154 | List of the hardware port in respective IOMMU block for current Socs. | ||
| 155 | Refer to bindings/iommu/mediatek,iommu.yaml. | ||
| 156 | |||
| 157 | clocks: | ||
| 158 | maxItems: 5 | ||
| 159 | |||
| 160 | clock-names: | ||
| 161 | items: | ||
| 162 | - const: sel | ||
| 163 | - const: soc-vdec | ||
| 164 | - const: soc-lat | ||
| 165 | - const: vdec | ||
| 166 | - const: top | ||
| 167 | |||
| 168 | assigned-clocks: | ||
| 169 | maxItems: 1 | ||
| 170 | |||
| 171 | assigned-clock-parents: | ||
| 172 | maxItems: 1 | ||
| 173 | |||
| 174 | power-domains: | ||
| 175 | maxItems: 1 | ||
| 176 | |||
| 177 | required: | ||
| 178 | - compatible | ||
| 179 | - reg | ||
| 180 | - interrupts | ||
| 181 | - iommus | ||
| 182 | - clocks | ||
| 183 | - clock-names | ||
| 184 | - assigned-clocks | ||
| 185 | - assigned-clock-parents | ||
| 186 | - power-domains | ||
| 187 | |||
| 188 | additionalProperties: false | ||
| 189 | |||
| 190 | required: | ||
| 191 | - compatible | ||
| 192 | - reg | ||
| 193 | - iommus | ||
| 194 | - mediatek,scp | ||
| 195 | - dma-ranges | ||
| 196 | - ranges | ||
| 197 | |||
| 198 | additionalProperties: false | ||
| 199 | |||
| 200 | examples: | ||
| 201 | - | | ||
| 202 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
| 203 | #include <dt-bindings/memory/mt8192-larb-port.h> | ||
| 204 | #include <dt-bindings/interrupt-controller/irq.h> | ||
| 205 | #include <dt-bindings/clock/mt8192-clk.h> | ||
| 206 | #include <dt-bindings/power/mt8192-power.h> | ||
| 207 | |||
| 208 | video-codec@16000000 { | ||
| 209 | compatible = "mediatek,mt8192-vcodec-dec"; | ||
| 210 | mediatek,scp = <&scp>; | ||
| 211 | iommus = <&iommu0 M4U_PORT_L4_VDEC_MC_EXT>; | ||
| 212 | dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>; | ||
| 213 | #address-cells = <1>; | ||
| 214 | #size-cells = <1>; | ||
| 215 | ranges = <0 0x16000000 0x40000>; | ||
| 216 | reg = <0x16000000 0x1000>; /* VDEC_SYS */ | ||
| 217 | vcodec-lat@10000 { | ||
| 218 | compatible = "mediatek,mtk-vcodec-lat"; | ||
| 219 | reg = <0x10000 0x800>; | ||
| 220 | interrupts = <GIC_SPI 426 IRQ_TYPE_LEVEL_HIGH 0>; | ||
| 221 | iommus = <&iommu0 M4U_PORT_L5_VDEC_LAT0_VLD_EXT>, | ||
| 222 | <&iommu0 M4U_PORT_L5_VDEC_LAT0_VLD2_EXT>, | ||
| 223 | <&iommu0 M4U_PORT_L5_VDEC_LAT0_AVC_MV_EXT>, | ||
| 224 | <&iommu0 M4U_PORT_L5_VDEC_LAT0_PRED_RD_EXT>, | ||
| 225 | <&iommu0 M4U_PORT_L5_VDEC_LAT0_TILE_EXT>, | ||
| 226 | <&iommu0 M4U_PORT_L5_VDEC_LAT0_WDMA_EXT>, | ||
| 227 | <&iommu0 M4U_PORT_L5_VDEC_LAT0_RG_CTRL_DMA_EXT>, | ||
| 228 | <&iommu0 M4U_PORT_L5_VDEC_UFO_ENC_EXT>; | ||
| 229 | clocks = <&topckgen CLK_TOP_VDEC_SEL>, | ||
| 230 | <&vdecsys_soc CLK_VDEC_SOC_VDEC>, | ||
| 231 | <&vdecsys_soc CLK_VDEC_SOC_LAT>, | ||
| 232 | <&vdecsys_soc CLK_VDEC_SOC_LARB1>, | ||
| 233 | <&topckgen CLK_TOP_MAINPLL_D4>; | ||
| 234 | clock-names = "sel", "soc-vdec", "soc-lat", "vdec", "top"; | ||
| 235 | assigned-clocks = <&topckgen CLK_TOP_VDEC_SEL>; | ||
| 236 | assigned-clock-parents = <&topckgen CLK_TOP_MAINPLL_D4>; | ||
| 237 | power-domains = <&spm MT8192_POWER_DOMAIN_VDEC>; | ||
| 238 | }; | ||
| 239 | |||
| 240 | vcodec-core@25000 { | ||
| 241 | compatible = "mediatek,mtk-vcodec-core"; | ||
| 242 | reg = <0x25000 0x1000>; | ||
| 243 | interrupts = <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH 0>; | ||
| 244 | iommus = <&iommu0 M4U_PORT_L4_VDEC_MC_EXT>, | ||
| 245 | <&iommu0 M4U_PORT_L4_VDEC_UFO_EXT>, | ||
| 246 | <&iommu0 M4U_PORT_L4_VDEC_PP_EXT>, | ||
| 247 | <&iommu0 M4U_PORT_L4_VDEC_PRED_RD_EXT>, | ||
| 248 | <&iommu0 M4U_PORT_L4_VDEC_PRED_WR_EXT>, | ||
| 249 | <&iommu0 M4U_PORT_L4_VDEC_PPWRAP_EXT>, | ||
| 250 | <&iommu0 M4U_PORT_L4_VDEC_TILE_EXT>, | ||
| 251 | <&iommu0 M4U_PORT_L4_VDEC_VLD_EXT>, | ||
| 252 | <&iommu0 M4U_PORT_L4_VDEC_VLD2_EXT>, | ||
| 253 | <&iommu0 M4U_PORT_L4_VDEC_AVC_MV_EXT>, | ||
| 254 | <&iommu0 M4U_PORT_L4_VDEC_RG_CTRL_DMA_EXT>; | ||
| 255 | clocks = <&topckgen CLK_TOP_VDEC_SEL>, | ||
| 256 | <&vdecsys CLK_VDEC_VDEC>, | ||
| 257 | <&vdecsys CLK_VDEC_LAT>, | ||
| 258 | <&vdecsys CLK_VDEC_LARB1>, | ||
| 259 | <&topckgen CLK_TOP_MAINPLL_D4>; | ||
| 260 | clock-names = "sel", "soc-vdec", "soc-lat", "vdec", "top"; | ||
| 261 | assigned-clocks = <&topckgen CLK_TOP_VDEC_SEL>; | ||
| 262 | assigned-clock-parents = <&topckgen CLK_TOP_MAINPLL_D4>; | ||
| 263 | power-domains = <&spm MT8192_POWER_DOMAIN_VDEC2>; | ||
| 264 | }; | ||
| 265 | }; | ||
| @@ -1,38 +0,0 @@ | |||
| 1 | * Mediatek JPEG Decoder | ||
| 2 | |||
| 3 | Mediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs | ||
| 4 | |||
| 5 | Required properties: | ||
| 6 | - compatible : must be one of the following string: | ||
| 7 | "mediatek,mt8173-jpgdec" | ||
| 8 | "mediatek,mt7623-jpgdec", "mediatek,mt2701-jpgdec" | ||
| 9 | "mediatek,mt2701-jpgdec" | ||
| 10 | - reg : physical base address of the jpeg decoder registers and length of | ||
| 11 | memory mapped region. | ||
| 12 | - interrupts : interrupt number to the interrupt controller. | ||
| 13 | - clocks: device clocks, see | ||
| 14 | Documentation/devicetree/bindings/clock/clock-bindings.txt for details. | ||
| 15 | - clock-names: must contain "jpgdec-smi" and "jpgdec". | ||
| 16 | - power-domains: a phandle to the power domain, see | ||
| 17 | Documentation/devicetree/bindings/power/power_domain.txt for details. | ||
| 18 | - mediatek,larb: must contain the local arbiters in the current Socs, see | ||
| 19 | Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml | ||
| 20 | for details. | ||
| 21 | - iommus: should point to the respective IOMMU block with master port as | ||
| 22 | argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | ||
| 23 | for details. | ||
| 24 | |||
| 25 | Example: | ||
| 26 | jpegdec: jpegdec@15004000 { | ||
| 27 | compatible = "mediatek,mt2701-jpgdec"; | ||
| 28 | reg = <0 0x15004000 0 0x1000>; | ||
| 29 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>; | ||
| 30 | clocks = <&imgsys CLK_IMG_JPGDEC_SMI>, | ||
| 31 | <&imgsys CLK_IMG_JPGDEC>; | ||
| 32 | clock-names = "jpgdec-smi", | ||
| 33 | "jpgdec"; | ||
| 34 | power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; | ||
| 35 | mediatek,larb = <&larb2>; | ||
| 36 | iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>, | ||
| 37 | <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>; | ||
| 38 | }; | ||
| @@ -0,0 +1,80 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
| 2 | %YAML 1.2 | ||
| 3 | --- | ||
| 4 | $id: http://devicetree.org/schemas/media/mediatek-jpeg-decoder.yaml# | ||
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
| 6 | |||
| 7 | title: MediaTek JPEG Decoder Device Tree Bindings | ||
| 8 | |||
| 9 | maintainers: | ||
| 10 | - Xia Jiang <xia.jiang@mediatek.com> | ||
| 11 | |||
| 12 | description: |- | ||
| 13 | Mediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs | ||
| 14 | |||
| 15 | properties: | ||
| 16 | compatible: | ||
| 17 | oneOf: | ||
| 18 | - items: | ||
| 19 | - enum: | ||
| 20 | - mediatek,mt8173-jpgdec | ||
| 21 | - mediatek,mt2701-jpgdec | ||
| 22 | - items: | ||
| 23 | - enum: | ||
| 24 | - mediatek,mt7623-jpgdec | ||
| 25 | - const: mediatek,mt2701-jpgdec | ||
| 26 | |||
| 27 | reg: | ||
| 28 | maxItems: 1 | ||
| 29 | |||
| 30 | interrupts: | ||
| 31 | maxItems: 1 | ||
| 32 | |||
| 33 | clocks: | ||
| 34 | maxItems: 2 | ||
| 35 | minItems: 2 | ||
| 36 | |||
| 37 | clock-names: | ||
| 38 | items: | ||
| 39 | - const: jpgdec-smi | ||
| 40 | - const: jpgdec | ||
| 41 | |||
| 42 | power-domains: | ||
| 43 | maxItems: 1 | ||
| 44 | |||
| 45 | iommus: | ||
| 46 | maxItems: 2 | ||
| 47 | description: | | ||
| 48 | Points to the respective IOMMU block with master port as argument, see | ||
| 49 | Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. | ||
| 50 | Ports are according to the HW. | ||
| 51 | |||
| 52 | required: | ||
| 53 | - compatible | ||
| 54 | - reg | ||
| 55 | - interrupts | ||
| 56 | - clocks | ||
| 57 | - clock-names | ||
| 58 | - power-domains | ||
| 59 | - iommus | ||
| 60 | |||
| 61 | additionalProperties: false | ||
| 62 | |||
| 63 | examples: | ||
| 64 | - | | ||
| 65 | #include <dt-bindings/clock/mt2701-clk.h> | ||
| 66 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
| 67 | #include <dt-bindings/memory/mt2701-larb-port.h> | ||
| 68 | #include <dt-bindings/power/mt2701-power.h> | ||
| 69 | jpegdec: jpegdec@15004000 { | ||
| 70 | compatible = "mediatek,mt2701-jpgdec"; | ||
| 71 | reg = <0x15004000 0x1000>; | ||
| 72 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>; | ||
| 73 | clocks = <&imgsys CLK_IMG_JPGDEC_SMI>, | ||
| 74 | <&imgsys CLK_IMG_JPGDEC>; | ||
| 75 | clock-names = "jpgdec-smi", | ||
| 76 | "jpgdec"; | ||
| 77 | power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; | ||
| 78 | iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>, | ||
| 79 | <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>; | ||
| 80 | }; | ||
| @@ -1,35 +0,0 @@ | |||
| 1 | * MediaTek JPEG Encoder | ||
| 2 | |||
| 3 | MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs | ||
| 4 | |||
| 5 | Required properties: | ||
| 6 | - compatible : "mediatek,mt2701-jpgenc" | ||
| 7 | followed by "mediatek,mtk-jpgenc" | ||
| 8 | - reg : physical base address of the JPEG encoder registers and length of | ||
| 9 | memory mapped region. | ||
| 10 | - interrupts : interrupt number to the interrupt controller. | ||
| 11 | - clocks: device clocks, see | ||
| 12 | Documentation/devicetree/bindings/clock/clock-bindings.txt for details. | ||
| 13 | - clock-names: must contain "jpgenc". It is the clock of JPEG encoder. | ||
| 14 | - power-domains: a phandle to the power domain, see | ||
| 15 | Documentation/devicetree/bindings/power/power_domain.txt for details. | ||
| 16 | - mediatek,larb: must contain the local arbiters in the current SoCs, see | ||
| 17 | Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml | ||
| 18 | for details. | ||
| 19 | - iommus: should point to the respective IOMMU block with master port as | ||
| 20 | argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | ||
| 21 | for details. | ||
| 22 | |||
| 23 | Example: | ||
| 24 | jpegenc: jpegenc@1500a000 { | ||
| 25 | compatible = "mediatek,mt2701-jpgenc", | ||
| 26 | "mediatek,mtk-jpgenc"; | ||
| 27 | reg = <0 0x1500a000 0 0x1000>; | ||
| 28 | interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_LOW>; | ||
| 29 | clocks = <&imgsys CLK_IMG_VENC>; | ||
| 30 | clock-names = "jpgenc"; | ||
| 31 | power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; | ||
| 32 | mediatek,larb = <&larb2>; | ||
| 33 | iommus = <&iommu MT2701_M4U_PORT_JPGENC_RDMA>, | ||
| 34 | <&iommu MT2701_M4U_PORT_JPGENC_BSDMA>; | ||
| 35 | }; | ||
| @@ -0,0 +1,72 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
| 2 | %YAML 1.2 | ||
| 3 | --- | ||
| 4 | $id: http://devicetree.org/schemas/media/mediatek-jpeg-encoder.yaml# | ||
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
| 6 | |||
| 7 | title: MediaTek JPEG Encoder Device Tree Bindings | ||
| 8 | |||
| 9 | maintainers: | ||
| 10 | - Xia Jiang <xia.jiang@mediatek.com> | ||
| 11 | |||
| 12 | description: |- | ||
| 13 | MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs | ||
| 14 | |||
| 15 | properties: | ||
| 16 | compatible: | ||
| 17 | items: | ||
| 18 | - enum: | ||
| 19 | - mediatek,mt2701-jpgenc | ||
| 20 | - mediatek,mt8183-jpgenc | ||
| 21 | - const: mediatek,mtk-jpgenc | ||
| 22 | reg: | ||
| 23 | maxItems: 1 | ||
| 24 | |||
| 25 | interrupts: | ||
| 26 | maxItems: 1 | ||
| 27 | |||
| 28 | clocks: | ||
| 29 | maxItems: 1 | ||
| 30 | |||
| 31 | clock-names: | ||
| 32 | items: | ||
| 33 | - const: jpgenc | ||
| 34 | |||
| 35 | power-domains: | ||
| 36 | maxItems: 1 | ||
| 37 | |||
| 38 | iommus: | ||
| 39 | maxItems: 2 | ||
| 40 | description: | | ||
| 41 | Points to the respective IOMMU block with master port as argument, see | ||
| 42 | Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. | ||
| 43 | Ports are according to the HW. | ||
| 44 | |||
| 45 | required: | ||
| 46 | - compatible | ||
| 47 | - reg | ||
| 48 | - interrupts | ||
| 49 | - clocks | ||
| 50 | - clock-names | ||
| 51 | - power-domains | ||
| 52 | - iommus | ||
| 53 | |||
| 54 | additionalProperties: false | ||
| 55 | |||
| 56 | examples: | ||
| 57 | - | | ||
| 58 | #include <dt-bindings/clock/mt2701-clk.h> | ||
| 59 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
| 60 | #include <dt-bindings/memory/mt2701-larb-port.h> | ||
| 61 | #include <dt-bindings/power/mt2701-power.h> | ||
| 62 | jpegenc: jpegenc@1500a000 { | ||
| 63 | compatible = "mediatek,mt2701-jpgenc", | ||
| 64 | "mediatek,mtk-jpgenc"; | ||
| 65 | reg = <0x1500a000 0x1000>; | ||
| 66 | interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_LOW>; | ||
| 67 | clocks = <&imgsys CLK_IMG_VENC>; | ||
| 68 | clock-names = "jpgenc"; | ||
| 69 | power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; | ||
| 70 | iommus = <&iommu MT2701_M4U_PORT_JPGENC_RDMA>, | ||
| 71 | <&iommu MT2701_M4U_PORT_JPGENC_BSDMA>; | ||
| 72 | }; | ||
| @@ -27,9 +27,6 @@ Required properties (DMA function blocks, child node): · 26 unmodified lines | |||
| 27 | - iommus: should point to the respective IOMMU block with master port as | 27 | - iommus: should point to the respective IOMMU block with master port as |
| 28 | argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 28 | argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml |
| 29 | for details. | 29 | for details. |
| 30 | - mediatek,larb: must contain the local arbiters in the current Socs, see | ||
| 31 | Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml | ||
| 32 | for details. | ||
| 33 | 30 | ||
| 34 | Example: | 31 | Example: |
| 35 | mdp_rdma0: rdma@14001000 { | 32 | mdp_rdma0: rdma@14001000 { |
| @@ -40,7 +37,6 @@ Example: · 4 unmodified lines | |||
| 40 | <&mmsys CLK_MM_MUTEX_32K>; | 37 | <&mmsys CLK_MM_MUTEX_32K>; |
| 41 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 38 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 42 | iommus = <&iommu M4U_PORT_MDP_RDMA0>; | 39 | iommus = <&iommu M4U_PORT_MDP_RDMA0>; |
| 43 | mediatek,larb = <&larb0>; | ||
| 44 | mediatek,vpu = <&vpu>; | 40 | mediatek,vpu = <&vpu>; |
| 45 | }; | 41 | }; |
| 46 | 42 | ||
| @@ -51,7 +47,6 @@ Example: · 4 unmodified lines | |||
| 51 | <&mmsys CLK_MM_MUTEX_32K>; | 47 | <&mmsys CLK_MM_MUTEX_32K>; |
| 52 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 48 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 53 | iommus = <&iommu M4U_PORT_MDP_RDMA1>; | 49 | iommus = <&iommu M4U_PORT_MDP_RDMA1>; |
| 54 | mediatek,larb = <&larb4>; | ||
| 55 | }; | 50 | }; |
| 56 | 51 | ||
| 57 | mdp_rsz0: rsz@14003000 { | 52 | mdp_rsz0: rsz@14003000 { |
| @@ -81,7 +76,6 @@ Example: · 23 unmodified lines | |||
| 81 | clocks = <&mmsys CLK_MM_MDP_WDMA>; | 76 | clocks = <&mmsys CLK_MM_MDP_WDMA>; |
| 82 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 77 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 83 | iommus = <&iommu M4U_PORT_MDP_WDMA>; | 78 | iommus = <&iommu M4U_PORT_MDP_WDMA>; |
| 84 | mediatek,larb = <&larb0>; | ||
| 85 | }; | 79 | }; |
| 86 | 80 | ||
| 87 | mdp_wrot0: wrot@14007000 { | 81 | mdp_wrot0: wrot@14007000 { |
| @@ -90,7 +84,6 @@ Example: · 2 unmodified lines | |||
| 90 | clocks = <&mmsys CLK_MM_MDP_WROT0>; | 84 | clocks = <&mmsys CLK_MM_MDP_WROT0>; |
| 91 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 85 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 92 | iommus = <&iommu M4U_PORT_MDP_WROT0>; | 86 | iommus = <&iommu M4U_PORT_MDP_WROT0>; |
| 93 | mediatek,larb = <&larb0>; | ||
| 94 | }; | 87 | }; |
| 95 | 88 | ||
| 96 | mdp_wrot1: wrot@14008000 { | 89 | mdp_wrot1: wrot@14008000 { |
| @@ -99,5 +92,4 @@ Example: · 2 unmodified lines | |||
| 99 | clocks = <&mmsys CLK_MM_MDP_WROT1>; | 92 | clocks = <&mmsys CLK_MM_MDP_WROT1>; |
| 100 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; | 93 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 101 | iommus = <&iommu M4U_PORT_MDP_WROT1>; | 94 | iommus = <&iommu M4U_PORT_MDP_WROT1>; |
| 102 | mediatek,larb = <&larb4>; | ||
| 103 | }; | 95 | }; |
| @@ -1,131 +0,0 @@ | |||
| 1 | Mediatek Video Codec | ||
| 2 | |||
| 3 | Mediatek Video Codec is the video codec hw present in Mediatek SoCs which | ||
| 4 | supports high resolution encoding and decoding functionalities. | ||
| 5 | |||
| 6 | Required properties: | ||
| 7 | - compatible : must be one of the following string: | ||
| 8 | "mediatek,mt8173-vcodec-enc-vp8" for mt8173 vp8 encoder. | ||
| 9 | "mediatek,mt8173-vcodec-enc" for mt8173 avc encoder. | ||
| 10 | "mediatek,mt8183-vcodec-enc" for MT8183 encoder. | ||
| 11 | "mediatek,mt8173-vcodec-dec" for MT8173 decoder. | ||
| 12 | "mediatek,mt8192-vcodec-enc" for MT8192 encoder. | ||
| 13 | "mediatek,mt8183-vcodec-dec" for MT8183 decoder. | ||
| 14 | "mediatek,mt8195-vcodec-enc" for MT8195 encoder. | ||
| 15 | - reg : Physical base address of the video codec registers and length of | ||
| 16 | memory mapped region. | ||
| 17 | - interrupts : interrupt number to the cpu. | ||
| 18 | - mediatek,larb : must contain the local arbiters in the current Socs. | ||
| 19 | - clocks : list of clock specifiers, corresponding to entries in | ||
| 20 | the clock-names property. | ||
| 21 | - clock-names: avc encoder must contain "venc_sel", vp8 encoder must | ||
| 22 | contain "venc_lt_sel", decoder must contain "vcodecpll", "univpll_d2", | ||
| 23 | "clk_cci400_sel", "vdec_sel", "vdecpll", "vencpll", "venc_lt_sel", | ||
| 24 | "vdec_bus_clk_src". | ||
| 25 | - iommus : should point to the respective IOMMU block with master port as | ||
| 26 | argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | ||
| 27 | for details. | ||
| 28 | - dma-ranges : describes the dma address range space that the codec hw access. | ||
| 29 | One of the two following nodes: | ||
| 30 | - mediatek,vpu : the node of the video processor unit, if using VPU. | ||
| 31 | - mediatek,scp : the node of the SCP unit, if using SCP. | ||
| 32 | |||
| 33 | |||
| 34 | Example: | ||
| 35 | |||
| 36 | vcodec_dec: vcodec@16000000 { | ||
| 37 | compatible = "mediatek,mt8173-vcodec-dec"; | ||
| 38 | reg = <0 0x16000000 0 0x100>, /*VDEC_SYS*/ | ||
| 39 | <0 0x16020000 0 0x1000>, /*VDEC_MISC*/ | ||
| 40 | <0 0x16021000 0 0x800>, /*VDEC_LD*/ | ||
| 41 | <0 0x16021800 0 0x800>, /*VDEC_TOP*/ | ||
| 42 | <0 0x16022000 0 0x1000>, /*VDEC_CM*/ | ||
| 43 | <0 0x16023000 0 0x1000>, /*VDEC_AD*/ | ||
| 44 | <0 0x16024000 0 0x1000>, /*VDEC_AV*/ | ||
| 45 | <0 0x16025000 0 0x1000>, /*VDEC_PP*/ | ||
| 46 | <0 0x16026800 0 0x800>, /*VP8_VD*/ | ||
| 47 | <0 0x16027000 0 0x800>, /*VP6_VD*/ | ||
| 48 | <0 0x16027800 0 0x800>, /*VP8_VL*/ | ||
| 49 | <0 0x16028400 0 0x400>; /*VP9_VD*/ | ||
| 50 | interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_LOW>; | ||
| 51 | mediatek,larb = <&larb1>; | ||
| 52 | iommus = <&iommu M4U_PORT_HW_VDEC_MC_EXT>, | ||
| 53 | <&iommu M4U_PORT_HW_VDEC_PP_EXT>, | ||
| 54 | <&iommu M4U_PORT_HW_VDEC_AVC_MV_EXT>, | ||
| 55 | <&iommu M4U_PORT_HW_VDEC_PRED_RD_EXT>, | ||
| 56 | <&iommu M4U_PORT_HW_VDEC_PRED_WR_EXT>, | ||
| 57 | <&iommu M4U_PORT_HW_VDEC_UFO_EXT>, | ||
| 58 | <&iommu M4U_PORT_HW_VDEC_VLD_EXT>, | ||
| 59 | <&iommu M4U_PORT_HW_VDEC_VLD2_EXT>; | ||
| 60 | mediatek,vpu = <&vpu>; | ||
| 61 | power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>; | ||
| 62 | clocks = <&apmixedsys CLK_APMIXED_VCODECPLL>, | ||
| 63 | <&topckgen CLK_TOP_UNIVPLL_D2>, | ||
| 64 | <&topckgen CLK_TOP_CCI400_SEL>, | ||
| 65 | <&topckgen CLK_TOP_VDEC_SEL>, | ||
| 66 | <&topckgen CLK_TOP_VCODECPLL>, | ||
| 67 | <&apmixedsys CLK_APMIXED_VENCPLL>, | ||
| 68 | <&topckgen CLK_TOP_VENC_LT_SEL>, | ||
| 69 | <&topckgen CLK_TOP_VCODECPLL_370P5>; | ||
| 70 | clock-names = "vcodecpll", | ||
| 71 | "univpll_d2", | ||
| 72 | "clk_cci400_sel", | ||
| 73 | "vdec_sel", | ||
| 74 | "vdecpll", | ||
| 75 | "vencpll", | ||
| 76 | "venc_lt_sel", | ||
| 77 | "vdec_bus_clk_src"; | ||
| 78 | assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>, | ||
| 79 | <&topckgen CLK_TOP_CCI400_SEL>, | ||
| 80 | <&topckgen CLK_TOP_VDEC_SEL>, | ||
| 81 | <&apmixedsys CLK_APMIXED_VCODECPLL>, | ||
| 82 | <&apmixedsys CLK_APMIXED_VENCPLL>; | ||
| 83 | assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL_370P5>, | ||
| 84 | <&topckgen CLK_TOP_UNIVPLL_D2>, | ||
| 85 | <&topckgen CLK_TOP_VCODECPLL>; | ||
| 86 | assigned-clock-rates = <0>, <0>, <0>, <1482000000>, <800000000>; | ||
| 87 | }; | ||
| 88 | |||
| 89 | vcodec_enc_avc: vcodec@18002000 { | ||
| 90 | compatible = "mediatek,mt8173-vcodec-enc"; | ||
| 91 | reg = <0 0x18002000 0 0x1000>; | ||
| 92 | interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>; | ||
| 93 | iommus = <&iommu M4U_PORT_VENC_RCPU>, | ||
| 94 | <&iommu M4U_PORT_VENC_REC>, | ||
| 95 | <&iommu M4U_PORT_VENC_BSDMA>, | ||
| 96 | <&iommu M4U_PORT_VENC_SV_COMV>, | ||
| 97 | <&iommu M4U_PORT_VENC_RD_COMV>, | ||
| 98 | <&iommu M4U_PORT_VENC_CUR_LUMA>, | ||
| 99 | <&iommu M4U_PORT_VENC_CUR_CHROMA>, | ||
| 100 | <&iommu M4U_PORT_VENC_REF_LUMA>, | ||
| 101 | <&iommu M4U_PORT_VENC_REF_CHROMA>, | ||
| 102 | <&iommu M4U_PORT_VENC_NBM_RDMA>, | ||
| 103 | <&iommu M4U_PORT_VENC_NBM_WDMA>; | ||
| 104 | mediatek,larb = <&larb3>; | ||
| 105 | mediatek,vpu = <&vpu>; | ||
| 106 | clocks = <&topckgen CLK_TOP_VENC_SEL>; | ||
| 107 | clock-names = "venc_sel"; | ||
| 108 | assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>; | ||
| 109 | assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>; | ||
| 110 | }; | ||
| 111 | |||
| 112 | vcodec_enc_vp8: vcodec@19002000 { | ||
| 113 | compatible = "mediatek,mt8173-vcodec-enc-vp8"; | ||
| 114 | reg = <0 0x19002000 0 0x1000>; /* VENC_LT_SYS */ | ||
| 115 | interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_LOW>; | ||
| 116 | iommus = <&iommu M4U_PORT_VENC_RCPU_SET2>, | ||
| 117 | <&iommu M4U_PORT_VENC_REC_FRM_SET2>, | ||
| 118 | <&iommu M4U_PORT_VENC_BSDMA_SET2>, | ||
| 119 | <&iommu M4U_PORT_VENC_SV_COMA_SET2>, | ||
| 120 | <&iommu M4U_PORT_VENC_RD_COMA_SET2>, | ||
| 121 | <&iommu M4U_PORT_VENC_CUR_LUMA_SET2>, | ||
| 122 | <&iommu M4U_PORT_VENC_CUR_CHROMA_SET2>, | ||
| 123 | <&iommu M4U_PORT_VENC_REF_LUMA_SET2>, | ||
| 124 | <&iommu M4U_PORT_VENC_REC_CHROMA_SET2>; | ||
| 125 | mediatek,larb = <&larb5>; | ||
| 126 | mediatek,vpu = <&vpu>; | ||
| 127 | clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; | ||
| 128 | clock-names = "venc_lt_sel"; | ||
| 129 | assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; | ||
| 130 | assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL_370P5>; | ||
| 131 | }; | ||
| @@ -0,0 +1,197 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| 2 | %YAML 1.2 | ||
| 3 | --- | ||
| 4 | $id: http://devicetree.org/schemas/media/microchip,csi2dc.yaml# | ||
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
| 6 | |||
| 7 | title: Microchip CSI2 Demux Controller (CSI2DC) | ||
| 8 | |||
| 9 | maintainers: | ||
| 10 | - Eugen Hristev <eugen.hristev@microchip.com> | ||
| 11 | |||
| 12 | description: | ||
| 13 | CSI2DC - Camera Serial Interface 2 Demux Controller | ||
| 14 | |||
| 15 | CSI2DC is a hardware block that receives incoming data from either from an | ||
| 16 | IDI interface or from a parallel bus interface. | ||
| 17 | It filters IDI packets based on their data type and virtual channel | ||
| 18 | identifier, then converts the byte stream to a pixel stream into a cross | ||
| 19 | clock domain towards a parallel interface that can be read by a sensor | ||
| 20 | controller. | ||
| 21 | IDI interface is Synopsys proprietary. | ||
| 22 | CSI2DC can act a simple bypass bridge if the incoming data is coming from | ||
| 23 | a parallel interface. | ||
| 24 | |||
| 25 | CSI2DC provides two pipes, one video pipe and one data pipe. Video pipe | ||
| 26 | is connected at the output to a sensor controller and the data pipe is | ||
| 27 | accessible as a DMA slave port to a DMA controller. | ||
| 28 | |||
| 29 | CSI2DC supports a single 'port' node as a sink port with either Synopsys | ||
| 30 | 32-bit IDI interface or a parallel interface. | ||
| 31 | |||
| 32 | CSI2DC supports one 'port' node as source port with parallel interface. | ||
| 33 | This is called video pipe. | ||
| 34 | This port has an 'endpoint' that can be connected to a sink port of another | ||
| 35 | controller (next in pipeline). | ||
| 36 | |||
| 37 | CSI2DC also supports direct access to the data through AHB, via DMA channel, | ||
| 38 | called data pipe. | ||
| 39 | For data pipe to be available, a dma controller and a dma channel must be | ||
| 40 | referenced. | ||
| 41 | |||
| 42 | properties: | ||
| 43 | compatible: | ||
| 44 | const: microchip,sama7g5-csi2dc | ||
| 45 | |||
| 46 | reg: | ||
| 47 | maxItems: 1 | ||
| 48 | |||
| 49 | clocks: | ||
| 50 | minItems: 2 | ||
| 51 | maxItems: 2 | ||
| 52 | |||
| 53 | clock-names: | ||
| 54 | description: | ||
| 55 | CSI2DC must have two clocks to function correctly. One clock is the | ||
| 56 | peripheral clock for the inside functionality of the hardware block. | ||
| 57 | This is named 'pclk'. The second clock must be the cross domain clock, | ||
| 58 | in which CSI2DC will perform clock crossing. This clock must be fed | ||
| 59 | by the next controller in pipeline, which usually is a sensor controller. | ||
| 60 | Normally this clock should be given by this sensor controller who | ||
| 61 | is also a clock source. This clock is named 'scck', sensor controller clock. | ||
| 62 | items: | ||
| 63 | - const: pclk | ||
| 64 | - const: scck | ||
| 65 | |||
| 66 | dmas: | ||
| 67 | maxItems: 1 | ||
| 68 | |||
| 69 | dma-names: | ||
| 70 | const: rx | ||
| 71 | |||
| 72 | ports: | ||
| 73 | $ref: /schemas/graph.yaml#/properties/ports | ||
| 74 | |||
| 75 | properties: | ||
| 76 | port@0: | ||
| 77 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 78 | description: | ||
| 79 | Input port node, single endpoint describing the input port. | ||
| 80 | |||
| 81 | properties: | ||
| 82 | endpoint: | ||
| 83 | $ref: video-interfaces.yaml# | ||
| 84 | unevaluatedProperties: false | ||
| 85 | description: Endpoint connected to input device | ||
| 86 | |||
| 87 | properties: | ||
| 88 | bus-type: | ||
| 89 | enum: [4, 5, 6] | ||
| 90 | default: 4 | ||
| 91 | |||
| 92 | bus-width: | ||
| 93 | enum: [8, 9, 10, 11, 12, 13, 14] | ||
| 94 | default: 14 | ||
| 95 | |||
| 96 | clock-noncontinuous: | ||
| 97 | type: boolean | ||
| 98 | description: | ||
| 99 | Presence of this boolean property decides whether clock is | ||
| 100 | continuous or noncontinuous. | ||
| 101 | |||
| 102 | remote-endpoint: true | ||
| 103 | |||
| 104 | port@1: | ||
| 105 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 106 | description: | ||
| 107 | Output port node, single endpoint describing the output port. | ||
| 108 | |||
| 109 | properties: | ||
| 110 | endpoint: | ||
| 111 | unevaluatedProperties: false | ||
| 112 | $ref: video-interfaces.yaml# | ||
| 113 | description: Endpoint connected to output device | ||
| 114 | |||
| 115 | properties: | ||
| 116 | bus-type: | ||
| 117 | enum: [5, 6] | ||
| 118 | default: 5 | ||
| 119 | |||
| 120 | bus-width: | ||
| 121 | enum: [8, 9, 10, 11, 12, 13, 14] | ||
| 122 | default: 14 | ||
| 123 | |||
| 124 | remote-endpoint: true | ||
| 125 | |||
| 126 | required: | ||
| 127 | - port@0 | ||
| 128 | - port@1 | ||
| 129 | |||
| 130 | additionalProperties: false | ||
| 131 | |||
| 132 | required: | ||
| 133 | - compatible | ||
| 134 | - reg | ||
| 135 | - clocks | ||
| 136 | - clock-names | ||
| 137 | - ports | ||
| 138 | |||
| 139 | examples: | ||
| 140 | # Example for connecting to a parallel sensor controller block (video pipe) | ||
| 141 | # and the input is received from Synopsys IDI interface | ||
| 142 | - | | ||
| 143 | csi2dc@e1404000 { | ||
| 144 | compatible = "microchip,sama7g5-csi2dc"; | ||
| 145 | reg = <0xe1404000 0x500>; | ||
| 146 | clocks = <&pclk>, <&scck>; | ||
| 147 | clock-names = "pclk", "scck"; | ||
| 148 | |||
| 149 | ports { | ||
| 150 | #address-cells = <1>; | ||
| 151 | #size-cells = <0>; | ||
| 152 | port@0 { | ||
| 153 | reg = <0>; /* must be 0, first child port */ | ||
| 154 | csi2dc_in: endpoint { /* input from IDI interface */ | ||
| 155 | bus-type = <4>; /* MIPI CSI2 D-PHY */ | ||
| 156 | remote-endpoint = <&csi2host_out>; | ||
| 157 | }; | ||
| 158 | }; | ||
| 159 | |||
| 160 | port@1 { | ||
| 161 | reg = <1>; /* must be 1, second child port */ | ||
| 162 | csi2dc_out: endpoint { | ||
| 163 | remote-endpoint = <&xisc_in>; /* output to sensor controller */ | ||
| 164 | }; | ||
| 165 | }; | ||
| 166 | }; | ||
| 167 | }; | ||
| 168 | |||
| 169 | # Example for connecting to a DMA master as an AHB slave | ||
| 170 | # and the input is received from Synopsys IDI interface | ||
| 171 | - | | ||
| 172 | #include <dt-bindings/dma/at91.h> | ||
| 173 | csi2dc@e1404000 { | ||
| 174 | compatible = "microchip,sama7g5-csi2dc"; | ||
| 175 | reg = <0xe1404000 0x500>; | ||
| 176 | clocks = <&pclk>, <&scck>; | ||
| 177 | clock-names = "pclk", "scck"; | ||
| 178 | dmas = <&dma0 AT91_XDMAC_DT_PERID(34)>; | ||
| 179 | dma-names = "rx"; | ||
| 180 | |||
| 181 | ports { | ||
| 182 | #address-cells = <1>; | ||
| 183 | #size-cells = <0>; | ||
| 184 | port@0 { | ||
| 185 | reg = <0>; /* must be 0, first child port */ | ||
| 186 | csi2dc_input: endpoint { /* input from IDI interface */ | ||
| 187 | remote-endpoint = <&csi2host_out>; | ||
| 188 | }; | ||
| 189 | }; | ||
| 190 | |||
| 191 | port@1 { | ||
| 192 | reg = <1>; | ||
| 193 | }; | ||
| 194 | }; | ||
| 195 | }; | ||
| 196 | |||
| 197 | ... | ||
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 | 2 | %YAML 1.2 |
| 3 | --- | 3 | --- |
| 4 | $id: http://devicetree.org/schemas/media/nxp,imx7-mipi-csi2.yaml# | 4 | $id: http://devicetree.org/schemas/media/nxp,imx-mipi-csi2.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# | 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | 6 | ||
| 7 | title: NXP i.MX7 and i.MX8 MIPI CSI-2 receiver | 7 | title: NXP i.MX7 and i.MX8 MIPI CSI-2 receiver |
| @@ -17,6 +17,7 @@ properties: · 16 unmodified lines | |||
| 17 | compatible: | 17 | compatible: |
| 18 | oneOf: | 18 | oneOf: |
| 19 | - enum: | 19 | - enum: |
| 20 | - fsl,imx8mq-csi | ||
| 20 | - fsl,imx7-csi | 21 | - fsl,imx7-csi |
| 21 | - fsl,imx6ul-csi | 22 | - fsl,imx6ul-csi |
| 22 | - items: | 23 | - items: |
| @@ -5,7 +5,7 @@ · 4 unmodified lines | |||
| 5 | $id: "http://devicetree.org/schemas/media/nxp,imx8mq-vpu.yaml#" | 5 | $id: "http://devicetree.org/schemas/media/nxp,imx8mq-vpu.yaml#" |
| 6 | $schema: "http://devicetree.org/meta-schemas/core.yaml#" | 6 | $schema: "http://devicetree.org/meta-schemas/core.yaml#" |
| 7 | 7 | ||
| 8 | title: Hantro G1/G2 VPU codecs implemented on i.MX8MQ SoCs | 8 | title: Hantro G1/G2 VPU codecs implemented on i.MX8M SoCs |
| 9 | 9 | ||
| 10 | maintainers: | 10 | maintainers: |
| 11 | - Philipp Zabel <p.zabel@pengutronix.de> | 11 | - Philipp Zabel <p.zabel@pengutronix.de> |
| @@ -15,33 +15,21 @@ description: · 3 unmodified lines | |||
| 15 | 15 | ||
| 16 | properties: | 16 | properties: |
| 17 | compatible: | 17 | compatible: |
| 18 | const: nxp,imx8mq-vpu | 18 | oneOf: |
| 19 | - const: nxp,imx8mq-vpu | ||
| 20 | deprecated: true | ||
| 21 | - const: nxp,imx8mq-vpu-g1 | ||
| 22 | - const: nxp,imx8mq-vpu-g2 | ||
| 23 | - const: nxp,imx8mm-vpu-g1 | ||
| 19 | 24 | ||
| 20 | reg: | 25 | reg: |
| 21 | maxItems: 3 | 26 | maxItems: 1 |
| 22 | |||
| 23 | reg-names: | ||
| 24 | items: | ||
| 25 | - const: g1 | ||
| 26 | - const: g2 | ||
| 27 | - const: ctrl | ||
| 28 | 27 | ||
| 29 | interrupts: | 28 | interrupts: |
| 30 | maxItems: 2 | 29 | maxItems: 1 |
| 31 | |||
| 32 | interrupt-names: | ||
| 33 | items: | ||
| 34 | - const: g1 | ||
| 35 | - const: g2 | ||
| 36 | 30 | ||
| 37 | clocks: | 31 | clocks: |
| 38 | maxItems: 3 | 32 | maxItems: 1 |
| 39 | |||
| 40 | clock-names: | ||
| 41 | items: | ||
| 42 | - const: g1 | ||
| 43 | - const: g2 | ||
| 44 | - const: bus | ||
| 45 | 33 | ||
| 46 | power-domains: | 34 | power-domains: |
| 47 | maxItems: 1 | 35 | maxItems: 1 |
| @@ -49,31 +37,33 @@ properties: · 1 unmodified line | |||
| 49 | required: | 37 | required: |
| 50 | - compatible | 38 | - compatible |
| 51 | - reg | 39 | - reg |
| 52 | - reg-names | ||
| 53 | - interrupts | 40 | - interrupts |
| 54 | - interrupt-names | ||
| 55 | - clocks | 41 | - clocks |
| 56 | - clock-names | ||
| 57 | 42 | ||
| 58 | additionalProperties: false | 43 | additionalProperties: false |
| 59 | 44 | ||
| 60 | examples: | 45 | examples: |
| 61 | - | | 46 | - | |
| 62 | #include <dt-bindings/clock/imx8mq-clock.h> | 47 | #include <dt-bindings/clock/imx8mq-clock.h> |
| 48 | #include <dt-bindings/power/imx8mq-power.h> | ||
| 49 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
| 50 | |||
| 51 | vpu_g1: video-codec@38300000 { | ||
| 52 | compatible = "nxp,imx8mq-vpu-g1"; | ||
| 53 | reg = <0x38300000 0x10000>; | ||
| 54 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; | ||
| 55 | clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>; | ||
| 56 | power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G1>; | ||
| 57 | }; | ||
| 58 | - | | ||
| 59 | #include <dt-bindings/clock/imx8mq-clock.h> | ||
| 60 | #include <dt-bindings/power/imx8mq-power.h> | ||
| 63 | #include <dt-bindings/interrupt-controller/arm-gic.h> | 61 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 64 | 62 | ||
| 65 | vpu: video-codec@38300000 { | 63 | vpu_g2: video-codec@38300000 { |
| 66 | compatible = "nxp,imx8mq-vpu"; | 64 | compatible = "nxp,imx8mq-vpu-g2"; |
| 67 | reg = <0x38300000 0x10000>, | 65 | reg = <0x38310000 0x10000>; |
| 68 | <0x38310000 0x10000>, | 66 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
| 69 | <0x38320000 0x10000>; | 67 | clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>; |
| 70 | reg-names = "g1", "g2", "ctrl"; | 68 | power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G2>; |
| 71 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, | ||
| 72 | <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; | ||
| 73 | interrupt-names = "g1", "g2"; | ||
| 74 | clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>, | ||
| 75 | <&clk IMX8MQ_CLK_VPU_G2_ROOT>, | ||
| 76 | <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; | ||
| 77 | clock-names = "g1", "g2", "bus"; | ||
| 78 | power-domains = <&pgc_vpu>; | ||
| 79 | }; | 69 | }; |
| @@ -83,10 +83,6 @@ properties: · 82 unmodified lines | |||
| 83 | unevaluatedProperties: false | 83 | unevaluatedProperties: false |
| 84 | 84 | ||
| 85 | properties: | 85 | properties: |
| 86 | clock-lanes: | ||
| 87 | items: | ||
| 88 | - const: 1 | ||
| 89 | |||
| 90 | data-lanes: | 86 | data-lanes: |
| 91 | description: | 87 | description: |
| 92 | An array of physical data lanes indexes. | 88 | An array of physical data lanes indexes. |
| @@ -99,7 +95,6 @@ properties: · 6 unmodified lines | |||
| 99 | maxItems: 4 | 95 | maxItems: 4 |
| 100 | 96 | ||
| 101 | required: | 97 | required: |
| 102 | - clock-lanes | ||
| 103 | - data-lanes | 98 | - data-lanes |
| 104 | 99 | ||
| 105 | port@1: | 100 | port@1: |
| @@ -114,16 +109,11 @@ properties: · 8 unmodified lines | |||
| 114 | unevaluatedProperties: false | 109 | unevaluatedProperties: false |
| 115 | 110 | ||
| 116 | properties: | 111 | properties: |
| 117 | clock-lanes: | ||
| 118 | items: | ||
| 119 | - const: 1 | ||
| 120 | |||
| 121 | data-lanes: | 112 | data-lanes: |
| 122 | minItems: 1 | 113 | minItems: 1 |
| 123 | maxItems: 4 | 114 | maxItems: 4 |
| 124 | 115 | ||
| 125 | required: | 116 | required: |
| 126 | - clock-lanes | ||
| 127 | - data-lanes | 117 | - data-lanes |
| 128 | 118 | ||
| 129 | reg: | 119 | reg: |
| @@ -105,10 +105,6 @@ properties: · 104 unmodified lines | |||
| 105 | unevaluatedProperties: false | 105 | unevaluatedProperties: false |
| 106 | 106 | ||
| 107 | properties: | 107 | properties: |
| 108 | clock-lanes: | ||
| 109 | items: | ||
| 110 | - const: 7 | ||
| 111 | |||
| 112 | data-lanes: | 108 | data-lanes: |
| 113 | description: | 109 | description: |
| 114 | An array of physical data lanes indexes. | 110 | An array of physical data lanes indexes. |
| @@ -121,7 +117,6 @@ properties: · 6 unmodified lines | |||
| 121 | maxItems: 4 | 117 | maxItems: 4 |
| 122 | 118 | ||
| 123 | required: | 119 | required: |
| 124 | - clock-lanes | ||
| 125 | - data-lanes | 120 | - data-lanes |
| 126 | 121 | ||
| 127 | port@1: | 122 | port@1: |
| @@ -136,16 +131,11 @@ properties: · 8 unmodified lines | |||
| 136 | unevaluatedProperties: false | 131 | unevaluatedProperties: false |
| 137 | 132 | ||
| 138 | properties: | 133 | properties: |
| 139 | clock-lanes: | ||
| 140 | items: | ||
| 141 | - const: 7 | ||
| 142 | |||
| 143 | data-lanes: | 134 | data-lanes: |
| 144 | minItems: 1 | 135 | minItems: 1 |
| 145 | maxItems: 4 | 136 | maxItems: 4 |
| 146 | 137 | ||
| 147 | required: | 138 | required: |
| 148 | - clock-lanes | ||
| 149 | - data-lanes | 139 | - data-lanes |
| 150 | 140 | ||
| 151 | port@2: | 141 | port@2: |
| @@ -160,16 +150,11 @@ properties: · 8 unmodified lines | |||
| 160 | unevaluatedProperties: false | 150 | unevaluatedProperties: false |
| 161 | 151 | ||
| 162 | properties: | 152 | properties: |
| 163 | clock-lanes: | ||
| 164 | items: | ||
| 165 | - const: 7 | ||
| 166 | |||
| 167 | data-lanes: | 153 | data-lanes: |
| 168 | minItems: 1 | 154 | minItems: 1 |
| 169 | maxItems: 4 | 155 | maxItems: 4 |
| 170 | 156 | ||
| 171 | required: | 157 | required: |
| 172 | - clock-lanes | ||
| 173 | - data-lanes | 158 | - data-lanes |
| 174 | 159 | ||
| 175 | port@3: | 160 | port@3: |
| @@ -184,16 +169,11 @@ properties: · 8 unmodified lines | |||
| 184 | unevaluatedProperties: false | 169 | unevaluatedProperties: false |
| 185 | 170 | ||
| 186 | properties: | 171 | properties: |
| 187 | clock-lanes: | ||
| 188 | items: | ||
| 189 | - const: 7 | ||
| 190 | |||
| 191 | data-lanes: | 172 | data-lanes: |
| 192 | minItems: 1 | 173 | minItems: 1 |
| 193 | maxItems: 4 | 174 | maxItems: 4 |
| 194 | 175 | ||
| 195 | required: | 176 | required: |
| 196 | - clock-lanes | ||
| 197 | - data-lanes | 177 | - data-lanes |
| 198 | 178 | ||
| 199 | reg: | 179 | reg: |
| @@ -111,16 +111,11 @@ properties: · 110 unmodified lines | |||
| 111 | unevaluatedProperties: false | 111 | unevaluatedProperties: false |
| 112 | 112 | ||
| 113 | properties: | 113 | properties: |
| 114 | clock-lanes: | ||
| 115 | items: | ||
| 116 | - const: 7 | ||
| 117 | |||
| 118 | data-lanes: | 114 | data-lanes: |
| 119 | minItems: 1 | 115 | minItems: 1 |
| 120 | maxItems: 4 | 116 | maxItems: 4 |
| 121 | 117 | ||
| 122 | required: | 118 | required: |
| 123 | - clock-lanes | ||
| 124 | - data-lanes | 119 | - data-lanes |
| 125 | 120 | ||
| 126 | port@1: | 121 | port@1: |
| @@ -135,16 +130,11 @@ properties: · 8 unmodified lines | |||
| 135 | unevaluatedProperties: false | 130 | unevaluatedProperties: false |
| 136 | 131 | ||
| 137 | properties: | 132 | properties: |
| 138 | clock-lanes: | ||
| 139 | items: | ||
| 140 | - const: 7 | ||
| 141 | |||
| 142 | data-lanes: | 133 | data-lanes: |
| 143 | minItems: 1 | 134 | minItems: 1 |
| 144 | maxItems: 4 | 135 | maxItems: 4 |
| 145 | 136 | ||
| 146 | required: | 137 | required: |
| 147 | - clock-lanes | ||
| 148 | - data-lanes | 138 | - data-lanes |
| 149 | 139 | ||
| 150 | port@2: | 140 | port@2: |
| @@ -159,16 +149,11 @@ properties: · 8 unmodified lines | |||
| 159 | unevaluatedProperties: false | 149 | unevaluatedProperties: false |
| 160 | 150 | ||
| 161 | properties: | 151 | properties: |
| 162 | clock-lanes: | ||
| 163 | items: | ||
| 164 | - const: 7 | ||
| 165 | |||
| 166 | data-lanes: | 152 | data-lanes: |
| 167 | minItems: 1 | 153 | minItems: 1 |
| 168 | maxItems: 4 | 154 | maxItems: 4 |
| 169 | 155 | ||
| 170 | required: | 156 | required: |
| 171 | - clock-lanes | ||
| 172 | - data-lanes | 157 | - data-lanes |
| 173 | 158 | ||
| 174 | port@3: | 159 | port@3: |
| @@ -183,16 +168,11 @@ properties: · 8 unmodified lines | |||
| 183 | unevaluatedProperties: false | 168 | unevaluatedProperties: false |
| 184 | 169 | ||
| 185 | properties: | 170 | properties: |
| 186 | clock-lanes: | ||
| 187 | items: | ||
| 188 | - const: 7 | ||
| 189 | |||
| 190 | data-lanes: | 171 | data-lanes: |
| 191 | minItems: 1 | 172 | minItems: 1 |
| 192 | maxItems: 4 | 173 | maxItems: 4 |
| 193 | 174 | ||
| 194 | required: | 175 | required: |
| 195 | - clock-lanes | ||
| 196 | - data-lanes | 176 | - data-lanes |
| 197 | 177 | ||
| 198 | reg: | 178 | reg: |
| @@ -105,15 +105,11 @@ properties: · 104 unmodified lines | |||
| 105 | unevaluatedProperties: false | 105 | unevaluatedProperties: false |
| 106 | 106 | ||
| 107 | properties: | 107 | properties: |
| 108 | clock-lanes: | ||
| 109 | maxItems: 1 | ||
| 110 | |||
| 111 | data-lanes: | 108 | data-lanes: |
| 112 | minItems: 1 | 109 | minItems: 1 |
| 113 | maxItems: 4 | 110 | maxItems: 4 |
| 114 | 111 | ||
| 115 | required: | 112 | required: |
| 116 | - clock-lanes | ||
| 117 | - data-lanes | 113 | - data-lanes |
| 118 | 114 | ||
| 119 | port@1: | 115 | port@1: |
| @@ -128,16 +124,11 @@ properties: · 8 unmodified lines | |||
| 128 | unevaluatedProperties: false | 124 | unevaluatedProperties: false |
| 129 | 125 | ||
| 130 | properties: | 126 | properties: |
| 131 | clock-lanes: | ||
| 132 | items: | ||
| 133 | - const: 7 | ||
| 134 | |||
| 135 | data-lanes: | 127 | data-lanes: |
| 136 | minItems: 1 | 128 | minItems: 1 |
| 137 | maxItems: 4 | 129 | maxItems: 4 |
| 138 | 130 | ||
| 139 | required: | 131 | required: |
| 140 | - clock-lanes | ||
| 141 | - data-lanes | 132 | - data-lanes |
| 142 | 133 | ||
| 143 | port@2: | 134 | port@2: |
| @@ -152,15 +143,11 @@ properties: · 8 unmodified lines | |||
| 152 | unevaluatedProperties: false | 143 | unevaluatedProperties: false |
| 153 | 144 | ||
| 154 | properties: | 145 | properties: |
| 155 | clock-lanes: | ||
| 156 | maxItems: 1 | ||
| 157 | |||
| 158 | data-lanes: | 146 | data-lanes: |
| 159 | minItems: 1 | 147 | minItems: 1 |
| 160 | maxItems: 4 | 148 | maxItems: 4 |
| 161 | 149 | ||
| 162 | required: | 150 | required: |
| 163 | - clock-lanes | ||
| 164 | - data-lanes | 151 | - data-lanes |
| 165 | 152 | ||
| 166 | port@3: | 153 | port@3: |
| @@ -175,15 +162,11 @@ properties: · 8 unmodified lines | |||
| 175 | unevaluatedProperties: false | 162 | unevaluatedProperties: false |
| 176 | 163 | ||
| 177 | properties: | 164 | properties: |
| 178 | clock-lanes: | ||
| 179 | maxItems: 1 | ||
| 180 | |||
| 181 | data-lanes: | 165 | data-lanes: |
| 182 | minItems: 1 | 166 | minItems: 1 |
| 183 | maxItems: 4 | 167 | maxItems: 4 |
| 184 | 168 | ||
| 185 | required: | 169 | required: |
| 186 | - clock-lanes | ||
| 187 | - data-lanes | 170 | - data-lanes |
| 188 | 171 | ||
| 189 | reg: | 172 | reg: |
| @@ -203,9 +186,13 @@ properties: · 13 unmodified lines | |||
| 203 | - const: vfe1 | 186 | - const: vfe1 |
| 204 | - const: vfe_lite | 187 | - const: vfe_lite |
| 205 | 188 | ||
| 206 | vdda-supply: | 189 | vdda-phy-supply: |
| 190 | description: | ||
| 191 | Phandle to a regulator supply to PHY core block. | ||
| 192 | |||
| 193 | vdda-pll-supply: | ||
| 207 | description: | 194 | description: |
| 208 | Definition of the regulator used as analog power supply. | 195 | Phandle to 1.8V regulator supply to PHY refclk pll block. |
| 209 | 196 | ||
| 210 | required: | 197 | required: |
| 211 | - clock-names | 198 | - clock-names |
| @@ -217,7 +204,8 @@ required: · 5 unmodified lines | |||
| 217 | - power-domains | 204 | - power-domains |
| 218 | - reg | 205 | - reg |
| 219 | - reg-names | 206 | - reg-names |
| 220 | - vdda-supply | 207 | - vdda-phy-supply |
| 208 | - vdda-pll-supply | ||
| 221 | 209 | ||
| 222 | additionalProperties: false | 210 | additionalProperties: false |
| 223 | 211 | ||
| @@ -361,7 +349,8 @@ examples: · 137 unmodified lines | |||
| 361 | "vfe1", | 349 | "vfe1", |
| 362 | "vfe_lite"; | 350 | "vfe_lite"; |
| 363 | 351 | ||
| 364 | vdda-supply = <®_2v8>; | 352 | vdda-phy-supply = <&vreg_l1a_0p875>; |
| 353 | vdda-pll-supply = <&vreg_l26a_1p2>; | ||
| 365 | 354 | ||
| 366 | ports { | 355 | ports { |
| 367 | #address-cells = <1>; | 356 | #address-cells = <1>; |
| @@ -0,0 +1,463 @@ | |||
| 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
| 2 | |||
| 3 | %YAML 1.2 | ||
| 4 | --- | ||
| 5 | $id: "http://devicetree.org/schemas/media/qcom,sm8250-camss.yaml#" | ||
| 6 | $schema: "http://devicetree.org/meta-schemas/core.yaml#" | ||
| 7 | |||
| 8 | title: Qualcomm CAMSS ISP | ||
| 9 | |||
| 10 | maintainers: | ||
| 11 | - Robert Foss <robert.foss@linaro.org> | ||
| 12 | |||
| 13 | description: | | ||
| 14 | The CAMSS IP is a CSI decoder and ISP present on Qualcomm platforms. | ||
| 15 | |||
| 16 | properties: | ||
| 17 | compatible: | ||
| 18 | const: qcom,sm8250-camss | ||
| 19 | |||
| 20 | clocks: | ||
| 21 | minItems: 37 | ||
| 22 | maxItems: 37 | ||
| 23 | |||
| 24 | clock-names: | ||
| 25 | items: | ||
| 26 | - const: cam_ahb_clk | ||
| 27 | - const: cam_hf_axi | ||
| 28 | - const: cam_sf_axi | ||
| 29 | - const: camnoc_axi | ||
| 30 | - const: camnoc_axi_src | ||
| 31 | - const: core_ahb | ||
| 32 | - const: cpas_ahb | ||
| 33 | - const: csiphy0 | ||
| 34 | - const: csiphy0_timer | ||
| 35 | - const: csiphy1 | ||
| 36 | - const: csiphy1_timer | ||
| 37 | - const: csiphy2 | ||
| 38 | - const: csiphy2_timer | ||
| 39 | - const: csiphy3 | ||
| 40 | - const: csiphy3_timer | ||
| 41 | - const: csiphy4 | ||
| 42 | - const: csiphy4_timer | ||
| 43 | - const: csiphy5 | ||
| 44 | - const: csiphy5_timer | ||
| 45 | - const: slow_ahb_src | ||
| 46 | - const: vfe0_ahb | ||
| 47 | - const: vfe0_axi | ||
| 48 | - const: vfe0 | ||
| 49 | - const: vfe0_cphy_rx | ||
| 50 | - const: vfe0_csid | ||
| 51 | - const: vfe0_areg | ||
| 52 | - const: vfe1_ahb | ||
| 53 | - const: vfe1_axi | ||
| 54 | - const: vfe1 | ||
| 55 | - const: vfe1_cphy_rx | ||
| 56 | - const: vfe1_csid | ||
| 57 | - const: vfe1_areg | ||
| 58 | - const: vfe_lite_ahb | ||
| 59 | - const: vfe_lite_axi | ||
| 60 | - const: vfe_lite | ||
| 61 | - const: vfe_lite_cphy_rx | ||
| 62 | - const: vfe_lite_csid | ||
| 63 | |||
| 64 | interrupts: | ||
| 65 | minItems: 14 | ||
| 66 | maxItems: 14 | ||
| 67 | |||
| 68 | interrupt-names: | ||
| 69 | items: | ||
| 70 | - const: csiphy0 | ||
| 71 | - const: csiphy1 | ||
| 72 | - const: csiphy2 | ||
| 73 | - const: csiphy3 | ||
| 74 | - const: csiphy4 | ||
| 75 | - const: csiphy5 | ||
| 76 | - const: csid0 | ||
| 77 | - const: csid1 | ||
| 78 | - const: csid2 | ||
| 79 | - const: csid3 | ||
| 80 | - const: vfe0 | ||
| 81 | - const: vfe1 | ||
| 82 | - const: vfe_lite0 | ||
| 83 | - const: vfe_lite1 | ||
| 84 | |||
| 85 | iommus: | ||
| 86 | minItems: 8 | ||
| 87 | maxItems: 8 | ||
| 88 | |||
| 89 | interconnects: | ||
| 90 | minItems: 4 | ||
| 91 | maxItems: 4 | ||
| 92 | |||
| 93 | interconnect-names: | ||
| 94 | items: | ||
| 95 | - const: cam_ahb | ||
| 96 | - const: cam_hf_0_mnoc | ||
| 97 | - const: cam_sf_0_mnoc | ||
| 98 | - const: cam_sf_icp_mnoc | ||
| 99 | |||
| 100 | power-domains: | ||
| 101 | items: | ||
| 102 | - description: IFE0 GDSC - Image Front End, Global Distributed Switch Controller. | ||
| 103 | - description: IFE1 GDSC - Image Front End, Global Distributed Switch Controller. | ||
| 104 | - description: Titan GDSC - Titan ISP Block, Global Distributed Switch Controller. | ||
| 105 | |||
| 106 | ports: | ||
| 107 | $ref: /schemas/graph.yaml#/properties/ports | ||
| 108 | |||
| 109 | description: | ||
| 110 | CSI input ports. | ||
| 111 | |||
| 112 | properties: | ||
| 113 | port@0: | ||
| 114 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 115 | unevaluatedProperties: false | ||
| 116 | description: | ||
| 117 | Input port for receiving CSI data. | ||
| 118 | |||
| 119 | properties: | ||
| 120 | endpoint: | ||
| 121 | $ref: video-interfaces.yaml# | ||
| 122 | unevaluatedProperties: false | ||
| 123 | |||
| 124 | properties: | ||
| 125 | clock-lanes: | ||
| 126 | maxItems: 1 | ||
| 127 | |||
| 128 | data-lanes: | ||
| 129 | minItems: 1 | ||
| 130 | maxItems: 4 | ||
| 131 | |||
| 132 | required: | ||
| 133 | - clock-lanes | ||
| 134 | - data-lanes | ||
| 135 | |||
| 136 | port@1: | ||
| 137 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 138 | unevaluatedProperties: false | ||
| 139 | description: | ||
| 140 | Input port for receiving CSI data. | ||
| 141 | |||
| 142 | properties: | ||
| 143 | endpoint: | ||
| 144 | $ref: video-interfaces.yaml# | ||
| 145 | unevaluatedProperties: false | ||
| 146 | |||
| 147 | properties: | ||
| 148 | clock-lanes: | ||
| 149 | maxItems: 1 | ||
| 150 | |||
| 151 | data-lanes: | ||
| 152 | minItems: 1 | ||
| 153 | maxItems: 4 | ||
| 154 | |||
| 155 | required: | ||
| 156 | - clock-lanes | ||
| 157 | - data-lanes | ||
| 158 | |||
| 159 | port@2: | ||
| 160 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 161 | unevaluatedProperties: false | ||
| 162 | description: | ||
| 163 | Input port for receiving CSI data. | ||
| 164 | |||
| 165 | properties: | ||
| 166 | endpoint: | ||
| 167 | $ref: video-interfaces.yaml# | ||
| 168 | unevaluatedProperties: false | ||
| 169 | |||
| 170 | properties: | ||
| 171 | clock-lanes: | ||
| 172 | maxItems: 1 | ||
| 173 | |||
| 174 | data-lanes: | ||
| 175 | minItems: 1 | ||
| 176 | maxItems: 4 | ||
| 177 | |||
| 178 | required: | ||
| 179 | - clock-lanes | ||
| 180 | - data-lanes | ||
| 181 | |||
| 182 | port@3: | ||
| 183 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 184 | unevaluatedProperties: false | ||
| 185 | description: | ||
| 186 | Input port for receiving CSI data. | ||
| 187 | |||
| 188 | properties: | ||
| 189 | endpoint: | ||
| 190 | $ref: video-interfaces.yaml# | ||
| 191 | unevaluatedProperties: false | ||
| 192 | |||
| 193 | properties: | ||
| 194 | clock-lanes: | ||
| 195 | maxItems: 1 | ||
| 196 | |||
| 197 | data-lanes: | ||
| 198 | minItems: 1 | ||
| 199 | maxItems: 4 | ||
| 200 | |||
| 201 | required: | ||
| 202 | - clock-lanes | ||
| 203 | - data-lanes | ||
| 204 | |||
| 205 | port@4: | ||
| 206 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 207 | unevaluatedProperties: false | ||
| 208 | description: | ||
| 209 | Input port for receiving CSI data. | ||
| 210 | |||
| 211 | properties: | ||
| 212 | endpoint: | ||
| 213 | $ref: video-interfaces.yaml# | ||
| 214 | unevaluatedProperties: false | ||
| 215 | |||
| 216 | properties: | ||
| 217 | clock-lanes: | ||
| 218 | maxItems: 1 | ||
| 219 | |||
| 220 | data-lanes: | ||
| 221 | minItems: 1 | ||
| 222 | maxItems: 4 | ||
| 223 | |||
| 224 | required: | ||
| 225 | - clock-lanes | ||
| 226 | - data-lanes | ||
| 227 | |||
| 228 | port@5: | ||
| 229 | $ref: /schemas/graph.yaml#/$defs/port-base | ||
| 230 | unevaluatedProperties: false | ||
| 231 | description: | ||
| 232 | Input port for receiving CSI data. | ||
| 233 | |||
| 234 | properties: | ||
| 235 | endpoint: | ||
| 236 | $ref: video-interfaces.yaml# | ||
| 237 | unevaluatedProperties: false | ||
| 238 | |||
| 239 | properties: | ||
| 240 | clock-lanes: | ||
| 241 | maxItems: 1 | ||
| 242 | |||
| 243 | data-lanes: | ||
| 244 | minItems: 1 | ||
| 245 | maxItems: 4 | ||
| 246 | |||
| 247 | required: | ||
| 248 | - clock-lanes | ||
| 249 | - data-lanes | ||
| 250 | |||
| 251 | reg: | ||
| 252 | minItems: 10 | ||
| 253 | maxItems: 10 | ||
| 254 | |||
| 255 | reg-names: | ||
| 256 | items: | ||
| 257 | - const: csiphy0 | ||
| 258 | - const: csiphy1 | ||
| 259 | - const: csiphy2 | ||
| 260 | - const: csiphy3 | ||
| 261 | - const: csiphy4 | ||
| 262 | - const: csiphy5 | ||
| 263 | - const: vfe0 | ||
| 264 | - const: vfe1 | ||
| 265 | - const: vfe_lite0 | ||
| 266 | - const: vfe_lite1 | ||
| 267 | |||
| 268 | vdda-phy-supply: | ||
| 269 | description: | ||
| 270 | Phandle to a regulator supply to PHY core block. | ||
| 271 | |||
| 272 | vdda-pll-supply: | ||
| 273 | description: | ||
| 274 | Phandle to 1.8V regulator supply to PHY refclk pll block. | ||
| 275 | |||
| 276 | required: | ||
| 277 | - clock-names | ||
| 278 | - clocks | ||
| 279 | - compatible | ||
| 280 | - interconnects | ||
| 281 | - interconnect-names | ||
| 282 | - interrupts | ||
| 283 | - interrupt-names | ||
| 284 | - iommus | ||
| 285 | - power-domains | ||
| 286 | - reg | ||
| 287 | - reg-names | ||
| 288 | - vdda-phy-supply | ||
| 289 | - vdda-pll-supply | ||
| 290 | |||
| 291 | additionalProperties: false | ||
| 292 | |||
| 293 | examples: | ||
| 294 | - | | ||
| 295 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
| 296 | #include <dt-bindings/clock/qcom,camcc-sm8250.h> | ||
| 297 | #include <dt-bindings/interconnect/qcom,sm8250.h> | ||
| 298 | #include <dt-bindings/clock/qcom,gcc-sm8250.h> | ||
| 299 | #include <dt-bindings/power/qcom-rpmpd.h> | ||
| 300 | |||
| 301 | soc { | ||
| 302 | #address-cells = <2>; | ||
| 303 | #size-cells = <2>; | ||
| 304 | |||
| 305 | camss: camss@ac6a000 { | ||
| 306 | compatible = "qcom,sm8250-camss"; | ||
| 307 | |||
| 308 | reg = <0 0xac6a000 0 0x2000>, | ||
| 309 | <0 0xac6c000 0 0x2000>, | ||
| 310 | <0 0xac6e000 0 0x1000>, | ||
| 311 | <0 0xac70000 0 0x1000>, | ||
| 312 | <0 0xac72000 0 0x1000>, | ||
| 313 | <0 0xac74000 0 0x1000>, | ||
| 314 | <0 0xacb4000 0 0xd000>, | ||
| 315 | <0 0xacc3000 0 0xd000>, | ||
| 316 | <0 0xacd9000 0 0x2200>, | ||
| 317 | <0 0xacdb200 0 0x2200>; | ||
| 318 | reg-names = "csiphy0", | ||
| 319 | "csiphy1", | ||
| 320 | "csiphy2", | ||
| 321 | "csiphy3", | ||
| 322 | "csiphy4", | ||
| 323 | "csiphy5", | ||
| 324 | "vfe0", | ||
| 325 | "vfe1", | ||
| 326 | "vfe_lite0", | ||
| 327 | "vfe_lite1"; | ||
| 328 | |||
| 329 | vdda-phy-supply = <&vreg_l5a_0p88>; | ||
| 330 | vdda-pll-supply = <&vreg_l9a_1p2>; | ||
| 331 | |||
| 332 | interrupts = <GIC_SPI 477 IRQ_TYPE_LEVEL_HIGH>, | ||
| 333 | <GIC_SPI 478 IRQ_TYPE_LEVEL_HIGH>, | ||
| 334 | <GIC_SPI 479 IRQ_TYPE_LEVEL_HIGH>, | ||
| 335 | <GIC_SPI 448 IRQ_TYPE_LEVEL_HIGH>, | ||
| 336 | <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>, | ||
| 337 | <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, | ||
| 338 | <GIC_SPI 464 IRQ_TYPE_LEVEL_HIGH>, | ||
| 339 | <GIC_SPI 466 IRQ_TYPE_LEVEL_HIGH>, | ||
| 340 | <GIC_SPI 468 IRQ_TYPE_LEVEL_HIGH>, | ||
| 341 | <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>, | ||
| 342 | <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>, | ||
| 343 | <GIC_SPI 467 IRQ_TYPE_LEVEL_HIGH>, | ||
| 344 | <GIC_SPI 469 IRQ_TYPE_LEVEL_HIGH>, | ||
| 345 | <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>; | ||
| 346 | interrupt-names = "csiphy0", | ||
| 347 | "csiphy1", | ||
| 348 | "csiphy2", | ||
| 349 | "csiphy3", | ||
| 350 | "csiphy4", | ||
| 351 | "csiphy5", | ||
| 352 | "csid0", | ||
| 353 | "csid1", | ||
| 354 | "csid2", | ||
| 355 | "csid3", | ||
| 356 | "vfe0", | ||
| 357 | "vfe1", | ||
| 358 | "vfe_lite0", | ||
| 359 | "vfe_lite1"; | ||
| 360 | |||
| 361 | power-domains = <&camcc IFE_0_GDSC>, | ||
| 362 | <&camcc IFE_1_GDSC>, | ||
| 363 | <&camcc TITAN_TOP_GDSC>; | ||
| 364 | |||
| 365 | clocks = <&gcc GCC_CAMERA_AHB_CLK>, | ||
| 366 | <&gcc GCC_CAMERA_HF_AXI_CLK>, | ||
| 367 | <&gcc GCC_CAMERA_SF_AXI_CLK>, | ||
| 368 | <&camcc CAM_CC_CAMNOC_AXI_CLK>, | ||
| 369 | <&camcc CAM_CC_CAMNOC_AXI_CLK_SRC>, | ||
| 370 | <&camcc CAM_CC_CORE_AHB_CLK>, | ||
| 371 | <&camcc CAM_CC_CPAS_AHB_CLK>, | ||
| 372 | <&camcc CAM_CC_CSIPHY0_CLK>, | ||
| 373 | <&camcc CAM_CC_CSI0PHYTIMER_CLK>, | ||
| 374 | <&camcc CAM_CC_CSIPHY1_CLK>, | ||
| 375 | <&camcc CAM_CC_CSI1PHYTIMER_CLK>, | ||
| 376 | <&camcc CAM_CC_CSIPHY2_CLK>, | ||
| 377 | <&camcc CAM_CC_CSI2PHYTIMER_CLK>, | ||
| 378 | <&camcc CAM_CC_CSIPHY3_CLK>, | ||
| 379 | <&camcc CAM_CC_CSI3PHYTIMER_CLK>, | ||
| 380 | <&camcc CAM_CC_CSIPHY4_CLK>, | ||
| 381 | <&camcc CAM_CC_CSI4PHYTIMER_CLK>, | ||
| 382 | <&camcc CAM_CC_CSIPHY5_CLK>, | ||
| 383 | <&camcc CAM_CC_CSI5PHYTIMER_CLK>, | ||
| 384 | <&camcc CAM_CC_SLOW_AHB_CLK_SRC>, | ||
| 385 | <&camcc CAM_CC_IFE_0_AHB_CLK>, | ||
| 386 | <&camcc CAM_CC_IFE_0_AXI_CLK>, | ||
| 387 | <&camcc CAM_CC_IFE_0_CLK>, | ||
| 388 | <&camcc CAM_CC_IFE_0_CPHY_RX_CLK>, | ||
| 389 | <&camcc CAM_CC_IFE_0_CSID_CLK>, | ||
| 390 | <&camcc CAM_CC_IFE_0_AREG_CLK>, | ||
| 391 | <&camcc CAM_CC_IFE_1_AHB_CLK>, | ||
| 392 | <&camcc CAM_CC_IFE_1_AXI_CLK>, | ||
| 393 | <&camcc CAM_CC_IFE_1_CLK>, | ||
| 394 | <&camcc CAM_CC_IFE_1_CPHY_RX_CLK>, | ||
| 395 | <&camcc CAM_CC_IFE_1_CSID_CLK>, | ||
| 396 | <&camcc CAM_CC_IFE_1_AREG_CLK>, | ||
| 397 | <&camcc CAM_CC_IFE_LITE_AHB_CLK>, | ||
| 398 | <&camcc CAM_CC_IFE_LITE_AXI_CLK>, | ||
| 399 | <&camcc CAM_CC_IFE_LITE_CLK>, | ||
| 400 | <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>, | ||
| 401 | <&camcc CAM_CC_IFE_LITE_CSID_CLK>; | ||
| 402 | clock-names = "cam_ahb_clk", | ||
| 403 | "cam_hf_axi", | ||
| 404 | "cam_sf_axi", | ||
| 405 | "camnoc_axi", | ||
| 406 | "camnoc_axi_src", | ||
| 407 | "core_ahb", | ||
| 408 | "cpas_ahb", | ||
| 409 | "csiphy0", | ||
| 410 | "csiphy0_timer", | ||
| 411 | "csiphy1", | ||
| 412 | "csiphy1_timer", | ||
| 413 | "csiphy2", | ||
| 414 | "csiphy2_timer", | ||
| 415 | "csiphy3", | ||
| 416 | "csiphy3_timer", | ||
| 417 | "csiphy4", | ||
| 418 | "csiphy4_timer", | ||
| 419 | "csiphy5", | ||
| 420 | "csiphy5_timer", | ||
| 421 | "slow_ahb_src", | ||
| 422 | "vfe0_ahb", | ||
| 423 | "vfe0_axi", | ||
| 424 | "vfe0", | ||
| 425 | "vfe0_cphy_rx", | ||
| 426 | "vfe0_csid", | ||
| 427 | "vfe0_areg", | ||
| 428 | "vfe1_ahb", | ||
| 429 | "vfe1_axi", | ||
| 430 | "vfe1", | ||
| 431 | "vfe1_cphy_rx", | ||
| 432 | "vfe1_csid", | ||
| 433 | "vfe1_areg", | ||
| 434 | "vfe_lite_ahb", | ||
| 435 | "vfe_lite_axi", | ||
| 436 | "vfe_lite", | ||
| 437 | "vfe_lite_cphy_rx", | ||
| 438 | "vfe_lite_csid"; | ||
| 439 | |||
| 440 | iommus = <&apps_smmu 0x800 0x400>, | ||
| 441 | <&apps_smmu 0x801 0x400>, | ||
| 442 | <&apps_smmu 0x840 0x400>, | ||
| 443 | <&apps_smmu 0x841 0x400>, | ||
| 444 | <&apps_smmu 0xC00 0x400>, | ||
| 445 | <&apps_smmu 0xC01 0x400>, | ||
| 446 | <&apps_smmu 0xC40 0x400>, | ||
| 447 | <&apps_smmu 0xC41 0x400>; | ||
| 448 | |||
| 449 | interconnects = <&gem_noc MASTER_AMPSS_M0 &config_noc SLAVE_CAMERA_CFG>, | ||
| 450 | <&mmss_noc MASTER_CAMNOC_HF &mc_virt SLAVE_EBI_CH0>, | ||
| 451 | <&mmss_noc MASTER_CAMNOC_SF &mc_virt SLAVE_EBI_CH0>, | ||
| 452 | <&mmss_noc MASTER_CAMNOC_ICP &mc_virt SLAVE_EBI_CH0>; | ||
| 453 | interconnect-names = "cam_ahb", | ||
| 454 | "cam_hf_0_mnoc", | ||
| 455 | "cam_sf_0_mnoc", | ||
| 456 | "cam_sf_icp_mnoc"; | ||
| 457 | |||
| 458 | ports { | ||
| 459 | #address-cells = <1>; | ||
| 460 | #size-cells = <0>; | ||
| 461 | }; | ||
| 462 | }; | ||
| 463 | }; | ||
| @@ -67,7 +67,10 @@ properties: · 66 unmodified lines | |||
| 67 | maxItems: 1 | 67 | maxItems: 1 |
| 68 | 68 | ||
| 69 | data-lanes: | 69 | data-lanes: |
| 70 | maxItems: 1 | 70 | minItems: 1 |
| 71 | maxItems: 4 | ||
| 72 | items: | ||
| 73 | maximum: 4 | ||
| 71 | 74 | ||
| 72 | required: | 75 | required: |
| 73 | - clock-lanes | 76 | - clock-lanes |
| @@ -7,22 +7,22 @@ File partitioning · 6 unmodified lines | |||
| 7 | ----------------- | 7 | ----------------- |
| 8 | 8 | ||
| 9 | V4L2 display device driver | 9 | V4L2 display device driver |
| 10 | drivers/media/platform/davinci/vpbe_display.c | 10 | drivers/media/platform/ti/davinci/vpbe_display.c |
| 11 | drivers/media/platform/davinci/vpbe_display.h | 11 | drivers/media/platform/ti/davinci/vpbe_display.h |
| 12 | 12 | ||
| 13 | VPBE display controller | 13 | VPBE display controller |
| 14 | drivers/media/platform/davinci/vpbe.c | 14 | drivers/media/platform/ti/davinci/vpbe.c |
| 15 | drivers/media/platform/davinci/vpbe.h | 15 | drivers/media/platform/ti/davinci/vpbe.h |
| 16 | 16 | ||
| 17 | VPBE venc sub device driver | 17 | VPBE venc sub device driver |
| 18 | drivers/media/platform/davinci/vpbe_venc.c | 18 | drivers/media/platform/ti/davinci/vpbe_venc.c |
| 19 | drivers/media/platform/davinci/vpbe_venc.h | 19 | drivers/media/platform/ti/davinci/vpbe_venc.h |
| 20 | drivers/media/platform/davinci/vpbe_venc_regs.h | 20 | drivers/media/platform/ti/davinci/vpbe_venc_regs.h |
| 21 | 21 | ||
| 22 | VPBE osd driver | 22 | VPBE osd driver |
| 23 | drivers/media/platform/davinci/vpbe_osd.c | 23 | drivers/media/platform/ti/davinci/vpbe_osd.c |
| 24 | drivers/media/platform/davinci/vpbe_osd.h | 24 | drivers/media/platform/ti/davinci/vpbe_osd.h |
| 25 | drivers/media/platform/davinci/vpbe_osd_regs.h | 25 | drivers/media/platform/ti/davinci/vpbe_osd_regs.h |
| 26 | 26 | ||
| 27 | To be done | 27 | To be done |
| 28 | ---------- | 28 | ---------- |
| @@ -12,22 +12,22 @@ Files partitioning · 11 unmodified lines | |||
| 12 | 12 | ||
| 13 | - media device driver | 13 | - media device driver |
| 14 | 14 | ||
| 15 | drivers/media/platform/exynos4-is/media-dev.[ch] | 15 | drivers/media/platform/samsung/exynos4-is/media-dev.[ch] |
| 16 | 16 | ||
| 17 | - camera capture video device driver | 17 | - camera capture video device driver |
| 18 | 18 | ||
| 19 | drivers/media/platform/exynos4-is/fimc-capture.c | 19 | drivers/media/platform/samsung/exynos4-is/fimc-capture.c |
| 20 | 20 | ||
| 21 | - MIPI-CSI2 receiver subdev | 21 | - MIPI-CSI2 receiver subdev |
| 22 | 22 | ||
| 23 | drivers/media/platform/exynos4-is/mipi-csis.[ch] | 23 | drivers/media/platform/samsung/exynos4-is/mipi-csis.[ch] |
| 24 | 24 | ||
| 25 | - video post-processor (mem-to-mem) | 25 | - video post-processor (mem-to-mem) |
| 26 | 26 | ||
| 27 | drivers/media/platform/exynos4-is/fimc-core.c | 27 | drivers/media/platform/samsung/exynos4-is/fimc-core.c |
| 28 | 28 | ||
| 29 | - common files | 29 | - common files |
| 30 | 30 | ||
| 31 | drivers/media/platform/exynos4-is/fimc-core.h | 31 | drivers/media/platform/samsung/exynos4-is/fimc-core.h |
| 32 | drivers/media/platform/exynos4-is/fimc-reg.h | 32 | drivers/media/platform/samsung/exynos4-is/fimc-reg.h |
| 33 | drivers/media/platform/exynos4-is/regs-fimc.h | 33 | drivers/media/platform/samsung/exynos4-is/regs-fimc.h |
| @@ -167,7 +167,7 @@ The first event type in the class is reserved for future use, so the first · 166 unmodified lines | |||
| 167 | available event type is 'class base + 1'. | 167 | available event type is 'class base + 1'. |
| 168 | 168 | ||
| 169 | An example on how the V4L2 events may be used can be found in the OMAP | 169 | An example on how the V4L2 events may be used can be found in the OMAP |
| 170 | 3 ISP driver (``drivers/media/platform/omap3isp``). | 170 | 3 ISP driver (``drivers/media/platform/ti/omap3isp``). |
| 171 | 171 | ||
| 172 | A subdev can directly send an event to the :c:type:`v4l2_device` notify | 172 | A subdev can directly send an event to the :c:type:`v4l2_device` notify |
| 173 | function with ``V4L2_DEVICE_NOTIFY_EVENT``. This allows the bridge to map | 173 | function with ``V4L2_DEVICE_NOTIFY_EVENT``. This allows the bridge to map |
| @@ -11,12 +11,14 @@ ignore define LIRC_SPACE · 10 unmodified lines | |||
| 11 | ignore define LIRC_PULSE | 11 | ignore define LIRC_PULSE |
| 12 | ignore define LIRC_FREQUENCY | 12 | ignore define LIRC_FREQUENCY |
| 13 | ignore define LIRC_TIMEOUT | 13 | ignore define LIRC_TIMEOUT |
| 14 | ignore define LIRC_OVERFLOW | ||
| 14 | ignore define LIRC_VALUE | 15 | ignore define LIRC_VALUE |
| 15 | ignore define LIRC_MODE2 | 16 | ignore define LIRC_MODE2 |
| 16 | ignore define LIRC_IS_SPACE | 17 | ignore define LIRC_IS_SPACE |
| 17 | ignore define LIRC_IS_PULSE | 18 | ignore define LIRC_IS_PULSE |
| 18 | ignore define LIRC_IS_FREQUENCY | 19 | ignore define LIRC_IS_FREQUENCY |
| 19 | ignore define LIRC_IS_TIMEOUT | 20 | ignore define LIRC_IS_TIMEOUT |
| 21 | ignore define LIRC_IS_OVERFLOW | ||
| 20 | 22 | ||
| 21 | ignore define LIRC_MODE2SEND | 23 | ignore define LIRC_MODE2SEND |
| 22 | ignore define LIRC_SEND2MODE | 24 | ignore define LIRC_SEND2MODE |
| @@ -28,7 +30,6 @@ ignore define LIRC_CAN_REC · 5 unmodified lines | |||
| 28 | 30 | ||
| 29 | ignore define LIRC_CAN_SEND_MASK | 31 | ignore define LIRC_CAN_SEND_MASK |
| 30 | ignore define LIRC_CAN_REC_MASK | 32 | ignore define LIRC_CAN_REC_MASK |
| 31 | ignore define LIRC_CAN_SET_REC_DUTY_CYCLE | ||
| 32 | 33 | ||
| 33 | # Obsolete ioctls | 34 | # Obsolete ioctls |
| 34 | 35 | ||
| @@ -75,6 +76,7 @@ ignore define PULSE_MASK · 40 unmodified lines | |||
| 75 | ignore define LIRC_MODE2_SPACE | 76 | ignore define LIRC_MODE2_SPACE |
| 76 | ignore define LIRC_MODE2_PULSE | 77 | ignore define LIRC_MODE2_PULSE |
| 77 | ignore define LIRC_MODE2_TIMEOUT | 78 | ignore define LIRC_MODE2_TIMEOUT |
| 79 | ignore define LIRC_MODE2_OVERFLOW | ||
| 78 | 80 | ||
| 79 | ignore define LIRC_VALUE_MASK | 81 | ignore define LIRC_VALUE_MASK |
| 80 | ignore define LIRC_MODE2_MASK | 82 | ignore define LIRC_MODE2_MASK |
| @@ -103,11 +103,11 @@ on the following table. · 102 unmodified lines | |||
| 103 | 103 | ||
| 104 | ``LIRC_MODE2_PULSE`` | 104 | ``LIRC_MODE2_PULSE`` |
| 105 | 105 | ||
| 106 | Signifies the presence of IR in microseconds. | 106 | Signifies the presence of IR in microseconds, also known as *flash*. |
| 107 | 107 | ||
| 108 | ``LIRC_MODE2_SPACE`` | 108 | ``LIRC_MODE2_SPACE`` |
| 109 | 109 | ||
| 110 | Signifies absence of IR in microseconds. | 110 | Signifies absence of IR in microseconds, also known as *gap*. |
| 111 | 111 | ||
| 112 | ``LIRC_MODE2_FREQUENCY`` | 112 | ``LIRC_MODE2_FREQUENCY`` |
| 113 | 113 | ||
| @@ -121,6 +121,13 @@ on the following table. · 7 unmodified lines | |||
| 121 | to no IR being detected, this packet will be sent, with the number | 121 | to no IR being detected, this packet will be sent, with the number |
| 122 | of microseconds with no IR. | 122 | of microseconds with no IR. |
| 123 | 123 | ||
| 124 | ``LIRC_MODE2_OVERFLOW`` | ||
| 125 | |||
| 126 | Signifies that the IR receiver encounter an overflow, and some IR | ||
| 127 | is missing. The IR data after this should be correct again. The | ||
| 128 | actual value is not important, but this is set to 0xffffff by the | ||
| 129 | kernel for compatibility with lircd. | ||
| 130 | |||
| 124 | .. _lirc-mode-pulse: | 131 | .. _lirc-mode-pulse: |
| 125 | 132 | ||
| 126 | ``LIRC_MODE_PULSE`` | 133 | ``LIRC_MODE_PULSE`` |
| @@ -102,12 +102,6 @@ LIRC features · 101 unmodified lines | |||
| 102 | The driver supports setting the receive carrier frequency using | 102 | The driver supports setting the receive carrier frequency using |
| 103 | :ref:`ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>`. | 103 | :ref:`ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>`. |
| 104 | 104 | ||
| 105 | .. _LIRC-CAN-SET-REC-DUTY-CYCLE-RANGE: | ||
| 106 | |||
| 107 | ``LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE`` | ||
| 108 | |||
| 109 | Unused. Kept just to avoid breaking uAPI. | ||
| 110 | |||
| 111 | .. _LIRC-CAN-SET-REC-CARRIER-RANGE: | 105 | .. _LIRC-CAN-SET-REC-CARRIER-RANGE: |
| 112 | 106 | ||
| 113 | ``LIRC_CAN_SET_REC_CARRIER_RANGE`` | 107 | ``LIRC_CAN_SET_REC_CARRIER_RANGE`` |
| @@ -129,12 +123,6 @@ LIRC features · 15 unmodified lines | |||
| 129 | The driver supports | 123 | The driver supports |
| 130 | :ref:`ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>`. | 124 | :ref:`ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>`. |
| 131 | 125 | ||
| 132 | .. _LIRC-CAN-SET-REC-FILTER: | ||
| 133 | |||
| 134 | ``LIRC_CAN_SET_REC_FILTER`` | ||
| 135 | |||
| 136 | Unused. Kept just to avoid breaking uAPI. | ||
| 137 | |||
| 138 | .. _LIRC-CAN-MEASURE-CARRIER: | 126 | .. _LIRC-CAN-MEASURE-CARRIER: |
| 139 | 127 | ||
| 140 | ``LIRC_CAN_MEASURE_CARRIER`` | 128 | ``LIRC_CAN_MEASURE_CARRIER`` |
| @@ -149,12 +137,6 @@ LIRC features · 8 unmodified lines | |||
| 149 | The driver supports learning mode using | 137 | The driver supports learning mode using |
| 150 | :ref:`ioctl LIRC_SET_WIDEBAND_RECEIVER <LIRC_SET_WIDEBAND_RECEIVER>`. | 138 | :ref:`ioctl LIRC_SET_WIDEBAND_RECEIVER <LIRC_SET_WIDEBAND_RECEIVER>`. |
| 151 | 139 | ||
| 152 | .. _LIRC-CAN-NOTIFY-DECODE: | ||
| 153 | |||
| 154 | ``LIRC_CAN_NOTIFY_DECODE`` | ||
| 155 | |||
| 156 | Unused. Kept just to avoid breaking uAPI. | ||
| 157 | |||
| 158 | .. _LIRC-CAN-SEND-RAW: | 140 | .. _LIRC-CAN-SEND-RAW: |
| 159 | 141 | ||
| 160 | ``LIRC_CAN_SEND_RAW`` | 142 | ``LIRC_CAN_SEND_RAW`` |
| @@ -616,6 +616,12 @@ Stateless Codec Control ID · 615 unmodified lines | |||
| 616 | * - ``V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD`` | 616 | * - ``V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD`` |
| 617 | - 0x00000004 | 617 | - 0x00000004 |
| 618 | - | 618 | - |
| 619 | * - ``V4L2_H264_DECODE_PARAM_FLAG_PFRAME`` | ||
| 620 | - 0x00000008 | ||
| 621 | - | ||
| 622 | * - ``V4L2_H264_DECODE_PARAM_FLAG_BFRAME`` | ||
| 623 | - 0x00000010 | ||
| 624 | - | ||
| 619 | 625 | ||
| 620 | .. raw:: latex | 626 | .. raw:: latex |
| 621 | 627 | ||
| @@ -1692,7 +1698,12 @@ See section '7.3.1 Tx mode semantics' of the :ref:`vp9` specification for more d · 1070 unmodified lines | |||
| 1692 | * - __u8 | 1698 | * - __u8 |
| 1693 | - ``reference_mode`` | 1699 | - ``reference_mode`` |
| 1694 | - Specifies the type of inter prediction to be used. See | 1700 | - Specifies the type of inter prediction to be used. See |
| 1695 | :ref:`Reference Mode<vp9_reference_mode>` for more details. | 1701 | :ref:`Reference Mode<vp9_reference_mode>` for more details. Note that |
| 1702 | this is derived as part of the compressed header parsing process and | ||
| 1703 | for this reason should have been part of | ||
| 1704 | :c:type: `v4l2_ctrl_vp9_compressed_hdr` optional control. It is safe to | ||
| 1705 | set this value to zero if the driver does not require compressed | ||
| 1706 | headers. | ||
| 1696 | * - __u8 | 1707 | * - __u8 |
| 1697 | - ``reserved[7]`` | 1708 | - ``reserved[7]`` |
| 1698 | - Applications and drivers must set this to zero. | 1709 | - Applications and drivers must set this to zero. |
| @@ -3166,11 +3166,11 @@ enum v4l2_mpeg_video_hevc_size_of_length_field - · 3165 unmodified lines | |||
| 3166 | :c:func:`v4l2_timeval_to_ns()` function to convert the struct | 3166 | :c:func:`v4l2_timeval_to_ns()` function to convert the struct |
| 3167 | :c:type:`timeval` in struct :c:type:`v4l2_buffer` to a __u64. | 3167 | :c:type:`timeval` in struct :c:type:`v4l2_buffer` to a __u64. |
| 3168 | * - __u8 | 3168 | * - __u8 |
| 3169 | - ``rps`` | 3169 | - ``flags`` |
| 3170 | - The reference set for the reference frame | 3170 | - Long term flag for the reference frame |
| 3171 | (V4L2_HEVC_DPB_ENTRY_RPS_ST_CURR_BEFORE, | 3171 | (V4L2_HEVC_DPB_ENTRY_LONG_TERM_REFERENCE). The flag is set as |
| 3172 | V4L2_HEVC_DPB_ENTRY_RPS_ST_CURR_AFTER or | 3172 | described in the ITU HEVC specification chapter "8.3.2 Decoding |
| 3173 | V4L2_HEVC_DPB_ENTRY_RPS_LT_CURR) | 3173 | process for reference picture set". |
| 3174 | * - __u8 | 3174 | * - __u8 |
| 3175 | - ``field_pic`` | 3175 | - ``field_pic`` |
| 3176 | - Whether the reference is a field picture or a frame. | 3176 | - Whether the reference is a field picture or a frame. |
| @@ -3383,15 +3383,15 @@ enum v4l2_mpeg_video_hevc_size_of_length_field - · 206 unmodified lines | |||
| 3383 | * - __u8 | 3383 | * - __u8 |
| 3384 | - ``poc_st_curr_before[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]`` | 3384 | - ``poc_st_curr_before[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]`` |
| 3385 | - PocStCurrBefore as described in section 8.3.2 "Decoding process for reference | 3385 | - PocStCurrBefore as described in section 8.3.2 "Decoding process for reference |
| 3386 | picture set. | 3386 | picture set": provides the index of the short term before references in DPB array. |
| 3387 | * - __u8 | 3387 | * - __u8 |
| 3388 | - ``poc_st_curr_after[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]`` | 3388 | - ``poc_st_curr_after[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]`` |
| 3389 | - PocStCurrAfter as described in section 8.3.2 "Decoding process for reference | 3389 | - PocStCurrAfter as described in section 8.3.2 "Decoding process for reference |
| 3390 | picture set. | 3390 | picture set": provides the index of the short term after references in DPB array. |
| 3391 | * - __u8 | 3391 | * - __u8 |
| 3392 | - ``poc_lt_curr[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]`` | 3392 | - ``poc_lt_curr[V4L2_HEVC_DPB_ENTRIES_NUM_MAX]`` |
| 3393 | - PocLtCurr as described in section 8.3.2 "Decoding process for reference | 3393 | - PocLtCurr as described in section 8.3.2 "Decoding process for reference |
| 3394 | picture set. | 3394 | picture set": provides the index of the long term references in DPB array. |
| 3395 | * - __u64 | 3395 | * - __u64 |
| 3396 | - ``flags`` | 3396 | - ``flags`` |
| 3397 | - See :ref:`Decode Parameters Flags <hevc_decode_params_flags>` | 3397 | - See :ref:`Decode Parameters Flags <hevc_decode_params_flags>` |
| @@ -233,19 +233,12 @@ please make a proposal on the linux-media mailing list. · 232 unmodified lines | |||
| 233 | 233 | ||
| 234 | - ``V4L2_PIX_FMT_MT21C`` | 234 | - ``V4L2_PIX_FMT_MT21C`` |
| 235 | - 'MT21' | 235 | - 'MT21' |
| 236 | - Compressed two-planar YVU420 format used by Mediatek MT8173. | 236 | - Compressed two-planar YVU420 format used by Mediatek MT8173, MT8192, |
| 237 | The compression is lossless. | 237 | MT8195 and more. The compression is lossless. This format have |
| 238 | It is an opaque intermediate format and the MDP hardware must be | 238 | similitude with ``V4L2_PIX_FMT_MM21`` in term of alignment and tiling. |
| 239 | It remains an opaque intermediate format and the MDP hardware must be | ||
| 239 | used to convert ``V4L2_PIX_FMT_MT21C`` to ``V4L2_PIX_FMT_NV12M``, | 240 | used to convert ``V4L2_PIX_FMT_MT21C`` to ``V4L2_PIX_FMT_NV12M``, |
| 240 | ``V4L2_PIX_FMT_YUV420M`` or ``V4L2_PIX_FMT_YVU420``. | 241 | ``V4L2_PIX_FMT_YUV420M`` or ``V4L2_PIX_FMT_YVU420``. |
| 241 | * .. _V4L2-PIX-FMT-MM21: | ||
| 242 | |||
| 243 | - ``V4L2_PIX_FMT_MM21`` | ||
| 244 | - 'MM21' | ||
| 245 | - Non-compressed, tiled two-planar format used by Mediatek MT8183. | ||
| 246 | This is an opaque intermediate format and the MDP3 hardware can be | ||
| 247 | used to convert it to other formats. | ||
| 248 | |||
| 249 | .. raw:: latex | 242 | .. raw:: latex |
| 250 | 243 | ||
| 251 | \normalsize | 244 | \normalsize |
| @@ -672,8 +672,8 @@ nomenclature that instead use the order of components as seen in a 24- or · 671 unmodified lines | |||
| 672 | - ``V4L2_PIX_FMT_BGR24`` | 672 | - ``V4L2_PIX_FMT_BGR24`` |
| 673 | - 'BGR3' | 673 | - 'BGR3' |
| 674 | 674 | ||
| 675 | - G\ :sub:`7-0` | ||
| 676 | - B\ :sub:`7-0` | 675 | - B\ :sub:`7-0` |
| 676 | - G\ :sub:`7-0` | ||
| 677 | - R\ :sub:`7-0` | 677 | - R\ :sub:`7-0` |
| 678 | - | 678 | - |
| 679 | * .. _V4L2-PIX-FMT-RGB24: | 679 | * .. _V4L2-PIX-FMT-RGB24: |
| @@ -75,8 +75,8 @@ are often referred to as greyscale formats. · 74 unmodified lines | |||
| 75 | - ``V4L2_PIX_FMT_Y10P`` | 75 | - ``V4L2_PIX_FMT_Y10P`` |
| 76 | - 'Y10P' | 76 | - 'Y10P' |
| 77 | 77 | ||
| 78 | - Y'\ :sub:`0`\ [7:0] | 78 | - Y'\ :sub:`0`\ [9:2] |
| 79 | - Y'\ :sub:`1`\ [9:8] | 79 | - Y'\ :sub:`1`\ [9:2] |
| 80 | - Y'\ :sub:`2`\ [9:2] | 80 | - Y'\ :sub:`2`\ [9:2] |
| 81 | - Y'\ :sub:`3`\ [9:2] | 81 | - Y'\ :sub:`3`\ [9:2] |
| 82 | - Y'\ :sub:`3`\ [1:0] Y'\ :sub:`2`\ [1:0] Y'\ :sub:`1`\ [1:0] Y'\ :sub:`0`\ [1:0] | 82 | - Y'\ :sub:`3`\ [1:0] Y'\ :sub:`2`\ [1:0] Y'\ :sub:`1`\ [1:0] Y'\ :sub:`0`\ [1:0] |
| @@ -76,7 +76,7 @@ All components are stored with the same number of bits per component. · 75 unmodified lines | |||
| 76 | - 'NV21' | 76 | - 'NV21' |
| 77 | - 8 | 77 | - 8 |
| 78 | - 4:2:0 | 78 | - 4:2:0 |
| 79 | - Cr, Cr | 79 | - Cr, Cb |
| 80 | - Yes | 80 | - Yes |
| 81 | - Linear | 81 | - Linear |
| 82 | * - V4L2_PIX_FMT_NV12M | 82 | * - V4L2_PIX_FMT_NV12M |
| @@ -90,7 +90,7 @@ All components are stored with the same number of bits per component. · 7 unmodified lines | |||
| 90 | - 'NM21' | 90 | - 'NM21' |
| 91 | - 8 | 91 | - 8 |
| 92 | - 4:2:0 | 92 | - 4:2:0 |
| 93 | - Cr, Cr | 93 | - Cr, Cb |
| 94 | - No | 94 | - No |
| 95 | - Linear | 95 | - Linear |
| 96 | * - V4L2_PIX_FMT_NV12MT | 96 | * - V4L2_PIX_FMT_NV12MT |
| @@ -120,7 +120,7 @@ All components are stored with the same number of bits per component. · 23 unmodified lines | |||
| 120 | - 'NV61' | 120 | - 'NV61' |
| 121 | - 8 | 121 | - 8 |
| 122 | - 4:2:2 | 122 | - 4:2:2 |
| 123 | - Cr, Cr | 123 | - Cr, Cb |
| 124 | - Yes | 124 | - Yes |
| 125 | - Linear | 125 | - Linear |
| 126 | * - V4L2_PIX_FMT_NV16M | 126 | * - V4L2_PIX_FMT_NV16M |
| @@ -134,7 +134,7 @@ All components are stored with the same number of bits per component. · 7 unmodified lines | |||
| 134 | - 'NM61' | 134 | - 'NM61' |
| 135 | - 8 | 135 | - 8 |
| 136 | - 4:2:2 | 136 | - 4:2:2 |
| 137 | - Cr, Cr | 137 | - Cr, Cb |
| 138 | - No | 138 | - No |
| 139 | - Linear | 139 | - Linear |
| 140 | * - V4L2_PIX_FMT_NV24 | 140 | * - V4L2_PIX_FMT_NV24 |
| @@ -148,7 +148,7 @@ All components are stored with the same number of bits per component. · 7 unmodified lines | |||
| 148 | - 'NV42' | 148 | - 'NV42' |
| 149 | - 8 | 149 | - 8 |
| 150 | - 4:4:4 | 150 | - 4:4:4 |
| 151 | - Cr, Cr | 151 | - Cr, Cb |
| 152 | - Yes | 152 | - Yes |
| 153 | - Linear | 153 | - Linear |
| 154 | 154 | ||
| @@ -257,6 +257,9 @@ of the luma plane. · 102 unmodified lines | |||
| 257 | .. _V4L2-PIX-FMT-NV12-4L4: | 257 | .. _V4L2-PIX-FMT-NV12-4L4: |
| 258 | .. _V4L2-PIX-FMT-NV12-16L16: | 258 | .. _V4L2-PIX-FMT-NV12-16L16: |
| 259 | .. _V4L2-PIX-FMT-NV12-32L32: | 259 | .. _V4L2-PIX-FMT-NV12-32L32: |
| 260 | .. _V4L2-PIX-FMT-NV12M-8L128: | ||
| 261 | .. _V4L2-PIX-FMT-NV12M-10BE-8L128: | ||
| 262 | .. _V4L2-PIX-FMT-MM21: | ||
| 260 | 263 | ||
| 261 | Tiled NV12 | 264 | Tiled NV12 |
| 262 | ---------- | 265 | ---------- |
| @@ -281,21 +284,47 @@ If the vertical resolution is an odd number of tiles, the last row of · 18 unmodified lines | |||
| 281 | tiles is stored in linear order. The layouts of the luma and chroma | 284 | tiles is stored in linear order. The layouts of the luma and chroma |
| 282 | planes are identical. | 285 | planes are identical. |
| 283 | 286 | ||
| 284 | ``V4L2_PIX_FMT_NV12_4L4`` stores pixel in 4x4 tiles, and stores | 287 | ``V4L2_PIX_FMT_NV12_4L4`` stores pixels in 4x4 tiles, and stores |
| 285 | tiles linearly in memory. The line stride and image height must be | 288 | tiles linearly in memory. The line stride and image height must be |
| 286 | aligned to a multiple of 4. The layouts of the luma and chroma planes are | 289 | aligned to a multiple of 4. The layouts of the luma and chroma planes are |
| 287 | identical. | 290 | identical. |
| 288 | 291 | ||
| 289 | ``V4L2_PIX_FMT_NV12_16L16`` stores pixel in 16x16 tiles, and stores | 292 | ``V4L2_PIX_FMT_NV12_16L16`` stores pixels in 16x16 tiles, and stores |
| 290 | tiles linearly in memory. The line stride and image height must be | 293 | tiles linearly in memory. The line stride and image height must be |
| 291 | aligned to a multiple of 16. The layouts of the luma and chroma planes are | 294 | aligned to a multiple of 16. The layouts of the luma and chroma planes are |
| 292 | identical. | 295 | identical. |
| 293 | 296 | ||
| 294 | ``V4L2_PIX_FMT_NV12_32L32`` stores pixel in 32x32 tiles, and stores | 297 | ``V4L2_PIX_FMT_NV12_32L32`` stores pixels in 32x32 tiles, and stores |
| 295 | tiles linearly in memory. The line stride and image height must be | 298 | tiles linearly in memory. The line stride and image height must be |
| 296 | aligned to a multiple of 32. The layouts of the luma and chroma planes are | 299 | aligned to a multiple of 32. The layouts of the luma and chroma planes are |
| 297 | identical. | 300 | identical. |
| 298 | 301 | ||
| 302 | ``V4L2_PIX_FMT_NV12M_8L128`` is similar to ``V4L2_PIX_FMT_NV12M`` but stores | ||
| 303 | pixels in 2D 8x128 tiles, and stores tiles linearly in memory. | ||
| 304 | The image height must be aligned to a multiple of 128. | ||
| 305 | The layouts of the luma and chroma planes are identical. | ||
| 306 | |||
| 307 | ``V4L2_PIX_FMT_NV12M_10BE_8L128`` is similar to ``V4L2_PIX_FMT_NV12M`` but stores | ||
| 308 | 10 bits pixels in 2D 8x128 tiles, and stores tiles linearly in memory. | ||
| 309 | the data is arranged in big endian order. | ||
| 310 | The image height must be aligned to a multiple of 128. | ||
| 311 | The layouts of the luma and chroma planes are identical. | ||
| 312 | Note the tile size is 8bytes multiplied by 128 bytes, | ||
| 313 | it means that the low bits and high bits of one pixel may be in different tiles. | ||
| 314 | The 10 bit pixels are packed, so 5 bytes contain 4 10-bit pixels layout like | ||
| 315 | this (for luma): | ||
| 316 | byte 0: Y0(bits 9-2) | ||
| 317 | byte 1: Y0(bits 1-0) Y1(bits 9-4) | ||
| 318 | byte 2: Y1(bits 3-0) Y2(bits 9-6) | ||
| 319 | byte 3: Y2(bits 5-0) Y3(bits 9-8) | ||
| 320 | byte 4: Y3(bits 7-0) | ||
| 321 | |||
| 322 | ``V4L2_PIX_FMT_MM21`` store luma pixel in 16x32 tiles, and chroma pixels | ||
| 323 | in 16x16 tiles. The line stride must be aligned to a multiple of 16 and the | ||
| 324 | image height must be aligned to a multiple of 32. The number of luma and chroma | ||
| 325 | tiles are identical, even though the tile size differ. The image is formed of | ||
| 326 | two non-contiguous planes. | ||
| 327 | |||
| 299 | .. _nv12mt: | 328 | .. _nv12mt: |
| 300 | 329 | ||
| 301 | .. kernel-figure:: nv12mt.svg | 330 | .. kernel-figure:: nv12mt.svg |
| @@ -134,7 +134,7 @@ file: media/v4l/v4l2grab.c · 133 unmodified lines | |||
| 134 | tv.tv_usec = 0; | 134 | tv.tv_usec = 0; |
| 135 | 135 | ||
| 136 | r = select(fd + 1, &fds, NULL, NULL, &tv); | 136 | r = select(fd + 1, &fds, NULL, NULL, &tv); |
| 137 | } while ((r == -1 && (errno = EINTR))); | 137 | } while ((r == -1 && (errno == EINTR))); |
| 138 | if (r == -1) { | 138 | if (r == -1) { |
| 139 | perror("select"); | 139 | perror("select"); |
| 140 | return errno; | 140 | return errno; |
| @@ -125,7 +125,7 @@ Applications call the ``VIDIOC_DQBUF`` ioctl to dequeue a filled · 124 unmodified lines | |||
| 125 | queue. They just set the ``type``, ``memory`` and ``reserved`` fields of | 125 | queue. They just set the ``type``, ``memory`` and ``reserved`` fields of |
| 126 | a struct :c:type:`v4l2_buffer` as above, when | 126 | a struct :c:type:`v4l2_buffer` as above, when |
| 127 | ``VIDIOC_DQBUF`` is called with a pointer to this structure the driver | 127 | ``VIDIOC_DQBUF`` is called with a pointer to this structure the driver |
| 128 | fills the remaining fields or returns an error code. The driver may also | 128 | fills all remaining fields or returns an error code. The driver may also |
| 129 | set ``V4L2_BUF_FLAG_ERROR`` in the ``flags`` field. It indicates a | 129 | set ``V4L2_BUF_FLAG_ERROR`` in the ``flags`` field. It indicates a |
| 130 | non-critical (recoverable) streaming error. In such case the application | 130 | non-critical (recoverable) streaming error. In such case the application |
| 131 | may continue as normal, but should be aware that data in the dequeued | 131 | may continue as normal, but should be aware that data in the dequeued |
| @@ -1032,6 +1032,15 @@ S: Maintained · 1031 unmodified lines | |||
| 1032 | F: Documentation/hid/amd-sfh* | 1032 | F: Documentation/hid/amd-sfh* |
| 1033 | F: drivers/hid/amd-sfh-hid/ | 1033 | F: drivers/hid/amd-sfh-hid/ |
| 1034 | 1034 | ||
| 1035 | AMPHION VPU CODEC V4L2 DRIVER | ||
| 1036 | M: Ming Qian <ming.qian@nxp.com> | ||
| 1037 | M: Shijie Qin <shijie.qin@nxp.com> | ||
| 1038 | M: Zhou Peng <eagle.zhou@nxp.com> | ||
| 1039 | L: linux-media@vger.kernel.org | ||
| 1040 | S: Maintained | ||
| 1041 | F: Documentation/devicetree/bindings/media/amphion,vpu.yaml | ||
| 1042 | F: drivers/media/platform/amphion/ | ||
| 1043 | |||
| 1035 | AMS AS73211 DRIVER | 1044 | AMS AS73211 DRIVER |
| 1036 | M: Christian Eggers <ceggers@arri.de> | 1045 | M: Christian Eggers <ceggers@arri.de> |
| 1037 | L: linux-iio@vger.kernel.org | 1046 | L: linux-iio@vger.kernel.org |
| @@ -2615,7 +2624,7 @@ M: Łukasz Stelmach <l.stelmach@samsung.com> · 1577 unmodified lines | |||
| 2615 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) | 2624 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) |
| 2616 | L: linux-media@vger.kernel.org | 2625 | L: linux-media@vger.kernel.org |
| 2617 | S: Maintained | 2626 | S: Maintained |
| 2618 | F: drivers/media/platform/s5p-g2d/ | 2627 | F: drivers/media/platform/samsung/s5p-g2d/ |
| 2619 | 2628 | ||
| 2620 | ARM/SAMSUNG S5P SERIES HDMI CEC SUBSYSTEM SUPPORT | 2629 | ARM/SAMSUNG S5P SERIES HDMI CEC SUBSYSTEM SUPPORT |
| 2621 | M: Marek Szyprowski <m.szyprowski@samsung.com> | 2630 | M: Marek Szyprowski <m.szyprowski@samsung.com> |
| @@ -2632,7 +2641,7 @@ M: Sylwester Nawrocki <s.nawrocki@samsung.com> · 10 unmodified lines | |||
| 2632 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) | 2641 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) |
| 2633 | L: linux-media@vger.kernel.org | 2642 | L: linux-media@vger.kernel.org |
| 2634 | S: Maintained | 2643 | S: Maintained |
| 2635 | F: drivers/media/platform/s5p-jpeg/ | 2644 | F: drivers/media/platform/samsung/s5p-jpeg/ |
| 2636 | 2645 | ||
| 2637 | ARM/SAMSUNG S5P SERIES Multi Format Codec (MFC) SUPPORT | 2646 | ARM/SAMSUNG S5P SERIES Multi Format Codec (MFC) SUPPORT |
| 2638 | M: Marek Szyprowski <m.szyprowski@samsung.com> | 2647 | M: Marek Szyprowski <m.szyprowski@samsung.com> |
| @@ -2640,7 +2649,7 @@ M: Andrzej Hajda <andrzej.hajda@intel.com> · 1 unmodified line | |||
| 2640 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) | 2649 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) |
| 2641 | L: linux-media@vger.kernel.org | 2650 | L: linux-media@vger.kernel.org |
| 2642 | S: Maintained | 2651 | S: Maintained |
| 2643 | F: drivers/media/platform/s5p-mfc/ | 2652 | F: drivers/media/platform/samsung/s5p-mfc/ |
| 2644 | 2653 | ||
| 2645 | ARM/SHMOBILE ARM ARCHITECTURE | 2654 | ARM/SHMOBILE ARM ARCHITECTURE |
| 2646 | M: Geert Uytterhoeven <geert+renesas@glider.be> | 2655 | M: Geert Uytterhoeven <geert+renesas@glider.be> |
| @@ -2709,7 +2718,7 @@ F: drivers/clocksource/clksrc_st_lpc.c · 62 unmodified lines | |||
| 2709 | F: drivers/cpufreq/sti-cpufreq.c | 2718 | F: drivers/cpufreq/sti-cpufreq.c |
| 2710 | F: drivers/dma/st_fdma* | 2719 | F: drivers/dma/st_fdma* |
| 2711 | F: drivers/i2c/busses/i2c-st.c | 2720 | F: drivers/i2c/busses/i2c-st.c |
| 2712 | F: drivers/media/platform/sti/c8sectpfe/ | 2721 | F: drivers/media/platform/st/sti/c8sectpfe/ |
| 2713 | F: drivers/media/rc/st_rc.c | 2722 | F: drivers/media/rc/st_rc.c |
| 2714 | F: drivers/mmc/host/sdhci-st.c | 2723 | F: drivers/mmc/host/sdhci-st.c |
| 2715 | F: drivers/phy/st/phy-miphy28lp.c | 2724 | F: drivers/phy/st/phy-miphy28lp.c |
| @@ -3025,7 +3034,7 @@ L: linux-media@vger.kernel.org · 309 unmodified lines | |||
| 3025 | L: openbmc@lists.ozlabs.org (moderated for non-subscribers) | 3034 | L: openbmc@lists.ozlabs.org (moderated for non-subscribers) |
| 3026 | S: Maintained | 3035 | S: Maintained |
| 3027 | F: Documentation/devicetree/bindings/media/aspeed-video.txt | 3036 | F: Documentation/devicetree/bindings/media/aspeed-video.txt |
| 3028 | F: drivers/media/platform/aspeed-video.c | 3037 | F: drivers/media/platform/aspeed/ |
| 3029 | 3038 | ||
| 3030 | ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS | 3039 | ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS |
| 3031 | M: Corentin Chary <corentin.chary@gmail.com> | 3040 | M: Corentin Chary <corentin.chary@gmail.com> |
| @@ -3387,7 +3396,7 @@ L: linux-media@vger.kernel.org · 355 unmodified lines | |||
| 3387 | S: Supported | 3396 | S: Supported |
| 3388 | W: https://linuxtv.org | 3397 | W: https://linuxtv.org |
| 3389 | T: git git://linuxtv.org/media_tree.git | 3398 | T: git git://linuxtv.org/media_tree.git |
| 3390 | F: drivers/media/platform/sti/bdisp | 3399 | F: drivers/media/platform/st/sti/bdisp |
| 3391 | 3400 | ||
| 3392 | BECKHOFF CX5020 ETHERCAT MASTER DRIVER | 3401 | BECKHOFF CX5020 ETHERCAT MASTER DRIVER |
| 3393 | M: Dariusz Marcinkiewicz <reksio@newterm.pl> | 3402 | M: Dariusz Marcinkiewicz <reksio@newterm.pl> |
| @@ -4252,7 +4261,7 @@ L: linux-media@vger.kernel.org · 858 unmodified lines | |||
| 4252 | S: Orphan | 4261 | S: Orphan |
| 4253 | T: git git://linuxtv.org/media_tree.git | 4262 | T: git git://linuxtv.org/media_tree.git |
| 4254 | F: Documentation/admin-guide/media/cafe_ccic* | 4263 | F: Documentation/admin-guide/media/cafe_ccic* |
| 4255 | F: drivers/media/platform/marvell-ccic/ | 4264 | F: drivers/media/platform/marvell/ |
| 4256 | 4265 | ||
| 4257 | CAIF NETWORK LAYER | 4266 | CAIF NETWORK LAYER |
| 4258 | L: netdev@vger.kernel.org | 4267 | L: netdev@vger.kernel.org |
| @@ -4776,7 +4785,7 @@ M: Philipp Zabel <p.zabel@pengutronix.de> · 517 unmodified lines | |||
| 4776 | L: linux-media@vger.kernel.org | 4785 | L: linux-media@vger.kernel.org |
| 4777 | S: Maintained | 4786 | S: Maintained |
| 4778 | F: Documentation/devicetree/bindings/media/coda.yaml | 4787 | F: Documentation/devicetree/bindings/media/coda.yaml |
| 4779 | F: drivers/media/platform/coda/ | 4788 | F: drivers/media/platform/chips-media/ |
| 4780 | 4789 | ||
| 4781 | CODE OF CONDUCT | 4790 | CODE OF CONDUCT |
| 4782 | M: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 4791 | M: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| @@ -5490,7 +5499,7 @@ L: linux-media@vger.kernel.org · 707 unmodified lines | |||
| 5490 | S: Supported | 5499 | S: Supported |
| 5491 | W: https://linuxtv.org | 5500 | W: https://linuxtv.org |
| 5492 | T: git git://linuxtv.org/media_tree.git | 5501 | T: git git://linuxtv.org/media_tree.git |
| 5493 | F: drivers/media/platform/sti/delta | 5502 | F: drivers/media/platform/st/sti/delta |
| 5494 | 5503 | ||
| 5495 | DELTA AHE-50DC FAN CONTROL MODULE DRIVER | 5504 | DELTA AHE-50DC FAN CONTROL MODULE DRIVER |
| 5496 | M: Zev Weiss <zev@bewilderbeest.net> | 5505 | M: Zev Weiss <zev@bewilderbeest.net> |
| @@ -8886,7 +8895,7 @@ L: linux-media@vger.kernel.org · 3389 unmodified lines | |||
| 8886 | S: Supported | 8895 | S: Supported |
| 8887 | W: https://linuxtv.org | 8896 | W: https://linuxtv.org |
| 8888 | T: git git://linuxtv.org/media_tree.git | 8897 | T: git git://linuxtv.org/media_tree.git |
| 8889 | F: drivers/media/platform/sti/hva | 8898 | F: drivers/media/platform/st/sti/hva |
| 8890 | 8899 | ||
| 8891 | HWPOISON MEMORY FAILURE HANDLING | 8900 | HWPOISON MEMORY FAILURE HANDLING |
| 8892 | M: Naoya Horiguchi <naoya.horiguchi@nec.com> | 8901 | M: Naoya Horiguchi <naoya.horiguchi@nec.com> |
| @@ -8921,6 +8930,12 @@ L: linux-media@vger.kernel.org · 28 unmodified lines | |||
| 8921 | S: Maintained | 8930 | S: Maintained |
| 8922 | F: drivers/media/i2c/hi846.c | 8931 | F: drivers/media/i2c/hi846.c |
| 8923 | 8932 | ||
| 8933 | HYNIX HI847 SENSOR DRIVER | ||
| 8934 | M: Shawn Tu <shawnx.tu@intel.com> | ||
| 8935 | L: linux-media@vger.kernel.org | ||
| 8936 | S: Maintained | ||
| 8937 | F: drivers/media/i2c/hi847.c | ||
| 8938 | |||
| 8924 | Hyper-V/Azure CORE AND DRIVERS | 8939 | Hyper-V/Azure CORE AND DRIVERS |
| 8925 | M: "K. Y. Srinivasan" <kys@microsoft.com> | 8940 | M: "K. Y. Srinivasan" <kys@microsoft.com> |
| 8926 | M: Haiyang Zhang <haiyangz@microsoft.com> | 8941 | M: Haiyang Zhang <haiyangz@microsoft.com> |
| @@ -10035,6 +10050,14 @@ L: linux-iio@vger.kernel.org · 1108 unmodified lines | |||
| 10035 | F: Documentation/devicetree/bindings/counter/interrupt-counter.yaml | 10050 | F: Documentation/devicetree/bindings/counter/interrupt-counter.yaml |
| 10036 | F: drivers/counter/interrupt-cnt.c | 10051 | F: drivers/counter/interrupt-cnt.c |
| 10037 | 10052 | ||
| 10053 | INTERSIL ISL7998X VIDEO DECODER DRIVER | ||
| 10054 | M: Michael Tretter <m.tretter@pengutronix.de> | ||
| 10055 | R: Pengutronix Kernel Team <kernel@pengutronix.de> | ||
| 10056 | L: linux-media@vger.kernel.org | ||
| 10057 | S: Maintained | ||
| 10058 | F: Documentation/devicetree/bindings/media/i2c/isil,isl79987.yaml | ||
| 10059 | F: drivers/media/i2c/isl7998x.c | ||
| 10060 | |||
| 10038 | INVENSENSE ICM-426xx IMU DRIVER | 10061 | INVENSENSE ICM-426xx IMU DRIVER |
| 10039 | M: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | 10062 | M: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> |
| 10040 | L: linux-iio@vger.kernel.org | 10063 | L: linux-iio@vger.kernel.org |
| @@ -10334,7 +10357,7 @@ M: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> · 293 unmodified lines | |||
| 10334 | L: linux-media@vger.kernel.org | 10357 | L: linux-media@vger.kernel.org |
| 10335 | L: linux-renesas-soc@vger.kernel.org | 10358 | L: linux-renesas-soc@vger.kernel.org |
| 10336 | S: Maintained | 10359 | S: Maintained |
| 10337 | F: drivers/media/platform/rcar_jpu.c | 10360 | F: drivers/media/platform/renesas/rcar_jpu.c |
| 10338 | 10361 | ||
| 10339 | JSM Neo PCI based serial card | 10362 | JSM Neo PCI based serial card |
| 10340 | L: linux-serial@vger.kernel.org | 10363 | L: linux-serial@vger.kernel.org |
| @@ -11878,7 +11901,7 @@ M: Philipp Zabel <p.zabel@pengutronix.de> · 1537 unmodified lines | |||
| 11878 | L: linux-media@vger.kernel.org | 11901 | L: linux-media@vger.kernel.org |
| 11879 | S: Maintained | 11902 | S: Maintained |
| 11880 | T: git git://linuxtv.org/media_tree.git | 11903 | T: git git://linuxtv.org/media_tree.git |
| 11881 | F: drivers/media/platform/imx-pxp.[ch] | 11904 | F: drivers/media/platform/nxp/imx-pxp.[ch] |
| 11882 | 11905 | ||
| 11883 | MEDIA DRIVERS FOR ASCOT2E | 11906 | MEDIA DRIVERS FOR ASCOT2E |
| 11884 | M: Sergey Kozlov <serjk@netup.ru> | 11907 | M: Sergey Kozlov <serjk@netup.ru> |
| @@ -11943,10 +11966,10 @@ L: linux-media@vger.kernel.org · 58 unmodified lines | |||
| 11943 | S: Maintained | 11966 | S: Maintained |
| 11944 | T: git git://linuxtv.org/media_tree.git | 11967 | T: git git://linuxtv.org/media_tree.git |
| 11945 | F: Documentation/admin-guide/media/imx7.rst | 11968 | F: Documentation/admin-guide/media/imx7.rst |
| 11969 | F: Documentation/devicetree/bindings/media/nxp,imx-mipi-csi2.yaml | ||
| 11946 | F: Documentation/devicetree/bindings/media/nxp,imx7-csi.yaml | 11970 | F: Documentation/devicetree/bindings/media/nxp,imx7-csi.yaml |
| 11947 | F: Documentation/devicetree/bindings/media/nxp,imx7-mipi-csi2.yaml | 11971 | F: drivers/media/platform/imx/imx-mipi-csis.c |
| 11948 | F: drivers/staging/media/imx/imx7-media-csi.c | 11972 | F: drivers/staging/media/imx/imx7-media-csi.c |
| 11949 | F: drivers/staging/media/imx/imx7-mipi-csis.c | ||
| 11950 | 11973 | ||
| 11951 | MEDIA DRIVERS FOR HELENE | 11974 | MEDIA DRIVERS FOR HELENE |
| 11952 | M: Abylay Ospan <aospan@netup.ru> | 11975 | M: Abylay Ospan <aospan@netup.ru> |
| @@ -12001,7 +12024,7 @@ L: linux-tegra@vger.kernel.org · 48 unmodified lines | |||
| 12001 | S: Maintained | 12024 | S: Maintained |
| 12002 | T: git git://linuxtv.org/media_tree.git | 12025 | T: git git://linuxtv.org/media_tree.git |
| 12003 | F: Documentation/devicetree/bindings/media/nvidia,tegra-vde.txt | 12026 | F: Documentation/devicetree/bindings/media/nvidia,tegra-vde.txt |
| 12004 | F: drivers/staging/media/tegra-vde/ | 12027 | F: drivers/media/platform/nvidia/tegra-vde/ |
| 12005 | 12028 | ||
| 12006 | MEDIA DRIVERS FOR RENESAS - CEU | 12029 | MEDIA DRIVERS FOR RENESAS - CEU |
| 12007 | M: Jacopo Mondi <jacopo@jmondi.org> | 12030 | M: Jacopo Mondi <jacopo@jmondi.org> |
| @@ -12010,7 +12033,7 @@ L: linux-renesas-soc@vger.kernel.org · 2 unmodified lines | |||
| 12010 | S: Supported | 12033 | S: Supported |
| 12011 | T: git git://linuxtv.org/media_tree.git | 12034 | T: git git://linuxtv.org/media_tree.git |
| 12012 | F: Documentation/devicetree/bindings/media/renesas,ceu.yaml | 12035 | F: Documentation/devicetree/bindings/media/renesas,ceu.yaml |
| 12013 | F: drivers/media/platform/renesas-ceu.c | 12036 | F: drivers/media/platform/renesas/renesas-ceu.c |
| 12014 | F: include/media/drv-intf/renesas-ceu.h | 12037 | F: include/media/drv-intf/renesas-ceu.h |
| 12015 | 12038 | ||
| 12016 | MEDIA DRIVERS FOR RENESAS - DRIF | 12039 | MEDIA DRIVERS FOR RENESAS - DRIF |
| @@ -12020,7 +12043,7 @@ L: linux-renesas-soc@vger.kernel.org · 3 unmodified lines | |||
| 12020 | S: Supported | 12043 | S: Supported |
| 12021 | T: git git://linuxtv.org/media_tree.git | 12044 | T: git git://linuxtv.org/media_tree.git |
| 12022 | F: Documentation/devicetree/bindings/media/renesas,drif.yaml | 12045 | F: Documentation/devicetree/bindings/media/renesas,drif.yaml |
| 12023 | F: drivers/media/platform/rcar_drif.c | 12046 | F: drivers/media/platform/renesas/rcar_drif.c |
| 12024 | 12047 | ||
| 12025 | MEDIA DRIVERS FOR RENESAS - FCP | 12048 | MEDIA DRIVERS FOR RENESAS - FCP |
| 12026 | M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 12049 | M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
| @@ -12029,7 +12052,7 @@ L: linux-renesas-soc@vger.kernel.org · 2 unmodified lines | |||
| 12029 | S: Supported | 12052 | S: Supported |
| 12030 | T: git git://linuxtv.org/media_tree.git | 12053 | T: git git://linuxtv.org/media_tree.git |
| 12031 | F: Documentation/devicetree/bindings/media/renesas,fcp.yaml | 12054 | F: Documentation/devicetree/bindings/media/renesas,fcp.yaml |
| 12032 | F: drivers/media/platform/rcar-fcp.c | 12055 | F: drivers/media/platform/renesas/rcar-fcp.c |
| 12033 | F: include/media/rcar-fcp.h | 12056 | F: include/media/rcar-fcp.h |
| 12034 | 12057 | ||
| 12035 | MEDIA DRIVERS FOR RENESAS - FDP1 | 12058 | MEDIA DRIVERS FOR RENESAS - FDP1 |
| @@ -12039,7 +12062,7 @@ L: linux-renesas-soc@vger.kernel.org · 3 unmodified lines | |||
| 12039 | S: Supported | 12062 | S: Supported |
| 12040 | T: git git://linuxtv.org/media_tree.git | 12063 | T: git git://linuxtv.org/media_tree.git |
| 12041 | F: Documentation/devicetree/bindings/media/renesas,fdp1.yaml | 12064 | F: Documentation/devicetree/bindings/media/renesas,fdp1.yaml |
| 12042 | F: drivers/media/platform/rcar_fdp1.c | 12065 | F: drivers/media/platform/renesas/rcar_fdp1.c |
| 12043 | 12066 | ||
| 12044 | MEDIA DRIVERS FOR RENESAS - VIN | 12067 | MEDIA DRIVERS FOR RENESAS - VIN |
| 12045 | M: Niklas Söderlund <niklas.soderlund@ragnatech.se> | 12068 | M: Niklas Söderlund <niklas.soderlund@ragnatech.se> |
| @@ -12050,8 +12073,8 @@ T: git git://linuxtv.org/media_tree.git · 4 unmodified lines | |||
| 12050 | F: Documentation/devicetree/bindings/media/renesas,csi2.yaml | 12073 | F: Documentation/devicetree/bindings/media/renesas,csi2.yaml |
| 12051 | F: Documentation/devicetree/bindings/media/renesas,isp.yaml | 12074 | F: Documentation/devicetree/bindings/media/renesas,isp.yaml |
| 12052 | F: Documentation/devicetree/bindings/media/renesas,vin.yaml | 12075 | F: Documentation/devicetree/bindings/media/renesas,vin.yaml |
| 12053 | F: drivers/media/platform/rcar-isp.c | 12076 | F: drivers/media/platform/renesas/rcar-isp.c |
| 12054 | F: drivers/media/platform/rcar-vin/ | 12077 | F: drivers/media/platform/renesas/rcar-vin/ |
| 12055 | 12078 | ||
| 12056 | MEDIA DRIVERS FOR RENESAS - VSP1 | 12079 | MEDIA DRIVERS FOR RENESAS - VSP1 |
| 12057 | M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 12080 | M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
| @@ -12061,7 +12084,7 @@ L: linux-renesas-soc@vger.kernel.org · 3 unmodified lines | |||
| 12061 | S: Supported | 12084 | S: Supported |
| 12062 | T: git git://linuxtv.org/media_tree.git | 12085 | T: git git://linuxtv.org/media_tree.git |
| 12063 | F: Documentation/devicetree/bindings/media/renesas,vsp1.yaml | 12086 | F: Documentation/devicetree/bindings/media/renesas,vsp1.yaml |
| 12064 | F: drivers/media/platform/vsp1/ | 12087 | F: drivers/media/platform/renesas/vsp1/ |
| 12065 | 12088 | ||
| 12066 | MEDIA DRIVERS FOR ST STV0910 DEMODULATOR ICs | 12089 | MEDIA DRIVERS FOR ST STV0910 DEMODULATOR ICs |
| 12067 | L: linux-media@vger.kernel.org | 12090 | L: linux-media@vger.kernel.org |
| @@ -12083,7 +12106,7 @@ L: linux-media@vger.kernel.org · 15 unmodified lines | |||
| 12083 | S: Supported | 12106 | S: Supported |
| 12084 | T: git git://linuxtv.org/media_tree.git | 12107 | T: git git://linuxtv.org/media_tree.git |
| 12085 | F: Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml | 12108 | F: Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml |
| 12086 | F: drivers/media/platform/stm32/stm32-dcmi.c | 12109 | F: drivers/media/platform/st/stm32/stm32-dcmi.c |
| 12087 | 12110 | ||
| 12088 | MEDIA INPUT INFRASTRUCTURE (V4L/DVB) | 12111 | MEDIA INPUT INFRASTRUCTURE (V4L/DVB) |
| 12089 | M: Mauro Carvalho Chehab <mchehab@kernel.org> | 12112 | M: Mauro Carvalho Chehab <mchehab@kernel.org> |
| @@ -12167,7 +12190,7 @@ M: Rick Chang <rick.chang@mediatek.com> · 77 unmodified lines | |||
| 12167 | M: Bin Liu <bin.liu@mediatek.com> | 12190 | M: Bin Liu <bin.liu@mediatek.com> |
| 12168 | S: Supported | 12191 | S: Supported |
| 12169 | F: Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.txt | 12192 | F: Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.txt |
| 12170 | F: drivers/media/platform/mtk-jpeg/ | 12193 | F: drivers/media/platform/mediatek/jpeg/ |
| 12171 | 12194 | ||
| 12172 | MEDIATEK MDP DRIVER | 12195 | MEDIATEK MDP DRIVER |
| 12173 | M: Minghsiu Tsai <minghsiu.tsai@mediatek.com> | 12196 | M: Minghsiu Tsai <minghsiu.tsai@mediatek.com> |
| @@ -12175,8 +12198,8 @@ M: Houlong Wei <houlong.wei@mediatek.com> · 1 unmodified line | |||
| 12175 | M: Andrew-CT Chen <andrew-ct.chen@mediatek.com> | 12198 | M: Andrew-CT Chen <andrew-ct.chen@mediatek.com> |
| 12176 | S: Supported | 12199 | S: Supported |
| 12177 | F: Documentation/devicetree/bindings/media/mediatek-mdp.txt | 12200 | F: Documentation/devicetree/bindings/media/mediatek-mdp.txt |
| 12178 | F: drivers/media/platform/mtk-mdp/ | 12201 | F: drivers/media/platform/mediatek/mdp/ |
| 12179 | F: drivers/media/platform/mtk-vpu/ | 12202 | F: drivers/media/platform/mediatek/vpu/ |
| 12180 | 12203 | ||
| 12181 | MEDIATEK MEDIA DRIVER | 12204 | MEDIATEK MEDIA DRIVER |
| 12182 | M: Tiffany Lin <tiffany.lin@mediatek.com> | 12205 | M: Tiffany Lin <tiffany.lin@mediatek.com> |
| @@ -12184,8 +12207,8 @@ M: Andrew-CT Chen <andrew-ct.chen@mediatek.com> · 1 unmodified line | |||
| 12184 | S: Supported | 12207 | S: Supported |
| 12185 | F: Documentation/devicetree/bindings/media/mediatek-vcodec.txt | 12208 | F: Documentation/devicetree/bindings/media/mediatek-vcodec.txt |
| 12186 | F: Documentation/devicetree/bindings/media/mediatek-vpu.txt | 12209 | F: Documentation/devicetree/bindings/media/mediatek-vpu.txt |
| 12187 | F: drivers/media/platform/mtk-vcodec/ | 12210 | F: drivers/media/platform/mediatek/vcodec/ |
| 12188 | F: drivers/media/platform/mtk-vpu/ | 12211 | F: drivers/media/platform/mediatek/vpu/ |
| 12189 | 12212 | ||
| 12190 | MEDIATEK MMC/SD/SDIO DRIVER | 12213 | MEDIATEK MMC/SD/SDIO DRIVER |
| 12191 | M: Chaotian Jing <chaotian.jing@mediatek.com> | 12214 | M: Chaotian Jing <chaotian.jing@mediatek.com> |
| @@ -12560,7 +12583,7 @@ L: linux-amlogic@lists.infradead.org · 368 unmodified lines | |||
| 12560 | S: Supported | 12583 | S: Supported |
| 12561 | T: git git://linuxtv.org/media_tree.git | 12584 | T: git git://linuxtv.org/media_tree.git |
| 12562 | F: Documentation/devicetree/bindings/media/amlogic,axg-ge2d.yaml | 12585 | F: Documentation/devicetree/bindings/media/amlogic,axg-ge2d.yaml |
| 12563 | F: drivers/media/platform/meson/ge2d/ | 12586 | F: drivers/media/platform/amlogic/meson-ge2d/ |
| 12564 | 12587 | ||
| 12565 | MESON NAND CONTROLLER DRIVER FOR AMLOGIC SOCS | 12588 | MESON NAND CONTROLLER DRIVER FOR AMLOGIC SOCS |
| 12566 | M: Liang Yang <liang.yang@amlogic.com> | 12589 | M: Liang Yang <liang.yang@amlogic.com> |
| @@ -12642,6 +12665,13 @@ L: alsa-devel@alsa-project.org (moderated for non-subscribers) · 75 unmodified lines | |||
| 12642 | S: Supported | 12665 | S: Supported |
| 12643 | F: sound/soc/atmel | 12666 | F: sound/soc/atmel |
| 12644 | 12667 | ||
| 12668 | MICROCHIP CSI2DC DRIVER | ||
| 12669 | M: Eugen Hristev <eugen.hristev@microchip.com> | ||
| 12670 | L: linux-media@vger.kernel.org | ||
| 12671 | S: Supported | ||
| 12672 | F: Documentation/devicetree/bindings/media/microchip,csi2dc.yaml | ||
| 12673 | F: drivers/media/platform/atmel/microchip-csi2dc.c | ||
| 12674 | |||
| 12645 | MICROCHIP ECC DRIVER | 12675 | MICROCHIP ECC DRIVER |
| 12646 | M: Tudor Ambarus <tudor.ambarus@microchip.com> | 12676 | M: Tudor Ambarus <tudor.ambarus@microchip.com> |
| 12647 | L: linux-crypto@vger.kernel.org | 12677 | L: linux-crypto@vger.kernel.org |
| @@ -12667,11 +12697,8 @@ L: linux-media@vger.kernel.org · 19 unmodified lines | |||
| 12667 | S: Supported | 12697 | S: Supported |
| 12668 | F: Documentation/devicetree/bindings/media/atmel,isc.yaml | 12698 | F: Documentation/devicetree/bindings/media/atmel,isc.yaml |
| 12669 | F: Documentation/devicetree/bindings/media/microchip,xisc.yaml | 12699 | F: Documentation/devicetree/bindings/media/microchip,xisc.yaml |
| 12670 | F: drivers/media/platform/atmel/atmel-isc-base.c | 12700 | F: drivers/media/platform/atmel/atmel-isc* |
| 12671 | F: drivers/media/platform/atmel/atmel-isc-regs.h | 12701 | F: drivers/media/platform/atmel/atmel-sama*-isc* |
| 12672 | F: drivers/media/platform/atmel/atmel-isc.h | ||
| 12673 | F: drivers/media/platform/atmel/atmel-sama5d2-isc.c | ||
| 12674 | F: drivers/media/platform/atmel/atmel-sama7g5-isc.c | ||
| 12675 | F: include/linux/atmel-isc-media.h | 12702 | F: include/linux/atmel-isc-media.h |
| 12676 | 12703 | ||
| 12677 | MICROCHIP ISI DRIVER | 12704 | MICROCHIP ISI DRIVER |
| @@ -14130,7 +14157,7 @@ M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> · 1452 unmodified lines | |||
| 14130 | L: linux-media@vger.kernel.org | 14157 | L: linux-media@vger.kernel.org |
| 14131 | S: Maintained | 14158 | S: Maintained |
| 14132 | F: Documentation/devicetree/bindings/media/ti,omap3isp.txt | 14159 | F: Documentation/devicetree/bindings/media/ti,omap3isp.txt |
| 14133 | F: drivers/media/platform/omap3isp/ | 14160 | F: drivers/media/platform/ti/omap3isp/ |
| 14134 | F: drivers/staging/media/omap4iss/ | 14161 | F: drivers/staging/media/omap4iss/ |
| 14135 | 14162 | ||
| 14136 | OMAP MMC SUPPORT | 14163 | OMAP MMC SUPPORT |
| @@ -14238,6 +14265,12 @@ M: Harald Welte <laforge@gnumonks.org> · 101 unmodified lines | |||
| 14238 | S: Maintained | 14265 | S: Maintained |
| 14239 | F: drivers/char/pcmcia/cm4040_cs.* | 14266 | F: drivers/char/pcmcia/cm4040_cs.* |
| 14240 | 14267 | ||
| 14268 | OMNIVISION OG01A1B SENSOR DRIVER | ||
| 14269 | M: Shawn Tu <shawnx.tu@intel.com> | ||
| 14270 | L: linux-media@vger.kernel.org | ||
| 14271 | S: Maintained | ||
| 14272 | F: drivers/media/i2c/og01a1b.c | ||
| 14273 | |||
| 14241 | OMNIVISION OV02A10 SENSOR DRIVER | 14274 | OMNIVISION OV02A10 SENSOR DRIVER |
| 14242 | M: Dongchun Zhu <dongchun.zhu@mediatek.com> | 14275 | M: Dongchun Zhu <dongchun.zhu@mediatek.com> |
| 14243 | L: linux-media@vger.kernel.org | 14276 | L: linux-media@vger.kernel.org |
| @@ -14246,6 +14279,13 @@ T: git git://linuxtv.org/media_tree.git · 2 unmodified lines | |||
| 14246 | F: Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml | 14279 | F: Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml |
| 14247 | F: drivers/media/i2c/ov02a10.c | 14280 | F: drivers/media/i2c/ov02a10.c |
| 14248 | 14281 | ||
| 14282 | OMNIVISION OV08D10 SENSOR DRIVER | ||
| 14283 | M: Jimmy Su <jimmy.su@intel.com> | ||
| 14284 | L: linux-media@vger.kernel.org | ||
| 14285 | S: Maintained | ||
| 14286 | T: git git://linuxtv.org/media_tree.git | ||
| 14287 | F: drivers/media/i2c/ov08d10.c | ||
| 14288 | |||
| 14249 | OMNIVISION OV13858 SENSOR DRIVER | 14289 | OMNIVISION OV13858 SENSOR DRIVER |
| 14250 | M: Sakari Ailus <sakari.ailus@linux.intel.com> | 14290 | M: Sakari Ailus <sakari.ailus@linux.intel.com> |
| 14251 | L: linux-media@vger.kernel.org | 14291 | L: linux-media@vger.kernel.org |
| @@ -16680,8 +16720,7 @@ F: Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml · 2428 unmodified lines | |||
| 16680 | F: sound/soc/rockchip/rockchip_i2s_tdm.* | 16720 | F: sound/soc/rockchip/rockchip_i2s_tdm.* |
| 16681 | 16721 | ||
| 16682 | ROCKCHIP ISP V1 DRIVER | 16722 | ROCKCHIP ISP V1 DRIVER |
| 16683 | M: Helen Koike <helen.koike@collabora.com> | 16723 | M: Dafna Hirschfeld <dafna@fastmail.com> |
| 16684 | M: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> | ||
| 16685 | L: linux-media@vger.kernel.org | 16724 | L: linux-media@vger.kernel.org |
| 16686 | L: linux-rockchip@lists.infradead.org | 16725 | L: linux-rockchip@lists.infradead.org |
| 16687 | S: Maintained | 16726 | S: Maintained |
| @@ -17100,7 +17139,7 @@ M: Sylwester Nawrocki <sylvester.nawrocki@gmail.com> · 412 unmodified lines | |||
| 17100 | L: linux-media@vger.kernel.org | 17139 | L: linux-media@vger.kernel.org |
| 17101 | L: linux-samsung-soc@vger.kernel.org | 17140 | L: linux-samsung-soc@vger.kernel.org |
| 17102 | S: Maintained | 17141 | S: Maintained |
| 17103 | F: drivers/media/platform/s3c-camif/ | 17142 | F: drivers/media/platform/samsung/s3c-camif/ |
| 17104 | F: include/media/drv-intf/s3c_camif.h | 17143 | F: include/media/drv-intf/s3c_camif.h |
| 17105 | 17144 | ||
| 17106 | SAMSUNG S3FWRN5 NFC DRIVER | 17145 | SAMSUNG S3FWRN5 NFC DRIVER |
| @@ -17140,7 +17179,7 @@ M: Sylwester Nawrocki <s.nawrocki@samsung.com> · 33 unmodified lines | |||
| 17140 | L: linux-media@vger.kernel.org | 17179 | L: linux-media@vger.kernel.org |
| 17141 | S: Supported | 17180 | S: Supported |
| 17142 | Q: https://patchwork.linuxtv.org/project/linux-media/list/ | 17181 | Q: https://patchwork.linuxtv.org/project/linux-media/list/ |
| 17143 | F: drivers/media/platform/exynos4-is/ | 17182 | F: drivers/media/platform/samsung/exynos4-is/ |
| 17144 | 17183 | ||
| 17145 | SAMSUNG SOC CLOCK DRIVERS | 17184 | SAMSUNG SOC CLOCK DRIVERS |
| 17146 | M: Sylwester Nawrocki <s.nawrocki@samsung.com> | 17185 | M: Sylwester Nawrocki <s.nawrocki@samsung.com> |
| @@ -17575,7 +17614,7 @@ F: include/media/i2c/rj54n1cb0c.h · 428 unmodified lines | |||
| 17575 | SH_VOU V4L2 OUTPUT DRIVER | 17614 | SH_VOU V4L2 OUTPUT DRIVER |
| 17576 | L: linux-media@vger.kernel.org | 17615 | L: linux-media@vger.kernel.org |
| 17577 | S: Orphan | 17616 | S: Orphan |
| 17578 | F: drivers/media/platform/sh_vou.c | 17617 | F: drivers/media/platform/renesas/sh_vou.c |
| 17579 | F: include/media/drv-intf/sh_vou.h | 17618 | F: include/media/drv-intf/sh_vou.h |
| 17580 | 17619 | ||
| 17581 | SI2157 MEDIA DRIVER | 17620 | SI2157 MEDIA DRIVER |
| @@ -18347,7 +18386,8 @@ F: Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml · 765 unmodified lines | |||
| 18347 | F: drivers/iio/imu/st_lsm6dsx/ | 18386 | F: drivers/iio/imu/st_lsm6dsx/ |
| 18348 | 18387 | ||
| 18349 | ST MIPID02 CSI-2 TO PARALLEL BRIDGE DRIVER | 18388 | ST MIPID02 CSI-2 TO PARALLEL BRIDGE DRIVER |
| 18350 | M: Mickael Guene <mickael.guene@st.com> | 18389 | M: Benjamin Mugnier <benjamin.mugnier@foss.st.com> |
| 18390 | M: Sylvain Petinot <sylvain.petinot@foss.st.com> | ||
| 18351 | L: linux-media@vger.kernel.org | 18391 | L: linux-media@vger.kernel.org |
| 18352 | S: Maintained | 18392 | S: Maintained |
| 18353 | T: git git://linuxtv.org/media_tree.git | 18393 | T: git git://linuxtv.org/media_tree.git |
| @@ -19324,7 +19364,7 @@ S: Maintained · 970 unmodified lines | |||
| 19324 | W: https://linuxtv.org | 19364 | W: https://linuxtv.org |
| 19325 | Q: http://patchwork.linuxtv.org/project/linux-media/list/ | 19365 | Q: http://patchwork.linuxtv.org/project/linux-media/list/ |
| 19326 | T: git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git | 19366 | T: git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git |
| 19327 | F: drivers/media/platform/am437x/ | 19367 | F: drivers/media/platform/ti/am437x/ |
| 19328 | 19368 | ||
| 19329 | TI BANDGAP AND THERMAL DRIVER | 19369 | TI BANDGAP AND THERMAL DRIVER |
| 19330 | M: Eduardo Valentin <edubezval@gmail.com> | 19370 | M: Eduardo Valentin <edubezval@gmail.com> |
| @@ -19383,7 +19423,7 @@ S: Maintained · 52 unmodified lines | |||
| 19383 | W: https://linuxtv.org | 19423 | W: https://linuxtv.org |
| 19384 | Q: http://patchwork.linuxtv.org/project/linux-media/list/ | 19424 | Q: http://patchwork.linuxtv.org/project/linux-media/list/ |
| 19385 | T: git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git | 19425 | T: git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git |
| 19386 | F: drivers/media/platform/davinci/ | 19426 | F: drivers/media/platform/ti/davinci/ |
| 19387 | F: include/media/davinci/ | 19427 | F: include/media/davinci/ |
| 19388 | 19428 | ||
| 19389 | TI ENHANCED QUADRATURE ENCODER PULSE (eQEP) DRIVER | 19429 | TI ENHANCED QUADRATURE ENCODER PULSE (eQEP) DRIVER |
| @@ -19469,7 +19509,8 @@ W: http://linuxtv.org/ · 79 unmodified lines | |||
| 19469 | Q: http://patchwork.linuxtv.org/project/linux-media/list/ | 19509 | Q: http://patchwork.linuxtv.org/project/linux-media/list/ |
| 19470 | F: Documentation/devicetree/bindings/media/ti,cal.yaml | 19510 | F: Documentation/devicetree/bindings/media/ti,cal.yaml |
| 19471 | F: Documentation/devicetree/bindings/media/ti,vpe.yaml | 19511 | F: Documentation/devicetree/bindings/media/ti,vpe.yaml |
| 19472 | F: drivers/media/platform/ti-vpe/ | 19512 | F: drivers/media/platform/ti/cal/ |
| 19513 | F: drivers/media/platform/ti/vpe/ | ||
| 19473 | 19514 | ||
| 19474 | TI WILINK WIRELESS DRIVERS | 19515 | TI WILINK WIRELESS DRIVERS |
| 19475 | L: linux-wireless@vger.kernel.org | 19516 | L: linux-wireless@vger.kernel.org |
| @@ -20442,8 +20483,8 @@ F: drivers/media/common/videobuf2/* · 966 unmodified lines | |||
| 20442 | F: include/media/videobuf2-* | 20483 | F: include/media/videobuf2-* |
| 20443 | 20484 | ||
| 20444 | VIMC VIRTUAL MEDIA CONTROLLER DRIVER | 20485 | VIMC VIRTUAL MEDIA CONTROLLER DRIVER |
| 20445 | M: Helen Koike <helen.koike@collabora.com> | 20486 | M: Shuah Khan <skhan@linuxfoundation.org> |
| 20446 | R: Shuah Khan <skhan@linuxfoundation.org> | 20487 | R: Kieran Bingham <kieran.bingham@ideasonboard.com> |
| 20447 | L: linux-media@vger.kernel.org | 20488 | L: linux-media@vger.kernel.org |
| 20448 | S: Maintained | 20489 | S: Maintained |
| 20449 | W: https://linuxtv.org | 20490 | W: https://linuxtv.org |
| @@ -21132,7 +21173,7 @@ L: linux-media@vger.kernel.org · 682 unmodified lines | |||
| 21132 | S: Maintained | 21173 | S: Maintained |
| 21133 | W: https://linuxtv.org | 21174 | W: https://linuxtv.org |
| 21134 | T: git git://linuxtv.org/media_tree.git | 21175 | T: git git://linuxtv.org/media_tree.git |
| 21135 | F: drivers/media/tuners/tuner-xc2028.* | 21176 | F: drivers/media/tuners/xc2028.* |
| 21136 | 21177 | ||
| 21137 | XDP (eXpress Data Path) | 21178 | XDP (eXpress Data Path) |
| 21138 | M: Alexei Starovoitov <ast@kernel.org> | 21179 | M: Alexei Starovoitov <ast@kernel.org> |
| @@ -11,6 +11,7 @@ · 10 unmodified lines | |||
| 11 | #include <linux/of_device.h> | 11 | #include <linux/of_device.h> |
| 12 | #include <linux/of_irq.h> | 12 | #include <linux/of_irq.h> |
| 13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
| 14 | #include <linux/pm_runtime.h> | ||
| 14 | #include <linux/soc/mediatek/mtk-cmdq.h> | 15 | #include <linux/soc/mediatek/mtk-cmdq.h> |
| 15 | 16 | ||
| 16 | #include "mtk_disp_drv.h" | 17 | #include "mtk_disp_drv.h" |
| @@ -414,9 +415,13 @@ static int mtk_disp_ovl_probe(struct platform_device *pdev) · 397 unmodified lines | |||
| 414 | return ret; | 415 | return ret; |
| 415 | } | 416 | } |
| 416 | 417 | ||
| 418 | pm_runtime_enable(dev); | ||
| 419 | |||
| 417 | ret = component_add(dev, &mtk_disp_ovl_component_ops); | 420 | ret = component_add(dev, &mtk_disp_ovl_component_ops); |
| 418 | if (ret) | 421 | if (ret) { |
| 422 | pm_runtime_disable(dev); | ||
| 419 | dev_err(dev, "Failed to add component: %d\n", ret); | 423 | dev_err(dev, "Failed to add component: %d\n", ret); |
| 424 | } | ||
| 420 | 425 | ||
| 421 | return ret; | 426 | return ret; |
| 422 | } | 427 | } |
| @@ -424,6 +429,7 @@ static int mtk_disp_ovl_probe(struct platform_device *pdev) · 1 unmodified line | |||
| 424 | static int mtk_disp_ovl_remove(struct platform_device *pdev) | 429 | static int mtk_disp_ovl_remove(struct platform_device *pdev) |
| 425 | { | 430 | { |
| 426 | component_del(&pdev->dev, &mtk_disp_ovl_component_ops); | 431 | component_del(&pdev->dev, &mtk_disp_ovl_component_ops); |
| 432 | pm_runtime_disable(&pdev->dev); | ||
| 427 | 433 | ||
| 428 | return 0; | 434 | return 0; |
| 429 | } | 435 | } |
| @@ -9,6 +9,7 @@ · 8 unmodified lines | |||
| 9 | #include <linux/of_device.h> | 9 | #include <linux/of_device.h> |
| 10 | #include <linux/of_irq.h> | 10 | #include <linux/of_irq.h> |
| 11 | #include <linux/platform_device.h> | 11 | #include <linux/platform_device.h> |
| 12 | #include <linux/pm_runtime.h> | ||
| 12 | #include <linux/soc/mediatek/mtk-cmdq.h> | 13 | #include <linux/soc/mediatek/mtk-cmdq.h> |
| 13 | 14 | ||
| 14 | #include "mtk_disp_drv.h" | 15 | #include "mtk_disp_drv.h" |
| @@ -327,9 +328,13 @@ static int mtk_disp_rdma_probe(struct platform_device *pdev) · 312 unmodified lines | |||
| 327 | 328 | ||
| 328 | platform_set_drvdata(pdev, priv); | 329 | platform_set_drvdata(pdev, priv); |
| 329 | 330 | ||
| 331 | pm_runtime_enable(dev); | ||
| 332 | |||
| 330 | ret = component_add(dev, &mtk_disp_rdma_component_ops); | 333 | ret = component_add(dev, &mtk_disp_rdma_component_ops); |
| 331 | if (ret) | 334 | if (ret) { |
| 335 | pm_runtime_disable(dev); | ||
| 332 | dev_err(dev, "Failed to add component: %d\n", ret); | 336 | dev_err(dev, "Failed to add component: %d\n", ret); |
| 337 | } | ||
| 333 | 338 | ||
| 334 | return ret; | 339 | return ret; |
| 335 | } | 340 | } |
| @@ -338,6 +343,8 @@ static int mtk_disp_rdma_remove(struct platform_device *pdev) · 2 unmodified lines | |||
| 338 | { | 343 | { |
| 339 | component_del(&pdev->dev, &mtk_disp_rdma_component_ops); | 344 | component_del(&pdev->dev, &mtk_disp_rdma_component_ops); |
| 340 | 345 | ||
| 346 | pm_runtime_disable(&pdev->dev); | ||
| 347 | |||
| 341 | return 0; | 348 | return 0; |
| 342 | } | 349 | } |
| 343 | 350 | ||
| @@ -12,7 +12,6 @@ · 11 unmodified lines | |||
| 12 | #include <linux/soc/mediatek/mtk-mutex.h> | 12 | #include <linux/soc/mediatek/mtk-mutex.h> |
| 13 | 13 | ||
| 14 | #include <asm/barrier.h> | 14 | #include <asm/barrier.h> |
| 15 | #include <soc/mediatek/smi.h> | ||
| 16 | 15 | ||
| 17 | #include <drm/drm_atomic.h> | 16 | #include <drm/drm_atomic.h> |
| 18 | #include <drm/drm_atomic_helper.h> | 17 | #include <drm/drm_atomic_helper.h> |
| @@ -661,15 +660,15 @@ static void mtk_drm_crtc_atomic_enable(struct drm_crtc *crtc, · 642 unmodified lines | |||
| 661 | 660 | ||
| 662 | DRM_DEBUG_DRIVER("%s %d\n", __func__, crtc->base.id); | 661 | DRM_DEBUG_DRIVER("%s %d\n", __func__, crtc->base.id); |
| 663 | 662 | ||
| 664 | ret = mtk_smi_larb_get(comp->larb_dev); | 663 | ret = pm_runtime_resume_and_get(comp->dev); |
| 665 | if (ret) { | 664 | if (ret < 0) { |
| 666 | DRM_ERROR("Failed to get larb: %d\n", ret); | 665 | DRM_DEV_ERROR(comp->dev, "Failed to enable power domain: %d\n", ret); |
| 667 | return; | 666 | return; |
| 668 | } | 667 | } |
| 669 | 668 | ||
| 670 | ret = mtk_crtc_ddp_hw_init(mtk_crtc); | 669 | ret = mtk_crtc_ddp_hw_init(mtk_crtc); |
| 671 | if (ret) { | 670 | if (ret) { |
| 672 | mtk_smi_larb_put(comp->larb_dev); | 671 | pm_runtime_put(comp->dev); |
| 673 | return; | 672 | return; |
| 674 | } | 673 | } |
| 675 | 674 | ||
| @@ -682,7 +681,7 @@ static void mtk_drm_crtc_atomic_disable(struct drm_crtc *crtc, · 6 unmodified lines | |||
| 682 | { | 681 | { |
| 683 | struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc); | 682 | struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc); |
| 684 | struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; | 683 | struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; |
| 685 | int i; | 684 | int i, ret; |
| 686 | 685 | ||
| 687 | DRM_DEBUG_DRIVER("%s %d\n", __func__, crtc->base.id); | 686 | DRM_DEBUG_DRIVER("%s %d\n", __func__, crtc->base.id); |
| 688 | if (!mtk_crtc->enabled) | 687 | if (!mtk_crtc->enabled) |
| @@ -705,7 +704,9 @@ static void mtk_drm_crtc_atomic_disable(struct drm_crtc *crtc, · 16 unmodified lines | |||
| 705 | 704 | ||
| 706 | drm_crtc_vblank_off(crtc); | 705 | drm_crtc_vblank_off(crtc); |
| 707 | mtk_crtc_ddp_hw_fini(mtk_crtc); | 706 | mtk_crtc_ddp_hw_fini(mtk_crtc); |
| 708 | mtk_smi_larb_put(comp->larb_dev); | 707 | ret = pm_runtime_put(comp->dev); |
| 708 | if (ret < 0) | ||
| 709 | DRM_DEV_ERROR(comp->dev, "Failed to disable power domain: %d\n", ret); | ||
| 709 | 710 | ||
| 710 | mtk_crtc->enabled = false; | 711 | mtk_crtc->enabled = false; |
| 711 | } | 712 | } |
| @@ -447,37 +447,15 @@ unsigned int mtk_drm_find_possible_crtc_by_comp(struct drm_device *drm, · 446 unmodified lines | |||
| 447 | return ret; | 447 | return ret; |
| 448 | } | 448 | } |
| 449 | 449 | ||
| 450 | static int mtk_ddp_get_larb_dev(struct device_node *node, struct mtk_ddp_comp *comp, | ||
| 451 | struct device *dev) | ||
| 452 | { | ||
| 453 | struct device_node *larb_node; | ||
| 454 | struct platform_device *larb_pdev; | ||
| 455 | |||
| 456 | larb_node = of_parse_phandle(node, "mediatek,larb", 0); | ||
| 457 | if (!larb_node) { | ||
| 458 | dev_err(dev, "Missing mediadek,larb phandle in %pOF node\n", node); | ||
| 459 | return -EINVAL; | ||
| 460 | } | ||
| 461 | |||
| 462 | larb_pdev = of_find_device_by_node(larb_node); | ||
| 463 | if (!larb_pdev) { | ||
| 464 | dev_warn(dev, "Waiting for larb device %pOF\n", larb_node); | ||
| 465 | of_node_put(larb_node); | ||
| 466 | return -EPROBE_DEFER; | ||
| 467 | } | ||
| 468 | of_node_put(larb_node); | ||
| 469 | comp->larb_dev = &larb_pdev->dev; | ||
| 470 | |||
| 471 | return 0; | ||
| 472 | } | ||
| 473 | |||
| 474 | int mtk_ddp_comp_init(struct device_node *node, struct mtk_ddp_comp *comp, | 450 | int mtk_ddp_comp_init(struct device_node *node, struct mtk_ddp_comp *comp, |
| 475 | enum mtk_ddp_comp_id comp_id) | 451 | enum mtk_ddp_comp_id comp_id) |
| 476 | { | 452 | { |
| 477 | struct platform_device *comp_pdev; | 453 | struct platform_device *comp_pdev; |
| 478 | enum mtk_ddp_comp_type type; | 454 | enum mtk_ddp_comp_type type; |
| 479 | struct mtk_ddp_comp_dev *priv; | 455 | struct mtk_ddp_comp_dev *priv; |
| 456 | #if IS_REACHABLE(CONFIG_MTK_CMDQ) | ||
| 480 | int ret; | 457 | int ret; |
| 458 | #endif | ||
| 481 | 459 | ||
| 482 | if (comp_id < 0 || comp_id >= DDP_COMPONENT_ID_MAX) | 460 | if (comp_id < 0 || comp_id >= DDP_COMPONENT_ID_MAX) |
| 483 | return -EINVAL; | 461 | return -EINVAL; |
| @@ -493,16 +471,6 @@ int mtk_ddp_comp_init(struct device_node *node, struct mtk_ddp_comp *comp, · 9 unmodified lines | |||
| 493 | } | 471 | } |
| 494 | comp->dev = &comp_pdev->dev; | 472 | comp->dev = &comp_pdev->dev; |
| 495 | 473 | ||
| 496 | /* Only DMA capable components need the LARB property */ | ||
| 497 | if (type == MTK_DISP_OVL || | ||
| 498 | type == MTK_DISP_OVL_2L || | ||
| 499 | type == MTK_DISP_RDMA || | ||
| 500 | type == MTK_DISP_WDMA) { | ||
| 501 | ret = mtk_ddp_get_larb_dev(node, comp, comp->dev); | ||
| 502 | if (ret) | ||
| 503 | return ret; | ||
| 504 | } | ||
| 505 | |||
| 506 | if (type == MTK_DISP_AAL || | 474 | if (type == MTK_DISP_AAL || |
| 507 | type == MTK_DISP_BLS || | 475 | type == MTK_DISP_BLS || |
| 508 | type == MTK_DISP_CCORR || | 476 | type == MTK_DISP_CCORR || |
| @@ -71,7 +71,6 @@ struct mtk_ddp_comp_funcs { · 70 unmodified lines | |||
| 71 | struct mtk_ddp_comp { | 71 | struct mtk_ddp_comp { |
| 72 | struct device *dev; | 72 | struct device *dev; |
| 73 | int irq; | 73 | int irq; |
| 74 | struct device *larb_dev; | ||
| 75 | enum mtk_ddp_comp_id id; | 74 | enum mtk_ddp_comp_id id; |
| 76 | const struct mtk_ddp_comp_funcs *funcs; | 75 | const struct mtk_ddp_comp_funcs *funcs; |
| 77 | }; | 76 | }; |
| @@ -645,11 +645,8 @@ err_pm: · 644 unmodified lines | |||
| 645 | pm_runtime_disable(dev); | 645 | pm_runtime_disable(dev); |
| 646 | err_node: | 646 | err_node: |
| 647 | of_node_put(private->mutex_node); | 647 | of_node_put(private->mutex_node); |
| 648 | for (i = 0; i < DDP_COMPONENT_ID_MAX; i++) { | 648 | for (i = 0; i < DDP_COMPONENT_ID_MAX; i++) |
| 649 | of_node_put(private->comp_node[i]); | 649 | of_node_put(private->comp_node[i]); |
| 650 | if (private->ddp_comp[i].larb_dev) | ||
| 651 | put_device(private->ddp_comp[i].larb_dev); | ||
| 652 | } | ||
| 653 | return ret; | 650 | return ret; |
| 654 | } | 651 | } |
| 655 | 652 | ||
| @@ -357,11 +357,11 @@ static int fill_csi_bus_cfg(struct ipu_csi_bus_config *csicfg, · 356 unmodified lines | |||
| 357 | switch (mbus_cfg->type) { | 357 | switch (mbus_cfg->type) { |
| 358 | case V4L2_MBUS_PARALLEL: | 358 | case V4L2_MBUS_PARALLEL: |
| 359 | csicfg->ext_vsync = 1; | 359 | csicfg->ext_vsync = 1; |
| 360 | csicfg->vsync_pol = (mbus_cfg->flags & | 360 | csicfg->vsync_pol = (mbus_cfg->bus.parallel.flags & |
| 361 | V4L2_MBUS_VSYNC_ACTIVE_LOW) ? 1 : 0; | 361 | V4L2_MBUS_VSYNC_ACTIVE_LOW) ? 1 : 0; |
| 362 | csicfg->hsync_pol = (mbus_cfg->flags & | 362 | csicfg->hsync_pol = (mbus_cfg->bus.parallel.flags & |
| 363 | V4L2_MBUS_HSYNC_ACTIVE_LOW) ? 1 : 0; | 363 | V4L2_MBUS_HSYNC_ACTIVE_LOW) ? 1 : 0; |
| 364 | csicfg->pixclk_pol = (mbus_cfg->flags & | 364 | csicfg->pixclk_pol = (mbus_cfg->bus.parallel.flags & |
| 365 | V4L2_MBUS_PCLK_SAMPLE_FALLING) ? 1 : 0; | 365 | V4L2_MBUS_PCLK_SAMPLE_FALLING) ? 1 : 0; |
| 366 | csicfg->clk_mode = IPU_CSI_CLK_MODE_GATED_CLK; | 366 | csicfg->clk_mode = IPU_CSI_CLK_MODE_GATED_CLK; |
| 367 | break; | 367 | break; |
| @@ -110,7 +110,7 @@ config RMI4_F3A · 109 unmodified lines | |||
| 110 | 110 | ||
| 111 | config RMI4_F54 | 111 | config RMI4_F54 |
| 112 | bool "RMI4 Function 54 (Analog diagnostics)" | 112 | bool "RMI4 Function 54 (Analog diagnostics)" |
| 113 | depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m) | 113 | depends on VIDEO_DEV=y || (RMI4_CORE=m && VIDEO_DEV=m) |
| 114 | select VIDEOBUF2_VMALLOC | 114 | select VIDEOBUF2_VMALLOC |
| 115 | select RMI4_F55 | 115 | select RMI4_F55 |
| 116 | help | 116 | help |
| @@ -131,7 +131,7 @@ config TOUCHSCREEN_ATMEL_MXT · 130 unmodified lines | |||
| 131 | config TOUCHSCREEN_ATMEL_MXT_T37 | 131 | config TOUCHSCREEN_ATMEL_MXT_T37 |
| 132 | bool "Support T37 Diagnostic Data" | 132 | bool "Support T37 Diagnostic Data" |
| 133 | depends on TOUCHSCREEN_ATMEL_MXT | 133 | depends on TOUCHSCREEN_ATMEL_MXT |
| 134 | depends on VIDEO_V4L2=y || (TOUCHSCREEN_ATMEL_MXT=m && VIDEO_V4L2=m) | 134 | depends on VIDEO_DEV=y || (TOUCHSCREEN_ATMEL_MXT=m && VIDEO_DEV=m) |
| 135 | select VIDEOBUF2_VMALLOC | 135 | select VIDEOBUF2_VMALLOC |
| 136 | help | 136 | help |
| 137 | Say Y here if you want support to output data from the T37 | 137 | Say Y here if you want support to output data from the T37 |
| @@ -1252,7 +1252,7 @@ config TOUCHSCREEN_SUN4I · 1114 unmodified lines | |||
| 1252 | config TOUCHSCREEN_SUR40 | 1252 | config TOUCHSCREEN_SUR40 |
| 1253 | tristate "Samsung SUR40 (Surface 2.0/PixelSense) touchscreen" | 1253 | tristate "Samsung SUR40 (Surface 2.0/PixelSense) touchscreen" |
| 1254 | depends on USB && MEDIA_USB_SUPPORT && HAS_DMA | 1254 | depends on USB && MEDIA_USB_SUPPORT && HAS_DMA |
| 1255 | depends on VIDEO_V4L2 | 1255 | depends on VIDEO_DEV |
| 1256 | select VIDEOBUF2_DMA_SG | 1256 | select VIDEOBUF2_DMA_SG |
| 1257 | help | 1257 | help |
| 1258 | Say Y here if you want support for the Samsung SUR40 touchscreen | 1258 | Say Y here if you want support for the Samsung SUR40 touchscreen |
| @@ -562,22 +562,52 @@ static struct iommu_device *mtk_iommu_probe_device(struct device *dev) · 561 unmodified lines | |||
| 562 | { | 562 | { |
| 563 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 563 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 564 | struct mtk_iommu_data *data; | 564 | struct mtk_iommu_data *data; |
| 565 | struct device_link *link; | ||
| 566 | struct device *larbdev; | ||
| 567 | unsigned int larbid, larbidx, i; | ||
| 565 | 568 | ||
| 566 | if (!fwspec || fwspec->ops != &mtk_iommu_ops) | 569 | if (!fwspec || fwspec->ops != &mtk_iommu_ops) |
| 567 | return ERR_PTR(-ENODEV); /* Not a iommu client device */ | 570 | return ERR_PTR(-ENODEV); /* Not a iommu client device */ |
| 568 | 571 | ||
| 569 | data = dev_iommu_priv_get(dev); | 572 | data = dev_iommu_priv_get(dev); |
| 570 | 573 | ||
| 574 | /* | ||
| 575 | * Link the consumer device with the smi-larb device(supplier). | ||
| 576 | * The device that connects with each a larb is a independent HW. | ||
| 577 | * All the ports in each a device should be in the same larbs. | ||
| 578 | */ | ||
| 579 | larbid = MTK_M4U_TO_LARB(fwspec->ids[0]); | ||
| 580 | for (i = 1; i < fwspec->num_ids; i++) { | ||
| 581 | larbidx = MTK_M4U_TO_LARB(fwspec->ids[i]); | ||
| 582 | if (larbid != larbidx) { | ||
| 583 | dev_err(dev, "Can only use one larb. Fail@larb%d-%d.\n", | ||
| 584 | larbid, larbidx); | ||
| 585 | return ERR_PTR(-EINVAL); | ||
| 586 | } | ||
| 587 | } | ||
| 588 | larbdev = data->larb_imu[larbid].dev; | ||
| 589 | link = device_link_add(dev, larbdev, | ||
| 590 | DL_FLAG_PM_RUNTIME | DL_FLAG_STATELESS); | ||
| 591 | if (!link) | ||
| 592 | dev_err(dev, "Unable to link %s\n", dev_name(larbdev)); | ||
| 571 | return &data->iommu; | 593 | return &data->iommu; |
| 572 | } | 594 | } |
| 573 | 595 | ||
| 574 | static void mtk_iommu_release_device(struct device *dev) | 596 | static void mtk_iommu_release_device(struct device *dev) |
| 575 | { | 597 | { |
| 576 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 598 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 599 | struct mtk_iommu_data *data; | ||
| 600 | struct device *larbdev; | ||
| 601 | unsigned int larbid; | ||
| 577 | 602 | ||
| 578 | if (!fwspec || fwspec->ops != &mtk_iommu_ops) | 603 | if (!fwspec || fwspec->ops != &mtk_iommu_ops) |
| 579 | return; | 604 | return; |
| 580 | 605 | ||
| 606 | data = dev_iommu_priv_get(dev); | ||
| 607 | larbid = MTK_M4U_TO_LARB(fwspec->ids[0]); | ||
| 608 | larbdev = data->larb_imu[larbid].dev; | ||
| 609 | device_link_remove(dev, larbdev); | ||
| 610 | |||
| 581 | iommu_fwspec_free(dev); | 611 | iommu_fwspec_free(dev); |
| 582 | } | 612 | } |
| 583 | 613 | ||
| @@ -847,6 +877,10 @@ static int mtk_iommu_probe(struct platform_device *pdev) · 263 unmodified lines | |||
| 847 | 877 | ||
| 848 | plarbdev = of_find_device_by_node(larbnode); | 878 | plarbdev = of_find_device_by_node(larbnode); |
| 849 | if (!plarbdev) { | 879 | if (!plarbdev) { |
| 880 | of_node_put(larbnode); | ||
| 881 | return -ENODEV; | ||
| 882 | } | ||
| 883 | if (!plarbdev->dev.driver) { | ||
| 850 | of_node_put(larbnode); | 884 | of_node_put(larbnode); |
| 851 | return -EPROBE_DEFER; | 885 | return -EPROBE_DEFER; |
| 852 | } | 886 | } |
| @@ -423,7 +423,18 @@ static struct iommu_device *mtk_iommu_probe_device(struct device *dev) · 422 unmodified lines | |||
| 423 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 423 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 424 | struct of_phandle_args iommu_spec; | 424 | struct of_phandle_args iommu_spec; |
| 425 | struct mtk_iommu_data *data; | 425 | struct mtk_iommu_data *data; |
| 426 | int err, idx = 0; | 426 | int err, idx = 0, larbid, larbidx; |
| 427 | struct device_link *link; | ||
| 428 | struct device *larbdev; | ||
| 429 | |||
| 430 | /* | ||
| 431 | * In the deferred case, free the existed fwspec. | ||
| 432 | * Always initialize the fwspec internally. | ||
| 433 | */ | ||
| 434 | if (fwspec) { | ||
| 435 | iommu_fwspec_free(dev); | ||
| 436 | fwspec = dev_iommu_fwspec_get(dev); | ||
| 437 | } | ||
| 427 | 438 | ||
| 428 | while (!of_parse_phandle_with_args(dev->of_node, "iommus", | 439 | while (!of_parse_phandle_with_args(dev->of_node, "iommus", |
| 429 | "#iommu-cells", | 440 | "#iommu-cells", |
| @@ -444,6 +455,23 @@ static struct iommu_device *mtk_iommu_probe_device(struct device *dev) · 14 unmodified lines | |||
| 444 | 455 | ||
| 445 | data = dev_iommu_priv_get(dev); | 456 | data = dev_iommu_priv_get(dev); |
| 446 | 457 | ||
| 458 | /* Link the consumer device with the smi-larb device(supplier) */ | ||
| 459 | larbid = mt2701_m4u_to_larb(fwspec->ids[0]); | ||
| 460 | for (idx = 1; idx < fwspec->num_ids; idx++) { | ||
| 461 | larbidx = mt2701_m4u_to_larb(fwspec->ids[idx]); | ||
| 462 | if (larbid != larbidx) { | ||
| 463 | dev_err(dev, "Can only use one larb. Fail@larb%d-%d.\n", | ||
| 464 | larbid, larbidx); | ||
| 465 | return ERR_PTR(-EINVAL); | ||
| 466 | } | ||
| 467 | } | ||
| 468 | |||
| 469 | larbdev = data->larb_imu[larbid].dev; | ||
| 470 | link = device_link_add(dev, larbdev, | ||
| 471 | DL_FLAG_PM_RUNTIME | DL_FLAG_STATELESS); | ||
| 472 | if (!link) | ||
| 473 | dev_err(dev, "Unable to link %s\n", dev_name(larbdev)); | ||
| 474 | |||
| 447 | return &data->iommu; | 475 | return &data->iommu; |
| 448 | } | 476 | } |
| 449 | 477 | ||
| @@ -464,10 +492,18 @@ static void mtk_iommu_probe_finalize(struct device *dev) · 14 unmodified lines | |||
| 464 | static void mtk_iommu_release_device(struct device *dev) | 492 | static void mtk_iommu_release_device(struct device *dev) |
| 465 | { | 493 | { |
| 466 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 494 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 495 | struct mtk_iommu_data *data; | ||
| 496 | struct device *larbdev; | ||
| 497 | unsigned int larbid; | ||
| 467 | 498 | ||
| 468 | if (!fwspec || fwspec->ops != &mtk_iommu_ops) | 499 | if (!fwspec || fwspec->ops != &mtk_iommu_ops) |
| 469 | return; | 500 | return; |
| 470 | 501 | ||
| 502 | data = dev_iommu_priv_get(dev); | ||
| 503 | larbid = mt2701_m4u_to_larb(fwspec->ids[0]); | ||
| 504 | larbdev = data->larb_imu[larbid].dev; | ||
| 505 | device_link_remove(dev, larbdev); | ||
| 506 | |||
| 471 | iommu_fwspec_free(dev); | 507 | iommu_fwspec_free(dev); |
| 472 | } | 508 | } |
| 473 | 509 | ||
| @@ -594,6 +630,10 @@ static int mtk_iommu_probe(struct platform_device *pdev) · 120 unmodified lines | |||
| 594 | 630 | ||
| 595 | plarbdev = of_find_device_by_node(larbnode); | 631 | plarbdev = of_find_device_by_node(larbnode); |
| 596 | if (!plarbdev) { | 632 | if (!plarbdev) { |
| 633 | of_node_put(larbnode); | ||
| 634 | return -ENODEV; | ||
| 635 | } | ||
| 636 | if (!plarbdev->dev.driver) { | ||
| 597 | of_node_put(larbnode); | 637 | of_node_put(larbnode); |
| 598 | return -EPROBE_DEFER; | 638 | return -EPROBE_DEFER; |
| 599 | } | 639 | } |
| @@ -160,6 +160,9 @@ menu "Media core support" · 159 unmodified lines | |||
| 160 | config VIDEO_DEV | 160 | config VIDEO_DEV |
| 161 | tristate "Video4Linux core" | 161 | tristate "Video4Linux core" |
| 162 | default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT || MEDIA_TEST_SUPPORT | 162 | default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT || MEDIA_TEST_SUPPORT |
| 163 | depends on (I2C || I2C=n) | ||
| 164 | select RATIONAL | ||
| 165 | select VIDEOBUF2_V4L2 if VIDEOBUF2_CORE | ||
| 163 | help | 166 | help |
| 164 | Enables the V4L2 API, used by cameras, analog TV, video grabbers, | 167 | Enables the V4L2 API, used by cameras, analog TV, video grabbers, |
| 165 | radio devices and by some input devices. | 168 | radio devices and by some input devices. |
| @@ -216,13 +219,12 @@ menu "Media drivers" · 50 unmodified lines | |||
| 216 | comment "Drivers filtered as selected at 'Filter media drivers'" | 219 | comment "Drivers filtered as selected at 'Filter media drivers'" |
| 217 | depends on MEDIA_SUPPORT_FILTER | 220 | depends on MEDIA_SUPPORT_FILTER |
| 218 | 221 | ||
| 222 | comment "Media drivers" | ||
| 223 | |||
| 219 | source "drivers/media/usb/Kconfig" | 224 | source "drivers/media/usb/Kconfig" |
| 220 | source "drivers/media/pci/Kconfig" | 225 | source "drivers/media/pci/Kconfig" |
| 221 | source "drivers/media/radio/Kconfig" | 226 | source "drivers/media/radio/Kconfig" |
| 222 | 227 | ||
| 223 | # Common driver options | ||
| 224 | source "drivers/media/common/Kconfig" | ||
| 225 | |||
| 226 | if MEDIA_PLATFORM_SUPPORT | 228 | if MEDIA_PLATFORM_SUPPORT |
| 227 | source "drivers/media/platform/Kconfig" | 229 | source "drivers/media/platform/Kconfig" |
| 228 | source "drivers/media/mmc/Kconfig" | 230 | source "drivers/media/mmc/Kconfig" |
| @@ -234,6 +236,9 @@ endif · 5 unmodified lines | |||
| 234 | 236 | ||
| 235 | source "drivers/media/firewire/Kconfig" | 237 | source "drivers/media/firewire/Kconfig" |
| 236 | 238 | ||
| 239 | # Common driver options | ||
| 240 | source "drivers/media/common/Kconfig" | ||
| 241 | |||
| 237 | endmenu | 242 | endmenu |
| 238 | 243 | ||
| 239 | # | 244 | # |
| @@ -8,7 +8,7 @@ · 7 unmodified lines | |||
| 8 | # when compiled as builtin drivers | 8 | # when compiled as builtin drivers |
| 9 | # | 9 | # |
| 10 | obj-y += i2c/ tuners/ | 10 | obj-y += i2c/ tuners/ |
| 11 | obj-$(CONFIG_DVB_CORE) += dvb-frontends/ | 11 | obj-$(CONFIG_DVB_CORE) += dvb-frontends/ |
| 12 | 12 | ||
| 13 | # | 13 | # |
| 14 | # Now, let's link-in the media controller core | 14 | # Now, let's link-in the media controller core |
| @@ -18,7 +18,7 @@ ifeq ($(CONFIG_MEDIA_CONTROLLER),y) · 3 unmodified lines | |||
| 18 | endif | 18 | endif |
| 19 | 19 | ||
| 20 | obj-$(CONFIG_VIDEO_DEV) += v4l2-core/ | 20 | obj-$(CONFIG_VIDEO_DEV) += v4l2-core/ |
| 21 | obj-$(CONFIG_DVB_CORE) += dvb-core/ | 21 | obj-$(CONFIG_DVB_CORE) += dvb-core/ |
| 22 | 22 | ||
| 23 | # There are both core and drivers at RC subtree - merge before drivers | 23 | # There are both core and drivers at RC subtree - merge before drivers |
| 24 | obj-y += rc/ | 24 | obj-y += rc/ |
| @@ -4,12 +4,12 @@ · 3 unmodified lines | |||
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | # Please keep it in alphabetic order | 6 | # Please keep it in alphabetic order |
| 7 | obj-$(CONFIG_CEC_CROS_EC) += cros-ec/ | 7 | obj-$(CONFIG_CEC_CROS_EC) += cros-ec/ |
| 8 | obj-$(CONFIG_CEC_GPIO) += cec-gpio/ | 8 | obj-$(CONFIG_CEC_GPIO) += cec-gpio/ |
| 9 | obj-$(CONFIG_CEC_MESON_AO) += meson/ | 9 | obj-$(CONFIG_CEC_MESON_AO) += meson/ |
| 10 | obj-$(CONFIG_CEC_SAMSUNG_S5P) += s5p/ | 10 | obj-$(CONFIG_CEC_SAMSUNG_S5P) += s5p/ |
| 11 | obj-$(CONFIG_CEC_SECO) += seco/ | 11 | obj-$(CONFIG_CEC_SECO) += seco/ |
| 12 | obj-$(CONFIG_CEC_STI) += sti/ | 12 | obj-$(CONFIG_CEC_STI) += sti/ |
| 13 | obj-$(CONFIG_CEC_STM32) += stm32/ | 13 | obj-$(CONFIG_CEC_STM32) += stm32/ |
| 14 | obj-$(CONFIG_CEC_TEGRA) += tegra/ | 14 | obj-$(CONFIG_CEC_TEGRA) += tegra/ |
| 15 | 15 | ||
| @@ -215,6 +215,8 @@ struct cec_dmi_match { · 214 unmodified lines | |||
| 215 | static const struct cec_dmi_match cec_dmi_match_table[] = { | 215 | static const struct cec_dmi_match cec_dmi_match_table[] = { |
| 216 | /* Google Fizz */ | 216 | /* Google Fizz */ |
| 217 | { "Google", "Fizz", "0000:00:02.0", "Port B" }, | 217 | { "Google", "Fizz", "0000:00:02.0", "Port B" }, |
| 218 | /* Google Brask */ | ||
| 219 | { "Google", "Brask", "0000:00:02.0", "Port B" }, | ||
| 218 | }; | 220 | }; |
| 219 | 221 | ||
| 220 | static struct device *cros_ec_cec_find_hdmi_dev(struct device *dev, | 222 | static struct device *cros_ec_cec_find_hdmi_dev(struct device *dev, |
| @@ -12,7 +12,6 @@ · 11 unmodified lines | |||
| 12 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
| 13 | #include <linux/dmi.h> | 13 | #include <linux/dmi.h> |
| 14 | #include <linux/gpio/consumer.h> | 14 | #include <linux/gpio/consumer.h> |
| 15 | #include <linux/gpio.h> | ||
| 16 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
| 17 | #include <linux/pci.h> | 16 | #include <linux/pci.h> |
| 18 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
| @@ -129,7 +128,7 @@ static int secocec_adap_enable(struct cec_adapter *adap, bool enable) · 110 unmodified lines | |||
| 129 | if (status) | 128 | if (status) |
| 130 | goto err; | 129 | goto err; |
| 131 | 130 | ||
| 132 | dev_dbg(dev, "Device enabled"); | 131 | dev_dbg(dev, "Device enabled\n"); |
| 133 | } else { | 132 | } else { |
| 134 | /* Clear the status register */ | 133 | /* Clear the status register */ |
| 135 | status = smb_rd16(SECOCEC_STATUS_REG_1, &val); | 134 | status = smb_rd16(SECOCEC_STATUS_REG_1, &val); |
| @@ -141,7 +140,7 @@ static int secocec_adap_enable(struct cec_adapter *adap, bool enable) · 5 unmodified lines | |||
| 141 | ~SECOCEC_ENABLE_REG_1_CEC & | 140 | ~SECOCEC_ENABLE_REG_1_CEC & |
| 142 | ~SECOCEC_ENABLE_REG_1_IR); | 141 | ~SECOCEC_ENABLE_REG_1_IR); |
| 143 | 142 | ||
| 144 | dev_dbg(dev, "Device disabled"); | 143 | dev_dbg(dev, "Device disabled\n"); |
| 145 | } | 144 | } |
| 146 | 145 | ||
| 147 | return 0; | 146 | return 0; |
| @@ -264,12 +263,12 @@ static void secocec_rx_done(struct cec_adapter *adap, u16 status_val) · 116 unmodified lines | |||
| 264 | 263 | ||
| 265 | if (status_val & SECOCEC_STATUS_RX_OVERFLOW_MASK) { | 264 | if (status_val & SECOCEC_STATUS_RX_OVERFLOW_MASK) { |
| 266 | /* NOTE: Untested, it also might not be necessary */ | 265 | /* NOTE: Untested, it also might not be necessary */ |
| 267 | dev_warn(dev, "Received more than 16 bytes. Discarding"); | 266 | dev_warn(dev, "Received more than 16 bytes. Discarding\n"); |
| 268 | flag_overflow = true; | 267 | flag_overflow = true; |
| 269 | } | 268 | } |
| 270 | 269 | ||
| 271 | if (status_val & SECOCEC_STATUS_RX_ERROR_MASK) { | 270 | if (status_val & SECOCEC_STATUS_RX_ERROR_MASK) { |
| 272 | dev_warn(dev, "Message received with errors. Discarding"); | 271 | dev_warn(dev, "Message received with errors. Discarding\n"); |
| 273 | status = -EIO; | 272 | status = -EIO; |
| 274 | goto rxerr; | 273 | goto rxerr; |
| 275 | } | 274 | } |
| @@ -390,12 +389,12 @@ static int secocec_ir_probe(void *priv) · 114 unmodified lines | |||
| 390 | if (status != 0) | 389 | if (status != 0) |
| 391 | goto err; | 390 | goto err; |
| 392 | 391 | ||
| 393 | dev_dbg(dev, "IR enabled"); | 392 | dev_dbg(dev, "IR enabled\n"); |
| 394 | 393 | ||
| 395 | status = devm_rc_register_device(dev, cec->ir); | 394 | status = devm_rc_register_device(dev, cec->ir); |
| 396 | 395 | ||
| 397 | if (status) { | 396 | if (status) { |
| 398 | dev_err(dev, "Failed to prepare input device"); | 397 | dev_err(dev, "Failed to prepare input device\n"); |
| 399 | cec->ir = NULL; | 398 | cec->ir = NULL; |
| 400 | goto err; | 399 | goto err; |
| 401 | } | 400 | } |
| @@ -408,7 +407,7 @@ err: · 6 unmodified lines | |||
| 408 | smb_wr16(SECOCEC_ENABLE_REG_1, | 407 | smb_wr16(SECOCEC_ENABLE_REG_1, |
| 409 | val & ~SECOCEC_ENABLE_REG_1_IR); | 408 | val & ~SECOCEC_ENABLE_REG_1_IR); |
| 410 | 409 | ||
| 411 | dev_dbg(dev, "IR disabled"); | 410 | dev_dbg(dev, "IR disabled\n"); |
| 412 | return status; | 411 | return status; |
| 413 | } | 412 | } |
| 414 | 413 | ||
| @@ -431,13 +430,13 @@ static int secocec_ir_rx(struct secocec_data *priv) · 16 unmodified lines | |||
| 431 | 430 | ||
| 432 | rc_keydown(cec->ir, RC_PROTO_RC5, RC_SCANCODE_RC5(addr, key), toggle); | 431 | rc_keydown(cec->ir, RC_PROTO_RC5, RC_SCANCODE_RC5(addr, key), toggle); |
| 433 | 432 | ||
| 434 | dev_dbg(dev, "IR key pressed: 0x%02x addr 0x%02x toggle 0x%02x", key, | 433 | dev_dbg(dev, "IR key pressed: 0x%02x addr 0x%02x toggle 0x%02x\n", key, |
| 435 | addr, toggle); | 434 | addr, toggle); |
| 436 | 435 | ||
| 437 | return 0; | 436 | return 0; |
| 438 | 437 | ||
| 439 | err: | 438 | err: |
| 440 | dev_err(dev, "IR Receive message failed (%d)", status); | 439 | dev_err(dev, "IR Receive message failed (%d)\n", status); |
| 441 | return -EIO; | 440 | return -EIO; |
| 442 | } | 441 | } |
| 443 | #else | 442 | #else |
| @@ -497,7 +496,7 @@ static irqreturn_t secocec_irq_handler(int irq, void *priv) · 53 unmodified lines | |||
| 497 | return IRQ_HANDLED; | 496 | return IRQ_HANDLED; |
| 498 | 497 | ||
| 499 | err: | 498 | err: |
| 500 | dev_err_once(dev, "IRQ: R/W SMBus operation failed (%d)", status); | 499 | dev_err_once(dev, "IRQ: R/W SMBus operation failed %d\n", status); |
| 501 | 500 | ||
| 502 | /* Reset status register */ | 501 | /* Reset status register */ |
| 503 | val = SECOCEC_STATUS_REG_1_CEC | SECOCEC_STATUS_REG_1_IR; | 502 | val = SECOCEC_STATUS_REG_1_CEC | SECOCEC_STATUS_REG_1_IR; |
| @@ -551,18 +550,18 @@ static int secocec_acpi_probe(struct secocec_data *sdev) · 47 unmodified lines | |||
| 551 | struct gpio_desc *gpio; | 550 | struct gpio_desc *gpio; |
| 552 | int irq = 0; | 551 | int irq = 0; |
| 553 | 552 | ||
| 554 | gpio = devm_gpiod_get(dev, NULL, GPIOF_IN); | 553 | gpio = devm_gpiod_get(dev, NULL, GPIOD_IN); |
| 555 | if (IS_ERR(gpio)) { | 554 | if (IS_ERR(gpio)) { |
| 556 | dev_err(dev, "Cannot request interrupt gpio"); | 555 | dev_err(dev, "Cannot request interrupt gpio\n"); |
| 557 | return PTR_ERR(gpio); | 556 | return PTR_ERR(gpio); |
| 558 | } | 557 | } |
| 559 | 558 | ||
| 560 | irq = gpiod_to_irq(gpio); | 559 | irq = gpiod_to_irq(gpio); |
| 561 | if (irq < 0) { | 560 | if (irq < 0) { |
| 562 | dev_err(dev, "Cannot find valid irq"); | 561 | dev_err(dev, "Cannot find valid irq\n"); |
| 563 | return -ENODEV; | 562 | return -ENODEV; |
| 564 | } | 563 | } |
| 565 | dev_dbg(dev, "irq-gpio is bound to IRQ %d", irq); | 564 | dev_dbg(dev, "irq-gpio is bound to IRQ %d\n", irq); |
| 566 | 565 | ||
| 567 | sdev->irq = irq; | 566 | sdev->irq = irq; |
| 568 | 567 | ||
| @@ -590,7 +589,7 @@ static int secocec_probe(struct platform_device *pdev) · 21 unmodified lines | |||
| 590 | 589 | ||
| 591 | /* Request SMBus regions */ | 590 | /* Request SMBus regions */ |
| 592 | if (!request_muxed_region(BRA_SMB_BASE_ADDR, 7, "CEC00001")) { | 591 | if (!request_muxed_region(BRA_SMB_BASE_ADDR, 7, "CEC00001")) { |
| 593 | dev_err(dev, "Request memory region failed"); | 592 | dev_err(dev, "Request memory region failed\n"); |
| 594 | return -ENXIO; | 593 | return -ENXIO; |
| 595 | } | 594 | } |
| 596 | 595 | ||
| @@ -598,14 +597,14 @@ static int secocec_probe(struct platform_device *pdev) · 1 unmodified line | |||
| 598 | secocec->dev = dev; | 597 | secocec->dev = dev; |
| 599 | 598 | ||
| 600 | if (!has_acpi_companion(dev)) { | 599 | if (!has_acpi_companion(dev)) { |
| 601 | dev_dbg(dev, "Cannot find any ACPI companion"); | 600 | dev_dbg(dev, "Cannot find any ACPI companion\n"); |
| 602 | ret = -ENODEV; | 601 | ret = -ENODEV; |
| 603 | goto err; | 602 | goto err; |
| 604 | } | 603 | } |
| 605 | 604 | ||
| 606 | ret = secocec_acpi_probe(secocec); | 605 | ret = secocec_acpi_probe(secocec); |
| 607 | if (ret) { | 606 | if (ret) { |
| 608 | dev_err(dev, "Cannot assign gpio to IRQ"); | 607 | dev_err(dev, "Cannot assign gpio to IRQ\n"); |
| 609 | ret = -ENODEV; | 608 | ret = -ENODEV; |
| 610 | goto err; | 609 | goto err; |
| 611 | } | 610 | } |
| @@ -613,11 +612,11 @@ static int secocec_probe(struct platform_device *pdev) · 1 unmodified line | |||
| 613 | /* Firmware version check */ | 612 | /* Firmware version check */ |
| 614 | ret = smb_rd16(SECOCEC_VERSION, &val); | 613 | ret = smb_rd16(SECOCEC_VERSION, &val); |
| 615 | if (ret) { | 614 | if (ret) { |
| 616 | dev_err(dev, "Cannot check fw version"); | 615 | dev_err(dev, "Cannot check fw version\n"); |
| 617 | goto err; | 616 | goto err; |
| 618 | } | 617 | } |
| 619 | if (val < SECOCEC_LATEST_FW) { | 618 | if (val < SECOCEC_LATEST_FW) { |
| 620 | dev_err(dev, "CEC Firmware not supported (v.%04x). Use ver > v.%04x", | 619 | dev_err(dev, "CEC Firmware not supported (v.%04x). Use ver > v.%04x\n", |
| 621 | val, SECOCEC_LATEST_FW); | 620 | val, SECOCEC_LATEST_FW); |
| 622 | ret = -EINVAL; | 621 | ret = -EINVAL; |
| 623 | goto err; | 622 | goto err; |
| @@ -631,7 +630,7 @@ static int secocec_probe(struct platform_device *pdev) · 7 unmodified lines | |||
| 631 | dev_name(&pdev->dev), secocec); | 630 | dev_name(&pdev->dev), secocec); |
| 632 | 631 | ||
| 633 | if (ret) { | 632 | if (ret) { |
| 634 | dev_err(dev, "Cannot request IRQ %d", secocec->irq); | 633 | dev_err(dev, "Cannot request IRQ %d\n", secocec->irq); |
| 635 | ret = -EIO; | 634 | ret = -EIO; |
| 636 | goto err; | 635 | goto err; |
| 637 | } | 636 | } |
| @@ -666,7 +665,7 @@ static int secocec_probe(struct platform_device *pdev) · 28 unmodified lines | |||
| 666 | 665 | ||
| 667 | platform_set_drvdata(pdev, secocec); | 666 | platform_set_drvdata(pdev, secocec); |
| 668 | 667 | ||
| 669 | dev_dbg(dev, "Device registered"); | 668 | dev_dbg(dev, "Device registered\n"); |
| 670 | 669 | ||
| 671 | return ret; | 670 | return ret; |
| 672 | 671 | ||
| @@ -691,14 +690,14 @@ static int secocec_remove(struct platform_device *pdev) · 18 unmodified lines | |||
| 691 | 690 | ||
| 692 | smb_wr16(SECOCEC_ENABLE_REG_1, val & ~SECOCEC_ENABLE_REG_1_IR); | 691 | smb_wr16(SECOCEC_ENABLE_REG_1, val & ~SECOCEC_ENABLE_REG_1_IR); |
| 693 | 692 | ||
| 694 | dev_dbg(&pdev->dev, "IR disabled"); | 693 | dev_dbg(&pdev->dev, "IR disabled\n"); |
| 695 | } | 694 | } |
| 696 | cec_notifier_cec_adap_unregister(secocec->notifier, secocec->cec_adap); | 695 | cec_notifier_cec_adap_unregister(secocec->notifier, secocec->cec_adap); |
| 697 | cec_unregister_adapter(secocec->cec_adap); | 696 | cec_unregister_adapter(secocec->cec_adap); |
| 698 | 697 | ||
| 699 | release_region(BRA_SMB_BASE_ADDR, 7); | 698 | release_region(BRA_SMB_BASE_ADDR, 7); |
| 700 | 699 | ||
| 701 | dev_dbg(&pdev->dev, "CEC device removed"); | 700 | dev_dbg(&pdev->dev, "CEC device removed\n"); |
| 702 | 701 | ||
| 703 | return 0; | 702 | return 0; |
| 704 | } | 703 | } |
| @@ -709,7 +708,7 @@ static int secocec_suspend(struct device *dev) · 4 unmodified lines | |||
| 709 | int status; | 708 | int status; |
| 710 | u16 val; | 709 | u16 val; |
| 711 | 710 | ||
| 712 | dev_dbg(dev, "Device going to suspend, disabling"); | 711 | dev_dbg(dev, "Device going to suspend, disabling\n"); |
| 713 | 712 | ||
| 714 | /* Clear the status register */ | 713 | /* Clear the status register */ |
| 715 | status = smb_rd16(SECOCEC_STATUS_REG_1, &val); | 714 | status = smb_rd16(SECOCEC_STATUS_REG_1, &val); |
| @@ -733,7 +732,7 @@ static int secocec_suspend(struct device *dev) · 17 unmodified lines | |||
| 733 | return 0; | 732 | return 0; |
| 734 | 733 | ||
| 735 | err: | 734 | err: |
| 736 | dev_err(dev, "Suspend failed (err: %d)", status); | 735 | dev_err(dev, "Suspend failed: %d\n", status); |
| 737 | return status; | 736 | return status; |
| 738 | } | 737 | } |
| 739 | 738 | ||
| @@ -742,7 +741,7 @@ static int secocec_resume(struct device *dev) · 2 unmodified lines | |||
| 742 | int status; | 741 | int status; |
| 743 | u16 val; | 742 | u16 val; |
| 744 | 743 | ||
| 745 | dev_dbg(dev, "Resuming device from suspend"); | 744 | dev_dbg(dev, "Resuming device from suspend\n"); |
| 746 | 745 | ||
| 747 | /* Clear the status register */ | 746 | /* Clear the status register */ |
| 748 | status = smb_rd16(SECOCEC_STATUS_REG_1, &val); | 747 | status = smb_rd16(SECOCEC_STATUS_REG_1, &val); |
| @@ -762,12 +761,12 @@ static int secocec_resume(struct device *dev) · 13 unmodified lines | |||
| 762 | if (status) | 761 | if (status) |
| 763 | goto err; | 762 | goto err; |
| 764 | 763 | ||
| 765 | dev_dbg(dev, "Device resumed from suspend"); | 764 | dev_dbg(dev, "Device resumed from suspend\n"); |
| 766 | 765 | ||
| 767 | return 0; | 766 | return 0; |
| 768 | 767 | ||
| 769 | err: | 768 | err: |
| 770 | dev_err(dev, "Resume failed (err: %d)", status); | 769 | dev_err(dev, "Resume failed: %d\n", status); |
| 771 | return status; | 770 | return status; |
| 772 | } | 771 | } |
| 773 | 772 | ||
| @@ -6,23 +6,23 @@ config MEDIA_COMMON_OPTIONS · 5 unmodified lines | |||
| 6 | comment "common driver options" | 6 | comment "common driver options" |
| 7 | depends on MEDIA_COMMON_OPTIONS | 7 | depends on MEDIA_COMMON_OPTIONS |
| 8 | 8 | ||
| 9 | config VIDEO_CX2341X | 9 | config CYPRESS_FIRMWARE |
| 10 | tristate | ||
| 11 | |||
| 12 | config VIDEO_TVEEPROM | ||
| 13 | tristate | 10 | tristate |
| 14 | depends on I2C | 11 | depends on USB |
| 15 | 12 | ||
| 16 | config TTPCI_EEPROM | 13 | config TTPCI_EEPROM |
| 17 | tristate | 14 | tristate |
| 18 | depends on I2C | 15 | depends on I2C |
| 19 | 16 | ||
| 20 | config CYPRESS_FIRMWARE | 17 | config VIDEO_CX2341X |
| 21 | tristate | 18 | tristate |
| 22 | depends on USB | ||
| 23 | 19 | ||
| 24 | source "drivers/media/common/videobuf2/Kconfig" | 20 | config VIDEO_TVEEPROM |
| 21 | tristate | ||
| 22 | depends on I2C | ||
| 23 | |||
| 25 | source "drivers/media/common/b2c2/Kconfig" | 24 | source "drivers/media/common/b2c2/Kconfig" |
| 26 | source "drivers/media/common/saa7146/Kconfig" | 25 | source "drivers/media/common/saa7146/Kconfig" |
| 27 | source "drivers/media/common/siano/Kconfig" | 26 | source "drivers/media/common/siano/Kconfig" |
| 28 | source "drivers/media/common/v4l2-tpg/Kconfig" | 27 | source "drivers/media/common/v4l2-tpg/Kconfig" |
| 28 | source "drivers/media/common/videobuf2/Kconfig" | ||
| @@ -1,6 +1,9 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | obj-y += b2c2/ saa7146/ siano/ v4l2-tpg/ videobuf2/ | 2 | obj-y += b2c2/ saa7146/ siano/ v4l2-tpg/ videobuf2/ |
| 3 | obj-$(CONFIG_VIDEO_CX2341X) += cx2341x.o | 3 | |
| 4 | obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o | 4 | # Please keep it alphabetically sorted by Kconfig name |
| 5 | # (e. g. LC_ALL=C sort Makefile) | ||
| 5 | obj-$(CONFIG_CYPRESS_FIRMWARE) += cypress_firmware.o | 6 | obj-$(CONFIG_CYPRESS_FIRMWARE) += cypress_firmware.o |
| 6 | obj-$(CONFIG_TTPCI_EEPROM) += ttpci-eeprom.o | 7 | obj-$(CONFIG_TTPCI_EEPROM) += ttpci-eeprom.o |
| 8 | obj-$(CONFIG_VIDEO_CX2341X) += cx2341x.o | ||
| 9 | obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o | ||
| @@ -5,6 +5,6 @@ config VIDEO_SAA7146 · 4 unmodified lines | |||
| 5 | 5 | ||
| 6 | config VIDEO_SAA7146_VV | 6 | config VIDEO_SAA7146_VV |
| 7 | tristate | 7 | tristate |
| 8 | depends on VIDEO_V4L2 | 8 | depends on VIDEO_DEV |
| 9 | select VIDEOBUF_DMA_SG | 9 | select VIDEOBUF_DMA_SG |
| 10 | select VIDEO_SAA7146 | 10 | select VIDEO_SAA7146 |
| @@ -6,10 +6,12 @@ ifeq ($(CONFIG_TRACEPOINTS),y) · 5 unmodified lines | |||
| 6 | videobuf2-common-objs += vb2-trace.o | 6 | videobuf2-common-objs += vb2-trace.o |
| 7 | endif | 7 | endif |
| 8 | 8 | ||
| 9 | # Please keep it alphabetically sorted by Kconfig name | ||
| 10 | # (e. g. LC_ALL=C sort Makefile) | ||
| 9 | obj-$(CONFIG_VIDEOBUF2_CORE) += videobuf2-common.o | 11 | obj-$(CONFIG_VIDEOBUF2_CORE) += videobuf2-common.o |
| 10 | obj-$(CONFIG_VIDEOBUF2_V4L2) += videobuf2-v4l2.o | ||
| 11 | obj-$(CONFIG_VIDEOBUF2_MEMOPS) += videobuf2-memops.o | ||
| 12 | obj-$(CONFIG_VIDEOBUF2_VMALLOC) += videobuf2-vmalloc.o | ||
| 13 | obj-$(CONFIG_VIDEOBUF2_DMA_CONTIG) += videobuf2-dma-contig.o | 12 | obj-$(CONFIG_VIDEOBUF2_DMA_CONTIG) += videobuf2-dma-contig.o |
| 14 | obj-$(CONFIG_VIDEOBUF2_DMA_SG) += videobuf2-dma-sg.o | 13 | obj-$(CONFIG_VIDEOBUF2_DMA_SG) += videobuf2-dma-sg.o |
| 15 | obj-$(CONFIG_VIDEOBUF2_DVB) += videobuf2-dvb.o | 14 | obj-$(CONFIG_VIDEOBUF2_DVB) += videobuf2-dvb.o |
| 15 | obj-$(CONFIG_VIDEOBUF2_MEMOPS) += videobuf2-memops.o | ||
| 16 | obj-$(CONFIG_VIDEOBUF2_V4L2) += videobuf2-v4l2.o | ||
| 17 | obj-$(CONFIG_VIDEOBUF2_VMALLOC) += videobuf2-vmalloc.o | ||
| @@ -132,12 +132,12 @@ static void vb2_dc_prepare(void *buf_priv) · 131 unmodified lines | |||
| 132 | if (!buf->non_coherent_mem) | 132 | if (!buf->non_coherent_mem) |
| 133 | return; | 133 | return; |
| 134 | 134 | ||
| 135 | /* For both USERPTR and non-coherent MMAP */ | ||
| 136 | dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); | ||
| 137 | |||
| 138 | /* Non-coherent MMAP only */ | 135 | /* Non-coherent MMAP only */ |
| 139 | if (buf->vaddr) | 136 | if (buf->vaddr) |
| 140 | flush_kernel_vmap_range(buf->vaddr, buf->size); | 137 | flush_kernel_vmap_range(buf->vaddr, buf->size); |
| 138 | |||
| 139 | /* For both USERPTR and non-coherent MMAP */ | ||
| 140 | dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); | ||
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | static void vb2_dc_finish(void *buf_priv) | 143 | static void vb2_dc_finish(void *buf_priv) |
| @@ -152,12 +152,12 @@ static void vb2_dc_finish(void *buf_priv) · 8 unmodified lines | |||
| 152 | if (!buf->non_coherent_mem) | 152 | if (!buf->non_coherent_mem) |
| 153 | return; | 153 | return; |
| 154 | 154 | ||
| 155 | /* For both USERPTR and non-coherent MMAP */ | ||
| 156 | dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); | ||
| 157 | |||
| 158 | /* Non-coherent MMAP only */ | 155 | /* Non-coherent MMAP only */ |
| 159 | if (buf->vaddr) | 156 | if (buf->vaddr) |
| 160 | invalidate_kernel_vmap_range(buf->vaddr, buf->size); | 157 | invalidate_kernel_vmap_range(buf->vaddr, buf->size); |
| 158 | |||
| 159 | /* For both USERPTR and non-coherent MMAP */ | ||
| 160 | dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); | ||
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | /*********************************************/ | 163 | /*********************************************/ |
| @@ -6,7 +6,7 @@ · 5 unmodified lines | |||
| 6 | config DVB_MMAP | 6 | config DVB_MMAP |
| 7 | bool "Enable DVB memory-mapped API (EXPERIMENTAL)" | 7 | bool "Enable DVB memory-mapped API (EXPERIMENTAL)" |
| 8 | depends on DVB_CORE | 8 | depends on DVB_CORE |
| 9 | depends on VIDEO_V4L2=y || VIDEO_V4L2=DVB_CORE | 9 | depends on VIDEO_DEV=y || VIDEO_DEV=DVB_CORE |
| 10 | select VIDEOBUF2_VMALLOC | 10 | select VIDEOBUF2_VMALLOC |
| 11 | help | 11 | help |
| 12 | This option enables DVB experimental memory-mapped API, which | 12 | This option enables DVB experimental memory-mapped API, which |
| @@ -11,6 +11,23 @@ menu "Customise DVB Frontends" · 10 unmodified lines | |||
| 11 | comment "Multistandard (satellite) frontends" | 11 | comment "Multistandard (satellite) frontends" |
| 12 | depends on DVB_CORE | 12 | depends on DVB_CORE |
| 13 | 13 | ||
| 14 | config DVB_M88DS3103 | ||
| 15 | tristate "Montage Technology M88DS3103" | ||
| 16 | depends on DVB_CORE && I2C && I2C_MUX | ||
| 17 | select REGMAP_I2C | ||
| 18 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 19 | help | ||
| 20 | Say Y when you want to support this frontend. | ||
| 21 | |||
| 22 | config DVB_MXL5XX | ||
| 23 | tristate "MaxLinear MxL5xx based tuner-demodulators" | ||
| 24 | depends on DVB_CORE && I2C | ||
| 25 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 26 | help | ||
| 27 | MaxLinear MxL5xx family of DVB-S/S2 tuners/demodulators. | ||
| 28 | |||
| 29 | Say Y when you want to support these frontends. | ||
| 30 | |||
| 14 | config DVB_STB0899 | 31 | config DVB_STB0899 |
| 15 | tristate "STB0899 based" | 32 | tristate "STB0899 based" |
| 16 | depends on DVB_CORE && I2C | 33 | depends on DVB_CORE && I2C |
| @@ -60,23 +77,6 @@ config DVB_STV6111 · 43 unmodified lines | |||
| 60 | 77 | ||
| 61 | Say Y when you want to support these frontends. | 78 | Say Y when you want to support these frontends. |
| 62 | 79 | ||
| 63 | config DVB_MXL5XX | ||
| 64 | tristate "MaxLinear MxL5xx based tuner-demodulators" | ||
| 65 | depends on DVB_CORE && I2C | ||
| 66 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 67 | help | ||
| 68 | MaxLinear MxL5xx family of DVB-S/S2 tuners/demodulators. | ||
| 69 | |||
| 70 | Say Y when you want to support these frontends. | ||
| 71 | |||
| 72 | config DVB_M88DS3103 | ||
| 73 | tristate "Montage Technology M88DS3103" | ||
| 74 | depends on DVB_CORE && I2C && I2C_MUX | ||
| 75 | select REGMAP_I2C | ||
| 76 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 77 | help | ||
| 78 | Say Y when you want to support this frontend. | ||
| 79 | |||
| 80 | comment "Multistandard (cable + terrestrial) frontends" | 80 | comment "Multistandard (cable + terrestrial) frontends" |
| 81 | depends on DVB_CORE | 81 | depends on DVB_CORE |
| 82 | 82 | ||
| @@ -89,40 +89,40 @@ config DVB_DRXK · 6 unmodified lines | |||
| 89 | 89 | ||
| 90 | Say Y when you want to support this frontend. | 90 | Say Y when you want to support this frontend. |
| 91 | 91 | ||
| 92 | config DVB_TDA18271C2DD | 92 | config DVB_MN88472 |
| 93 | tristate "NXP TDA18271C2 silicon tuner" | 93 | tristate "Panasonic MN88472" |
| 94 | depends on DVB_CORE && I2C | 94 | depends on DVB_CORE && I2C |
| 95 | select REGMAP_I2C | ||
| 95 | default m if !MEDIA_SUBDRV_AUTOSELECT | 96 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 96 | help | 97 | help |
| 97 | NXP TDA18271 silicon tuner. | 98 | Say Y when you want to support this frontend. |
| 98 | |||
| 99 | Say Y when you want to support this tuner. | ||
| 100 | 99 | ||
| 101 | config DVB_SI2165 | 100 | config DVB_MN88473 |
| 102 | tristate "Silicon Labs si2165 based" | 101 | tristate "Panasonic MN88473" |
| 103 | depends on DVB_CORE && I2C | 102 | depends on DVB_CORE && I2C |
| 104 | select REGMAP_I2C | 103 | select REGMAP_I2C |
| 105 | default m if !MEDIA_SUBDRV_AUTOSELECT | 104 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 106 | help | 105 | help |
| 107 | A DVB-C/T demodulator. | ||
| 108 | |||
| 109 | Say Y when you want to support this frontend. | 106 | Say Y when you want to support this frontend. |
| 110 | 107 | ||
| 111 | config DVB_MN88472 | 108 | config DVB_SI2165 |
| 112 | tristate "Panasonic MN88472" | 109 | tristate "Silicon Labs si2165 based" |
| 113 | depends on DVB_CORE && I2C | 110 | depends on DVB_CORE && I2C |
| 114 | select REGMAP_I2C | 111 | select REGMAP_I2C |
| 115 | default m if !MEDIA_SUBDRV_AUTOSELECT | 112 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 116 | help | 113 | help |
| 114 | A DVB-C/T demodulator. | ||
| 115 | |||
| 117 | Say Y when you want to support this frontend. | 116 | Say Y when you want to support this frontend. |
| 118 | 117 | ||
| 119 | config DVB_MN88473 | 118 | config DVB_TDA18271C2DD |
| 120 | tristate "Panasonic MN88473" | 119 | tristate "NXP TDA18271C2 silicon tuner" |
| 121 | depends on DVB_CORE && I2C | 120 | depends on DVB_CORE && I2C |
| 122 | select REGMAP_I2C | ||
| 123 | default m if !MEDIA_SUBDRV_AUTOSELECT | 121 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 124 | help | 122 | help |
| 125 | Say Y when you want to support this frontend. | 123 | NXP TDA18271 silicon tuner. |
| 124 | |||
| 125 | Say Y when you want to support this tuner. | ||
| 126 | 126 | ||
| 127 | comment "DVB-S (satellite) frontends" | 127 | comment "DVB-S (satellite) frontends" |
| 128 | depends on DVB_CORE | 128 | depends on DVB_CORE |
| @@ -134,6 +134,27 @@ config DVB_CX24110 · 5 unmodified lines | |||
| 134 | help | 134 | help |
| 135 | A DVB-S tuner module. Say Y when you want to support this frontend. | 135 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 136 | 136 | ||
| 137 | config DVB_CX24116 | ||
| 138 | tristate "Conexant CX24116 based" | ||
| 139 | depends on DVB_CORE && I2C | ||
| 140 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 141 | help | ||
| 142 | A DVB-S/S2 tuner module. Say Y when you want to support this frontend. | ||
| 143 | |||
| 144 | config DVB_CX24117 | ||
| 145 | tristate "Conexant CX24117 based" | ||
| 146 | depends on DVB_CORE && I2C | ||
| 147 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 148 | help | ||
| 149 | A Dual DVB-S/S2 tuner module. Say Y when you want to support this frontend. | ||
| 150 | |||
| 151 | config DVB_CX24120 | ||
| 152 | tristate "Conexant CX24120 based" | ||
| 153 | depends on DVB_CORE && I2C | ||
| 154 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 155 | help | ||
| 156 | A DVB-S/S2 tuner module. Say Y when you want to support this frontend. | ||
| 157 | |||
| 137 | config DVB_CX24123 | 158 | config DVB_CX24123 |
| 138 | tristate "Conexant CX24123 based" | 159 | tristate "Conexant CX24123 based" |
| 139 | depends on DVB_CORE && I2C | 160 | depends on DVB_CORE && I2C |
| @@ -141,22 +162,23 @@ config DVB_CX24123 · 1 unmodified line | |||
| 141 | help | 162 | help |
| 142 | A DVB-S tuner module. Say Y when you want to support this frontend. | 163 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 143 | 164 | ||
| 144 | config DVB_MT312 | 165 | config DVB_DS3000 |
| 145 | tristate "Zarlink VP310/MT312/ZL10313 based" | 166 | tristate "Montage Tehnology DS3000 based" |
| 146 | depends on DVB_CORE && I2C | 167 | depends on DVB_CORE && I2C |
| 147 | default m if !MEDIA_SUBDRV_AUTOSELECT | 168 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 148 | help | 169 | help |
| 149 | A DVB-S tuner module. Say Y when you want to support this frontend. | 170 | A DVB-S/S2 tuner module. Say Y when you want to support this frontend. |
| 150 | 171 | ||
| 151 | config DVB_ZL10036 | 172 | config DVB_MB86A16 |
| 152 | tristate "Zarlink ZL10036 silicon tuner" | 173 | tristate "Fujitsu MB86A16 based" |
| 153 | depends on DVB_CORE && I2C | 174 | depends on DVB_CORE && I2C |
| 154 | default m if !MEDIA_SUBDRV_AUTOSELECT | 175 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 155 | help | 176 | help |
| 156 | A DVB-S tuner module. Say Y when you want to support this frontend. | 177 | A DVB-S/DSS Direct Conversion reveiver. |
| 178 | Say Y when you want to support this frontend. | ||
| 157 | 179 | ||
| 158 | config DVB_ZL10039 | 180 | config DVB_MT312 |
| 159 | tristate "Zarlink ZL10039 silicon tuner" | 181 | tristate "Zarlink VP310/MT312/ZL10313 based" |
| 160 | depends on DVB_CORE && I2C | 182 | depends on DVB_CORE && I2C |
| 161 | default m if !MEDIA_SUBDRV_AUTOSELECT | 183 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 162 | help | 184 | help |
| @@ -169,8 +191,8 @@ config DVB_S5H1420 · 6 unmodified lines | |||
| 169 | help | 191 | help |
| 170 | A DVB-S tuner module. Say Y when you want to support this frontend. | 192 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 171 | 193 | ||
| 172 | config DVB_STV0288 | 194 | config DVB_SI21XX |
| 173 | tristate "ST STV0288 based" | 195 | tristate "Silicon Labs SI21XX based" |
| 174 | depends on DVB_CORE && I2C | 196 | depends on DVB_CORE && I2C |
| 175 | default m if !MEDIA_SUBDRV_AUTOSELECT | 197 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 176 | help | 198 | help |
| @@ -183,19 +205,19 @@ config DVB_STB6000 · 6 unmodified lines | |||
| 183 | help | 205 | help |
| 184 | A DVB-S silicon tuner module. Say Y when you want to support this tuner. | 206 | A DVB-S silicon tuner module. Say Y when you want to support this tuner. |
| 185 | 207 | ||
| 186 | config DVB_STV0299 | 208 | config DVB_STV0288 |
| 187 | tristate "ST STV0299 based" | 209 | tristate "ST STV0288 based" |
| 188 | depends on DVB_CORE && I2C | 210 | depends on DVB_CORE && I2C |
| 189 | default m if !MEDIA_SUBDRV_AUTOSELECT | 211 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 190 | help | 212 | help |
| 191 | A DVB-S tuner module. Say Y when you want to support this frontend. | 213 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 192 | 214 | ||
| 193 | config DVB_STV6110 | 215 | config DVB_STV0299 |
| 194 | tristate "ST STV6110 silicon tuner" | 216 | tristate "ST STV0299 based" |
| 195 | depends on DVB_CORE && I2C | 217 | depends on DVB_CORE && I2C |
| 196 | default m if !MEDIA_SUBDRV_AUTOSELECT | 218 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 197 | help | 219 | help |
| 198 | A DVB-S silicon tuner module. Say Y when you want to support this tuner. | 220 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 199 | 221 | ||
| 200 | config DVB_STV0900 | 222 | config DVB_STV0900 |
| 201 | tristate "ST STV0900 based" | 223 | tristate "ST STV0900 based" |
| @@ -204,49 +226,42 @@ config DVB_STV0900 · 2 unmodified lines | |||
| 204 | help | 226 | help |
| 205 | A DVB-S/S2 demodulator. Say Y when you want to support this frontend. | 227 | A DVB-S/S2 demodulator. Say Y when you want to support this frontend. |
| 206 | 228 | ||
| 207 | config DVB_TDA8083 | 229 | config DVB_STV6110 |
| 208 | tristate "Philips TDA8083 based" | 230 | tristate "ST STV6110 silicon tuner" |
| 209 | depends on DVB_CORE && I2C | ||
| 210 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 211 | help | ||
| 212 | A DVB-S tuner module. Say Y when you want to support this frontend. | ||
| 213 | |||
| 214 | config DVB_TDA10086 | ||
| 215 | tristate "Philips TDA10086 based" | ||
| 216 | depends on DVB_CORE && I2C | 231 | depends on DVB_CORE && I2C |
| 217 | default m if !MEDIA_SUBDRV_AUTOSELECT | 232 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 218 | help | 233 | help |
| 219 | A DVB-S tuner module. Say Y when you want to support this frontend. | 234 | A DVB-S silicon tuner module. Say Y when you want to support this tuner. |
| 220 | 235 | ||
| 221 | config DVB_TDA8261 | 236 | config DVB_TDA10071 |
| 222 | tristate "Philips TDA8261 based" | 237 | tristate "NXP TDA10071" |
| 223 | depends on DVB_CORE && I2C | 238 | depends on DVB_CORE && I2C |
| 239 | select REGMAP_I2C | ||
| 224 | default m if !MEDIA_SUBDRV_AUTOSELECT | 240 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 225 | help | 241 | help |
| 226 | A DVB-S tuner module. Say Y when you want to support this frontend. | 242 | Say Y when you want to support this frontend. |
| 227 | 243 | ||
| 228 | config DVB_VES1X93 | 244 | config DVB_TDA10086 |
| 229 | tristate "VLSI VES1893 or VES1993 based" | 245 | tristate "Philips TDA10086 based" |
| 230 | depends on DVB_CORE && I2C | 246 | depends on DVB_CORE && I2C |
| 231 | default m if !MEDIA_SUBDRV_AUTOSELECT | 247 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 232 | help | 248 | help |
| 233 | A DVB-S tuner module. Say Y when you want to support this frontend. | 249 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 234 | 250 | ||
| 235 | config DVB_TUNER_ITD1000 | 251 | config DVB_TDA8083 |
| 236 | tristate "Integrant ITD1000 Zero IF tuner for DVB-S/DSS" | 252 | tristate "Philips TDA8083 based" |
| 237 | depends on DVB_CORE && I2C | 253 | depends on DVB_CORE && I2C |
| 238 | default m if !MEDIA_SUBDRV_AUTOSELECT | 254 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 239 | help | 255 | help |
| 240 | A DVB-S tuner module. Say Y when you want to support this frontend. | 256 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 241 | 257 | ||
| 242 | config DVB_TUNER_CX24113 | 258 | config DVB_TDA8261 |
| 243 | tristate "Conexant CX24113/CX24128 tuner for DVB-S/DSS" | 259 | tristate "Philips TDA8261 based" |
| 244 | depends on DVB_CORE && I2C | 260 | depends on DVB_CORE && I2C |
| 245 | default m if !MEDIA_SUBDRV_AUTOSELECT | 261 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 246 | help | 262 | help |
| 247 | A DVB-S tuner module. Say Y when you want to support this frontend. | 263 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 248 | 264 | ||
| 249 | |||
| 250 | config DVB_TDA826X | 265 | config DVB_TDA826X |
| 251 | tristate "Philips TDA826X silicon tuner" | 266 | tristate "Philips TDA826X silicon tuner" |
| 252 | depends on DVB_CORE && I2C | 267 | depends on DVB_CORE && I2C |
| @@ -254,86 +269,71 @@ config DVB_TDA826X · 1 unmodified line | |||
| 254 | help | 269 | help |
| 255 | A DVB-S silicon tuner module. Say Y when you want to support this tuner. | 270 | A DVB-S silicon tuner module. Say Y when you want to support this tuner. |
| 256 | 271 | ||
| 257 | config DVB_TUA6100 | 272 | config DVB_TS2020 |
| 258 | tristate "Infineon TUA6100 PLL" | 273 | tristate "Montage Tehnology TS2020 based tuners" |
| 259 | depends on DVB_CORE && I2C | ||
| 260 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 261 | help | ||
| 262 | A DVB-S PLL chip. | ||
| 263 | |||
| 264 | config DVB_CX24116 | ||
| 265 | tristate "Conexant CX24116 based" | ||
| 266 | depends on DVB_CORE && I2C | ||
| 267 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 268 | help | ||
| 269 | A DVB-S/S2 tuner module. Say Y when you want to support this frontend. | ||
| 270 | |||
| 271 | config DVB_CX24117 | ||
| 272 | tristate "Conexant CX24117 based" | ||
| 273 | depends on DVB_CORE && I2C | 274 | depends on DVB_CORE && I2C |
| 275 | select REGMAP_I2C | ||
| 274 | default m if !MEDIA_SUBDRV_AUTOSELECT | 276 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 275 | help | 277 | help |
| 276 | A Dual DVB-S/S2 tuner module. Say Y when you want to support this frontend. | 278 | A DVB-S/S2 silicon tuner. Say Y when you want to support this tuner. |
| 277 | 279 | ||
| 278 | config DVB_CX24120 | 280 | config DVB_TUA6100 |
| 279 | tristate "Conexant CX24120 based" | 281 | tristate "Infineon TUA6100 PLL" |
| 280 | depends on DVB_CORE && I2C | 282 | depends on DVB_CORE && I2C |
| 281 | default m if !MEDIA_SUBDRV_AUTOSELECT | 283 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 282 | help | 284 | help |
| 283 | A DVB-S/S2 tuner module. Say Y when you want to support this frontend. | 285 | A DVB-S PLL chip. |
| 284 | 286 | ||
| 285 | config DVB_SI21XX | 287 | config DVB_TUNER_CX24113 |
| 286 | tristate "Silicon Labs SI21XX based" | 288 | tristate "Conexant CX24113/CX24128 tuner for DVB-S/DSS" |
| 287 | depends on DVB_CORE && I2C | 289 | depends on DVB_CORE && I2C |
| 288 | default m if !MEDIA_SUBDRV_AUTOSELECT | 290 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 289 | help | 291 | help |
| 290 | A DVB-S tuner module. Say Y when you want to support this frontend. | 292 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 291 | 293 | ||
| 292 | config DVB_TS2020 | 294 | config DVB_TUNER_ITD1000 |
| 293 | tristate "Montage Tehnology TS2020 based tuners" | 295 | tristate "Integrant ITD1000 Zero IF tuner for DVB-S/DSS" |
| 294 | depends on DVB_CORE && I2C | 296 | depends on DVB_CORE && I2C |
| 295 | select REGMAP_I2C | ||
| 296 | default m if !MEDIA_SUBDRV_AUTOSELECT | 297 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 297 | help | 298 | help |
| 298 | A DVB-S/S2 silicon tuner. Say Y when you want to support this tuner. | 299 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 299 | 300 | ||
| 300 | config DVB_DS3000 | 301 | config DVB_VES1X93 |
| 301 | tristate "Montage Tehnology DS3000 based" | 302 | tristate "VLSI VES1893 or VES1993 based" |
| 302 | depends on DVB_CORE && I2C | 303 | depends on DVB_CORE && I2C |
| 303 | default m if !MEDIA_SUBDRV_AUTOSELECT | 304 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 304 | help | 305 | help |
| 305 | A DVB-S/S2 tuner module. Say Y when you want to support this frontend. | 306 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 306 | 307 | ||
| 307 | config DVB_MB86A16 | 308 | config DVB_ZL10036 |
| 308 | tristate "Fujitsu MB86A16 based" | 309 | tristate "Zarlink ZL10036 silicon tuner" |
| 309 | depends on DVB_CORE && I2C | 310 | depends on DVB_CORE && I2C |
| 310 | default m if !MEDIA_SUBDRV_AUTOSELECT | 311 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 311 | help | 312 | help |
| 312 | A DVB-S/DSS Direct Conversion reveiver. | 313 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 313 | Say Y when you want to support this frontend. | ||
| 314 | 314 | ||
| 315 | config DVB_TDA10071 | 315 | config DVB_ZL10039 |
| 316 | tristate "NXP TDA10071" | 316 | tristate "Zarlink ZL10039 silicon tuner" |
| 317 | depends on DVB_CORE && I2C | 317 | depends on DVB_CORE && I2C |
| 318 | select REGMAP_I2C | ||
| 319 | default m if !MEDIA_SUBDRV_AUTOSELECT | 318 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 320 | help | 319 | help |
| 321 | Say Y when you want to support this frontend. | 320 | A DVB-S tuner module. Say Y when you want to support this frontend. |
| 322 | 321 | ||
| 323 | comment "DVB-T (terrestrial) frontends" | 322 | comment "DVB-T (terrestrial) frontends" |
| 324 | depends on DVB_CORE | 323 | depends on DVB_CORE |
| 325 | 324 | ||
| 326 | config DVB_SP887X | 325 | config DVB_AF9013 |
| 327 | tristate "Spase sp887x based" | 326 | tristate "Afatech AF9013 demodulator" |
| 328 | depends on DVB_CORE && I2C | 327 | depends on DVB_CORE && I2C && I2C_MUX |
| 328 | select REGMAP | ||
| 329 | default m if !MEDIA_SUBDRV_AUTOSELECT | 329 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 330 | help | 330 | help |
| 331 | A DVB-T tuner module. Say Y when you want to support this frontend. | 331 | Say Y when you want to support this frontend. |
| 332 | 332 | ||
| 333 | This driver needs external firmware. Please use the command | 333 | config DVB_AS102_FE |
| 334 | "<kerneldir>/scripts/get_dvb_firmware sp887x" to | 334 | tristate |
| 335 | download/extract it, and then copy it to /usr/lib/hotplug/firmware | 335 | depends on DVB_CORE |
| 336 | or /lib/firmware (depending on configuration of firmware hotplug). | 336 | default DVB_AS102 |
| 337 | 337 | ||
| 338 | config DVB_CX22700 | 338 | config DVB_CX22700 |
| 339 | tristate "Conexant CX22700 based" | 339 | tristate "Conexant CX22700 based" |
| @@ -349,80 +349,36 @@ config DVB_CX22702 · 9 unmodified lines | |||
| 349 | help | 349 | help |
| 350 | A DVB-T tuner module. Say Y when you want to support this frontend. | 350 | A DVB-T tuner module. Say Y when you want to support this frontend. |
| 351 | 351 | ||
| 352 | config DVB_S5H1432 | 352 | config DVB_CXD2820R |
| 353 | tristate "Samsung s5h1432 demodulator (OFDM)" | 353 | tristate "Sony CXD2820R" |
| 354 | depends on DVB_CORE && I2C | 354 | depends on DVB_CORE && I2C |
| 355 | select REGMAP_I2C | ||
| 355 | default m if !MEDIA_SUBDRV_AUTOSELECT | 356 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 356 | help | 357 | help |
| 357 | A DVB-T tuner module. Say Y when you want to support this frontend. | 358 | Say Y when you want to support this frontend. |
| 358 | 359 | ||
| 359 | config DVB_DRXD | 360 | config DVB_CXD2841ER |
| 360 | tristate "Micronas DRXD driver" | 361 | tristate "Sony CXD2841ER" |
| 361 | depends on DVB_CORE && I2C | 362 | depends on DVB_CORE && I2C |
| 362 | default m if !MEDIA_SUBDRV_AUTOSELECT | 363 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 363 | help | 364 | help |
| 364 | A DVB-T tuner module. Say Y when you want to support this frontend. | 365 | Say Y when you want to support this frontend. |
| 365 | |||
| 366 | Note: this driver was based on vendor driver reference code (released | ||
| 367 | under the GPL) as opposed to the existing drx397xd driver, which | ||
| 368 | was written via reverse engineering. | ||
| 369 | 366 | ||
| 370 | config DVB_L64781 | 367 | config DVB_DIB3000MB |
| 371 | tristate "LSI L64781" | 368 | tristate "DiBcom 3000M-B" |
| 372 | depends on DVB_CORE && I2C | 369 | depends on DVB_CORE && I2C |
| 373 | default m if !MEDIA_SUBDRV_AUTOSELECT | 370 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 374 | help | 371 | help |
| 375 | A DVB-T tuner module. Say Y when you want to support this frontend. | 372 | A DVB-T tuner module. Designed for mobile usage. Say Y when you want |
| 373 | to support this frontend. | ||
| 376 | 374 | ||
| 377 | config DVB_TDA1004X | 375 | config DVB_DIB3000MC |
| 378 | tristate "Philips TDA10045H/TDA10046H based" | 376 | tristate "DiBcom 3000P/M-C" |
| 379 | depends on DVB_CORE && I2C | 377 | depends on DVB_CORE && I2C |
| 380 | default m if !MEDIA_SUBDRV_AUTOSELECT | 378 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 381 | help | 379 | help |
| 382 | A DVB-T tuner module. Say Y when you want to support this frontend. | 380 | A DVB-T tuner module. Designed for mobile usage. Say Y when you want |
| 383 | 381 | to support this frontend. | |
| 384 | This driver needs external firmware. Please use the commands | ||
| 385 | "<kerneldir>/scripts/get_dvb_firmware tda10045", | ||
| 386 | "<kerneldir>/scripts/get_dvb_firmware tda10046" to | ||
| 387 | download/extract them, and then copy them to /usr/lib/hotplug/firmware | ||
| 388 | or /lib/firmware (depending on configuration of firmware hotplug). | ||
| 389 | |||
| 390 | config DVB_NXT6000 | ||
| 391 | tristate "NxtWave Communications NXT6000 based" | ||
| 392 | depends on DVB_CORE && I2C | ||
| 393 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 394 | help | ||
| 395 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 396 | |||
| 397 | config DVB_MT352 | ||
| 398 | tristate "Zarlink MT352 based" | ||
| 399 | depends on DVB_CORE && I2C | ||
| 400 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 401 | help | ||
| 402 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 403 | |||
| 404 | config DVB_ZL10353 | ||
| 405 | tristate "Zarlink ZL10353 based" | ||
| 406 | depends on DVB_CORE && I2C | ||
| 407 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 408 | help | ||
| 409 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 410 | |||
| 411 | config DVB_DIB3000MB | ||
| 412 | tristate "DiBcom 3000M-B" | ||
| 413 | depends on DVB_CORE && I2C | ||
| 414 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 415 | help | ||
| 416 | A DVB-T tuner module. Designed for mobile usage. Say Y when you want | ||
| 417 | to support this frontend. | ||
| 418 | |||
| 419 | config DVB_DIB3000MC | ||
| 420 | tristate "DiBcom 3000P/M-C" | ||
| 421 | depends on DVB_CORE && I2C | ||
| 422 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 423 | help | ||
| 424 | A DVB-T tuner module. Designed for mobile usage. Say Y when you want | ||
| 425 | to support this frontend. | ||
| 426 | 382 | ||
| 427 | config DVB_DIB7000M | 383 | config DVB_DIB7000M |
| 428 | tristate "DiBcom 7000MA/MB/PA/PB/MC" | 384 | tristate "DiBcom 7000MA/MB/PA/PB/MC" |
| @@ -448,20 +404,16 @@ config DVB_DIB9000 · 19 unmodified lines | |||
| 448 | A DVB-T tuner module. Designed for mobile usage. Say Y when you want | 404 | A DVB-T tuner module. Designed for mobile usage. Say Y when you want |
| 449 | to support this frontend. | 405 | to support this frontend. |
| 450 | 406 | ||
| 451 | config DVB_TDA10048 | 407 | config DVB_DRXD |
| 452 | tristate "Philips TDA10048HN based" | 408 | tristate "Micronas DRXD driver" |
| 453 | depends on DVB_CORE && I2C | 409 | depends on DVB_CORE && I2C |
| 454 | default m if !MEDIA_SUBDRV_AUTOSELECT | 410 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 455 | help | 411 | help |
| 456 | A DVB-T tuner module. Say Y when you want to support this frontend. | 412 | A DVB-T tuner module. Say Y when you want to support this frontend. |
| 457 | 413 | ||
| 458 | config DVB_AF9013 | 414 | Note: this driver was based on vendor driver reference code (released |
| 459 | tristate "Afatech AF9013 demodulator" | 415 | under the GPL) as opposed to the existing drx397xd driver, which |
| 460 | depends on DVB_CORE && I2C && I2C_MUX | 416 | was written via reverse engineering. |
| 461 | select REGMAP | ||
| 462 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 463 | help | ||
| 464 | Say Y when you want to support this frontend. | ||
| 465 | 417 | ||
| 466 | config DVB_EC100 | 418 | config DVB_EC100 |
| 467 | tristate "E3C EC100" | 419 | tristate "E3C EC100" |
| @@ -470,27 +422,31 @@ config DVB_EC100 · 2 unmodified lines | |||
| 470 | help | 422 | help |
| 471 | Say Y when you want to support this frontend. | 423 | Say Y when you want to support this frontend. |
| 472 | 424 | ||
| 473 | config DVB_STV0367 | 425 | config DVB_GP8PSK_FE |
| 474 | tristate "ST STV0367 based" | 426 | tristate |
| 427 | depends on DVB_CORE | ||
| 428 | default DVB_USB_GP8PSK | ||
| 429 | |||
| 430 | config DVB_L64781 | ||
| 431 | tristate "LSI L64781" | ||
| 475 | depends on DVB_CORE && I2C | 432 | depends on DVB_CORE && I2C |
| 476 | default m if !MEDIA_SUBDRV_AUTOSELECT | 433 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 477 | help | 434 | help |
| 478 | A DVB-T/C tuner module. Say Y when you want to support this frontend. | 435 | A DVB-T tuner module. Say Y when you want to support this frontend. |
| 479 | 436 | ||
| 480 | config DVB_CXD2820R | 437 | config DVB_MT352 |
| 481 | tristate "Sony CXD2820R" | 438 | tristate "Zarlink MT352 based" |
| 482 | depends on DVB_CORE && I2C | 439 | depends on DVB_CORE && I2C |
| 483 | select REGMAP_I2C | ||
| 484 | default m if !MEDIA_SUBDRV_AUTOSELECT | 440 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 485 | help | 441 | help |
| 486 | Say Y when you want to support this frontend. | 442 | A DVB-T tuner module. Say Y when you want to support this frontend. |
| 487 | 443 | ||
| 488 | config DVB_CXD2841ER | 444 | config DVB_NXT6000 |
| 489 | tristate "Sony CXD2841ER" | 445 | tristate "NxtWave Communications NXT6000 based" |
| 490 | depends on DVB_CORE && I2C | 446 | depends on DVB_CORE && I2C |
| 491 | default m if !MEDIA_SUBDRV_AUTOSELECT | 447 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 492 | help | 448 | help |
| 493 | Say Y when you want to support this frontend. | 449 | A DVB-T tuner module. Say Y when you want to support this frontend. |
| 494 | 450 | ||
| 495 | config DVB_RTL2830 | 451 | config DVB_RTL2830 |
| 496 | tristate "Realtek RTL2830 DVB-T" | 452 | tristate "Realtek RTL2830 DVB-T" |
| @@ -510,13 +466,20 @@ config DVB_RTL2832 · 13 unmodified lines | |||
| 510 | 466 | ||
| 511 | config DVB_RTL2832_SDR | 467 | config DVB_RTL2832_SDR |
| 512 | tristate "Realtek RTL2832 SDR" | 468 | tristate "Realtek RTL2832 SDR" |
| 513 | depends on DVB_CORE && I2C && I2C_MUX && VIDEO_V4L2 && MEDIA_SDR_SUPPORT && USB | 469 | depends on DVB_CORE && I2C && I2C_MUX && VIDEO_DEV && MEDIA_SDR_SUPPORT && USB |
| 514 | select DVB_RTL2832 | 470 | select DVB_RTL2832 |
| 515 | select VIDEOBUF2_VMALLOC | 471 | select VIDEOBUF2_VMALLOC |
| 516 | default m if !MEDIA_SUBDRV_AUTOSELECT | 472 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 517 | help | 473 | help |
| 518 | Say Y when you want to support this SDR module. | 474 | Say Y when you want to support this SDR module. |
| 519 | 475 | ||
| 476 | config DVB_S5H1432 | ||
| 477 | tristate "Samsung s5h1432 demodulator (OFDM)" | ||
| 478 | depends on DVB_CORE && I2C | ||
| 479 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 480 | help | ||
| 481 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 482 | |||
| 520 | config DVB_SI2168 | 483 | config DVB_SI2168 |
| 521 | tristate "Silicon Labs Si2168" | 484 | tristate "Silicon Labs Si2168" |
| 522 | depends on DVB_CORE && I2C && I2C_MUX | 485 | depends on DVB_CORE && I2C && I2C_MUX |
| @@ -524,10 +487,44 @@ config DVB_SI2168 · 1 unmodified line | |||
| 524 | help | 487 | help |
| 525 | Say Y when you want to support this frontend. | 488 | Say Y when you want to support this frontend. |
| 526 | 489 | ||
| 527 | config DVB_AS102_FE | 490 | config DVB_SP887X |
| 528 | tristate | 491 | tristate "Spase sp887x based" |
| 529 | depends on DVB_CORE | 492 | depends on DVB_CORE && I2C |
| 530 | default DVB_AS102 | 493 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 494 | help | ||
| 495 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 496 | |||
| 497 | This driver needs external firmware. Please use the command | ||
| 498 | "<kerneldir>/scripts/get_dvb_firmware sp887x" to | ||
| 499 | download/extract it, and then copy it to /usr/lib/hotplug/firmware | ||
| 500 | or /lib/firmware (depending on configuration of firmware hotplug). | ||
| 501 | |||
| 502 | config DVB_STV0367 | ||
| 503 | tristate "ST STV0367 based" | ||
| 504 | depends on DVB_CORE && I2C | ||
| 505 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 506 | help | ||
| 507 | A DVB-T/C tuner module. Say Y when you want to support this frontend. | ||
| 508 | |||
| 509 | config DVB_TDA10048 | ||
| 510 | tristate "Philips TDA10048HN based" | ||
| 511 | depends on DVB_CORE && I2C | ||
| 512 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 513 | help | ||
| 514 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 515 | |||
| 516 | config DVB_TDA1004X | ||
| 517 | tristate "Philips TDA10045H/TDA10046H based" | ||
| 518 | depends on DVB_CORE && I2C | ||
| 519 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 520 | help | ||
| 521 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 522 | |||
| 523 | This driver needs external firmware. Please use the commands | ||
| 524 | "<kerneldir>/scripts/get_dvb_firmware tda10045", | ||
| 525 | "<kerneldir>/scripts/get_dvb_firmware tda10046" to | ||
| 526 | download/extract them, and then copy them to /usr/lib/hotplug/firmware | ||
| 527 | or /lib/firmware (depending on configuration of firmware hotplug). | ||
| 531 | 528 | ||
| 532 | config DVB_ZD1301_DEMOD | 529 | config DVB_ZD1301_DEMOD |
| 533 | tristate "ZyDAS ZD1301" | 530 | tristate "ZyDAS ZD1301" |
| @@ -536,18 +533,20 @@ config DVB_ZD1301_DEMOD · 2 unmodified lines | |||
| 536 | help | 533 | help |
| 537 | Say Y when you want to support this frontend. | 534 | Say Y when you want to support this frontend. |
| 538 | 535 | ||
| 539 | config DVB_GP8PSK_FE | 536 | config DVB_ZL10353 |
| 540 | tristate | 537 | tristate "Zarlink ZL10353 based" |
| 541 | depends on DVB_CORE | 538 | depends on DVB_CORE && I2C |
| 542 | default DVB_USB_GP8PSK | 539 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 540 | help | ||
| 541 | A DVB-T tuner module. Say Y when you want to support this frontend. | ||
| 543 | 542 | ||
| 544 | source "drivers/media/dvb-frontends/cxd2880/Kconfig" | 543 | source "drivers/media/dvb-frontends/cxd2880/Kconfig" |
| 545 | 544 | ||
| 546 | comment "DVB-C (cable) frontends" | 545 | comment "DVB-C (cable) frontends" |
| 547 | depends on DVB_CORE | 546 | depends on DVB_CORE |
| 548 | 547 | ||
| 549 | config DVB_VES1820 | 548 | config DVB_STV0297 |
| 550 | tristate "VLSI VES1820 based" | 549 | tristate "ST STV0297 based" |
| 551 | depends on DVB_CORE && I2C | 550 | depends on DVB_CORE && I2C |
| 552 | default m if !MEDIA_SUBDRV_AUTOSELECT | 551 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 553 | help | 552 | help |
| @@ -567,8 +566,8 @@ config DVB_TDA10023 · 13 unmodified lines | |||
| 567 | help | 566 | help |
| 568 | A DVB-C tuner module. Say Y when you want to support this frontend. | 567 | A DVB-C tuner module. Say Y when you want to support this frontend. |
| 569 | 568 | ||
| 570 | config DVB_STV0297 | 569 | config DVB_VES1820 |
| 571 | tristate "ST STV0297 based" | 570 | tristate "VLSI VES1820 based" |
| 572 | depends on DVB_CORE && I2C | 571 | depends on DVB_CORE && I2C |
| 573 | default m if !MEDIA_SUBDRV_AUTOSELECT | 572 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 574 | help | 573 | help |
| @@ -577,46 +576,27 @@ config DVB_STV0297 · 2 unmodified lines | |||
| 577 | comment "ATSC (North American/Korean Terrestrial/Cable DTV) frontends" | 576 | comment "ATSC (North American/Korean Terrestrial/Cable DTV) frontends" |
| 578 | depends on DVB_CORE | 577 | depends on DVB_CORE |
| 579 | 578 | ||
| 580 | config DVB_NXT200X | 579 | config DVB_AU8522 |
| 581 | tristate "NxtWave Communications NXT2002/NXT2004 based" | ||
| 582 | depends on DVB_CORE && I2C | 580 | depends on DVB_CORE && I2C |
| 583 | default m if !MEDIA_SUBDRV_AUTOSELECT | 581 | tristate |
| 584 | help | ||
| 585 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want | ||
| 586 | to support this frontend. | ||
| 587 | |||
| 588 | This driver needs external firmware. Please use the commands | ||
| 589 | "<kerneldir>/scripts/get_dvb_firmware nxt2002" and | ||
| 590 | "<kerneldir>/scripts/get_dvb_firmware nxt2004" to | ||
| 591 | download/extract them, and then copy them to /usr/lib/hotplug/firmware | ||
| 592 | or /lib/firmware (depending on configuration of firmware hotplug). | ||
| 593 | 582 | ||
| 594 | config DVB_OR51211 | 583 | config DVB_AU8522_DTV |
| 595 | tristate "Oren OR51211 based" | 584 | tristate "Auvitek AU8522 based DTV demod" |
| 596 | depends on DVB_CORE && I2C | 585 | depends on DVB_CORE && I2C |
| 586 | select DVB_AU8522 | ||
| 597 | default m if !MEDIA_SUBDRV_AUTOSELECT | 587 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 598 | help | 588 | help |
| 599 | An ATSC 8VSB tuner module. Say Y when you want to support this frontend. | 589 | An ATSC 8VSB, QAM64/256 & NTSC demodulator module. Say Y when |
| 600 | 590 | you want to enable DTV demodulation support for this frontend. | |
| 601 | This driver needs external firmware. Please use the command | ||
| 602 | "<kerneldir>/scripts/get_dvb_firmware or51211" to | ||
| 603 | download it, and then copy it to /usr/lib/hotplug/firmware | ||
| 604 | or /lib/firmware (depending on configuration of firmware hotplug). | ||
| 605 | 591 | ||
| 606 | config DVB_OR51132 | 592 | config DVB_AU8522_V4L |
| 607 | tristate "Oren OR51132 based" | 593 | tristate "Auvitek AU8522 based ATV demod" |
| 608 | depends on DVB_CORE && I2C | 594 | depends on VIDEO_DEV && DVB_CORE && I2C |
| 595 | select DVB_AU8522 | ||
| 609 | default m if !MEDIA_SUBDRV_AUTOSELECT | 596 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 610 | help | 597 | help |
| 611 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want | 598 | An ATSC 8VSB, QAM64/256 & NTSC demodulator module. Say Y when |
| 612 | to support this frontend. | 599 | you want to enable ATV demodulation support for this frontend. |
| 613 | |||
| 614 | This driver needs external firmware. Please use the commands | ||
| 615 | "<kerneldir>/scripts/get_dvb_firmware or51132_vsb" and/or | ||
| 616 | "<kerneldir>/scripts/get_dvb_firmware or51132_qam" to | ||
| 617 | download firmwares for 8VSB and QAM64/256, respectively. Copy them to | ||
| 618 | /usr/lib/hotplug/firmware or /lib/firmware (depending on | ||
| 619 | configuration of firmware hotplug). | ||
| 620 | 600 | ||
| 621 | config DVB_BCM3510 | 601 | config DVB_BCM3510 |
| 622 | tristate "Broadcom BCM3510" | 602 | tristate "Broadcom BCM3510" |
| @@ -626,12 +606,12 @@ config DVB_BCM3510 · 3 unmodified lines | |||
| 626 | An ATSC 8VSB/16VSB and QAM64/256 tuner module. Say Y when you want to | 606 | An ATSC 8VSB/16VSB and QAM64/256 tuner module. Say Y when you want to |
| 627 | support this frontend. | 607 | support this frontend. |
| 628 | 608 | ||
| 629 | config DVB_LGDT330X | 609 | config DVB_LG2160 |
| 630 | tristate "LG Electronics LGDT3302/LGDT3303 based" | 610 | tristate "LG Electronics LG216x based" |
| 631 | depends on DVB_CORE && I2C | 611 | depends on DVB_CORE && I2C |
| 632 | default m if !MEDIA_SUBDRV_AUTOSELECT | 612 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 633 | help | 613 | help |
| 634 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want | 614 | An ATSC/MH demodulator module. Say Y when you want |
| 635 | to support this frontend. | 615 | to support this frontend. |
| 636 | 616 | ||
| 637 | config DVB_LGDT3305 | 617 | config DVB_LGDT3305 |
| @@ -650,72 +630,83 @@ config DVB_LGDT3306A · 12 unmodified lines | |||
| 650 | An ATSC 8VSB and QAM-B 64/256 demodulator module. Say Y when you want | 630 | An ATSC 8VSB and QAM-B 64/256 demodulator module. Say Y when you want |
| 651 | to support this frontend. | 631 | to support this frontend. |
| 652 | 632 | ||
| 653 | config DVB_LG2160 | 633 | config DVB_LGDT330X |
| 654 | tristate "LG Electronics LG216x based" | 634 | tristate "LG Electronics LGDT3302/LGDT3303 based" |
| 655 | depends on DVB_CORE && I2C | 635 | depends on DVB_CORE && I2C |
| 656 | default m if !MEDIA_SUBDRV_AUTOSELECT | 636 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 657 | help | 637 | help |
| 658 | An ATSC/MH demodulator module. Say Y when you want | 638 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want |
| 659 | to support this frontend. | 639 | to support this frontend. |
| 660 | 640 | ||
| 661 | config DVB_S5H1409 | 641 | config DVB_MXL692 |
| 662 | tristate "Samsung S5H1409 based" | 642 | tristate "MaxLinear MXL692 based" |
| 643 | depends on DVB_CORE && I2C | ||
| 644 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 645 | help | ||
| 646 | MaxLinear MxL692 is a combo tuner-demodulator that | ||
| 647 | supports ATSC 8VSB and QAM modes. Say Y when you want to | ||
| 648 | support this frontend. | ||
| 649 | |||
| 650 | config DVB_NXT200X | ||
| 651 | tristate "NxtWave Communications NXT2002/NXT2004 based" | ||
| 663 | depends on DVB_CORE && I2C | 652 | depends on DVB_CORE && I2C |
| 664 | default m if !MEDIA_SUBDRV_AUTOSELECT | 653 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 665 | help | 654 | help |
| 666 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want | 655 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want |
| 667 | to support this frontend. | 656 | to support this frontend. |
| 668 | 657 | ||
| 669 | config DVB_AU8522 | 658 | This driver needs external firmware. Please use the commands |
| 670 | depends on DVB_CORE && I2C | 659 | "<kerneldir>/scripts/get_dvb_firmware nxt2002" and |
| 671 | tristate | 660 | "<kerneldir>/scripts/get_dvb_firmware nxt2004" to |
| 661 | download/extract them, and then copy them to /usr/lib/hotplug/firmware | ||
| 662 | or /lib/firmware (depending on configuration of firmware hotplug). | ||
| 672 | 663 | ||
| 673 | config DVB_AU8522_DTV | 664 | config DVB_OR51132 |
| 674 | tristate "Auvitek AU8522 based DTV demod" | 665 | tristate "Oren OR51132 based" |
| 675 | depends on DVB_CORE && I2C | 666 | depends on DVB_CORE && I2C |
| 676 | select DVB_AU8522 | ||
| 677 | default m if !MEDIA_SUBDRV_AUTOSELECT | 667 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 678 | help | 668 | help |
| 679 | An ATSC 8VSB, QAM64/256 & NTSC demodulator module. Say Y when | 669 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want |
| 680 | you want to enable DTV demodulation support for this frontend. | 670 | to support this frontend. |
| 681 | 671 | ||
| 682 | config DVB_AU8522_V4L | 672 | This driver needs external firmware. Please use the commands |
| 683 | tristate "Auvitek AU8522 based ATV demod" | 673 | "<kerneldir>/scripts/get_dvb_firmware or51132_vsb" and/or |
| 684 | depends on VIDEO_V4L2 && DVB_CORE && I2C | 674 | "<kerneldir>/scripts/get_dvb_firmware or51132_qam" to |
| 685 | select DVB_AU8522 | 675 | download firmwares for 8VSB and QAM64/256, respectively. Copy them to |
| 676 | /usr/lib/hotplug/firmware or /lib/firmware (depending on | ||
| 677 | configuration of firmware hotplug). | ||
| 678 | |||
| 679 | config DVB_OR51211 | ||
| 680 | tristate "Oren OR51211 based" | ||
| 681 | depends on DVB_CORE && I2C | ||
| 686 | default m if !MEDIA_SUBDRV_AUTOSELECT | 682 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 687 | help | 683 | help |
| 688 | An ATSC 8VSB, QAM64/256 & NTSC demodulator module. Say Y when | 684 | An ATSC 8VSB tuner module. Say Y when you want to support this frontend. |
| 689 | you want to enable ATV demodulation support for this frontend. | ||
| 690 | 685 | ||
| 691 | config DVB_S5H1411 | 686 | This driver needs external firmware. Please use the command |
| 692 | tristate "Samsung S5H1411 based" | 687 | "<kerneldir>/scripts/get_dvb_firmware or51211" to |
| 688 | download it, and then copy it to /usr/lib/hotplug/firmware | ||
| 689 | or /lib/firmware (depending on configuration of firmware hotplug). | ||
| 690 | |||
| 691 | config DVB_S5H1409 | ||
| 692 | tristate "Samsung S5H1409 based" | ||
| 693 | depends on DVB_CORE && I2C | 693 | depends on DVB_CORE && I2C |
| 694 | default m if !MEDIA_SUBDRV_AUTOSELECT | 694 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 695 | help | 695 | help |
| 696 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want | 696 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want |
| 697 | to support this frontend. | 697 | to support this frontend. |
| 698 | 698 | ||
| 699 | config DVB_MXL692 | 699 | config DVB_S5H1411 |
| 700 | tristate "MaxLinear MXL692 based" | 700 | tristate "Samsung S5H1411 based" |
| 701 | depends on DVB_CORE && I2C | 701 | depends on DVB_CORE && I2C |
| 702 | default m if !MEDIA_SUBDRV_AUTOSELECT | 702 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 703 | help | 703 | help |
| 704 | MaxLinear MxL692 is a combo tuner-demodulator that | 704 | An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want |
| 705 | supports ATSC 8VSB and QAM modes. Say Y when you want to | 705 | to support this frontend. |
| 706 | support this frontend. | ||
| 707 | 706 | ||
| 708 | comment "ISDB-T (terrestrial) frontends" | 707 | comment "ISDB-T (terrestrial) frontends" |
| 709 | depends on DVB_CORE | 708 | depends on DVB_CORE |
| 710 | 709 | ||
| 711 | config DVB_S921 | ||
| 712 | tristate "Sharp S921 frontend" | ||
| 713 | depends on DVB_CORE && I2C | ||
| 714 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 715 | help | ||
| 716 | AN ISDB-T DQPSK, QPSK, 16QAM and 64QAM 1seg tuner module. | ||
| 717 | Say Y when you want to support this frontend. | ||
| 718 | |||
| 719 | config DVB_DIB8000 | 710 | config DVB_DIB8000 |
| 720 | tristate "DiBcom 8000MB/MC" | 711 | tristate "DiBcom 8000MB/MC" |
| 721 | depends on DVB_CORE && I2C | 712 | depends on DVB_CORE && I2C |
| @@ -732,17 +723,17 @@ config DVB_MB86A20S · 10 unmodified lines | |||
| 732 | A driver for Fujitsu mb86a20s ISDB-T/ISDB-Tsb demodulator. | 723 | A driver for Fujitsu mb86a20s ISDB-T/ISDB-Tsb demodulator. |
| 733 | Say Y when you want to support this frontend. | 724 | Say Y when you want to support this frontend. |
| 734 | 725 | ||
| 735 | comment "ISDB-S (satellite) & ISDB-T (terrestrial) frontends" | 726 | config DVB_S921 |
| 736 | depends on DVB_CORE | 727 | tristate "Sharp S921 frontend" |
| 737 | |||
| 738 | config DVB_TC90522 | ||
| 739 | tristate "Toshiba TC90522" | ||
| 740 | depends on DVB_CORE && I2C | 728 | depends on DVB_CORE && I2C |
| 741 | default m if !MEDIA_SUBDRV_AUTOSELECT | 729 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 742 | help | 730 | help |
| 743 | Toshiba TC90522 2xISDB-S 8PSK + 2xISDB-T OFDM demodulator. | 731 | AN ISDB-T DQPSK, QPSK, 16QAM and 64QAM 1seg tuner module. |
| 744 | Say Y when you want to support this frontend. | 732 | Say Y when you want to support this frontend. |
| 745 | 733 | ||
| 734 | comment "ISDB-S (satellite) & ISDB-T (terrestrial) frontends" | ||
| 735 | depends on DVB_CORE | ||
| 736 | |||
| 746 | config DVB_MN88443X | 737 | config DVB_MN88443X |
| 747 | tristate "Socionext MN88443x" | 738 | tristate "Socionext MN88443x" |
| 748 | depends on DVB_CORE && I2C | 739 | depends on DVB_CORE && I2C |
| @@ -753,6 +744,14 @@ config DVB_MN88443X · 4 unmodified lines | |||
| 753 | ISDB-S + ISDB-T demodulator. | 744 | ISDB-S + ISDB-T demodulator. |
| 754 | Say Y when you want to support this frontend. | 745 | Say Y when you want to support this frontend. |
| 755 | 746 | ||
| 747 | config DVB_TC90522 | ||
| 748 | tristate "Toshiba TC90522" | ||
| 749 | depends on DVB_CORE && I2C | ||
| 750 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 751 | help | ||
| 752 | Toshiba TC90522 2xISDB-S 8PSK + 2xISDB-T OFDM demodulator. | ||
| 753 | Say Y when you want to support this frontend. | ||
| 754 | |||
| 756 | comment "Digital terrestrial only tuners/PLL" | 755 | comment "Digital terrestrial only tuners/PLL" |
| 757 | depends on DVB_CORE | 756 | depends on DVB_CORE |
| 758 | 757 | ||
| @@ -785,42 +784,44 @@ config DVB_TUNER_DIB0090 · 26 unmodified lines | |||
| 785 | comment "SEC control devices for DVB-S" | 784 | comment "SEC control devices for DVB-S" |
| 786 | depends on DVB_CORE | 785 | depends on DVB_CORE |
| 787 | 786 | ||
| 788 | source "drivers/media/dvb-frontends/drx39xyj/Kconfig" | 787 | config DVB_A8293 |
| 788 | tristate "Allegro A8293" | ||
| 789 | depends on DVB_CORE && I2C | ||
| 790 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 789 | 791 | ||
| 790 | config DVB_LNBH25 | 792 | config DVB_AF9033 |
| 791 | tristate "LNBH25 SEC controller" | 793 | tristate "Afatech AF9033 DVB-T demodulator" |
| 794 | depends on DVB_CORE && I2C | ||
| 795 | select REGMAP_I2C | ||
| 796 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 797 | |||
| 798 | config DVB_ASCOT2E | ||
| 799 | tristate "Sony Ascot2E tuner" | ||
| 792 | depends on DVB_CORE && I2C | 800 | depends on DVB_CORE && I2C |
| 793 | default m if !MEDIA_SUBDRV_AUTOSELECT | 801 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 794 | help | 802 | help |
| 795 | An SEC control chip. | 803 | Say Y when you want to support this frontend. |
| 796 | Say Y when you want to support this chip. | ||
| 797 | 804 | ||
| 798 | config DVB_LNBH29 | 805 | config DVB_ATBM8830 |
| 799 | tristate "LNBH29 SEC controller" | 806 | tristate "AltoBeam ATBM8830/8831 DMB-TH demodulator" |
| 800 | depends on DVB_CORE && I2C | 807 | depends on DVB_CORE && I2C |
| 801 | default m if !MEDIA_SUBDRV_AUTOSELECT | 808 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 802 | help | 809 | help |
| 803 | LNB power supply and control voltage | 810 | A DMB-TH tuner module. Say Y when you want to support this frontend. |
| 804 | regulator chip with step-up converter | ||
| 805 | and I2C interface for STMicroelectronics LNBH29. | ||
| 806 | Say Y when you want to support this chip. | ||
| 807 | 811 | ||
| 808 | config DVB_LNBP21 | 812 | config DVB_HELENE |
| 809 | tristate "LNBP21/LNBH24 SEC controllers" | 813 | tristate "Sony HELENE Sat/Ter tuner (CXD2858ER)" |
| 810 | depends on DVB_CORE && I2C | 814 | depends on DVB_CORE && I2C |
| 811 | default m if !MEDIA_SUBDRV_AUTOSELECT | 815 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 812 | help | 816 | help |
| 813 | An SEC control chips. | 817 | Say Y when you want to support this frontend. |
| 814 | 818 | ||
| 815 | config DVB_LNBP22 | 819 | config DVB_HORUS3A |
| 816 | tristate "LNBP22 SEC controllers" | 820 | tristate "Sony Horus3A tuner" |
| 817 | depends on DVB_CORE && I2C | 821 | depends on DVB_CORE && I2C |
| 818 | default m if !MEDIA_SUBDRV_AUTOSELECT | 822 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 819 | help | 823 | help |
| 820 | LNB power supply and control voltage | 824 | Say Y when you want to support this frontend. |
| 821 | regulator chip with step-up converter | ||
| 822 | and I2C interface. | ||
| 823 | Say Y when you want to support this chip. | ||
| 824 | 825 | ||
| 825 | config DVB_ISL6405 | 826 | config DVB_ISL6405 |
| 826 | tristate "ISL6405 SEC controller" | 827 | tristate "ISL6405 SEC controller" |
| @@ -843,10 +844,12 @@ config DVB_ISL6423 · 16 unmodified lines | |||
| 843 | help | 844 | help |
| 844 | A SEC controller chip from Intersil | 845 | A SEC controller chip from Intersil |
| 845 | 846 | ||
| 846 | config DVB_A8293 | 847 | config DVB_IX2505V |
| 847 | tristate "Allegro A8293" | 848 | tristate "Sharp IX2505V silicon tuner" |
| 848 | depends on DVB_CORE && I2C | 849 | depends on DVB_CORE && I2C |
| 849 | default m if !MEDIA_SUBDRV_AUTOSELECT | 850 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 851 | help | ||
| 852 | A DVB-S tuner module. Say Y when you want to support this frontend. | ||
| 850 | 853 | ||
| 851 | config DVB_LGS8GL5 | 854 | config DVB_LGS8GL5 |
| 852 | tristate "Silicon Legend LGS-8GL5 demodulator (OFDM)" | 855 | tristate "Silicon Legend LGS-8GL5 demodulator (OFDM)" |
| @@ -863,30 +866,40 @@ config DVB_LGS8GXX · 10 unmodified lines | |||
| 863 | help | 866 | help |
| 864 | A DMB-TH tuner module. Say Y when you want to support this frontend. | 867 | A DMB-TH tuner module. Say Y when you want to support this frontend. |
| 865 | 868 | ||
| 866 | config DVB_ATBM8830 | 869 | config DVB_LNBH25 |
| 867 | tristate "AltoBeam ATBM8830/8831 DMB-TH demodulator" | 870 | tristate "LNBH25 SEC controller" |
| 868 | depends on DVB_CORE && I2C | 871 | depends on DVB_CORE && I2C |
| 869 | default m if !MEDIA_SUBDRV_AUTOSELECT | 872 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 870 | help | 873 | help |
| 871 | A DMB-TH tuner module. Say Y when you want to support this frontend. | 874 | An SEC control chip. |
| 875 | Say Y when you want to support this chip. | ||
| 872 | 876 | ||
| 873 | config DVB_TDA665x | 877 | config DVB_LNBH29 |
| 874 | tristate "TDA665x tuner" | 878 | tristate "LNBH29 SEC controller" |
| 875 | depends on DVB_CORE && I2C | 879 | depends on DVB_CORE && I2C |
| 876 | default m if !MEDIA_SUBDRV_AUTOSELECT | 880 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 877 | help | 881 | help |
| 878 | Support for tuner modules based on Philips TDA6650/TDA6651 chips. | 882 | LNB power supply and control voltage |
| 883 | regulator chip with step-up converter | ||
| 884 | and I2C interface for STMicroelectronics LNBH29. | ||
| 879 | Say Y when you want to support this chip. | 885 | Say Y when you want to support this chip. |
| 880 | 886 | ||
| 881 | Currently supported tuners: | 887 | config DVB_LNBP21 |
| 882 | * Panasonic ENV57H12D5 (ET-50DT) | 888 | tristate "LNBP21/LNBH24 SEC controllers" |
| 889 | depends on DVB_CORE && I2C | ||
| 890 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 891 | help | ||
| 892 | An SEC control chips. | ||
| 883 | 893 | ||
| 884 | config DVB_IX2505V | 894 | config DVB_LNBP22 |
| 885 | tristate "Sharp IX2505V silicon tuner" | 895 | tristate "LNBP22 SEC controllers" |
| 886 | depends on DVB_CORE && I2C | 896 | depends on DVB_CORE && I2C |
| 887 | default m if !MEDIA_SUBDRV_AUTOSELECT | 897 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 888 | help | 898 | help |
| 889 | A DVB-S tuner module. Say Y when you want to support this frontend. | 899 | LNB power supply and control voltage |
| 900 | regulator chip with step-up converter | ||
| 901 | and I2C interface. | ||
| 902 | Say Y when you want to support this chip. | ||
| 890 | 903 | ||
| 891 | config DVB_M88RS2000 | 904 | config DVB_M88RS2000 |
| 892 | tristate "M88RS2000 DVB-S demodulator and tuner" | 905 | tristate "M88RS2000 DVB-S demodulator and tuner" |
| @@ -896,32 +909,18 @@ config DVB_M88RS2000 · 3 unmodified lines | |||
| 896 | A DVB-S tuner module. | 909 | A DVB-S tuner module. |
| 897 | Say Y when you want to support this frontend. | 910 | Say Y when you want to support this frontend. |
| 898 | 911 | ||
| 899 | config DVB_AF9033 | 912 | config DVB_TDA665x |
| 900 | tristate "Afatech AF9033 DVB-T demodulator" | 913 | tristate "TDA665x tuner" |
| 901 | depends on DVB_CORE && I2C | ||
| 902 | select REGMAP_I2C | ||
| 903 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 904 | |||
| 905 | config DVB_HORUS3A | ||
| 906 | tristate "Sony Horus3A tuner" | ||
| 907 | depends on DVB_CORE && I2C | 914 | depends on DVB_CORE && I2C |
| 908 | default m if !MEDIA_SUBDRV_AUTOSELECT | 915 | default m if !MEDIA_SUBDRV_AUTOSELECT |
| 909 | help | 916 | help |
| 910 | Say Y when you want to support this frontend. | 917 | Support for tuner modules based on Philips TDA6650/TDA6651 chips. |
| 918 | Say Y when you want to support this chip. | ||
| 911 | 919 | ||
| 912 | config DVB_ASCOT2E | 920 | Currently supported tuners: |
| 913 | tristate "Sony Ascot2E tuner" | 921 | * Panasonic ENV57H12D5 (ET-50DT) |
| 914 | depends on DVB_CORE && I2C | ||
| 915 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 916 | help | ||
| 917 | Say Y when you want to support this frontend. | ||
| 918 | 922 | ||
| 919 | config DVB_HELENE | 923 | source "drivers/media/dvb-frontends/drx39xyj/Kconfig" |
| 920 | tristate "Sony HELENE Sat/Ter tuner (CXD2858ER)" | ||
| 921 | depends on DVB_CORE && I2C | ||
| 922 | default m if !MEDIA_SUBDRV_AUTOSELECT | ||
| 923 | help | ||
| 924 | Say Y when you want to support this frontend. | ||
| 925 | 924 | ||
| 926 | comment "Common Interface (EN50221) controller drivers" | 925 | comment "Common Interface (EN50221) controller drivers" |
| 927 | depends on DVB_CORE | 926 | depends on DVB_CORE |
| @@ -10,126 +10,129 @@ ifdef CONFIG_DVB_RTL2832_SDR · 9 unmodified lines | |||
| 10 | ccflags-y += -I$(srctree)/drivers/media/usb/dvb-usb-v2 | 10 | ccflags-y += -I$(srctree)/drivers/media/usb/dvb-usb-v2 |
| 11 | endif | 11 | endif |
| 12 | 12 | ||
| 13 | stb0899-objs := stb0899_drv.o stb0899_algo.o | ||
| 14 | stv0900-objs := stv0900_core.o stv0900_sw.o | ||
| 15 | drxd-objs := drxd_firm.o drxd_hard.o | ||
| 16 | cxd2820r-objs := cxd2820r_core.o cxd2820r_c.o cxd2820r_t.o cxd2820r_t2.o | 13 | cxd2820r-objs := cxd2820r_core.o cxd2820r_c.o cxd2820r_t.o cxd2820r_t2.o |
| 14 | drxd-objs := drxd_firm.o drxd_hard.o | ||
| 17 | drxk-objs := drxk_hard.o | 15 | drxk-objs := drxk_hard.o |
| 16 | stb0899-objs := stb0899_drv.o stb0899_algo.o | ||
| 17 | stv0900-objs := stv0900_core.o stv0900_sw.o | ||
| 18 | 18 | ||
| 19 | obj-$(CONFIG_DVB_PLL) += dvb-pll.o | 19 | # Please keep it alphabetically sorted by Kconfig name |
| 20 | obj-$(CONFIG_DVB_STV0299) += stv0299.o | 20 | # (e. g. LC_ALL=C sort Makefile) |
| 21 | obj-$(CONFIG_DVB_STB0899) += stb0899.o | 21 | |
| 22 | obj-$(CONFIG_DVB_STB6100) += stb6100.o | 22 | obj-$(CONFIG_DVB_A8293) += a8293.o |
| 23 | obj-$(CONFIG_DVB_AF9013) += af9013.o | ||
| 24 | obj-$(CONFIG_DVB_AF9033) += af9033.o | ||
| 25 | obj-$(CONFIG_DVB_AS102_FE) += as102_fe.o | ||
| 26 | obj-$(CONFIG_DVB_ASCOT2E) += ascot2e.o | ||
| 27 | obj-$(CONFIG_DVB_ATBM8830) += atbm8830.o | ||
| 28 | obj-$(CONFIG_DVB_AU8522) += au8522_common.o | ||
| 29 | obj-$(CONFIG_DVB_AU8522_DTV) += au8522_dig.o | ||
| 30 | obj-$(CONFIG_DVB_AU8522_V4L) += au8522_decoder.o | ||
| 31 | obj-$(CONFIG_DVB_BCM3510) += bcm3510.o | ||
| 23 | obj-$(CONFIG_DVB_CX22700) += cx22700.o | 32 | obj-$(CONFIG_DVB_CX22700) += cx22700.o |
| 24 | obj-$(CONFIG_DVB_S5H1432) += s5h1432.o | 33 | obj-$(CONFIG_DVB_CX22702) += cx22702.o |
| 25 | obj-$(CONFIG_DVB_CX24110) += cx24110.o | 34 | obj-$(CONFIG_DVB_CX24110) += cx24110.o |
| 26 | obj-$(CONFIG_DVB_TDA8083) += tda8083.o | 35 | obj-$(CONFIG_DVB_CX24116) += cx24116.o |
| 27 | obj-$(CONFIG_DVB_L64781) += l64781.o | 36 | obj-$(CONFIG_DVB_CX24117) += cx24117.o |
| 37 | obj-$(CONFIG_DVB_CX24120) += cx24120.o | ||
| 38 | obj-$(CONFIG_DVB_CX24123) += cx24123.o | ||
| 39 | obj-$(CONFIG_DVB_CXD2099) += cxd2099.o | ||
| 40 | obj-$(CONFIG_DVB_CXD2820R) += cxd2820r.o | ||
| 41 | obj-$(CONFIG_DVB_CXD2841ER) += cxd2841er.o | ||
| 42 | obj-$(CONFIG_DVB_CXD2880) += cxd2880/ | ||
| 28 | obj-$(CONFIG_DVB_DIB3000MB) += dib3000mb.o | 43 | obj-$(CONFIG_DVB_DIB3000MB) += dib3000mb.o |
| 29 | obj-$(CONFIG_DVB_DIB3000MC) += dib3000mc.o dibx000_common.o | 44 | obj-$(CONFIG_DVB_DIB3000MC) += dib3000mc.o dibx000_common.o |
| 30 | obj-$(CONFIG_DVB_DIB7000M) += dib7000m.o dibx000_common.o | 45 | obj-$(CONFIG_DVB_DIB7000M) += dib7000m.o dibx000_common.o |
| 31 | obj-$(CONFIG_DVB_DIB7000P) += dib7000p.o dibx000_common.o | 46 | obj-$(CONFIG_DVB_DIB7000P) += dib7000p.o dibx000_common.o |
| 32 | obj-$(CONFIG_DVB_DIB8000) += dib8000.o dibx000_common.o | 47 | obj-$(CONFIG_DVB_DIB8000) += dib8000.o dibx000_common.o |
| 33 | obj-$(CONFIG_DVB_DIB9000) += dib9000.o dibx000_common.o | 48 | obj-$(CONFIG_DVB_DIB9000) += dib9000.o dibx000_common.o |
| 34 | obj-$(CONFIG_DVB_MT312) += mt312.o | 49 | obj-$(CONFIG_DVB_DRX39XYJ) += drx39xyj/ |
| 35 | obj-$(CONFIG_DVB_VES1820) += ves1820.o | ||
| 36 | obj-$(CONFIG_DVB_VES1X93) += ves1x93.o | ||
| 37 | obj-$(CONFIG_DVB_TDA1004X) += tda1004x.o | ||
| 38 | obj-$(CONFIG_DVB_SP887X) += sp887x.o | ||
| 39 | obj-$(CONFIG_DVB_NXT6000) += nxt6000.o | ||
| 40 | obj-$(CONFIG_DVB_MT352) += mt352.o | ||
| 41 | obj-$(CONFIG_DVB_ZL10036) += zl10036.o | ||
| 42 | obj-$(CONFIG_DVB_ZL10039) += zl10039.o | ||
| 43 | obj-$(CONFIG_DVB_ZL10353) += zl10353.o | ||
| 44 | obj-$(CONFIG_DVB_CX22702) += cx22702.o | ||
| 45 | obj-$(CONFIG_DVB_DRXD) += drxd.o | 50 | obj-$(CONFIG_DVB_DRXD) += drxd.o |
| 46 | obj-$(CONFIG_DVB_TDA10021) += tda10021.o | 51 | obj-$(CONFIG_DVB_DRXK) += drxk.o |
| 47 | obj-$(CONFIG_DVB_TDA10023) += tda10023.o | 52 | obj-$(CONFIG_DVB_DS3000) += ds3000.o |
| 48 | obj-$(CONFIG_DVB_STV0297) += stv0297.o | 53 | obj-$(CONFIG_DVB_DUMMY_FE) += dvb_dummy_fe.o |
| 49 | obj-$(CONFIG_DVB_NXT200X) += nxt200x.o | 54 | obj-$(CONFIG_DVB_EC100) += ec100.o |
| 50 | obj-$(CONFIG_DVB_OR51211) += or51211.o | 55 | obj-$(CONFIG_DVB_GP8PSK_FE) += gp8psk-fe.o |
| 51 | obj-$(CONFIG_DVB_OR51132) += or51132.o | 56 | obj-$(CONFIG_DVB_HELENE) += helene.o |
| 52 | obj-$(CONFIG_DVB_BCM3510) += bcm3510.o | 57 | obj-$(CONFIG_DVB_HORUS3A) += horus3a.o |
| 53 | obj-$(CONFIG_DVB_S5H1420) += s5h1420.o | 58 | obj-$(CONFIG_DVB_ISL6405) += isl6405.o |
| 54 | obj-$(CONFIG_DVB_LGDT330X) += lgdt330x.o | 59 | obj-$(CONFIG_DVB_ISL6421) += isl6421.o |
| 60 | obj-$(CONFIG_DVB_ISL6423) += isl6423.o | ||
| 61 | obj-$(CONFIG_DVB_IX2505V) += ix2505v.o | ||
| 62 | obj-$(CONFIG_DVB_L64781) += l64781.o | ||
| 63 | obj-$(CONFIG_DVB_LG2160) += lg2160.o | ||
| 55 | obj-$(CONFIG_DVB_LGDT3305) += lgdt3305.o | 64 | obj-$(CONFIG_DVB_LGDT3305) += lgdt3305.o |
| 56 | obj-$(CONFIG_DVB_LGDT3306A) += lgdt3306a.o | 65 | obj-$(CONFIG_DVB_LGDT3306A) += lgdt3306a.o |
| 57 | obj-$(CONFIG_DVB_MXL692) += mxl692.o | 66 | obj-$(CONFIG_DVB_LGDT330X) += lgdt330x.o |
| 58 | obj-$(CONFIG_DVB_LG2160) += lg2160.o | 67 | obj-$(CONFIG_DVB_LGS8GL5) += lgs8gl5.o |
| 59 | obj-$(CONFIG_DVB_CX24123) += cx24123.o | 68 | obj-$(CONFIG_DVB_LGS8GXX) += lgs8gxx.o |
| 60 | obj-$(CONFIG_DVB_LNBH25) += lnbh25.o | 69 | obj-$(CONFIG_DVB_LNBH25) += lnbh25.o |
| 61 | obj-$(CONFIG_DVB_LNBH29) += lnbh29.o | 70 | obj-$(CONFIG_DVB_LNBH29) += lnbh29.o |
| 62 | obj-$(CONFIG_DVB_LNBP21) += lnbp21.o | 71 | obj-$(CONFIG_DVB_LNBP21) += lnbp21.o |
| 63 | obj-$(CONFIG_DVB_LNBP22) += lnbp22.o | 72 | obj-$(CONFIG_DVB_LNBP22) += lnbp22.o |
| 64 | obj-$(CONFIG_DVB_ISL6405) += isl6405.o | 73 | obj-$(CONFIG_DVB_M88DS3103) += m88ds3103.o |
| 65 | obj-$(CONFIG_DVB_ISL6421) += isl6421.o | 74 | obj-$(CONFIG_DVB_M88RS2000) += m88rs2000.o |
| 66 | obj-$(CONFIG_DVB_TDA10086) += tda10086.o | 75 | obj-$(CONFIG_DVB_MB86A16) += mb86a16.o |
| 67 | obj-$(CONFIG_DVB_TDA826X) += tda826x.o | 76 | obj-$(CONFIG_DVB_MB86A20S) += mb86a20s.o |
| 68 | obj-$(CONFIG_DVB_TDA8261) += tda8261.o | 77 | obj-$(CONFIG_DVB_MN88443X) += mn88443x.o |
| 69 | obj-$(CONFIG_DVB_TUNER_DIB0070) += dib0070.o | 78 | obj-$(CONFIG_DVB_MN88472) += mn88472.o |
| 70 | obj-$(CONFIG_DVB_TUNER_DIB0090) += dib0090.o | 79 | obj-$(CONFIG_DVB_MN88473) += mn88473.o |
| 71 | obj-$(CONFIG_DVB_TUA6100) += tua6100.o | 80 | obj-$(CONFIG_DVB_MT312) += mt312.o |
| 81 | obj-$(CONFIG_DVB_MT352) += mt352.o | ||
| 82 | obj-$(CONFIG_DVB_MXL5XX) += mxl5xx.o | ||
| 83 | obj-$(CONFIG_DVB_MXL692) += mxl692.o | ||
| 84 | obj-$(CONFIG_DVB_NXT200X) += nxt200x.o | ||
| 85 | obj-$(CONFIG_DVB_NXT6000) += nxt6000.o | ||
| 86 | obj-$(CONFIG_DVB_OR51132) += or51132.o | ||
| 87 | obj-$(CONFIG_DVB_OR51211) += or51211.o | ||
| 88 | obj-$(CONFIG_DVB_PLL) += dvb-pll.o | ||
| 89 | obj-$(CONFIG_DVB_RTL2830) += rtl2830.o | ||
| 90 | obj-$(CONFIG_DVB_RTL2832) += rtl2832.o | ||
| 91 | obj-$(CONFIG_DVB_RTL2832_SDR) += rtl2832_sdr.o | ||
| 72 | obj-$(CONFIG_DVB_S5H1409) += s5h1409.o | 92 | obj-$(CONFIG_DVB_S5H1409) += s5h1409.o |
| 73 | obj-$(CONFIG_DVB_TUNER_ITD1000) += itd1000.o | ||
| 74 | obj-$(CONFIG_DVB_AU8522) += au8522_common.o | ||
| 75 | obj-$(CONFIG_DVB_AU8522_DTV) += au8522_dig.o | ||
| 76 | obj-$(CONFIG_DVB_AU8522_V4L) += au8522_decoder.o | ||
| 77 | obj-$(CONFIG_DVB_TDA10048) += tda10048.o | ||
| 78 | obj-$(CONFIG_DVB_TUNER_CX24113) += cx24113.o | ||
| 79 | obj-$(CONFIG_DVB_S5H1411) += s5h1411.o | 93 | obj-$(CONFIG_DVB_S5H1411) += s5h1411.o |
| 80 | obj-$(CONFIG_DVB_LGS8GL5) += lgs8gl5.o | 94 | obj-$(CONFIG_DVB_S5H1420) += s5h1420.o |
| 81 | obj-$(CONFIG_DVB_TDA665x) += tda665x.o | 95 | obj-$(CONFIG_DVB_S5H1432) += s5h1432.o |
| 82 | obj-$(CONFIG_DVB_LGS8GXX) += lgs8gxx.o | 96 | obj-$(CONFIG_DVB_S921) += s921.o |
| 83 | obj-$(CONFIG_DVB_ATBM8830) += atbm8830.o | 97 | obj-$(CONFIG_DVB_SI2165) += si2165.o |
| 84 | obj-$(CONFIG_DVB_DUMMY_FE) += dvb_dummy_fe.o | ||
| 85 | obj-$(CONFIG_DVB_AF9013) += af9013.o | ||
| 86 | obj-$(CONFIG_DVB_CX24116) += cx24116.o | ||
| 87 | obj-$(CONFIG_DVB_CX24117) += cx24117.o | ||
| 88 | obj-$(CONFIG_DVB_CX24120) += cx24120.o | ||
| 89 | obj-$(CONFIG_DVB_SI21XX) += si21xx.o | ||
| 90 | obj-$(CONFIG_DVB_SI2168) += si2168.o | 98 | obj-$(CONFIG_DVB_SI2168) += si2168.o |
| 91 | obj-$(CONFIG_DVB_STV0288) += stv0288.o | 99 | obj-$(CONFIG_DVB_SI21XX) += si21xx.o |
| 100 | obj-$(CONFIG_DVB_SP2) += sp2.o | ||
| 101 | obj-$(CONFIG_DVB_SP887X) += sp887x.o | ||
| 102 | obj-$(CONFIG_DVB_STB0899) += stb0899.o | ||
| 92 | obj-$(CONFIG_DVB_STB6000) += stb6000.o | 103 | obj-$(CONFIG_DVB_STB6000) += stb6000.o |
| 93 | obj-$(CONFIG_DVB_S921) += s921.o | 104 | obj-$(CONFIG_DVB_STB6100) += stb6100.o |
| 94 | obj-$(CONFIG_DVB_STV6110) += stv6110.o | 105 | obj-$(CONFIG_DVB_STV0288) += stv0288.o |
| 106 | obj-$(CONFIG_DVB_STV0297) += stv0297.o | ||
| 107 | obj-$(CONFIG_DVB_STV0299) += stv0299.o | ||
| 108 | obj-$(CONFIG_DVB_STV0367) += stv0367.o | ||
| 95 | obj-$(CONFIG_DVB_STV0900) += stv0900.o | 109 | obj-$(CONFIG_DVB_STV0900) += stv0900.o |
| 96 | obj-$(CONFIG_DVB_STV090x) += stv090x.o | 110 | obj-$(CONFIG_DVB_STV090x) += stv090x.o |
| 97 | obj-$(CONFIG_DVB_STV6110x) += stv6110x.o | ||
| 98 | obj-$(CONFIG_DVB_M88DS3103) += m88ds3103.o | ||
| 99 | obj-$(CONFIG_DVB_MN88472) += mn88472.o | ||
| 100 | obj-$(CONFIG_DVB_MN88473) += mn88473.o | ||
| 101 | obj-$(CONFIG_DVB_ISL6423) += isl6423.o | ||
| 102 | obj-$(CONFIG_DVB_EC100) += ec100.o | ||
| 103 | obj-$(CONFIG_DVB_DS3000) += ds3000.o | ||
| 104 | obj-$(CONFIG_DVB_TS2020) += ts2020.o | ||
| 105 | obj-$(CONFIG_DVB_MB86A16) += mb86a16.o | ||
| 106 | obj-$(CONFIG_DVB_DRX39XYJ) += drx39xyj/ | ||
| 107 | obj-$(CONFIG_DVB_MB86A20S) += mb86a20s.o | ||
| 108 | obj-$(CONFIG_DVB_IX2505V) += ix2505v.o | ||
| 109 | obj-$(CONFIG_DVB_STV0367) += stv0367.o | ||
| 110 | obj-$(CONFIG_DVB_CXD2820R) += cxd2820r.o | ||
| 111 | obj-$(CONFIG_DVB_CXD2841ER) += cxd2841er.o | ||
| 112 | obj-$(CONFIG_DVB_DRXK) += drxk.o | ||
| 113 | obj-$(CONFIG_DVB_TDA18271C2DD) += tda18271c2dd.o | ||
| 114 | obj-$(CONFIG_DVB_STV0910) += stv0910.o | 111 | obj-$(CONFIG_DVB_STV0910) += stv0910.o |
| 112 | obj-$(CONFIG_DVB_STV6110) += stv6110.o | ||
| 113 | obj-$(CONFIG_DVB_STV6110x) += stv6110x.o | ||
| 115 | obj-$(CONFIG_DVB_STV6111) += stv6111.o | 114 | obj-$(CONFIG_DVB_STV6111) += stv6111.o |
| 116 | obj-$(CONFIG_DVB_MXL5XX) += mxl5xx.o | ||
| 117 | obj-$(CONFIG_DVB_SI2165) += si2165.o | ||
| 118 | obj-$(CONFIG_DVB_A8293) += a8293.o | ||
| 119 | obj-$(CONFIG_DVB_SP2) += sp2.o | ||
| 120 | obj-$(CONFIG_DVB_TDA10071) += tda10071.o | ||
| 121 | obj-$(CONFIG_DVB_RTL2830) += rtl2830.o | ||
| 122 | obj-$(CONFIG_DVB_RTL2832) += rtl2832.o | ||
| 123 | obj-$(CONFIG_DVB_RTL2832_SDR) += rtl2832_sdr.o | ||
| 124 | obj-$(CONFIG_DVB_M88RS2000) += m88rs2000.o | ||
| 125 | obj-$(CONFIG_DVB_AF9033) += af9033.o | ||
| 126 | obj-$(CONFIG_DVB_AS102_FE) += as102_fe.o | ||
| 127 | obj-$(CONFIG_DVB_GP8PSK_FE) += gp8psk-fe.o | ||
| 128 | obj-$(CONFIG_DVB_TC90522) += tc90522.o | 115 | obj-$(CONFIG_DVB_TC90522) += tc90522.o |
| 129 | obj-$(CONFIG_DVB_MN88443X) += mn88443x.o | 116 | obj-$(CONFIG_DVB_TDA10021) += tda10021.o |
| 130 | obj-$(CONFIG_DVB_HORUS3A) += horus3a.o | 117 | obj-$(CONFIG_DVB_TDA10023) += tda10023.o |
| 131 | obj-$(CONFIG_DVB_ASCOT2E) += ascot2e.o | 118 | obj-$(CONFIG_DVB_TDA10048) += tda10048.o |
| 132 | obj-$(CONFIG_DVB_HELENE) += helene.o | 119 | obj-$(CONFIG_DVB_TDA1004X) += tda1004x.o |
| 120 | obj-$(CONFIG_DVB_TDA10071) += tda10071.o | ||
| 121 | obj-$(CONFIG_DVB_TDA10086) += tda10086.o | ||
| 122 | obj-$(CONFIG_DVB_TDA18271C2DD) += tda18271c2dd.o | ||
| 123 | obj-$(CONFIG_DVB_TDA665x) += tda665x.o | ||
| 124 | obj-$(CONFIG_DVB_TDA8083) += tda8083.o | ||
| 125 | obj-$(CONFIG_DVB_TDA8261) += tda8261.o | ||
| 126 | obj-$(CONFIG_DVB_TDA826X) += tda826x.o | ||
| 127 | obj-$(CONFIG_DVB_TS2020) += ts2020.o | ||
| 128 | obj-$(CONFIG_DVB_TUA6100) += tua6100.o | ||
| 129 | obj-$(CONFIG_DVB_TUNER_CX24113) += cx24113.o | ||
| 130 | obj-$(CONFIG_DVB_TUNER_DIB0070) += dib0070.o | ||
| 131 | obj-$(CONFIG_DVB_TUNER_DIB0090) += dib0090.o | ||
| 132 | obj-$(CONFIG_DVB_TUNER_ITD1000) += itd1000.o | ||
| 133 | obj-$(CONFIG_DVB_VES1820) += ves1820.o | ||
| 134 | obj-$(CONFIG_DVB_VES1X93) += ves1x93.o | ||
| 133 | obj-$(CONFIG_DVB_ZD1301_DEMOD) += zd1301_demod.o | 135 | obj-$(CONFIG_DVB_ZD1301_DEMOD) += zd1301_demod.o |
| 134 | obj-$(CONFIG_DVB_CXD2099) += cxd2099.o | 136 | obj-$(CONFIG_DVB_ZL10036) += zl10036.o |
| 135 | obj-$(CONFIG_DVB_CXD2880) += cxd2880/ | 137 | obj-$(CONFIG_DVB_ZL10039) += zl10039.o |
| 138 | obj-$(CONFIG_DVB_ZL10353) += zl10353.o | ||
| @@ -859,7 +859,7 @@ int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 defa · 858 unmodified lines | |||
| 859 | int k; | 859 | int k; |
| 860 | u8 new_addr; | 860 | u8 new_addr; |
| 861 | 861 | ||
| 862 | static u8 DIB3000MC_I2C_ADDRESS[] = {20,22,24,26}; | 862 | static const u8 DIB3000MC_I2C_ADDRESS[] = { 20, 22, 24, 26 }; |
| 863 | 863 | ||
| 864 | dmcst = kzalloc(sizeof(struct dib3000mc_state), GFP_KERNEL); | 864 | dmcst = kzalloc(sizeof(struct dib3000mc_state), GFP_KERNEL); |
| 865 | if (dmcst == NULL) | 865 | if (dmcst == NULL) |
| @@ -1188,8 +1188,8 @@ static int dib7000p_autosearch_is_irq(struct dvb_frontend *demod) · 1187 unmodified lines | |||
| 1188 | 1188 | ||
| 1189 | static void dib7000p_spur_protect(struct dib7000p_state *state, u32 rf_khz, u32 bw) | 1189 | static void dib7000p_spur_protect(struct dib7000p_state *state, u32 rf_khz, u32 bw) |
| 1190 | { | 1190 | { |
| 1191 | static s16 notch[] = { 16143, 14402, 12238, 9713, 6902, 3888, 759, -2392 }; | 1191 | static const s16 notch[] = { 16143, 14402, 12238, 9713, 6902, 3888, 759, -2392 }; |
| 1192 | static u8 sine[] = { 0, 2, 3, 5, 6, 8, 9, 11, 13, 14, 16, 17, 19, 20, 22, | 1192 | static const u8 sine[] = { 0, 2, 3, 5, 6, 8, 9, 11, 13, 14, 16, 17, 19, 20, 22, |
| 1193 | 24, 25, 27, 28, 30, 31, 33, 34, 36, 38, 39, 41, 42, 44, 45, 47, 48, 50, 51, | 1193 | 24, 25, 27, 28, 30, 31, 33, 34, 36, 38, 39, 41, 42, 44, 45, 47, 48, 50, 51, |
| 1194 | 53, 55, 56, 58, 59, 61, 62, 64, 65, 67, 68, 70, 71, 73, 74, 76, 77, 79, 80, | 1194 | 53, 55, 56, 58, 59, 61, 62, 64, 65, 67, 68, 70, 71, 73, 74, 76, 77, 79, 80, |
| 1195 | 82, 83, 85, 86, 88, 89, 91, 92, 94, 95, 97, 98, 99, 101, 102, 104, 105, | 1195 | 82, 83, 85, 86, 88, 89, 91, 92, 94, 95, 97, 98, 99, 101, 102, 104, 105, |
| @@ -336,7 +336,7 @@ static int si21xx_wait_diseqc_idle(struct si21xx_state *state, int timeout) · 335 unmodified lines | |||
| 336 | dprintk("%s\n", __func__); | 336 | dprintk("%s\n", __func__); |
| 337 | 337 | ||
| 338 | while ((si21_readreg(state, LNB_CTRL_REG_1) & 0x8) == 8) { | 338 | while ((si21_readreg(state, LNB_CTRL_REG_1) & 0x8) == 8) { |
| 339 | if (jiffies - start > timeout) { | 339 | if (time_is_before_jiffies(start + timeout)) { |
| 340 | dprintk("%s: timeout!!\n", __func__); | 340 | dprintk("%s: timeout!!\n", __func__); |
| 341 | return -ETIMEDOUT; | 341 | return -ETIMEDOUT; |
| 342 | } | 342 | } |
| @@ -161,8 +161,9 @@ static int stv0299_set_FEC(struct stv0299_state *state, enum fe_code_rate fec) · 160 unmodified lines | |||
| 161 | 161 | ||
| 162 | static enum fe_code_rate stv0299_get_fec(struct stv0299_state *state) | 162 | static enum fe_code_rate stv0299_get_fec(struct stv0299_state *state) |
| 163 | { | 163 | { |
| 164 | static enum fe_code_rate fec_tab[] = { FEC_2_3, FEC_3_4, FEC_5_6, | 164 | static const enum fe_code_rate fec_tab[] = { |
| 165 | FEC_7_8, FEC_1_2 }; | 165 | FEC_2_3, FEC_3_4, FEC_5_6, FEC_7_8, FEC_1_2 |
| 166 | }; | ||
| 166 | u8 index; | 167 | u8 index; |
| 167 | 168 | ||
| 168 | dprintk ("%s\n", __func__); | 169 | dprintk ("%s\n", __func__); |
| @@ -183,7 +184,7 @@ static int stv0299_wait_diseqc_fifo (struct stv0299_state* state, int timeout) · 14 unmodified lines | |||
| 183 | dprintk ("%s\n", __func__); | 184 | dprintk ("%s\n", __func__); |
| 184 | 185 | ||
| 185 | while (stv0299_readreg(state, 0x0a) & 1) { | 186 | while (stv0299_readreg(state, 0x0a) & 1) { |
| 186 | if (jiffies - start > timeout) { | 187 | if (time_is_before_jiffies(start + timeout)) { |
| 187 | dprintk ("%s: timeout!!\n", __func__); | 188 | dprintk ("%s: timeout!!\n", __func__); |
| 188 | return -ETIMEDOUT; | 189 | return -ETIMEDOUT; |
| 189 | } | 190 | } |
| @@ -200,7 +201,7 @@ static int stv0299_wait_diseqc_idle (struct stv0299_state* state, int timeout) · 10 unmodified lines | |||
| 200 | dprintk ("%s\n", __func__); | 201 | dprintk ("%s\n", __func__); |
| 201 | 202 | ||
| 202 | while ((stv0299_readreg(state, 0x0a) & 3) != 2 ) { | 203 | while ((stv0299_readreg(state, 0x0a) & 3) != 2 ) { |
| 203 | if (jiffies - start > timeout) { | 204 | if (time_is_before_jiffies(start + timeout)) { |
| 204 | dprintk ("%s: timeout!!\n", __func__); | 205 | dprintk ("%s: timeout!!\n", __func__); |
| 205 | return -ETIMEDOUT; | 206 | return -ETIMEDOUT; |
| 206 | } | 207 | } |
| @@ -162,7 +162,7 @@ static void tda8083_wait_diseqc_fifo (struct tda8083_state* state, int timeout) · 161 unmodified lines | |||
| 162 | { | 162 | { |
| 163 | unsigned long start = jiffies; | 163 | unsigned long start = jiffies; |
| 164 | 164 | ||
| 165 | while (jiffies - start < timeout && | 165 | while (time_is_after_jiffies(start + timeout) && |
| 166 | !(tda8083_readreg(state, 0x02) & 0x80)) | 166 | !(tda8083_readreg(state, 0x02) & 0x80)) |
| 167 | { | 167 | { |
| 168 | msleep(50); | 168 | msleep(50); |
| @@ -2,4 +2,4 @@ · 1 unmodified line | |||
| 2 | obj-$(CONFIG_DVB_FIREDTV) += firedtv.o | 2 | obj-$(CONFIG_DVB_FIREDTV) += firedtv.o |
| 3 | 3 | ||
| 4 | firedtv-y += firedtv-avc.o firedtv-ci.o firedtv-dvb.o firedtv-fe.o firedtv-fw.o | 4 | firedtv-y += firedtv-avc.o firedtv-ci.o firedtv-dvb.o firedtv-fe.o firedtv-fw.o |
| 5 | firedtv-$(CONFIG_DVB_FIREDTV_INPUT) += firedtv-rc.o | 5 | firedtv-$(CONFIG_DVB_FIREDTV_INPUT) += firedtv-rc.o |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | # Multimedia Video device configuration | 3 | # Multimedia Video device configuration |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | if VIDEO_V4L2 | 6 | if VIDEO_DEV |
| 7 | 7 | ||
| 8 | comment "IR I2C driver auto-selected by 'Autoselect ancillary drivers'" | 8 | comment "IR I2C driver auto-selected by 'Autoselect ancillary drivers'" |
| 9 | depends on MEDIA_SUBDRV_AUTOSELECT && I2C && RC_CORE | 9 | depends on MEDIA_SUBDRV_AUTOSELECT && I2C && RC_CORE |
| @@ -22,1507 +22,1560 @@ config VIDEO_IR_I2C · 12 unmodified lines | |||
| 22 | In doubt, say Y. | 22 | In doubt, say Y. |
| 23 | 23 | ||
| 24 | # | 24 | # |
| 25 | # V4L2 I2C drivers that aren't related with Camera support | 25 | # V4L2 I2C drivers that are related with Camera support |
| 26 | # | 26 | # |
| 27 | 27 | ||
| 28 | comment "audio, video and radio I2C drivers auto-selected by 'Autoselect ancillary drivers'" | 28 | menu "Camera sensor devices" |
| 29 | depends on MEDIA_HIDE_ANCILLARY_SUBDRV | 29 | visible if MEDIA_CAMERA_SUPPORT |
| 30 | # | ||
| 31 | # Encoder / Decoder module configuration | ||
| 32 | # | ||
| 33 | 30 | ||
| 34 | menu "Audio decoders, processors and mixers" | 31 | config VIDEO_APTINA_PLL |
| 35 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 32 | tristate |
| 36 | 33 | ||
| 37 | config VIDEO_TVAUDIO | 34 | config VIDEO_CCS_PLL |
| 38 | tristate "Simple audio decoder chips" | 35 | tristate |
| 39 | depends on VIDEO_V4L2 && I2C | 36 | |
| 37 | config VIDEO_HI556 | ||
| 38 | tristate "Hynix Hi-556 sensor support" | ||
| 39 | depends on I2C && VIDEO_DEV | ||
| 40 | select MEDIA_CONTROLLER | ||
| 41 | select VIDEO_V4L2_SUBDEV_API | ||
| 42 | select V4L2_FWNODE | ||
| 40 | help | 43 | help |
| 41 | Support for several audio decoder chips found on some bt8xx boards: | 44 | This is a Video4Linux2 sensor driver for the Hynix |
| 42 | Philips: tda9840, tda9873h, tda9874h/a, tda9850, tda985x, tea6300, | 45 | Hi-556 camera. |
| 43 | tea6320, tea6420, tda8425, ta8874z. | ||
| 44 | Microchip: pic16c54 based design on ProVideo PV951 board. | ||
| 45 | 46 | ||
| 46 | To compile this driver as a module, choose M here: the | 47 | To compile this driver as a module, choose M here: the |
| 47 | module will be called tvaudio. | 48 | module will be called hi556. |
| 48 | 49 | ||
| 49 | config VIDEO_TDA7432 | 50 | config VIDEO_HI846 |
| 50 | tristate "Philips TDA7432 audio processor" | 51 | tristate "Hynix Hi-846 sensor support" |
| 51 | depends on VIDEO_V4L2 && I2C | 52 | depends on I2C && VIDEO_DEV |
| 53 | select MEDIA_CONTROLLER | ||
| 54 | select VIDEO_V4L2_SUBDEV_API | ||
| 55 | select V4L2_FWNODE | ||
| 52 | help | 56 | help |
| 53 | Support for tda7432 audio decoder chip found on some bt8xx boards. | 57 | This is a Video4Linux2 sensor driver for the Hynix |
| 58 | Hi-846 camera. | ||
| 54 | 59 | ||
| 55 | To compile this driver as a module, choose M here: the | 60 | To compile this driver as a module, choose M here: the |
| 56 | module will be called tda7432. | 61 | module will be called hi846. |
| 57 | 62 | ||
| 58 | config VIDEO_TDA9840 | 63 | config VIDEO_HI847 |
| 59 | tristate "Philips TDA9840 audio processor" | 64 | tristate "Hynix Hi-847 sensor support" |
| 60 | depends on I2C | 65 | depends on I2C && VIDEO_DEV |
| 66 | select MEDIA_CONTROLLER | ||
| 67 | select VIDEO_V4L2_SUBDEV_API | ||
| 68 | select V4L2_FWNODE | ||
| 69 | help | ||
| 70 | This is a Video4Linux2 sensor driver for the Hynix | ||
| 71 | Hi-847 camera. | ||
| 72 | |||
| 73 | To compile this driver as a module, choose M here: the | ||
| 74 | module will be called hi847. | ||
| 75 | |||
| 76 | config VIDEO_IMX208 | ||
| 77 | tristate "Sony IMX208 sensor support" | ||
| 78 | depends on I2C && VIDEO_DEV && VIDEO_V4L2_SUBDEV_API | ||
| 79 | depends on MEDIA_CAMERA_SUPPORT | ||
| 61 | help | 80 | help |
| 62 | Support for tda9840 audio decoder chip found on some Zoran boards. | 81 | This is a Video4Linux2 sensor driver for the Sony |
| 82 | IMX208 camera. | ||
| 63 | 83 | ||
| 64 | To compile this driver as a module, choose M here: the | 84 | To compile this driver as a module, choose M here: the |
| 65 | module will be called tda9840. | 85 | module will be called imx208. |
| 66 | 86 | ||
| 67 | config VIDEO_TDA1997X | 87 | config VIDEO_IMX214 |
| 68 | tristate "NXP TDA1997x HDMI receiver" | 88 | tristate "Sony IMX214 sensor support" |
| 69 | depends on VIDEO_V4L2 && I2C | 89 | depends on GPIOLIB && I2C && VIDEO_DEV |
| 70 | depends on SND_SOC | ||
| 71 | select HDMI | ||
| 72 | select SND_PCM | ||
| 73 | select V4L2_FWNODE | 90 | select V4L2_FWNODE |
| 74 | select MEDIA_CONTROLLER | 91 | select MEDIA_CONTROLLER |
| 75 | select VIDEO_V4L2_SUBDEV_API | 92 | select VIDEO_V4L2_SUBDEV_API |
| 93 | select REGMAP_I2C | ||
| 76 | help | 94 | help |
| 77 | V4L2 subdevice driver for the NXP TDA1997x HDMI receivers. | 95 | This is a Video4Linux2 sensor driver for the Sony |
| 96 | IMX214 camera. | ||
| 78 | 97 | ||
| 79 | To compile this driver as a module, choose M here: the | 98 | To compile this driver as a module, choose M here: the |
| 80 | module will be called tda1997x. | 99 | module will be called imx214. |
| 81 | 100 | ||
| 82 | config VIDEO_TEA6415C | 101 | config VIDEO_IMX219 |
| 83 | tristate "Philips TEA6415C audio processor" | 102 | tristate "Sony IMX219 sensor support" |
| 84 | depends on I2C | 103 | depends on I2C && VIDEO_DEV |
| 104 | select MEDIA_CONTROLLER | ||
| 105 | select VIDEO_V4L2_SUBDEV_API | ||
| 106 | select V4L2_FWNODE | ||
| 85 | help | 107 | help |
| 86 | Support for tea6415c audio decoder chip found on some bt8xx boards. | 108 | This is a Video4Linux2 sensor driver for the Sony |
| 109 | IMX219 camera. | ||
| 87 | 110 | ||
| 88 | To compile this driver as a module, choose M here: the | 111 | To compile this driver as a module, choose M here: the |
| 89 | module will be called tea6415c. | 112 | module will be called imx219. |
| 90 | 113 | ||
| 91 | config VIDEO_TEA6420 | 114 | config VIDEO_IMX258 |
| 92 | tristate "Philips TEA6420 audio processor" | 115 | tristate "Sony IMX258 sensor support" |
| 93 | depends on I2C | 116 | depends on I2C && VIDEO_DEV |
| 117 | select MEDIA_CONTROLLER | ||
| 118 | select VIDEO_V4L2_SUBDEV_API | ||
| 94 | help | 119 | help |
| 95 | Support for tea6420 audio decoder chip found on some bt8xx boards. | 120 | This is a Video4Linux2 sensor driver for the Sony |
| 121 | IMX258 camera. | ||
| 96 | 122 | ||
| 97 | To compile this driver as a module, choose M here: the | 123 | To compile this driver as a module, choose M here: the |
| 98 | module will be called tea6420. | 124 | module will be called imx258. |
| 99 | 125 | ||
| 100 | config VIDEO_MSP3400 | 126 | config VIDEO_IMX274 |
| 101 | tristate "Micronas MSP34xx audio decoders" | 127 | tristate "Sony IMX274 sensor support" |
| 102 | depends on VIDEO_V4L2 && I2C | 128 | depends on I2C && VIDEO_DEV |
| 129 | select MEDIA_CONTROLLER | ||
| 130 | select VIDEO_V4L2_SUBDEV_API | ||
| 131 | select REGMAP_I2C | ||
| 103 | help | 132 | help |
| 104 | Support for the Micronas MSP34xx series of audio decoders. | 133 | This is a V4L2 sensor driver for the Sony IMX274 |
| 105 | 134 | CMOS image sensor. | |
| 106 | To compile this driver as a module, choose M here: the | ||
| 107 | module will be called msp3400. | ||
| 108 | 135 | ||
| 109 | config VIDEO_CS3308 | 136 | config VIDEO_IMX290 |
| 110 | tristate "Cirrus Logic CS3308 audio ADC" | 137 | tristate "Sony IMX290 sensor support" |
| 111 | depends on VIDEO_V4L2 && I2C | 138 | depends on I2C && VIDEO_DEV |
| 139 | select MEDIA_CONTROLLER | ||
| 140 | select VIDEO_V4L2_SUBDEV_API | ||
| 141 | select REGMAP_I2C | ||
| 142 | select V4L2_FWNODE | ||
| 112 | help | 143 | help |
| 113 | Support for the Cirrus Logic CS3308 High Performance 8-Channel | 144 | This is a Video4Linux2 sensor driver for the Sony |
| 114 | Analog Volume Control | 145 | IMX290 camera sensor. |
| 115 | 146 | ||
| 116 | To compile this driver as a module, choose M here: the | 147 | To compile this driver as a module, choose M here: the |
| 117 | module will be called cs3308. | 148 | module will be called imx290. |
| 118 | 149 | ||
| 119 | config VIDEO_CS5345 | 150 | config VIDEO_IMX319 |
| 120 | tristate "Cirrus Logic CS5345 audio ADC" | 151 | tristate "Sony IMX319 sensor support" |
| 121 | depends on VIDEO_V4L2 && I2C | 152 | depends on I2C && VIDEO_DEV |
| 153 | select MEDIA_CONTROLLER | ||
| 154 | select VIDEO_V4L2_SUBDEV_API | ||
| 122 | help | 155 | help |
| 123 | Support for the Cirrus Logic CS5345 24-bit, 192 kHz | 156 | This is a Video4Linux2 sensor driver for the Sony |
| 124 | stereo A/D converter. | 157 | IMX319 camera. |
| 125 | 158 | ||
| 126 | To compile this driver as a module, choose M here: the | 159 | To compile this driver as a module, choose M here: the |
| 127 | module will be called cs5345. | 160 | module will be called imx319. |
| 128 | 161 | ||
| 129 | config VIDEO_CS53L32A | 162 | config VIDEO_IMX334 |
| 130 | tristate "Cirrus Logic CS53L32A audio ADC" | 163 | tristate "Sony IMX334 sensor support" |
| 131 | depends on VIDEO_V4L2 && I2C | 164 | depends on OF_GPIO |
| 165 | depends on I2C && VIDEO_DEV | ||
| 166 | select VIDEO_V4L2_SUBDEV_API | ||
| 167 | select MEDIA_CONTROLLER | ||
| 168 | select V4L2_FWNODE | ||
| 132 | help | 169 | help |
| 133 | Support for the Cirrus Logic CS53L32A low voltage | 170 | This is a Video4Linux2 sensor driver for the Sony |
| 134 | stereo A/D converter. | 171 | IMX334 camera. |
| 135 | 172 | ||
| 136 | To compile this driver as a module, choose M here: the | 173 | To compile this driver as a module, choose M here: the |
| 137 | module will be called cs53l32a. | 174 | module will be called imx334. |
| 138 | 175 | ||
| 139 | config VIDEO_TLV320AIC23B | 176 | config VIDEO_IMX335 |
| 140 | tristate "Texas Instruments TLV320AIC23B audio codec" | 177 | tristate "Sony IMX335 sensor support" |
| 141 | depends on VIDEO_V4L2 && I2C | 178 | depends on OF_GPIO |
| 179 | depends on I2C && VIDEO_DEV | ||
| 180 | select VIDEO_V4L2_SUBDEV_API | ||
| 181 | select MEDIA_CONTROLLER | ||
| 182 | select V4L2_FWNODE | ||
| 142 | help | 183 | help |
| 143 | Support for the Texas Instruments TLV320AIC23B audio codec. | 184 | This is a Video4Linux2 sensor driver for the Sony |
| 185 | IMX335 camera. | ||
| 144 | 186 | ||
| 145 | To compile this driver as a module, choose M here: the | 187 | To compile this driver as a module, choose M here: the |
| 146 | module will be called tlv320aic23b. | 188 | module will be called imx335. |
| 147 | 189 | ||
| 148 | config VIDEO_UDA1342 | 190 | config VIDEO_IMX355 |
| 149 | tristate "Philips UDA1342 audio codec" | 191 | tristate "Sony IMX355 sensor support" |
| 150 | depends on VIDEO_V4L2 && I2C | 192 | depends on I2C && VIDEO_DEV |
| 193 | select MEDIA_CONTROLLER | ||
| 194 | select VIDEO_V4L2_SUBDEV_API | ||
| 151 | help | 195 | help |
| 152 | Support for the Philips UDA1342 audio codec. | 196 | This is a Video4Linux2 sensor driver for the Sony |
| 197 | IMX355 camera. | ||
| 153 | 198 | ||
| 154 | To compile this driver as a module, choose M here: the | 199 | To compile this driver as a module, choose M here: the |
| 155 | module will be called uda1342. | 200 | module will be called imx355. |
| 156 | 201 | ||
| 157 | config VIDEO_WM8775 | 202 | config VIDEO_IMX412 |
| 158 | tristate "Wolfson Microelectronics WM8775 audio ADC with input mixer" | 203 | tristate "Sony IMX412 sensor support" |
| 159 | depends on VIDEO_V4L2 && I2C | 204 | depends on OF_GPIO |
| 205 | depends on I2C && VIDEO_DEV | ||
| 206 | select VIDEO_V4L2_SUBDEV_API | ||
| 207 | select MEDIA_CONTROLLER | ||
| 208 | select V4L2_FWNODE | ||
| 160 | help | 209 | help |
| 161 | Support for the Wolfson Microelectronics WM8775 high | 210 | This is a Video4Linux2 sensor driver for the Sony |
| 162 | performance stereo A/D Converter with a 4 channel input mixer. | 211 | IMX412 camera. |
| 163 | 212 | ||
| 164 | To compile this driver as a module, choose M here: the | 213 | To compile this driver as a module, choose M here: the |
| 165 | module will be called wm8775. | 214 | module will be called imx412. |
| 166 | |||
| 167 | config VIDEO_WM8739 | ||
| 168 | tristate "Wolfson Microelectronics WM8739 stereo audio ADC" | ||
| 169 | depends on VIDEO_V4L2 && I2C | ||
| 170 | help | ||
| 171 | Support for the Wolfson Microelectronics WM8739 | ||
| 172 | stereo A/D Converter. | ||
| 173 | 215 | ||
| 174 | To compile this driver as a module, choose M here: the | 216 | config VIDEO_MAX9271_LIB |
| 175 | module will be called wm8739. | 217 | tristate |
| 176 | 218 | ||
| 177 | config VIDEO_VP27SMPX | 219 | config VIDEO_MT9M001 |
| 178 | tristate "Panasonic VP27's internal MPX" | 220 | tristate "mt9m001 support" |
| 179 | depends on VIDEO_V4L2 && I2C | 221 | depends on I2C && VIDEO_DEV |
| 222 | select MEDIA_CONTROLLER | ||
| 223 | select VIDEO_V4L2_SUBDEV_API | ||
| 180 | help | 224 | help |
| 181 | Support for the internal MPX of the Panasonic VP27s tuner. | 225 | This driver supports MT9M001 cameras from Micron, monochrome |
| 182 | 226 | and colour models. | |
| 183 | To compile this driver as a module, choose M here: the | ||
| 184 | module will be called vp27smpx. | ||
| 185 | 227 | ||
| 186 | config VIDEO_SONY_BTF_MPX | 228 | config VIDEO_MT9M032 |
| 187 | tristate "Sony BTF's internal MPX" | 229 | tristate "MT9M032 camera sensor support" |
| 188 | depends on VIDEO_V4L2 && I2C | 230 | depends on I2C && VIDEO_DEV |
| 231 | select MEDIA_CONTROLLER | ||
| 232 | select VIDEO_V4L2_SUBDEV_API | ||
| 233 | select VIDEO_APTINA_PLL | ||
| 189 | help | 234 | help |
| 190 | Support for the internal MPX of the Sony BTF-PG472Z tuner. | 235 | This driver supports MT9M032 camera sensors from Aptina, monochrome |
| 236 | models only. | ||
| 191 | 237 | ||
| 192 | To compile this driver as a module, choose M here: the | 238 | config VIDEO_MT9M111 |
| 193 | module will be called sony-btf-mpx. | 239 | tristate "mt9m111, mt9m112 and mt9m131 support" |
| 194 | endmenu | 240 | depends on I2C && VIDEO_DEV |
| 241 | select V4L2_FWNODE | ||
| 242 | help | ||
| 243 | This driver supports MT9M111, MT9M112 and MT9M131 cameras from | ||
| 244 | Micron/Aptina | ||
| 195 | 245 | ||
| 196 | menu "RDS decoders" | 246 | config VIDEO_MT9P031 |
| 197 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 247 | tristate "Aptina MT9P031 support" |
| 248 | depends on I2C && VIDEO_DEV | ||
| 249 | select MEDIA_CONTROLLER | ||
| 250 | select VIDEO_V4L2_SUBDEV_API | ||
| 251 | select VIDEO_APTINA_PLL | ||
| 252 | select V4L2_FWNODE | ||
| 253 | help | ||
| 254 | This is a Video4Linux2 sensor driver for the Aptina | ||
| 255 | (Micron) mt9p031 5 Mpixel camera. | ||
| 198 | 256 | ||
| 199 | config VIDEO_SAA6588 | 257 | config VIDEO_MT9T001 |
| 200 | tristate "SAA6588 Radio Chip RDS decoder support" | 258 | tristate "Aptina MT9T001 support" |
| 201 | depends on VIDEO_V4L2 && I2C | 259 | depends on I2C && VIDEO_DEV |
| 260 | select MEDIA_CONTROLLER | ||
| 261 | select VIDEO_V4L2_SUBDEV_API | ||
| 262 | help | ||
| 263 | This is a Video4Linux2 sensor driver for the Aptina | ||
| 264 | (Micron) mt0t001 3 Mpixel camera. | ||
| 202 | 265 | ||
| 266 | config VIDEO_MT9T112 | ||
| 267 | tristate "Aptina MT9T111/MT9T112 support" | ||
| 268 | depends on I2C && VIDEO_DEV | ||
| 203 | help | 269 | help |
| 204 | Support for this Radio Data System (RDS) decoder. This allows | 270 | This is a Video4Linux2 sensor driver for the Aptina |
| 205 | seeing radio station identification transmitted using this | 271 | (Micron) MT9T111 and MT9T112 3 Mpixel camera. |
| 206 | standard. | ||
| 207 | 272 | ||
| 208 | To compile this driver as a module, choose M here: the | 273 | To compile this driver as a module, choose M here: the |
| 209 | module will be called saa6588. | 274 | module will be called mt9t112. |
| 210 | endmenu | ||
| 211 | 275 | ||
| 212 | menu "Video decoders" | 276 | config VIDEO_MT9V011 |
| 213 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 277 | tristate "Micron mt9v011 sensor support" |
| 278 | depends on I2C && VIDEO_DEV | ||
| 279 | help | ||
| 280 | This is a Video4Linux2 sensor driver for the Micron | ||
| 281 | mt0v011 1.3 Mpixel camera. It currently only works with the | ||
| 282 | em28xx driver. | ||
| 214 | 283 | ||
| 215 | config VIDEO_ADV7180 | 284 | config VIDEO_MT9V032 |
| 216 | tristate "Analog Devices ADV7180 decoder" | 285 | tristate "Micron MT9V032 sensor support" |
| 217 | depends on GPIOLIB && VIDEO_V4L2 && I2C | 286 | depends on I2C && VIDEO_DEV |
| 218 | select MEDIA_CONTROLLER | 287 | select MEDIA_CONTROLLER |
| 219 | select VIDEO_V4L2_SUBDEV_API | 288 | select VIDEO_V4L2_SUBDEV_API |
| 220 | select V4L2_ASYNC | 289 | select REGMAP_I2C |
| 290 | select V4L2_FWNODE | ||
| 221 | help | 291 | help |
| 222 | Support for the Analog Devices ADV7180 video decoder. | 292 | This is a Video4Linux2 sensor driver for the Micron |
| 223 | 293 | MT9V032 752x480 CMOS sensor. | |
| 224 | To compile this driver as a module, choose M here: the | ||
| 225 | module will be called adv7180. | ||
| 226 | 294 | ||
| 227 | config VIDEO_ADV7183 | 295 | config VIDEO_MT9V111 |
| 228 | tristate "Analog Devices ADV7183 decoder" | 296 | tristate "Aptina MT9V111 sensor support" |
| 229 | depends on VIDEO_V4L2 && I2C | 297 | depends on I2C && VIDEO_DEV |
| 230 | help | 298 | help |
| 231 | V4l2 subdevice driver for the Analog Devices | 299 | This is a Video4Linux2 sensor driver for the Aptina/Micron |
| 232 | ADV7183 video decoder. | 300 | MT9V111 sensor. |
| 233 | 301 | ||
| 234 | To compile this driver as a module, choose M here: the | 302 | To compile this driver as a module, choose M here: the |
| 235 | module will be called adv7183. | 303 | module will be called mt9v111. |
| 236 | 304 | ||
| 237 | config VIDEO_ADV748X | 305 | config VIDEO_NOON010PC30 |
| 238 | tristate "Analog Devices ADV748x decoder" | 306 | tristate "Siliconfile NOON010PC30 sensor support" |
| 239 | depends on VIDEO_V4L2 && I2C | 307 | depends on I2C && VIDEO_DEV |
| 240 | depends on OF | 308 | select MEDIA_CONTROLLER |
| 309 | select VIDEO_V4L2_SUBDEV_API | ||
| 310 | help | ||
| 311 | This driver supports NOON010PC30 CIF camera from Siliconfile | ||
| 312 | |||
| 313 | config VIDEO_OG01A1B | ||
| 314 | tristate "OmniVision OG01A1B sensor support" | ||
| 315 | depends on I2C && VIDEO_DEV | ||
| 241 | select MEDIA_CONTROLLER | 316 | select MEDIA_CONTROLLER |
| 242 | select VIDEO_V4L2_SUBDEV_API | 317 | select VIDEO_V4L2_SUBDEV_API |
| 243 | select REGMAP_I2C | ||
| 244 | select V4L2_FWNODE | 318 | select V4L2_FWNODE |
| 245 | help | 319 | help |
| 246 | V4L2 subdevice driver for the Analog Devices | 320 | This is a Video4Linux2 sensor driver for the OmniVision |
| 247 | ADV7481 and ADV7482 HDMI/Analog video decoders. | 321 | OG01A1B camera. |
| 248 | 322 | ||
| 249 | To compile this driver as a module, choose M here: the | 323 | To compile this driver as a module, choose M here: the |
| 250 | module will be called adv748x. | 324 | module will be called og01a1b. |
| 251 | 325 | ||
| 252 | config VIDEO_ADV7604 | 326 | config VIDEO_OV02A10 |
| 253 | tristate "Analog Devices ADV7604 decoder" | 327 | tristate "OmniVision OV02A10 sensor support" |
| 254 | depends on VIDEO_V4L2 && I2C | 328 | depends on VIDEO_DEV && I2C |
| 255 | depends on GPIOLIB || COMPILE_TEST | ||
| 256 | select MEDIA_CONTROLLER | 329 | select MEDIA_CONTROLLER |
| 257 | select VIDEO_V4L2_SUBDEV_API | 330 | select VIDEO_V4L2_SUBDEV_API |
| 258 | select REGMAP_I2C | ||
| 259 | select HDMI | ||
| 260 | select V4L2_FWNODE | 331 | select V4L2_FWNODE |
| 261 | help | 332 | help |
| 262 | Support for the Analog Devices ADV7604 video decoder. | 333 | This is a Video4Linux2 sensor driver for the OmniVision |
| 263 | 334 | OV02A10 camera. | |
| 264 | This is a Analog Devices Component/Graphics Digitizer | ||
| 265 | with 4:1 Multiplexed HDMI Receiver. | ||
| 266 | 335 | ||
| 267 | To compile this driver as a module, choose M here: the | 336 | To compile this driver as a module, choose M here: the |
| 268 | module will be called adv7604. | 337 | module will be called ov02a10. |
| 269 | 338 | ||
| 270 | config VIDEO_ADV7604_CEC | 339 | config VIDEO_OV08D10 |
| 271 | bool "Enable Analog Devices ADV7604 CEC support" | 340 | tristate "OmniVision OV08D10 sensor support" |
| 272 | depends on VIDEO_ADV7604 | 341 | depends on I2C && VIDEO_DEV |
| 273 | select CEC_CORE | 342 | select MEDIA_CONTROLLER |
| 274 | help | 343 | select VIDEO_V4L2_SUBDEV_API |
| 275 | When selected the adv7604 will support the optional | 344 | select V4L2_FWNODE |
| 276 | HDMI CEC feature. | 345 | help |
| 346 | This is a Video4Linux2 sensor driver for the OmniVision | ||
| 347 | OV08D10 camera sensor. | ||
| 277 | 348 | ||
| 278 | config VIDEO_ADV7842 | 349 | To compile this driver as a module, choose M here: the |
| 279 | tristate "Analog Devices ADV7842 decoder" | 350 | module will be called ov08d10. |
| 280 | depends on VIDEO_V4L2 && I2C | 351 | |
| 352 | config VIDEO_OV13858 | ||
| 353 | tristate "OmniVision OV13858 sensor support" | ||
| 354 | depends on I2C && VIDEO_DEV | ||
| 281 | select MEDIA_CONTROLLER | 355 | select MEDIA_CONTROLLER |
| 282 | select VIDEO_V4L2_SUBDEV_API | 356 | select VIDEO_V4L2_SUBDEV_API |
| 283 | select HDMI | 357 | select V4L2_FWNODE |
| 284 | help | 358 | help |
| 285 | Support for the Analog Devices ADV7842 video decoder. | 359 | This is a Video4Linux2 sensor driver for the OmniVision |
| 286 | 360 | OV13858 camera. | |
| 287 | This is a Analog Devices Component/Graphics/SD Digitizer | ||
| 288 | with 2:1 Multiplexed HDMI Receiver. | ||
| 289 | |||
| 290 | To compile this driver as a module, choose M here: the | ||
| 291 | module will be called adv7842. | ||
| 292 | 361 | ||
| 293 | config VIDEO_ADV7842_CEC | 362 | config VIDEO_OV13B10 |
| 294 | bool "Enable Analog Devices ADV7842 CEC support" | 363 | tristate "OmniVision OV13B10 sensor support" |
| 295 | depends on VIDEO_ADV7842 | 364 | depends on I2C && VIDEO_DEV |
| 296 | select CEC_CORE | 365 | select MEDIA_CONTROLLER |
| 366 | select VIDEO_V4L2_SUBDEV_API | ||
| 367 | select V4L2_FWNODE | ||
| 297 | help | 368 | help |
| 298 | When selected the adv7842 will support the optional | 369 | This is a Video4Linux2 sensor driver for the OmniVision |
| 299 | HDMI CEC feature. | 370 | OV13B10 camera. |
| 300 | 371 | ||
| 301 | config VIDEO_BT819 | 372 | config VIDEO_OV2640 |
| 302 | tristate "BT819A VideoStream decoder" | 373 | tristate "OmniVision OV2640 sensor support" |
| 303 | depends on VIDEO_V4L2 && I2C | 374 | depends on VIDEO_DEV && I2C |
| 304 | help | 375 | help |
| 305 | Support for BT819A video decoder. | 376 | This is a Video4Linux2 sensor driver for the OmniVision |
| 377 | OV2640 camera. | ||
| 306 | 378 | ||
| 307 | To compile this driver as a module, choose M here: the | 379 | To compile this driver as a module, choose M here: the |
| 308 | module will be called bt819. | 380 | module will be called ov2640. |
| 309 | 381 | ||
| 310 | config VIDEO_BT856 | 382 | config VIDEO_OV2659 |
| 311 | tristate "BT856 VideoStream decoder" | 383 | tristate "OmniVision OV2659 sensor support" |
| 312 | depends on VIDEO_V4L2 && I2C | 384 | depends on VIDEO_DEV && I2C && GPIOLIB |
| 385 | select V4L2_FWNODE | ||
| 313 | help | 386 | help |
| 314 | Support for BT856 video decoder. | 387 | This is a Video4Linux2 sensor driver for the OmniVision |
| 388 | OV2659 camera. | ||
| 315 | 389 | ||
| 316 | To compile this driver as a module, choose M here: the | 390 | To compile this driver as a module, choose M here: the |
| 317 | module will be called bt856. | 391 | module will be called ov2659. |
| 318 | 392 | ||
| 319 | config VIDEO_BT866 | 393 | config VIDEO_OV2680 |
| 320 | tristate "BT866 VideoStream decoder" | 394 | tristate "OmniVision OV2680 sensor support" |
| 321 | depends on VIDEO_V4L2 && I2C | 395 | depends on VIDEO_DEV && I2C |
| 396 | select MEDIA_CONTROLLER | ||
| 397 | select V4L2_FWNODE | ||
| 322 | help | 398 | help |
| 323 | Support for BT866 video decoder. | 399 | This is a Video4Linux2 sensor driver for the OmniVision |
| 400 | OV2680 camera. | ||
| 324 | 401 | ||
| 325 | To compile this driver as a module, choose M here: the | 402 | To compile this driver as a module, choose M here: the |
| 326 | module will be called bt866. | 403 | module will be called ov2680. |
| 327 | 404 | ||
| 328 | config VIDEO_KS0127 | 405 | config VIDEO_OV2685 |
| 329 | tristate "KS0127 video decoder" | 406 | tristate "OmniVision OV2685 sensor support" |
| 330 | depends on VIDEO_V4L2 && I2C | 407 | depends on VIDEO_DEV && I2C |
| 408 | select MEDIA_CONTROLLER | ||
| 409 | select V4L2_FWNODE | ||
| 331 | help | 410 | help |
| 332 | Support for KS0127 video decoder. | 411 | This is a Video4Linux2 sensor driver for the OmniVision |
| 333 | 412 | OV2685 camera. | |
| 334 | This chip is used on AverMedia AVS6EYES Zoran-based MJPEG | ||
| 335 | cards. | ||
| 336 | 413 | ||
| 337 | To compile this driver as a module, choose M here: the | 414 | To compile this driver as a module, choose M here: the |
| 338 | module will be called ks0127. | 415 | module will be called ov2685. |
| 339 | 416 | ||
| 340 | config VIDEO_ML86V7667 | 417 | config VIDEO_OV2740 |
| 341 | tristate "OKI ML86V7667 video decoder" | 418 | tristate "OmniVision OV2740 sensor support" |
| 342 | depends on VIDEO_V4L2 && I2C | 419 | depends on VIDEO_DEV && I2C |
| 420 | depends on ACPI || COMPILE_TEST | ||
| 421 | select MEDIA_CONTROLLER | ||
| 422 | select VIDEO_V4L2_SUBDEV_API | ||
| 423 | select V4L2_FWNODE | ||
| 424 | select REGMAP_I2C | ||
| 343 | help | 425 | help |
| 344 | Support for the OKI Semiconductor ML86V7667 video decoder. | 426 | This is a Video4Linux2 sensor driver for the OmniVision |
| 427 | OV2740 camera. | ||
| 345 | 428 | ||
| 346 | To compile this driver as a module, choose M here: the | 429 | To compile this driver as a module, choose M here: the |
| 347 | module will be called ml86v7667. | 430 | module will be called ov2740. |
| 348 | 431 | ||
| 349 | config VIDEO_SAA7110 | 432 | config VIDEO_OV5640 |
| 350 | tristate "Philips SAA7110 video decoder" | 433 | tristate "OmniVision OV5640 sensor support" |
| 351 | depends on VIDEO_V4L2 && I2C | 434 | depends on OF |
| 435 | depends on GPIOLIB && VIDEO_DEV && I2C | ||
| 436 | select MEDIA_CONTROLLER | ||
| 437 | select VIDEO_V4L2_SUBDEV_API | ||
| 438 | select V4L2_FWNODE | ||
| 352 | help | 439 | help |
| 353 | Support for the Philips SAA7110 video decoders. | 440 | This is a Video4Linux2 sensor driver for the Omnivision |
| 354 | 441 | OV5640 camera sensor with a MIPI CSI-2 interface. | |
| 355 | To compile this driver as a module, choose M here: the | ||
| 356 | module will be called saa7110. | ||
| 357 | 442 | ||
| 358 | config VIDEO_SAA711X | 443 | config VIDEO_OV5645 |
| 359 | tristate "Philips SAA7111/3/4/5 video decoders" | 444 | tristate "OmniVision OV5645 sensor support" |
| 360 | depends on VIDEO_V4L2 && I2C | 445 | depends on OF |
| 446 | depends on I2C && VIDEO_DEV | ||
| 447 | select MEDIA_CONTROLLER | ||
| 448 | select VIDEO_V4L2_SUBDEV_API | ||
| 449 | select V4L2_FWNODE | ||
| 361 | help | 450 | help |
| 362 | Support for the Philips SAA7111/3/4/5 video decoders. | 451 | This is a Video4Linux2 sensor driver for the OmniVision |
| 452 | OV5645 camera. | ||
| 363 | 453 | ||
| 364 | To compile this driver as a module, choose M here: the | 454 | To compile this driver as a module, choose M here: the |
| 365 | module will be called saa7115. | 455 | module will be called ov5645. |
| 366 | 456 | ||
| 367 | config VIDEO_TC358743 | 457 | config VIDEO_OV5647 |
| 368 | tristate "Toshiba TC358743 decoder" | 458 | tristate "OmniVision OV5647 sensor support" |
| 369 | depends on VIDEO_V4L2 && I2C | 459 | depends on I2C && VIDEO_DEV |
| 370 | select MEDIA_CONTROLLER | 460 | select MEDIA_CONTROLLER |
| 371 | select VIDEO_V4L2_SUBDEV_API | 461 | select VIDEO_V4L2_SUBDEV_API |
| 372 | select HDMI | ||
| 373 | select V4L2_FWNODE | 462 | select V4L2_FWNODE |
| 374 | help | 463 | help |
| 375 | Support for the Toshiba TC358743 HDMI to MIPI CSI-2 bridge. | 464 | This is a Video4Linux2 sensor driver for the OmniVision |
| 465 | OV5647 camera. | ||
| 376 | 466 | ||
| 377 | To compile this driver as a module, choose M here: the | 467 | To compile this driver as a module, choose M here: the |
| 378 | module will be called tc358743. | 468 | module will be called ov5647. |
| 379 | |||
| 380 | config VIDEO_TC358743_CEC | ||
| 381 | bool "Enable Toshiba TC358743 CEC support" | ||
| 382 | depends on VIDEO_TC358743 | ||
| 383 | select CEC_CORE | ||
| 384 | help | ||
| 385 | When selected the tc358743 will support the optional | ||
| 386 | HDMI CEC feature. | ||
| 387 | 469 | ||
| 388 | config VIDEO_TVP514X | 470 | config VIDEO_OV5648 |
| 389 | tristate "Texas Instruments TVP514x video decoder" | 471 | tristate "OmniVision OV5648 sensor support" |
| 390 | depends on VIDEO_V4L2 && I2C | 472 | depends on I2C && PM && VIDEO_DEV |
| 473 | select MEDIA_CONTROLLER | ||
| 474 | select VIDEO_V4L2_SUBDEV_API | ||
| 391 | select V4L2_FWNODE | 475 | select V4L2_FWNODE |
| 392 | help | 476 | help |
| 393 | This is a Video4Linux2 sensor driver for the TI TVP5146/47 | 477 | This is a Video4Linux2 sensor driver for the OmniVision |
| 394 | decoder. It is currently working with the TI OMAP3 camera | 478 | OV5648 camera. |
| 395 | controller. | ||
| 396 | 479 | ||
| 397 | To compile this driver as a module, choose M here: the | 480 | To compile this driver as a module, choose M here: the |
| 398 | module will be called tvp514x. | 481 | module will be called ov5648. |
| 399 | 482 | ||
| 400 | config VIDEO_TVP5150 | 483 | config VIDEO_OV5670 |
| 401 | tristate "Texas Instruments TVP5150 video decoder" | 484 | tristate "OmniVision OV5670 sensor support" |
| 402 | depends on VIDEO_V4L2 && I2C | 485 | depends on I2C && VIDEO_DEV |
| 486 | select MEDIA_CONTROLLER | ||
| 487 | select VIDEO_V4L2_SUBDEV_API | ||
| 403 | select V4L2_FWNODE | 488 | select V4L2_FWNODE |
| 404 | select REGMAP_I2C | ||
| 405 | help | 489 | help |
| 406 | Support for the Texas Instruments TVP5150 video decoder. | 490 | This is a Video4Linux2 sensor driver for the OmniVision |
| 491 | OV5670 camera. | ||
| 407 | 492 | ||
| 408 | To compile this driver as a module, choose M here: the | 493 | To compile this driver as a module, choose M here: the |
| 409 | module will be called tvp5150. | 494 | module will be called ov5670. |
| 410 | 495 | ||
| 411 | config VIDEO_TVP7002 | 496 | config VIDEO_OV5675 |
| 412 | tristate "Texas Instruments TVP7002 video decoder" | 497 | tristate "OmniVision OV5675 sensor support" |
| 413 | depends on VIDEO_V4L2 && I2C | 498 | depends on I2C && VIDEO_DEV |
| 499 | select MEDIA_CONTROLLER | ||
| 500 | select VIDEO_V4L2_SUBDEV_API | ||
| 414 | select V4L2_FWNODE | 501 | select V4L2_FWNODE |
| 415 | help | 502 | help |
| 416 | Support for the Texas Instruments TVP7002 video decoder. | 503 | This is a Video4Linux2 sensor driver for the OmniVision |
| 504 | OV5675 camera. | ||
| 417 | 505 | ||
| 418 | To compile this driver as a module, choose M here: the | 506 | To compile this driver as a module, choose M here: the |
| 419 | module will be called tvp7002. | 507 | module will be called ov5675. |
| 420 | 508 | ||
| 421 | config VIDEO_TW2804 | 509 | config VIDEO_OV5693 |
| 422 | tristate "Techwell TW2804 multiple video decoder" | 510 | tristate "OmniVision OV5693 sensor support" |
| 423 | depends on VIDEO_V4L2 && I2C | 511 | depends on I2C && VIDEO_DEV |
| 512 | select V4L2_FWNODE | ||
| 424 | help | 513 | help |
| 425 | Support for the Techwell tw2804 multiple video decoder. | 514 | This is a Video4Linux2 sensor driver for the OmniVision |
| 515 | OV5693 camera. | ||
| 426 | 516 | ||
| 427 | To compile this driver as a module, choose M here: the | 517 | To compile this driver as a module, choose M here: the |
| 428 | module will be called tw2804. | 518 | module will be called ov5693. |
| 429 | 519 | ||
| 430 | config VIDEO_TW9903 | 520 | config VIDEO_OV5695 |
| 431 | tristate "Techwell TW9903 video decoder" | 521 | tristate "OmniVision OV5695 sensor support" |
| 432 | depends on VIDEO_V4L2 && I2C | 522 | depends on I2C && VIDEO_DEV |
| 523 | select V4L2_FWNODE | ||
| 433 | help | 524 | help |
| 434 | Support for the Techwell tw9903 multi-standard video decoder | 525 | This is a Video4Linux2 sensor driver for the OmniVision |
| 435 | with high quality down scaler. | 526 | OV5695 camera. |
| 436 | 527 | ||
| 437 | To compile this driver as a module, choose M here: the | 528 | To compile this driver as a module, choose M here: the |
| 438 | module will be called tw9903. | 529 | module will be called ov5695. |
| 439 | 530 | ||
| 440 | config VIDEO_TW9906 | 531 | config VIDEO_OV6650 |
| 441 | tristate "Techwell TW9906 video decoder" | 532 | tristate "OmniVision OV6650 sensor support" |
| 442 | depends on VIDEO_V4L2 && I2C | 533 | depends on I2C && VIDEO_DEV |
| 443 | help | 534 | help |
| 444 | Support for the Techwell tw9906 enhanced multi-standard comb filter | 535 | This is a Video4Linux2 sensor driver for the OmniVision |
| 445 | video decoder with YCbCr input support. | 536 | OV6650 camera. |
| 446 | 537 | ||
| 447 | To compile this driver as a module, choose M here: the | 538 | To compile this driver as a module, choose M here: the |
| 448 | module will be called tw9906. | 539 | module will be called ov6650. |
| 449 | 540 | ||
| 450 | config VIDEO_TW9910 | 541 | config VIDEO_OV7251 |
| 451 | tristate "Techwell TW9910 video decoder" | 542 | tristate "OmniVision OV7251 sensor support" |
| 452 | depends on VIDEO_V4L2 && I2C | 543 | depends on I2C && VIDEO_DEV |
| 453 | select V4L2_ASYNC | 544 | select MEDIA_CONTROLLER |
| 545 | select VIDEO_V4L2_SUBDEV_API | ||
| 546 | select V4L2_FWNODE | ||
| 454 | help | 547 | help |
| 455 | Support for Techwell TW9910 NTSC/PAL/SECAM video decoder. | 548 | This is a Video4Linux2 sensor driver for the OmniVision |
| 549 | OV7251 camera. | ||
| 456 | 550 | ||
| 457 | To compile this driver as a module, choose M here: the | 551 | To compile this driver as a module, choose M here: the |
| 458 | module will be called tw9910. | 552 | module will be called ov7251. |
| 459 | 553 | ||
| 460 | config VIDEO_VPX3220 | 554 | config VIDEO_OV7640 |
| 461 | tristate "vpx3220a, vpx3216b & vpx3214c video decoders" | 555 | tristate "OmniVision OV7640 sensor support" |
| 462 | depends on VIDEO_V4L2 && I2C | 556 | depends on I2C && VIDEO_DEV |
| 463 | help | 557 | help |
| 464 | Support for VPX322x video decoders. | 558 | This is a Video4Linux2 sensor driver for the OmniVision |
| 559 | OV7640 camera. | ||
| 465 | 560 | ||
| 466 | To compile this driver as a module, choose M here: the | 561 | To compile this driver as a module, choose M here: the |
| 467 | module will be called vpx3220. | 562 | module will be called ov7640. |
| 468 | 563 | ||
| 469 | config VIDEO_MAX9286 | 564 | config VIDEO_OV7670 |
| 470 | tristate "Maxim MAX9286 GMSL deserializer support" | 565 | tristate "OmniVision OV7670 sensor support" |
| 471 | depends on I2C && I2C_MUX | 566 | depends on I2C && VIDEO_DEV |
| 472 | depends on VIDEO_V4L2 | ||
| 473 | depends on OF_GPIO | ||
| 474 | select V4L2_FWNODE | 567 | select V4L2_FWNODE |
| 475 | select VIDEO_V4L2_SUBDEV_API | ||
| 476 | select MEDIA_CONTROLLER | ||
| 477 | help | 568 | help |
| 478 | This driver supports the Maxim MAX9286 GMSL deserializer. | 569 | This is a Video4Linux2 sensor driver for the OmniVision |
| 479 | 570 | OV7670 VGA camera. It currently only works with the M88ALP01 | |
| 480 | To compile this driver as a module, choose M here: the | 571 | controller. |
| 481 | module will be called max9286. | ||
| 482 | |||
| 483 | comment "Video and audio decoders" | ||
| 484 | 572 | ||
| 485 | config VIDEO_SAA717X | 573 | config VIDEO_OV772X |
| 486 | tristate "Philips SAA7171/3/4 audio/video decoders" | 574 | tristate "OmniVision OV772x sensor support" |
| 487 | depends on VIDEO_V4L2 && I2C | 575 | depends on I2C && VIDEO_DEV |
| 576 | select REGMAP_SCCB | ||
| 577 | select V4L2_FWNODE | ||
| 488 | help | 578 | help |
| 489 | Support for the Philips SAA7171/3/4 audio/video decoders. | 579 | This is a Video4Linux2 sensor driver for the OmniVision |
| 580 | OV772x camera. | ||
| 490 | 581 | ||
| 491 | To compile this driver as a module, choose M here: the | 582 | To compile this driver as a module, choose M here: the |
| 492 | module will be called saa717x. | 583 | module will be called ov772x. |
| 493 | |||
| 494 | source "drivers/media/i2c/cx25840/Kconfig" | ||
| 495 | |||
| 496 | endmenu | ||
| 497 | 584 | ||
| 498 | menu "Video encoders" | 585 | config VIDEO_OV7740 |
| 499 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 586 | tristate "OmniVision OV7740 sensor support" |
| 587 | depends on I2C && VIDEO_DEV | ||
| 588 | select REGMAP_SCCB | ||
| 589 | help | ||
| 590 | This is a Video4Linux2 sensor driver for the OmniVision | ||
| 591 | OV7740 VGA camera sensor. | ||
| 500 | 592 | ||
| 501 | config VIDEO_SAA7127 | 593 | config VIDEO_OV8856 |
| 502 | tristate "Philips SAA7127/9 digital video encoders" | 594 | tristate "OmniVision OV8856 sensor support" |
| 503 | depends on VIDEO_V4L2 && I2C | 595 | depends on I2C && VIDEO_DEV |
| 596 | select MEDIA_CONTROLLER | ||
| 597 | select VIDEO_V4L2_SUBDEV_API | ||
| 598 | select V4L2_FWNODE | ||
| 504 | help | 599 | help |
| 505 | Support for the Philips SAA7127/9 digital video encoders. | 600 | This is a Video4Linux2 sensor driver for the OmniVision |
| 601 | OV8856 camera sensor. | ||
| 506 | 602 | ||
| 507 | To compile this driver as a module, choose M here: the | 603 | To compile this driver as a module, choose M here: the |
| 508 | module will be called saa7127. | 604 | module will be called ov8856. |
| 509 | 605 | ||
| 510 | config VIDEO_SAA7185 | 606 | config VIDEO_OV8865 |
| 511 | tristate "Philips SAA7185 video encoder" | 607 | tristate "OmniVision OV8865 sensor support" |
| 512 | depends on VIDEO_V4L2 && I2C | 608 | depends on I2C && PM && VIDEO_DEV |
| 609 | select MEDIA_CONTROLLER | ||
| 610 | select VIDEO_V4L2_SUBDEV_API | ||
| 611 | select V4L2_FWNODE | ||
| 513 | help | 612 | help |
| 514 | Support for the Philips SAA7185 video encoder. | 613 | This is a Video4Linux2 sensor driver for OmniVision |
| 614 | OV8865 camera sensor. | ||
| 515 | 615 | ||
| 516 | To compile this driver as a module, choose M here: the | 616 | To compile this driver as a module, choose M here: the |
| 517 | module will be called saa7185. | 617 | module will be called ov8865. |
| 518 | 618 | ||
| 519 | config VIDEO_ADV7170 | 619 | config VIDEO_OV9282 |
| 520 | tristate "Analog Devices ADV7170 video encoder" | 620 | tristate "OmniVision OV9282 sensor support" |
| 521 | depends on VIDEO_V4L2 && I2C | 621 | depends on OF_GPIO |
| 622 | depends on I2C && VIDEO_DEV | ||
| 623 | select VIDEO_V4L2_SUBDEV_API | ||
| 624 | select MEDIA_CONTROLLER | ||
| 625 | select V4L2_FWNODE | ||
| 522 | help | 626 | help |
| 523 | Support for the Analog Devices ADV7170 video encoder driver | 627 | This is a Video4Linux2 sensor driver for the OmniVision |
| 628 | OV9282 camera sensor. | ||
| 524 | 629 | ||
| 525 | To compile this driver as a module, choose M here: the | 630 | To compile this driver as a module, choose M here: the |
| 526 | module will be called adv7170. | 631 | module will be called ov9282. |
| 527 | 632 | ||
| 528 | config VIDEO_ADV7175 | 633 | config VIDEO_OV9640 |
| 529 | tristate "Analog Devices ADV7175 video encoder" | 634 | tristate "OmniVision OV9640 sensor support" |
| 530 | depends on VIDEO_V4L2 && I2C | 635 | depends on I2C && VIDEO_DEV |
| 531 | help | 636 | help |
| 532 | Support for the Analog Devices ADV7175 video encoder driver | 637 | This is a Video4Linux2 sensor driver for the OmniVision |
| 638 | OV9640 camera sensor. | ||
| 533 | 639 | ||
| 534 | To compile this driver as a module, choose M here: the | 640 | config VIDEO_OV9650 |
| 535 | module will be called adv7175. | 641 | tristate "OmniVision OV9650/OV9652 sensor support" |
| 642 | depends on I2C && VIDEO_DEV | ||
| 643 | select MEDIA_CONTROLLER | ||
| 644 | select VIDEO_V4L2_SUBDEV_API | ||
| 645 | select REGMAP_SCCB | ||
| 646 | help | ||
| 647 | This is a V4L2 sensor driver for the Omnivision | ||
| 648 | OV9650 and OV9652 camera sensors. | ||
| 536 | 649 | ||
| 537 | config VIDEO_ADV7343 | 650 | config VIDEO_OV9734 |
| 538 | tristate "ADV7343 video encoder" | 651 | tristate "OmniVision OV9734 sensor support" |
| 539 | depends on I2C | 652 | depends on VIDEO_DEV && I2C |
| 540 | select V4L2_ASYNC | 653 | depends on ACPI || COMPILE_TEST |
| 654 | select MEDIA_CONTROLLER | ||
| 655 | select VIDEO_V4L2_SUBDEV_API | ||
| 656 | select V4L2_FWNODE | ||
| 541 | help | 657 | help |
| 542 | Support for Analog Devices I2C bus based ADV7343 encoder. | 658 | This is a Video4Linux2 sensor driver for the OmniVision |
| 659 | OV9734 camera. | ||
| 543 | 660 | ||
| 544 | To compile this driver as a module, choose M here: the | 661 | To compile this driver as a module, choose M here: the |
| 545 | module will be called adv7343. | 662 | module's name is ov9734. |
| 546 | 663 | ||
| 547 | config VIDEO_ADV7393 | 664 | config VIDEO_RDACM20 |
| 548 | tristate "ADV7393 video encoder" | 665 | tristate "IMI RDACM20 camera support" |
| 549 | depends on I2C | 666 | depends on I2C |
| 667 | select V4L2_FWNODE | ||
| 668 | select VIDEO_V4L2_SUBDEV_API | ||
| 669 | select MEDIA_CONTROLLER | ||
| 670 | select VIDEO_MAX9271_LIB | ||
| 550 | help | 671 | help |
| 551 | Support for Analog Devices I2C bus based ADV7393 encoder. | 672 | This driver supports the IMI RDACM20 GMSL camera, used in |
| 673 | ADAS systems. | ||
| 552 | 674 | ||
| 553 | To compile this driver as a module, choose M here: the | 675 | This camera should be used in conjunction with a GMSL |
| 554 | module will be called adv7393. | 676 | deserialiser such as the MAX9286. |
| 555 | 677 | ||
| 556 | config VIDEO_ADV7511 | 678 | config VIDEO_RDACM21 |
| 557 | tristate "Analog Devices ADV7511 encoder" | 679 | tristate "IMI RDACM21 camera support" |
| 558 | depends on VIDEO_V4L2 && I2C | 680 | depends on I2C |
| 559 | depends on DRM_I2C_ADV7511=n || COMPILE_TEST | 681 | select V4L2_FWNODE |
| 560 | select MEDIA_CONTROLLER | ||
| 561 | select VIDEO_V4L2_SUBDEV_API | 682 | select VIDEO_V4L2_SUBDEV_API |
| 562 | select HDMI | 683 | select MEDIA_CONTROLLER |
| 684 | select VIDEO_MAX9271_LIB | ||
| 563 | help | 685 | help |
| 564 | Support for the Analog Devices ADV7511 video encoder. | 686 | This driver supports the IMI RDACM21 GMSL camera, used in |
| 687 | ADAS systems. | ||
| 565 | 688 | ||
| 566 | This is a Analog Devices HDMI transmitter. | 689 | This camera should be used in conjunction with a GMSL |
| 690 | deserialiser such as the MAX9286. | ||
| 691 | |||
| 692 | config VIDEO_RJ54N1 | ||
| 693 | tristate "Sharp RJ54N1CB0C sensor support" | ||
| 694 | depends on I2C && VIDEO_DEV | ||
| 695 | help | ||
| 696 | This is a V4L2 sensor driver for Sharp RJ54N1CB0C CMOS image | ||
| 697 | sensor. | ||
| 567 | 698 | ||
| 568 | To compile this driver as a module, choose M here: the | 699 | To compile this driver as a module, choose M here: the |
| 569 | module will be called adv7511. | 700 | module will be called rj54n1. |
| 570 | 701 | ||
| 571 | config VIDEO_ADV7511_CEC | 702 | config VIDEO_S5C73M3 |
| 572 | bool "Enable Analog Devices ADV7511 CEC support" | 703 | tristate "Samsung S5C73M3 sensor support" |
| 573 | depends on VIDEO_ADV7511 | 704 | depends on I2C && SPI && VIDEO_DEV |
| 574 | select CEC_CORE | 705 | select MEDIA_CONTROLLER |
| 706 | select VIDEO_V4L2_SUBDEV_API | ||
| 707 | select V4L2_FWNODE | ||
| 575 | help | 708 | help |
| 576 | When selected the adv7511 will support the optional | 709 | This is a V4L2 sensor driver for Samsung S5C73M3 |
| 577 | HDMI CEC feature. | 710 | 8 Mpixel camera. |
| 578 | 711 | ||
| 579 | config VIDEO_AD9389B | 712 | config VIDEO_S5K4ECGX |
| 580 | tristate "Analog Devices AD9389B encoder" | 713 | tristate "Samsung S5K4ECGX sensor support" |
| 581 | depends on VIDEO_V4L2 && I2C | 714 | depends on I2C && VIDEO_DEV |
| 582 | select MEDIA_CONTROLLER | 715 | select MEDIA_CONTROLLER |
| 583 | select VIDEO_V4L2_SUBDEV_API | 716 | select VIDEO_V4L2_SUBDEV_API |
| 717 | select CRC32 | ||
| 718 | help | ||
| 719 | This is a V4L2 sensor driver for Samsung S5K4ECGX 5M | ||
| 720 | camera sensor with an embedded SoC image signal processor. | ||
| 584 | 721 | ||
| 722 | config VIDEO_S5K5BAF | ||
| 723 | tristate "Samsung S5K5BAF sensor support" | ||
| 724 | depends on I2C && VIDEO_DEV | ||
| 725 | select MEDIA_CONTROLLER | ||
| 726 | select VIDEO_V4L2_SUBDEV_API | ||
| 727 | select V4L2_FWNODE | ||
| 585 | help | 728 | help |
| 586 | Support for the Analog Devices AD9389B video encoder. | 729 | This is a V4L2 sensor driver for Samsung S5K5BAF 2M |
| 730 | camera sensor with an embedded SoC image signal processor. | ||
| 587 | 731 | ||
| 588 | This is a Analog Devices HDMI transmitter. | 732 | config VIDEO_S5K6A3 |
| 733 | tristate "Samsung S5K6A3 sensor support" | ||
| 734 | depends on I2C && VIDEO_DEV | ||
| 735 | select MEDIA_CONTROLLER | ||
| 736 | select VIDEO_V4L2_SUBDEV_API | ||
| 737 | help | ||
| 738 | This is a V4L2 sensor driver for Samsung S5K6A3 raw | ||
| 739 | camera sensor. | ||
| 589 | 740 | ||
| 590 | To compile this driver as a module, choose M here: the | 741 | config VIDEO_S5K6AA |
| 591 | module will be called ad9389b. | 742 | tristate "Samsung S5K6AAFX sensor support" |
| 743 | depends on I2C && VIDEO_DEV | ||
| 744 | select MEDIA_CONTROLLER | ||
| 745 | select VIDEO_V4L2_SUBDEV_API | ||
| 746 | help | ||
| 747 | This is a V4L2 sensor driver for Samsung S5K6AA(FX) 1.3M | ||
| 748 | camera sensor with an embedded SoC image signal processor. | ||
| 592 | 749 | ||
| 593 | config VIDEO_AK881X | 750 | config VIDEO_SR030PC30 |
| 594 | tristate "AK8813/AK8814 video encoders" | 751 | tristate "Siliconfile SR030PC30 sensor support" |
| 595 | depends on I2C | 752 | depends on I2C && VIDEO_DEV |
| 596 | help | 753 | help |
| 597 | Video output driver for AKM AK8813 and AK8814 TV encoders | 754 | This driver supports SR030PC30 VGA camera from Siliconfile |
| 598 | 755 | ||
| 599 | config VIDEO_THS8200 | 756 | config VIDEO_VS6624 |
| 600 | tristate "Texas Instruments THS8200 video encoder" | 757 | tristate "ST VS6624 sensor support" |
| 601 | depends on VIDEO_V4L2 && I2C | 758 | depends on VIDEO_DEV && I2C |
| 602 | select V4L2_ASYNC | ||
| 603 | help | 759 | help |
| 604 | Support for the Texas Instruments THS8200 video encoder. | 760 | This is a Video4Linux2 sensor driver for the ST VS6624 |
| 761 | camera. | ||
| 605 | 762 | ||
| 606 | To compile this driver as a module, choose M here: the | 763 | To compile this driver as a module, choose M here: the |
| 607 | module will be called ths8200. | 764 | module will be called vs6624. |
| 765 | |||
| 766 | source "drivers/media/i2c/ccs/Kconfig" | ||
| 767 | source "drivers/media/i2c/et8ek8/Kconfig" | ||
| 768 | source "drivers/media/i2c/m5mols/Kconfig" | ||
| 769 | |||
| 608 | endmenu | 770 | endmenu |
| 609 | 771 | ||
| 610 | menu "Video improvement chips" | 772 | menu "Lens drivers" |
| 611 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 773 | visible if MEDIA_CAMERA_SUPPORT |
| 612 | 774 | ||
| 613 | config VIDEO_UPD64031A | 775 | config VIDEO_AD5820 |
| 614 | tristate "NEC Electronics uPD64031A Ghost Reduction" | 776 | tristate "AD5820 lens voice coil support" |
| 615 | depends on VIDEO_V4L2 && I2C | 777 | depends on GPIOLIB && I2C && VIDEO_DEV |
| 778 | select MEDIA_CONTROLLER | ||
| 616 | select V4L2_ASYNC | 779 | select V4L2_ASYNC |
| 617 | help | 780 | help |
| 618 | Support for the NEC Electronics uPD64031A Ghost Reduction | 781 | This is a driver for the AD5820 camera lens voice coil. |
| 619 | video chip. It is most often found in NTSC TV cards made for | 782 | It is used for example in Nokia N900 (RX-51). |
| 620 | Japan and is used to reduce the 'ghosting' effect that can | ||
| 621 | be present in analog TV broadcasts. | ||
| 622 | |||
| 623 | To compile this driver as a module, choose M here: the | ||
| 624 | module will be called upd64031a. | ||
| 625 | 783 | ||
| 626 | config VIDEO_UPD64083 | 784 | config VIDEO_AK7375 |
| 627 | tristate "NEC Electronics uPD64083 3-Dimensional Y/C separation" | 785 | tristate "AK7375 lens voice coil support" |
| 628 | depends on VIDEO_V4L2 && I2C | 786 | depends on I2C && VIDEO_DEV |
| 787 | select MEDIA_CONTROLLER | ||
| 788 | select VIDEO_V4L2_SUBDEV_API | ||
| 789 | select V4L2_ASYNC | ||
| 629 | help | 790 | help |
| 630 | Support for the NEC Electronics uPD64083 3-Dimensional Y/C | 791 | This is a driver for the AK7375 camera lens voice coil. |
| 631 | separation video chip. It is used to improve the quality of | 792 | AK7375 is a 12 bit DAC with 120mA output current sink |
| 632 | the colors of a composite signal. | 793 | capability. This is designed for linear control of |
| 633 | 794 | voice coil motors, controlled via I2C serial interface. | |
| 634 | To compile this driver as a module, choose M here: the | ||
| 635 | module will be called upd64083. | ||
| 636 | endmenu | ||
| 637 | 795 | ||
| 638 | menu "Audio/Video compression chips" | 796 | config VIDEO_DW9714 |
| 639 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 797 | tristate "DW9714 lens voice coil support" |
| 798 | depends on I2C && VIDEO_DEV | ||
| 799 | select MEDIA_CONTROLLER | ||
| 800 | select VIDEO_V4L2_SUBDEV_API | ||
| 801 | select V4L2_ASYNC | ||
| 802 | help | ||
| 803 | This is a driver for the DW9714 camera lens voice coil. | ||
| 804 | DW9714 is a 10 bit DAC with 120mA output current sink | ||
| 805 | capability. This is designed for linear control of | ||
| 806 | voice coil motors, controlled via I2C serial interface. | ||
| 640 | 807 | ||
| 641 | config VIDEO_SAA6752HS | 808 | config VIDEO_DW9768 |
| 642 | tristate "Philips SAA6752HS MPEG-2 Audio/Video Encoder" | 809 | tristate "DW9768 lens voice coil support" |
| 643 | depends on VIDEO_V4L2 && I2C | 810 | depends on I2C && VIDEO_DEV |
| 644 | select CRC32 | 811 | select MEDIA_CONTROLLER |
| 812 | select VIDEO_V4L2_SUBDEV_API | ||
| 813 | select V4L2_FWNODE | ||
| 645 | help | 814 | help |
| 646 | Support for the Philips SAA6752HS MPEG-2 video and MPEG-audio/AC-3 | 815 | This is a driver for the DW9768 camera lens voice coil. |
| 647 | audio encoder with multiplexer. | 816 | DW9768 is a 10 bit DAC with 100mA output current sink |
| 817 | capability. This is designed for linear control of | ||
| 818 | voice coil motors, controlled via I2C serial interface. | ||
| 648 | 819 | ||
| 649 | To compile this driver as a module, choose M here: the | 820 | config VIDEO_DW9807_VCM |
| 650 | module will be called saa6752hs. | 821 | tristate "DW9807 lens voice coil support" |
| 822 | depends on I2C && VIDEO_DEV | ||
| 823 | select MEDIA_CONTROLLER | ||
| 824 | select VIDEO_V4L2_SUBDEV_API | ||
| 825 | select V4L2_ASYNC | ||
| 826 | help | ||
| 827 | This is a driver for the DW9807 camera lens voice coil. | ||
| 828 | DW9807 is a 10 bit DAC with 100mA output current sink | ||
| 829 | capability. This is designed for linear control of | ||
| 830 | voice coil motors, controlled via I2C serial interface. | ||
| 651 | 831 | ||
| 652 | endmenu | 832 | endmenu |
| 653 | 833 | ||
| 654 | menu "SDR tuner chips" | 834 | menu "Flash devices" |
| 655 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 835 | visible if MEDIA_CAMERA_SUPPORT |
| 656 | 836 | ||
| 657 | config SDR_MAX2175 | 837 | config VIDEO_ADP1653 |
| 658 | tristate "Maxim 2175 RF to Bits tuner" | 838 | tristate "ADP1653 flash support" |
| 659 | depends on VIDEO_V4L2 && MEDIA_SDR_SUPPORT && I2C | 839 | depends on I2C && VIDEO_DEV |
| 660 | select REGMAP_I2C | 840 | select MEDIA_CONTROLLER |
| 661 | select V4L2_ASYNC | 841 | select V4L2_ASYNC |
| 662 | help | 842 | help |
| 663 | Support for Maxim 2175 tuner. It is an advanced analog/digital | 843 | This is a driver for the ADP1653 flash controller. It is used for |
| 664 | radio receiver with RF-to-Bits front-end designed for SDR solutions. | 844 | example in Nokia N900. |
| 665 | 845 | ||
| 666 | To compile this driver as a module, choose M here; the | 846 | config VIDEO_LM3560 |
| 667 | module will be called max2175. | 847 | tristate "LM3560 dual flash driver support" |
| 848 | depends on I2C && VIDEO_DEV | ||
| 849 | select MEDIA_CONTROLLER | ||
| 850 | select REGMAP_I2C | ||
| 851 | select V4L2_ASYNC | ||
| 852 | help | ||
| 853 | This is a driver for the lm3560 dual flash controllers. It controls | ||
| 854 | flash, torch LEDs. | ||
| 668 | 855 | ||
| 856 | config VIDEO_LM3646 | ||
| 857 | tristate "LM3646 dual flash driver support" | ||
| 858 | depends on I2C && VIDEO_DEV | ||
| 859 | select MEDIA_CONTROLLER | ||
| 860 | select REGMAP_I2C | ||
| 861 | select V4L2_ASYNC | ||
| 862 | help | ||
| 863 | This is a driver for the lm3646 dual flash controllers. It controls | ||
| 864 | flash, torch LEDs. | ||
| 669 | 865 | ||
| 670 | endmenu | 866 | endmenu |
| 671 | 867 | ||
| 672 | menu "Miscellaneous helper chips" | 868 | # |
| 869 | # V4L2 I2C drivers that aren't related with Camera support | ||
| 870 | # | ||
| 871 | |||
| 872 | comment "audio, video and radio I2C drivers auto-selected by 'Autoselect ancillary drivers'" | ||
| 873 | depends on MEDIA_HIDE_ANCILLARY_SUBDRV | ||
| 874 | # | ||
| 875 | # Encoder / Decoder module configuration | ||
| 876 | # | ||
| 877 | |||
| 878 | menu "Audio decoders, processors and mixers" | ||
| 673 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | 879 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV |
| 674 | 880 | ||
| 675 | config VIDEO_THS7303 | 881 | config VIDEO_CS3308 |
| 676 | tristate "THS7303/53 Video Amplifier" | 882 | tristate "Cirrus Logic CS3308 audio ADC" |
| 677 | depends on VIDEO_V4L2 && I2C | 883 | depends on VIDEO_DEV && I2C |
| 678 | select V4L2_ASYNC | ||
| 679 | help | 884 | help |
| 680 | Support for TI THS7303/53 video amplifier | 885 | Support for the Cirrus Logic CS3308 High Performance 8-Channel |
| 886 | Analog Volume Control | ||
| 681 | 887 | ||
| 682 | To compile this driver as a module, choose M here: the | 888 | To compile this driver as a module, choose M here: the |
| 683 | module will be called ths7303. | 889 | module will be called cs3308. |
| 684 | 890 | ||
| 685 | config VIDEO_M52790 | 891 | config VIDEO_CS5345 |
| 686 | tristate "Mitsubishi M52790 A/V switch" | 892 | tristate "Cirrus Logic CS5345 audio ADC" |
| 687 | depends on VIDEO_V4L2 && I2C | 893 | depends on VIDEO_DEV && I2C |
| 688 | help | 894 | help |
| 689 | Support for the Mitsubishi M52790 A/V switch. | 895 | Support for the Cirrus Logic CS5345 24-bit, 192 kHz |
| 896 | stereo A/D converter. | ||
| 690 | 897 | ||
| 691 | To compile this driver as a module, choose M here: the | 898 | To compile this driver as a module, choose M here: the |
| 692 | module will be called m52790. | 899 | module will be called cs5345. |
| 693 | 900 | ||
| 694 | config VIDEO_I2C | 901 | config VIDEO_CS53L32A |
| 695 | tristate "I2C transport video support" | 902 | tristate "Cirrus Logic CS53L32A audio ADC" |
| 696 | depends on VIDEO_V4L2 && I2C | 903 | depends on VIDEO_DEV && I2C |
| 697 | select VIDEOBUF2_VMALLOC | ||
| 698 | imply HWMON | ||
| 699 | help | 904 | help |
| 700 | Enable the I2C transport video support which supports the | 905 | Support for the Cirrus Logic CS53L32A low voltage |
| 701 | following: | 906 | stereo A/D converter. |
| 702 | * Panasonic AMG88xx Grid-Eye Sensors | ||
| 703 | * Melexis MLX90640 Thermal Cameras | ||
| 704 | 907 | ||
| 705 | To compile this driver as a module, choose M here: the | 908 | To compile this driver as a module, choose M here: the |
| 706 | module will be called video-i2c | 909 | module will be called cs53l32a. |
| 707 | 910 | ||
| 708 | config VIDEO_ST_MIPID02 | 911 | config VIDEO_MSP3400 |
| 709 | tristate "STMicroelectronics MIPID02 CSI-2 to PARALLEL bridge" | 912 | tristate "Micronas MSP34xx audio decoders" |
| 710 | depends on I2C && VIDEO_V4L2 | 913 | depends on VIDEO_DEV && I2C |
| 711 | select MEDIA_CONTROLLER | ||
| 712 | select VIDEO_V4L2_SUBDEV_API | ||
| 713 | select V4L2_FWNODE | ||
| 714 | help | 914 | help |
| 715 | Support for STMicroelectronics MIPID02 CSI-2 to PARALLEL bridge. | 915 | Support for the Micronas MSP34xx series of audio decoders. |
| 716 | It is used to allow usage of CSI-2 sensor with PARALLEL port | ||
| 717 | controller. | ||
| 718 | 916 | ||
| 719 | To compile this driver as a module, choose M here: the | 917 | To compile this driver as a module, choose M here: the |
| 720 | module will be called st-mipid02. | 918 | module will be called msp3400. |
| 721 | endmenu | ||
| 722 | |||
| 723 | # | ||
| 724 | # V4L2 I2C drivers that are related with Camera support | ||
| 725 | # | ||
| 726 | |||
| 727 | menu "Camera sensor devices" | ||
| 728 | visible if MEDIA_CAMERA_SUPPORT | ||
| 729 | 919 | ||
| 730 | config VIDEO_APTINA_PLL | 920 | config VIDEO_SONY_BTF_MPX |
| 731 | tristate | 921 | tristate "Sony BTF's internal MPX" |
| 922 | depends on VIDEO_DEV && I2C | ||
| 923 | help | ||
| 924 | Support for the internal MPX of the Sony BTF-PG472Z tuner. | ||
| 732 | 925 | ||
| 733 | config VIDEO_CCS_PLL | 926 | To compile this driver as a module, choose M here: the |
| 734 | tristate | 927 | module will be called sony-btf-mpx. |
| 735 | 928 | ||
| 736 | config VIDEO_HI556 | 929 | config VIDEO_TDA1997X |
| 737 | tristate "Hynix Hi-556 sensor support" | 930 | tristate "NXP TDA1997x HDMI receiver" |
| 738 | depends on I2C && VIDEO_V4L2 | 931 | depends on VIDEO_DEV && I2C |
| 932 | depends on SND_SOC | ||
| 933 | select HDMI | ||
| 934 | select SND_PCM | ||
| 935 | select V4L2_FWNODE | ||
| 739 | select MEDIA_CONTROLLER | 936 | select MEDIA_CONTROLLER |
| 740 | select VIDEO_V4L2_SUBDEV_API | 937 | select VIDEO_V4L2_SUBDEV_API |
| 741 | select V4L2_FWNODE | ||
| 742 | help | 938 | help |
| 743 | This is a Video4Linux2 sensor driver for the Hynix | 939 | V4L2 subdevice driver for the NXP TDA1997x HDMI receivers. |
| 744 | Hi-556 camera. | ||
| 745 | 940 | ||
| 746 | To compile this driver as a module, choose M here: the | 941 | To compile this driver as a module, choose M here: the |
| 747 | module will be called hi556. | 942 | module will be called tda1997x. |
| 748 | 943 | ||
| 749 | config VIDEO_HI846 | 944 | config VIDEO_TDA7432 |
| 750 | tristate "Hynix Hi-846 sensor support" | 945 | tristate "Philips TDA7432 audio processor" |
| 751 | depends on I2C && VIDEO_V4L2 | 946 | depends on VIDEO_DEV && I2C |
| 752 | select MEDIA_CONTROLLER | ||
| 753 | select VIDEO_V4L2_SUBDEV_API | ||
| 754 | select V4L2_FWNODE | ||
| 755 | help | 947 | help |
| 756 | This is a Video4Linux2 sensor driver for the Hynix | 948 | Support for tda7432 audio decoder chip found on some bt8xx boards. |
| 757 | Hi-846 camera. | ||
| 758 | 949 | ||
| 759 | To compile this driver as a module, choose M here: the | 950 | To compile this driver as a module, choose M here: the |
| 760 | module will be called hi846. | 951 | module will be called tda7432. |
| 761 | 952 | ||
| 762 | config VIDEO_IMX208 | 953 | config VIDEO_TDA9840 |
| 763 | tristate "Sony IMX208 sensor support" | 954 | tristate "Philips TDA9840 audio processor" |
| 764 | depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API | 955 | depends on I2C |
| 765 | depends on MEDIA_CAMERA_SUPPORT | ||
| 766 | help | 956 | help |
| 767 | This is a Video4Linux2 sensor driver for the Sony | 957 | Support for tda9840 audio decoder chip found on some Zoran boards. |
| 768 | IMX208 camera. | ||
| 769 | 958 | ||
| 770 | To compile this driver as a module, choose M here: the | 959 | To compile this driver as a module, choose M here: the |
| 771 | module will be called imx208. | 960 | module will be called tda9840. |
| 772 | 961 | ||
| 773 | config VIDEO_IMX214 | 962 | config VIDEO_TEA6415C |
| 774 | tristate "Sony IMX214 sensor support" | 963 | tristate "Philips TEA6415C audio processor" |
| 775 | depends on GPIOLIB && I2C && VIDEO_V4L2 | 964 | depends on I2C |
| 776 | select V4L2_FWNODE | ||
| 777 | select MEDIA_CONTROLLER | ||
| 778 | select VIDEO_V4L2_SUBDEV_API | ||
| 779 | select REGMAP_I2C | ||
| 780 | help | 965 | help |
| 781 | This is a Video4Linux2 sensor driver for the Sony | 966 | Support for tea6415c audio decoder chip found on some bt8xx boards. |
| 782 | IMX214 camera. | ||
| 783 | 967 | ||
| 784 | To compile this driver as a module, choose M here: the | 968 | To compile this driver as a module, choose M here: the |
| 785 | module will be called imx214. | 969 | module will be called tea6415c. |
| 786 | 970 | ||
| 787 | config VIDEO_IMX219 | 971 | config VIDEO_TEA6420 |
| 788 | tristate "Sony IMX219 sensor support" | 972 | tristate "Philips TEA6420 audio processor" |
| 789 | depends on I2C && VIDEO_V4L2 | 973 | depends on I2C |
| 790 | select MEDIA_CONTROLLER | ||
| 791 | select VIDEO_V4L2_SUBDEV_API | ||
| 792 | select V4L2_FWNODE | ||
| 793 | help | 974 | help |
| 794 | This is a Video4Linux2 sensor driver for the Sony | 975 | Support for tea6420 audio decoder chip found on some bt8xx boards. |
| 795 | IMX219 camera. | ||
| 796 | 976 | ||
| 797 | To compile this driver as a module, choose M here: the | 977 | To compile this driver as a module, choose M here: the |
| 798 | module will be called imx219. | 978 | module will be called tea6420. |
| 799 | 979 | ||
| 800 | config VIDEO_IMX258 | 980 | config VIDEO_TLV320AIC23B |
| 801 | tristate "Sony IMX258 sensor support" | 981 | tristate "Texas Instruments TLV320AIC23B audio codec" |
| 802 | depends on I2C && VIDEO_V4L2 | 982 | depends on VIDEO_DEV && I2C |
| 803 | select MEDIA_CONTROLLER | ||
| 804 | select VIDEO_V4L2_SUBDEV_API | ||
| 805 | help | 983 | help |
| 806 | This is a Video4Linux2 sensor driver for the Sony | 984 | Support for the Texas Instruments TLV320AIC23B audio codec. |
| 807 | IMX258 camera. | ||
| 808 | 985 | ||
| 809 | To compile this driver as a module, choose M here: the | 986 | To compile this driver as a module, choose M here: the |
| 810 | module will be called imx258. | 987 | module will be called tlv320aic23b. |
| 811 | 988 | ||
| 812 | config VIDEO_IMX274 | 989 | config VIDEO_TVAUDIO |
| 813 | tristate "Sony IMX274 sensor support" | 990 | tristate "Simple audio decoder chips" |
| 814 | depends on I2C && VIDEO_V4L2 | 991 | depends on VIDEO_DEV && I2C |
| 815 | select MEDIA_CONTROLLER | ||
| 816 | select VIDEO_V4L2_SUBDEV_API | ||
| 817 | select REGMAP_I2C | ||
| 818 | help | ||
| 819 | This is a V4L2 sensor driver for the Sony IMX274 | ||
| 820 | CMOS image sensor. | ||
| 821 | |||
| 822 | config VIDEO_IMX290 | ||
| 823 | tristate "Sony IMX290 sensor support" | ||
| 824 | depends on I2C && VIDEO_V4L2 | ||
| 825 | select MEDIA_CONTROLLER | ||
| 826 | select VIDEO_V4L2_SUBDEV_API | ||
| 827 | select REGMAP_I2C | ||
| 828 | select V4L2_FWNODE | ||
| 829 | help | 992 | help |
| 830 | This is a Video4Linux2 sensor driver for the Sony | 993 | Support for several audio decoder chips found on some bt8xx boards: |
| 831 | IMX290 camera sensor. | 994 | Philips: tda9840, tda9873h, tda9874h/a, tda9850, tda985x, tea6300, |
| 995 | tea6320, tea6420, tda8425, ta8874z. | ||
| 996 | Microchip: pic16c54 based design on ProVideo PV951 board. | ||
| 832 | 997 | ||
| 833 | To compile this driver as a module, choose M here: the | 998 | To compile this driver as a module, choose M here: the |
| 834 | module will be called imx290. | 999 | module will be called tvaudio. |
| 835 | 1000 | ||
| 836 | config VIDEO_IMX319 | 1001 | config VIDEO_UDA1342 |
| 837 | tristate "Sony IMX319 sensor support" | 1002 | tristate "Philips UDA1342 audio codec" |
| 838 | depends on I2C && VIDEO_V4L2 | 1003 | depends on VIDEO_DEV && I2C |
| 839 | select MEDIA_CONTROLLER | ||
| 840 | select VIDEO_V4L2_SUBDEV_API | ||
| 841 | help | 1004 | help |
| 842 | This is a Video4Linux2 sensor driver for the Sony | 1005 | Support for the Philips UDA1342 audio codec. |
| 843 | IMX319 camera. | ||
| 844 | 1006 | ||
| 845 | To compile this driver as a module, choose M here: the | 1007 | To compile this driver as a module, choose M here: the |
| 846 | module will be called imx319. | 1008 | module will be called uda1342. |
| 847 | 1009 | ||
| 848 | config VIDEO_IMX334 | 1010 | config VIDEO_VP27SMPX |
| 849 | tristate "Sony IMX334 sensor support" | 1011 | tristate "Panasonic VP27's internal MPX" |
| 850 | depends on OF_GPIO | 1012 | depends on VIDEO_DEV && I2C |
| 851 | depends on I2C && VIDEO_V4L2 | ||
| 852 | select VIDEO_V4L2_SUBDEV_API | ||
| 853 | select MEDIA_CONTROLLER | ||
| 854 | select V4L2_FWNODE | ||
| 855 | help | 1013 | help |
| 856 | This is a Video4Linux2 sensor driver for the Sony | 1014 | Support for the internal MPX of the Panasonic VP27s tuner. |
| 857 | IMX334 camera. | ||
| 858 | 1015 | ||
| 859 | To compile this driver as a module, choose M here: the | 1016 | To compile this driver as a module, choose M here: the |
| 860 | module will be called imx334. | 1017 | module will be called vp27smpx. |
| 861 | 1018 | ||
| 862 | config VIDEO_IMX335 | 1019 | config VIDEO_WM8739 |
| 863 | tristate "Sony IMX335 sensor support" | 1020 | tristate "Wolfson Microelectronics WM8739 stereo audio ADC" |
| 864 | depends on OF_GPIO | 1021 | depends on VIDEO_DEV && I2C |
| 865 | depends on I2C && VIDEO_V4L2 | ||
| 866 | select VIDEO_V4L2_SUBDEV_API | ||
| 867 | select MEDIA_CONTROLLER | ||
| 868 | select V4L2_FWNODE | ||
| 869 | help | 1022 | help |
| 870 | This is a Video4Linux2 sensor driver for the Sony | 1023 | Support for the Wolfson Microelectronics WM8739 |
| 871 | IMX335 camera. | 1024 | stereo A/D Converter. |
| 872 | 1025 | ||
| 873 | To compile this driver as a module, choose M here: the | 1026 | To compile this driver as a module, choose M here: the |
| 874 | module will be called imx335. | 1027 | module will be called wm8739. |
| 875 | 1028 | ||
| 876 | config VIDEO_IMX355 | 1029 | config VIDEO_WM8775 |
| 877 | tristate "Sony IMX355 sensor support" | 1030 | tristate "Wolfson Microelectronics WM8775 audio ADC with input mixer" |
| 878 | depends on I2C && VIDEO_V4L2 | 1031 | depends on VIDEO_DEV && I2C |
| 879 | select MEDIA_CONTROLLER | ||
| 880 | select VIDEO_V4L2_SUBDEV_API | ||
| 881 | help | 1032 | help |
| 882 | This is a Video4Linux2 sensor driver for the Sony | 1033 | Support for the Wolfson Microelectronics WM8775 high |
| 883 | IMX355 camera. | 1034 | performance stereo A/D Converter with a 4 channel input mixer. |
| 884 | 1035 | ||
| 885 | To compile this driver as a module, choose M here: the | 1036 | To compile this driver as a module, choose M here: the |
| 886 | module will be called imx355. | 1037 | module will be called wm8775. |
| 887 | |||
| 888 | config VIDEO_IMX412 | ||
| 889 | tristate "Sony IMX412 sensor support" | ||
| 890 | depends on OF_GPIO | ||
| 891 | depends on I2C && VIDEO_V4L2 | ||
| 892 | select VIDEO_V4L2_SUBDEV_API | ||
| 893 | select MEDIA_CONTROLLER | ||
| 894 | select V4L2_FWNODE | ||
| 895 | help | ||
| 896 | This is a Video4Linux2 sensor driver for the Sony | ||
| 897 | IMX412 camera. | ||
| 898 | 1038 | ||
| 899 | To compile this driver as a module, choose M here: the | 1039 | endmenu |
| 900 | module will be called imx412. | ||
| 901 | 1040 | ||
| 902 | config VIDEO_OV02A10 | 1041 | menu "RDS decoders" |
| 903 | tristate "OmniVision OV02A10 sensor support" | 1042 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV |
| 904 | depends on VIDEO_V4L2 && I2C | ||
| 905 | select MEDIA_CONTROLLER | ||
| 906 | select VIDEO_V4L2_SUBDEV_API | ||
| 907 | select V4L2_FWNODE | ||
| 908 | help | ||
| 909 | This is a Video4Linux2 sensor driver for the OmniVision | ||
| 910 | OV02A10 camera. | ||
| 911 | 1043 | ||
| 912 | To compile this driver as a module, choose M here: the | 1044 | config VIDEO_SAA6588 |
| 913 | module will be called ov02a10. | 1045 | tristate "SAA6588 Radio Chip RDS decoder support" |
| 1046 | depends on VIDEO_DEV && I2C | ||
| 914 | 1047 | ||
| 915 | config VIDEO_OV2640 | ||
| 916 | tristate "OmniVision OV2640 sensor support" | ||
| 917 | depends on VIDEO_V4L2 && I2C | ||
| 918 | help | 1048 | help |
| 919 | This is a Video4Linux2 sensor driver for the OmniVision | 1049 | Support for this Radio Data System (RDS) decoder. This allows |
| 920 | OV2640 camera. | 1050 | seeing radio station identification transmitted using this |
| 1051 | standard. | ||
| 921 | 1052 | ||
| 922 | To compile this driver as a module, choose M here: the | 1053 | To compile this driver as a module, choose M here: the |
| 923 | module will be called ov2640. | 1054 | module will be called saa6588. |
| 924 | 1055 | ||
| 925 | config VIDEO_OV2659 | 1056 | endmenu |
| 926 | tristate "OmniVision OV2659 sensor support" | ||
| 927 | depends on VIDEO_V4L2 && I2C && GPIOLIB | ||
| 928 | select V4L2_FWNODE | ||
| 929 | help | ||
| 930 | This is a Video4Linux2 sensor driver for the OmniVision | ||
| 931 | OV2659 camera. | ||
| 932 | 1057 | ||
| 933 | To compile this driver as a module, choose M here: the | 1058 | menu "Video decoders" |
| 934 | module will be called ov2659. | 1059 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV |
| 935 | 1060 | ||
| 936 | config VIDEO_OV2680 | 1061 | config VIDEO_ADV7180 |
| 937 | tristate "OmniVision OV2680 sensor support" | 1062 | tristate "Analog Devices ADV7180 decoder" |
| 938 | depends on VIDEO_V4L2 && I2C | 1063 | depends on GPIOLIB && VIDEO_DEV && I2C |
| 939 | select MEDIA_CONTROLLER | 1064 | select MEDIA_CONTROLLER |
| 940 | select V4L2_FWNODE | 1065 | select VIDEO_V4L2_SUBDEV_API |
| 1066 | select V4L2_ASYNC | ||
| 941 | help | 1067 | help |
| 942 | This is a Video4Linux2 sensor driver for the OmniVision | 1068 | Support for the Analog Devices ADV7180 video decoder. |
| 943 | OV2680 camera. | ||
| 944 | 1069 | ||
| 945 | To compile this driver as a module, choose M here: the | 1070 | To compile this driver as a module, choose M here: the |
| 946 | module will be called ov2680. | 1071 | module will be called adv7180. |
| 947 | 1072 | ||
| 948 | config VIDEO_OV2685 | 1073 | config VIDEO_ADV7183 |
| 949 | tristate "OmniVision OV2685 sensor support" | 1074 | tristate "Analog Devices ADV7183 decoder" |
| 950 | depends on VIDEO_V4L2 && I2C | 1075 | depends on VIDEO_DEV && I2C |
| 951 | select MEDIA_CONTROLLER | ||
| 952 | select V4L2_FWNODE | ||
| 953 | help | 1076 | help |
| 954 | This is a Video4Linux2 sensor driver for the OmniVision | 1077 | V4l2 subdevice driver for the Analog Devices |
| 955 | OV2685 camera. | 1078 | ADV7183 video decoder. |
| 956 | 1079 | ||
| 957 | To compile this driver as a module, choose M here: the | 1080 | To compile this driver as a module, choose M here: the |
| 958 | module will be called ov2685. | 1081 | module will be called adv7183. |
| 959 | 1082 | ||
| 960 | config VIDEO_OV2740 | 1083 | config VIDEO_ADV748X |
| 961 | tristate "OmniVision OV2740 sensor support" | 1084 | tristate "Analog Devices ADV748x decoder" |
| 962 | depends on VIDEO_V4L2 && I2C | 1085 | depends on VIDEO_DEV && I2C |
| 963 | depends on ACPI || COMPILE_TEST | 1086 | depends on OF |
| 964 | select MEDIA_CONTROLLER | 1087 | select MEDIA_CONTROLLER |
| 965 | select VIDEO_V4L2_SUBDEV_API | 1088 | select VIDEO_V4L2_SUBDEV_API |
| 966 | select V4L2_FWNODE | ||
| 967 | select REGMAP_I2C | 1089 | select REGMAP_I2C |
| 1090 | select V4L2_FWNODE | ||
| 968 | help | 1091 | help |
| 969 | This is a Video4Linux2 sensor driver for the OmniVision | 1092 | V4L2 subdevice driver for the Analog Devices |
| 970 | OV2740 camera. | 1093 | ADV7481 and ADV7482 HDMI/Analog video decoders. |
| 971 | 1094 | ||
| 972 | To compile this driver as a module, choose M here: the | 1095 | To compile this driver as a module, choose M here: the |
| 973 | module will be called ov2740. | 1096 | module will be called adv748x. |
| 974 | 1097 | ||
| 975 | config VIDEO_OV5640 | 1098 | config VIDEO_ADV7604 |
| 976 | tristate "OmniVision OV5640 sensor support" | 1099 | tristate "Analog Devices ADV7604 decoder" |
| 977 | depends on OF | 1100 | depends on VIDEO_DEV && I2C |
| 978 | depends on GPIOLIB && VIDEO_V4L2 && I2C | 1101 | depends on GPIOLIB || COMPILE_TEST |
| 979 | select MEDIA_CONTROLLER | 1102 | select MEDIA_CONTROLLER |
| 980 | select VIDEO_V4L2_SUBDEV_API | 1103 | select VIDEO_V4L2_SUBDEV_API |
| 1104 | select REGMAP_I2C | ||
| 1105 | select HDMI | ||
| 981 | select V4L2_FWNODE | 1106 | select V4L2_FWNODE |
| 982 | help | 1107 | help |
| 983 | This is a Video4Linux2 sensor driver for the Omnivision | 1108 | Support for the Analog Devices ADV7604 video decoder. |
| 984 | OV5640 camera sensor with a MIPI CSI-2 interface. | ||
| 985 | 1109 | ||
| 986 | config VIDEO_OV5645 | 1110 | This is a Analog Devices Component/Graphics Digitizer |
| 987 | tristate "OmniVision OV5645 sensor support" | 1111 | with 4:1 Multiplexed HDMI Receiver. |
| 988 | depends on OF | ||
| 989 | depends on I2C && VIDEO_V4L2 | ||
| 990 | select MEDIA_CONTROLLER | ||
| 991 | select VIDEO_V4L2_SUBDEV_API | ||
| 992 | select V4L2_FWNODE | ||
| 993 | help | ||
| 994 | This is a Video4Linux2 sensor driver for the OmniVision | ||
| 995 | OV5645 camera. | ||
| 996 | 1112 | ||
| 997 | To compile this driver as a module, choose M here: the | 1113 | To compile this driver as a module, choose M here: the |
| 998 | module will be called ov5645. | 1114 | module will be called adv7604. |
| 999 | 1115 | ||
| 1000 | config VIDEO_OV5647 | 1116 | config VIDEO_ADV7604_CEC |
| 1001 | tristate "OmniVision OV5647 sensor support" | 1117 | bool "Enable Analog Devices ADV7604 CEC support" |
| 1002 | depends on I2C && VIDEO_V4L2 | 1118 | depends on VIDEO_ADV7604 |
| 1119 | select CEC_CORE | ||
| 1120 | help | ||
| 1121 | When selected the adv7604 will support the optional | ||
| 1122 | HDMI CEC feature. | ||
| 1123 | |||
| 1124 | config VIDEO_ADV7842 | ||
| 1125 | tristate "Analog Devices ADV7842 decoder" | ||
| 1126 | depends on VIDEO_DEV && I2C | ||
| 1003 | select MEDIA_CONTROLLER | 1127 | select MEDIA_CONTROLLER |
| 1004 | select VIDEO_V4L2_SUBDEV_API | 1128 | select VIDEO_V4L2_SUBDEV_API |
| 1005 | select V4L2_FWNODE | 1129 | select HDMI |
| 1006 | help | 1130 | help |
| 1007 | This is a Video4Linux2 sensor driver for the OmniVision | 1131 | Support for the Analog Devices ADV7842 video decoder. |
| 1008 | OV5647 camera. | 1132 | |
| 1133 | This is a Analog Devices Component/Graphics/SD Digitizer | ||
| 1134 | with 2:1 Multiplexed HDMI Receiver. | ||
| 1009 | 1135 | ||
| 1010 | To compile this driver as a module, choose M here: the | 1136 | To compile this driver as a module, choose M here: the |
| 1011 | module will be called ov5647. | 1137 | module will be called adv7842. |
| 1012 | 1138 | ||
| 1013 | config VIDEO_OV5648 | 1139 | config VIDEO_ADV7842_CEC |
| 1014 | tristate "OmniVision OV5648 sensor support" | 1140 | bool "Enable Analog Devices ADV7842 CEC support" |
| 1015 | depends on I2C && PM && VIDEO_V4L2 | 1141 | depends on VIDEO_ADV7842 |
| 1016 | select MEDIA_CONTROLLER | 1142 | select CEC_CORE |
| 1017 | select VIDEO_V4L2_SUBDEV_API | ||
| 1018 | select V4L2_FWNODE | ||
| 1019 | help | 1143 | help |
| 1020 | This is a Video4Linux2 sensor driver for the OmniVision | 1144 | When selected the adv7842 will support the optional |
| 1021 | OV5648 camera. | 1145 | HDMI CEC feature. |
| 1146 | |||
| 1147 | config VIDEO_BT819 | ||
| 1148 | tristate "BT819A VideoStream decoder" | ||
| 1149 | depends on VIDEO_DEV && I2C | ||
| 1150 | help | ||
| 1151 | Support for BT819A video decoder. | ||
| 1022 | 1152 | ||
| 1023 | To compile this driver as a module, choose M here: the | 1153 | To compile this driver as a module, choose M here: the |
| 1024 | module will be called ov5648. | 1154 | module will be called bt819. |
| 1025 | 1155 | ||
| 1026 | config VIDEO_OV6650 | 1156 | config VIDEO_BT856 |
| 1027 | tristate "OmniVision OV6650 sensor support" | 1157 | tristate "BT856 VideoStream decoder" |
| 1028 | depends on I2C && VIDEO_V4L2 | 1158 | depends on VIDEO_DEV && I2C |
| 1029 | help | 1159 | help |
| 1030 | This is a Video4Linux2 sensor driver for the OmniVision | 1160 | Support for BT856 video decoder. |
| 1031 | OV6650 camera. | ||
| 1032 | 1161 | ||
| 1033 | To compile this driver as a module, choose M here: the | 1162 | To compile this driver as a module, choose M here: the |
| 1034 | module will be called ov6650. | 1163 | module will be called bt856. |
| 1035 | 1164 | ||
| 1036 | config VIDEO_OV5670 | 1165 | config VIDEO_BT866 |
| 1037 | tristate "OmniVision OV5670 sensor support" | 1166 | tristate "BT866 VideoStream decoder" |
| 1038 | depends on I2C && VIDEO_V4L2 | 1167 | depends on VIDEO_DEV && I2C |
| 1039 | select MEDIA_CONTROLLER | ||
| 1040 | select VIDEO_V4L2_SUBDEV_API | ||
| 1041 | select V4L2_FWNODE | ||
| 1042 | help | 1168 | help |
| 1043 | This is a Video4Linux2 sensor driver for the OmniVision | 1169 | Support for BT866 video decoder. |
| 1044 | OV5670 camera. | ||
| 1045 | 1170 | ||
| 1046 | To compile this driver as a module, choose M here: the | 1171 | To compile this driver as a module, choose M here: the |
| 1047 | module will be called ov5670. | 1172 | module will be called bt866. |
| 1048 | 1173 | ||
| 1049 | config VIDEO_OV5675 | 1174 | config VIDEO_ISL7998X |
| 1050 | tristate "OmniVision OV5675 sensor support" | 1175 | tristate "Intersil ISL7998x video decoder" |
| 1051 | depends on I2C && VIDEO_V4L2 | 1176 | depends on VIDEO_DEV && I2C |
| 1177 | depends on OF_GPIO | ||
| 1052 | select MEDIA_CONTROLLER | 1178 | select MEDIA_CONTROLLER |
| 1053 | select VIDEO_V4L2_SUBDEV_API | 1179 | select VIDEO_V4L2_SUBDEV_API |
| 1054 | select V4L2_FWNODE | ||
| 1055 | help | 1180 | help |
| 1056 | This is a Video4Linux2 sensor driver for the OmniVision | 1181 | Support for Intersil ISL7998x analog to MIPI-CSI2 or |
| 1057 | OV5675 camera. | 1182 | BT.656 decoder. |
| 1058 | 1183 | ||
| 1059 | To compile this driver as a module, choose M here: the | 1184 | config VIDEO_KS0127 |
| 1060 | module will be called ov5675. | 1185 | tristate "KS0127 video decoder" |
| 1186 | depends on VIDEO_DEV && I2C | ||
| 1187 | help | ||
| 1188 | Support for KS0127 video decoder. | ||
| 1061 | 1189 | ||
| 1062 | config VIDEO_OV5693 | 1190 | This chip is used on AverMedia AVS6EYES Zoran-based MJPEG |
| 1063 | tristate "OmniVision OV5693 sensor support" | 1191 | cards. |
| 1064 | depends on I2C && VIDEO_V4L2 | ||
| 1065 | select V4L2_FWNODE | ||
| 1066 | help | ||
| 1067 | This is a Video4Linux2 sensor driver for the OmniVision | ||
| 1068 | OV5693 camera. | ||
| 1069 | 1192 | ||
| 1070 | To compile this driver as a module, choose M here: the | 1193 | To compile this driver as a module, choose M here: the |
| 1071 | module will be called ov5693. | 1194 | module will be called ks0127. |
| 1072 | 1195 | ||
| 1073 | config VIDEO_OV5695 | 1196 | config VIDEO_MAX9286 |
| 1074 | tristate "OmniVision OV5695 sensor support" | 1197 | tristate "Maxim MAX9286 GMSL deserializer support" |
| 1075 | depends on I2C && VIDEO_V4L2 | 1198 | depends on I2C && I2C_MUX |
| 1199 | depends on VIDEO_DEV | ||
| 1200 | depends on OF_GPIO | ||
| 1076 | select V4L2_FWNODE | 1201 | select V4L2_FWNODE |
| 1202 | select VIDEO_V4L2_SUBDEV_API | ||
| 1203 | select MEDIA_CONTROLLER | ||
| 1077 | help | 1204 | help |
| 1078 | This is a Video4Linux2 sensor driver for the OmniVision | 1205 | This driver supports the Maxim MAX9286 GMSL deserializer. |
| 1079 | OV5695 camera. | ||
| 1080 | 1206 | ||
| 1081 | To compile this driver as a module, choose M here: the | 1207 | To compile this driver as a module, choose M here: the |
| 1082 | module will be called ov5695. | 1208 | module will be called max9286. |
| 1083 | 1209 | ||
| 1084 | config VIDEO_OV7251 | 1210 | config VIDEO_ML86V7667 |
| 1085 | tristate "OmniVision OV7251 sensor support" | 1211 | tristate "OKI ML86V7667 video decoder" |
| 1086 | depends on I2C && VIDEO_V4L2 | 1212 | depends on VIDEO_DEV && I2C |
| 1087 | select MEDIA_CONTROLLER | ||
| 1088 | select VIDEO_V4L2_SUBDEV_API | ||
| 1089 | select V4L2_FWNODE | ||
| 1090 | help | 1213 | help |
| 1091 | This is a Video4Linux2 sensor driver for the OmniVision | 1214 | Support for the OKI Semiconductor ML86V7667 video decoder. |
| 1092 | OV7251 camera. | ||
| 1093 | 1215 | ||
| 1094 | To compile this driver as a module, choose M here: the | 1216 | To compile this driver as a module, choose M here: the |
| 1095 | module will be called ov7251. | 1217 | module will be called ml86v7667. |
| 1096 | 1218 | ||
| 1097 | config VIDEO_OV772X | 1219 | config VIDEO_SAA7110 |
| 1098 | tristate "OmniVision OV772x sensor support" | 1220 | tristate "Philips SAA7110 video decoder" |
| 1099 | depends on I2C && VIDEO_V4L2 | 1221 | depends on VIDEO_DEV && I2C |
| 1100 | select REGMAP_SCCB | ||
| 1101 | select V4L2_FWNODE | ||
| 1102 | help | 1222 | help |
| 1103 | This is a Video4Linux2 sensor driver for the OmniVision | 1223 | Support for the Philips SAA7110 video decoders. |
| 1104 | OV772x camera. | ||
| 1105 | 1224 | ||
| 1106 | To compile this driver as a module, choose M here: the | 1225 | To compile this driver as a module, choose M here: the |
| 1107 | module will be called ov772x. | 1226 | module will be called saa7110. |
| 1108 | 1227 | ||
| 1109 | config VIDEO_OV7640 | 1228 | config VIDEO_SAA711X |
| 1110 | tristate "OmniVision OV7640 sensor support" | 1229 | tristate "Philips SAA7111/3/4/5 video decoders" |
| 1111 | depends on I2C && VIDEO_V4L2 | 1230 | depends on VIDEO_DEV && I2C |
| 1112 | help | 1231 | help |
| 1113 | This is a Video4Linux2 sensor driver for the OmniVision | 1232 | Support for the Philips SAA7111/3/4/5 video decoders. |
| 1114 | OV7640 camera. | ||
| 1115 | 1233 | ||
| 1116 | To compile this driver as a module, choose M here: the | 1234 | To compile this driver as a module, choose M here: the |
| 1117 | module will be called ov7640. | 1235 | module will be called saa7115. |
| 1118 | 1236 | ||
| 1119 | config VIDEO_OV7670 | 1237 | config VIDEO_TC358743 |
| 1120 | tristate "OmniVision OV7670 sensor support" | 1238 | tristate "Toshiba TC358743 decoder" |
| 1121 | depends on I2C && VIDEO_V4L2 | 1239 | depends on VIDEO_DEV && I2C |
| 1240 | select MEDIA_CONTROLLER | ||
| 1241 | select VIDEO_V4L2_SUBDEV_API | ||
| 1242 | select HDMI | ||
| 1122 | select V4L2_FWNODE | 1243 | select V4L2_FWNODE |
| 1123 | help | 1244 | help |
| 1124 | This is a Video4Linux2 sensor driver for the OmniVision | 1245 | Support for the Toshiba TC358743 HDMI to MIPI CSI-2 bridge. |
| 1125 | OV7670 VGA camera. It currently only works with the M88ALP01 | ||
| 1126 | controller. | ||
| 1127 | 1246 | ||
| 1128 | config VIDEO_OV7740 | 1247 | To compile this driver as a module, choose M here: the |
| 1129 | tristate "OmniVision OV7740 sensor support" | 1248 | module will be called tc358743. |
| 1130 | depends on I2C && VIDEO_V4L2 | 1249 | |
| 1131 | select REGMAP_SCCB | 1250 | config VIDEO_TC358743_CEC |
| 1251 | bool "Enable Toshiba TC358743 CEC support" | ||
| 1252 | depends on VIDEO_TC358743 | ||
| 1253 | select CEC_CORE | ||
| 1132 | help | 1254 | help |
| 1133 | This is a Video4Linux2 sensor driver for the OmniVision | 1255 | When selected the tc358743 will support the optional |
| 1134 | OV7740 VGA camera sensor. | 1256 | HDMI CEC feature. |
| 1135 | 1257 | ||
| 1136 | config VIDEO_OV8856 | 1258 | config VIDEO_TVP514X |
| 1137 | tristate "OmniVision OV8856 sensor support" | 1259 | tristate "Texas Instruments TVP514x video decoder" |
| 1138 | depends on I2C && VIDEO_V4L2 | 1260 | depends on VIDEO_DEV && I2C |
| 1139 | select MEDIA_CONTROLLER | ||
| 1140 | select VIDEO_V4L2_SUBDEV_API | ||
| 1141 | select V4L2_FWNODE | 1261 | select V4L2_FWNODE |
| 1142 | help | 1262 | help |
| 1143 | This is a Video4Linux2 sensor driver for the OmniVision | 1263 | This is a Video4Linux2 sensor driver for the TI TVP5146/47 |
| 1144 | OV8856 camera sensor. | 1264 | decoder. It is currently working with the TI OMAP3 camera |
| 1265 | controller. | ||
| 1145 | 1266 | ||
| 1146 | To compile this driver as a module, choose M here: the | 1267 | To compile this driver as a module, choose M here: the |
| 1147 | module will be called ov8856. | 1268 | module will be called tvp514x. |
| 1148 | 1269 | ||
| 1149 | config VIDEO_OV8865 | 1270 | config VIDEO_TVP5150 |
| 1150 | tristate "OmniVision OV8865 sensor support" | 1271 | tristate "Texas Instruments TVP5150 video decoder" |
| 1151 | depends on I2C && PM && VIDEO_V4L2 | 1272 | depends on VIDEO_DEV && I2C |
| 1152 | select MEDIA_CONTROLLER | ||
| 1153 | select VIDEO_V4L2_SUBDEV_API | ||
| 1154 | select V4L2_FWNODE | 1273 | select V4L2_FWNODE |
| 1274 | select REGMAP_I2C | ||
| 1155 | help | 1275 | help |
| 1156 | This is a Video4Linux2 sensor driver for OmniVision | 1276 | Support for the Texas Instruments TVP5150 video decoder. |
| 1157 | OV8865 camera sensor. | ||
| 1158 | 1277 | ||
| 1159 | To compile this driver as a module, choose M here: the | 1278 | To compile this driver as a module, choose M here: the |
| 1160 | module will be called ov8865. | 1279 | module will be called tvp5150. |
| 1161 | 1280 | ||
| 1162 | config VIDEO_OV9282 | 1281 | config VIDEO_TVP7002 |
| 1163 | tristate "OmniVision OV9282 sensor support" | 1282 | tristate "Texas Instruments TVP7002 video decoder" |
| 1164 | depends on OF_GPIO | 1283 | depends on VIDEO_DEV && I2C |
| 1165 | depends on I2C && VIDEO_V4L2 | ||
| 1166 | select VIDEO_V4L2_SUBDEV_API | ||
| 1167 | select MEDIA_CONTROLLER | ||
| 1168 | select V4L2_FWNODE | 1284 | select V4L2_FWNODE |
| 1169 | help | 1285 | help |
| 1170 | This is a Video4Linux2 sensor driver for the OmniVision | 1286 | Support for the Texas Instruments TVP7002 video decoder. |
| 1171 | OV9282 camera sensor. | ||
| 1172 | 1287 | ||
| 1173 | To compile this driver as a module, choose M here: the | 1288 | To compile this driver as a module, choose M here: the |
| 1174 | module will be called ov9282. | 1289 | module will be called tvp7002. |
| 1175 | 1290 | ||
| 1176 | config VIDEO_OV9640 | 1291 | config VIDEO_TW2804 |
| 1177 | tristate "OmniVision OV9640 sensor support" | 1292 | tristate "Techwell TW2804 multiple video decoder" |
| 1178 | depends on I2C && VIDEO_V4L2 | 1293 | depends on VIDEO_DEV && I2C |
| 1179 | help | 1294 | help |
| 1180 | This is a Video4Linux2 sensor driver for the OmniVision | 1295 | Support for the Techwell tw2804 multiple video decoder. |
| 1181 | OV9640 camera sensor. | ||
| 1182 | 1296 | ||
| 1183 | config VIDEO_OV9650 | 1297 | To compile this driver as a module, choose M here: the |
| 1184 | tristate "OmniVision OV9650/OV9652 sensor support" | 1298 | module will be called tw2804. |
| 1185 | depends on I2C && VIDEO_V4L2 | ||
| 1186 | select MEDIA_CONTROLLER | ||
| 1187 | select VIDEO_V4L2_SUBDEV_API | ||
| 1188 | select REGMAP_SCCB | ||
| 1189 | help | ||
| 1190 | This is a V4L2 sensor driver for the Omnivision | ||
| 1191 | OV9650 and OV9652 camera sensors. | ||
| 1192 | 1299 | ||
| 1193 | config VIDEO_OV9734 | 1300 | config VIDEO_TW9903 |
| 1194 | tristate "OmniVision OV9734 sensor support" | 1301 | tristate "Techwell TW9903 video decoder" |
| 1195 | depends on VIDEO_V4L2 && I2C | 1302 | depends on VIDEO_DEV && I2C |
| 1196 | depends on ACPI || COMPILE_TEST | ||
| 1197 | select MEDIA_CONTROLLER | ||
| 1198 | select VIDEO_V4L2_SUBDEV_API | ||
| 1199 | select V4L2_FWNODE | ||
| 1200 | help | 1303 | help |
| 1201 | This is a Video4Linux2 sensor driver for the OmniVision | 1304 | Support for the Techwell tw9903 multi-standard video decoder |
| 1202 | OV9734 camera. | 1305 | with high quality down scaler. |
| 1203 | 1306 | ||
| 1204 | To compile this driver as a module, choose M here: the | 1307 | To compile this driver as a module, choose M here: the |
| 1205 | module's name is ov9734. | 1308 | module will be called tw9903. |
| 1206 | 1309 | ||
| 1207 | config VIDEO_OV13858 | 1310 | config VIDEO_TW9906 |
| 1208 | tristate "OmniVision OV13858 sensor support" | 1311 | tristate "Techwell TW9906 video decoder" |
| 1209 | depends on I2C && VIDEO_V4L2 | 1312 | depends on VIDEO_DEV && I2C |
| 1210 | select MEDIA_CONTROLLER | ||
| 1211 | select VIDEO_V4L2_SUBDEV_API | ||
| 1212 | select V4L2_FWNODE | ||
| 1213 | help | 1313 | help |
| 1214 | This is a Video4Linux2 sensor driver for the OmniVision | 1314 | Support for the Techwell tw9906 enhanced multi-standard comb filter |
| 1215 | OV13858 camera. | 1315 | video decoder with YCbCr input support. |
| 1216 | 1316 | ||
| 1217 | config VIDEO_OV13B10 | 1317 | To compile this driver as a module, choose M here: the |
| 1218 | tristate "OmniVision OV13B10 sensor support" | 1318 | module will be called tw9906. |
| 1219 | depends on I2C && VIDEO_V4L2 | ||
| 1220 | select MEDIA_CONTROLLER | ||
| 1221 | select VIDEO_V4L2_SUBDEV_API | ||
| 1222 | select V4L2_FWNODE | ||
| 1223 | help | ||
| 1224 | This is a Video4Linux2 sensor driver for the OmniVision | ||
| 1225 | OV13B10 camera. | ||
| 1226 | 1319 | ||
| 1227 | config VIDEO_VS6624 | 1320 | config VIDEO_TW9910 |
| 1228 | tristate "ST VS6624 sensor support" | 1321 | tristate "Techwell TW9910 video decoder" |
| 1229 | depends on VIDEO_V4L2 && I2C | 1322 | depends on VIDEO_DEV && I2C |
| 1323 | select V4L2_ASYNC | ||
| 1230 | help | 1324 | help |
| 1231 | This is a Video4Linux2 sensor driver for the ST VS6624 | 1325 | Support for Techwell TW9910 NTSC/PAL/SECAM video decoder. |
| 1232 | camera. | ||
| 1233 | 1326 | ||
| 1234 | To compile this driver as a module, choose M here: the | 1327 | To compile this driver as a module, choose M here: the |
| 1235 | module will be called vs6624. | 1328 | module will be called tw9910. |
| 1236 | 1329 | ||
| 1237 | config VIDEO_MT9M001 | 1330 | config VIDEO_VPX3220 |
| 1238 | tristate "mt9m001 support" | 1331 | tristate "vpx3220a, vpx3216b & vpx3214c video decoders" |
| 1239 | depends on I2C && VIDEO_V4L2 | 1332 | depends on VIDEO_DEV && I2C |
| 1240 | select MEDIA_CONTROLLER | ||
| 1241 | select VIDEO_V4L2_SUBDEV_API | ||
| 1242 | help | 1333 | help |
| 1243 | This driver supports MT9M001 cameras from Micron, monochrome | 1334 | Support for VPX322x video decoders. |
| 1244 | and colour models. | ||
| 1245 | 1335 | ||
| 1246 | config VIDEO_MT9M032 | 1336 | To compile this driver as a module, choose M here: the |
| 1247 | tristate "MT9M032 camera sensor support" | 1337 | module will be called vpx3220. |
| 1248 | depends on I2C && VIDEO_V4L2 | ||
| 1249 | select MEDIA_CONTROLLER | ||
| 1250 | select VIDEO_V4L2_SUBDEV_API | ||
| 1251 | select VIDEO_APTINA_PLL | ||
| 1252 | help | ||
| 1253 | This driver supports MT9M032 camera sensors from Aptina, monochrome | ||
| 1254 | models only. | ||
| 1255 | 1338 | ||
| 1256 | config VIDEO_MT9M111 | 1339 | comment "Video and audio decoders" |
| 1257 | tristate "mt9m111, mt9m112 and mt9m131 support" | ||
| 1258 | depends on I2C && VIDEO_V4L2 | ||
| 1259 | select V4L2_FWNODE | ||
| 1260 | help | ||
| 1261 | This driver supports MT9M111, MT9M112 and MT9M131 cameras from | ||
| 1262 | Micron/Aptina | ||
| 1263 | 1340 | ||
| 1264 | config VIDEO_MT9P031 | 1341 | config VIDEO_SAA717X |
| 1265 | tristate "Aptina MT9P031 support" | 1342 | tristate "Philips SAA7171/3/4 audio/video decoders" |
| 1266 | depends on I2C && VIDEO_V4L2 | 1343 | depends on VIDEO_DEV && I2C |
| 1267 | select MEDIA_CONTROLLER | ||
| 1268 | select VIDEO_V4L2_SUBDEV_API | ||
| 1269 | select VIDEO_APTINA_PLL | ||
| 1270 | select V4L2_FWNODE | ||
| 1271 | help | 1344 | help |
| 1272 | This is a Video4Linux2 sensor driver for the Aptina | 1345 | Support for the Philips SAA7171/3/4 audio/video decoders. |
| 1273 | (Micron) mt9p031 5 Mpixel camera. | ||
| 1274 | 1346 | ||
| 1275 | config VIDEO_MT9T001 | 1347 | To compile this driver as a module, choose M here: the |
| 1276 | tristate "Aptina MT9T001 support" | 1348 | module will be called saa717x. |
| 1277 | depends on I2C && VIDEO_V4L2 | 1349 | |
| 1350 | source "drivers/media/i2c/cx25840/Kconfig" | ||
| 1351 | |||
| 1352 | endmenu | ||
| 1353 | |||
| 1354 | menu "Video encoders" | ||
| 1355 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | ||
| 1356 | |||
| 1357 | config VIDEO_AD9389B | ||
| 1358 | tristate "Analog Devices AD9389B encoder" | ||
| 1359 | depends on VIDEO_DEV && I2C | ||
| 1278 | select MEDIA_CONTROLLER | 1360 | select MEDIA_CONTROLLER |
| 1279 | select VIDEO_V4L2_SUBDEV_API | 1361 | select VIDEO_V4L2_SUBDEV_API |
| 1362 | |||
| 1280 | help | 1363 | help |
| 1281 | This is a Video4Linux2 sensor driver for the Aptina | 1364 | Support for the Analog Devices AD9389B video encoder. |
| 1282 | (Micron) mt0t001 3 Mpixel camera. | ||
| 1283 | 1365 | ||
| 1284 | config VIDEO_MT9T112 | 1366 | This is a Analog Devices HDMI transmitter. |
| 1285 | tristate "Aptina MT9T111/MT9T112 support" | 1367 | |
| 1286 | depends on I2C && VIDEO_V4L2 | 1368 | To compile this driver as a module, choose M here: the |
| 1369 | module will be called ad9389b. | ||
| 1370 | |||
| 1371 | config VIDEO_ADV7170 | ||
| 1372 | tristate "Analog Devices ADV7170 video encoder" | ||
| 1373 | depends on VIDEO_DEV && I2C | ||
| 1287 | help | 1374 | help |
| 1288 | This is a Video4Linux2 sensor driver for the Aptina | 1375 | Support for the Analog Devices ADV7170 video encoder driver |
| 1289 | (Micron) MT9T111 and MT9T112 3 Mpixel camera. | ||
| 1290 | 1376 | ||
| 1291 | To compile this driver as a module, choose M here: the | 1377 | To compile this driver as a module, choose M here: the |
| 1292 | module will be called mt9t112. | 1378 | module will be called adv7170. |
| 1293 | 1379 | ||
| 1294 | config VIDEO_MT9V011 | 1380 | config VIDEO_ADV7175 |
| 1295 | tristate "Micron mt9v011 sensor support" | 1381 | tristate "Analog Devices ADV7175 video encoder" |
| 1296 | depends on I2C && VIDEO_V4L2 | 1382 | depends on VIDEO_DEV && I2C |
| 1297 | help | 1383 | help |
| 1298 | This is a Video4Linux2 sensor driver for the Micron | 1384 | Support for the Analog Devices ADV7175 video encoder driver |
| 1299 | mt0v011 1.3 Mpixel camera. It currently only works with the | ||
| 1300 | em28xx driver. | ||
| 1301 | 1385 | ||
| 1302 | config VIDEO_MT9V032 | 1386 | To compile this driver as a module, choose M here: the |
| 1303 | tristate "Micron MT9V032 sensor support" | 1387 | module will be called adv7175. |
| 1304 | depends on I2C && VIDEO_V4L2 | ||
| 1305 | select MEDIA_CONTROLLER | ||
| 1306 | select VIDEO_V4L2_SUBDEV_API | ||
| 1307 | select REGMAP_I2C | ||
| 1308 | select V4L2_FWNODE | ||
| 1309 | help | ||
| 1310 | This is a Video4Linux2 sensor driver for the Micron | ||
| 1311 | MT9V032 752x480 CMOS sensor. | ||
| 1312 | 1388 | ||
| 1313 | config VIDEO_MT9V111 | 1389 | config VIDEO_ADV7343 |
| 1314 | tristate "Aptina MT9V111 sensor support" | 1390 | tristate "ADV7343 video encoder" |
| 1315 | depends on I2C && VIDEO_V4L2 | 1391 | depends on I2C |
| 1392 | select V4L2_ASYNC | ||
| 1316 | help | 1393 | help |
| 1317 | This is a Video4Linux2 sensor driver for the Aptina/Micron | 1394 | Support for Analog Devices I2C bus based ADV7343 encoder. |
| 1318 | MT9V111 sensor. | ||
| 1319 | 1395 | ||
| 1320 | To compile this driver as a module, choose M here: the | 1396 | To compile this driver as a module, choose M here: the |
| 1321 | module will be called mt9v111. | 1397 | module will be called adv7343. |
| 1322 | 1398 | ||
| 1323 | config VIDEO_SR030PC30 | 1399 | config VIDEO_ADV7393 |
| 1324 | tristate "Siliconfile SR030PC30 sensor support" | 1400 | tristate "ADV7393 video encoder" |
| 1325 | depends on I2C && VIDEO_V4L2 | 1401 | depends on I2C |
| 1326 | help | 1402 | help |
| 1327 | This driver supports SR030PC30 VGA camera from Siliconfile | 1403 | Support for Analog Devices I2C bus based ADV7393 encoder. |
| 1328 | 1404 | ||
| 1329 | config VIDEO_NOON010PC30 | 1405 | To compile this driver as a module, choose M here: the |
| 1330 | tristate "Siliconfile NOON010PC30 sensor support" | 1406 | module will be called adv7393. |
| 1331 | depends on I2C && VIDEO_V4L2 | 1407 | |
| 1408 | config VIDEO_ADV7511 | ||
| 1409 | tristate "Analog Devices ADV7511 encoder" | ||
| 1410 | depends on VIDEO_DEV && I2C | ||
| 1411 | depends on DRM_I2C_ADV7511=n || COMPILE_TEST | ||
| 1332 | select MEDIA_CONTROLLER | 1412 | select MEDIA_CONTROLLER |
| 1333 | select VIDEO_V4L2_SUBDEV_API | 1413 | select VIDEO_V4L2_SUBDEV_API |
| 1414 | select HDMI | ||
| 1334 | help | 1415 | help |
| 1335 | This driver supports NOON010PC30 CIF camera from Siliconfile | 1416 | Support for the Analog Devices ADV7511 video encoder. |
| 1336 | 1417 | ||
| 1337 | source "drivers/media/i2c/m5mols/Kconfig" | 1418 | This is a Analog Devices HDMI transmitter. |
| 1338 | 1419 | ||
| 1339 | config VIDEO_MAX9271_LIB | 1420 | To compile this driver as a module, choose M here: the |
| 1340 | tristate | 1421 | module will be called adv7511. |
| 1341 | 1422 | ||
| 1342 | config VIDEO_RDACM20 | 1423 | config VIDEO_ADV7511_CEC |
| 1343 | tristate "IMI RDACM20 camera support" | 1424 | bool "Enable Analog Devices ADV7511 CEC support" |
| 1344 | depends on I2C | 1425 | depends on VIDEO_ADV7511 |
| 1345 | select V4L2_FWNODE | 1426 | select CEC_CORE |
| 1346 | select VIDEO_V4L2_SUBDEV_API | ||
| 1347 | select MEDIA_CONTROLLER | ||
| 1348 | select VIDEO_MAX9271_LIB | ||
| 1349 | help | 1427 | help |
| 1350 | This driver supports the IMI RDACM20 GMSL camera, used in | 1428 | When selected the adv7511 will support the optional |
| 1351 | ADAS systems. | 1429 | HDMI CEC feature. |
| 1352 | |||
| 1353 | This camera should be used in conjunction with a GMSL | ||
| 1354 | deserialiser such as the MAX9286. | ||
| 1355 | 1430 | ||
| 1356 | config VIDEO_RDACM21 | 1431 | config VIDEO_AK881X |
| 1357 | tristate "IMI RDACM21 camera support" | 1432 | tristate "AK8813/AK8814 video encoders" |
| 1358 | depends on I2C | 1433 | depends on I2C |
| 1359 | select V4L2_FWNODE | ||
| 1360 | select VIDEO_V4L2_SUBDEV_API | ||
| 1361 | select MEDIA_CONTROLLER | ||
| 1362 | select VIDEO_MAX9271_LIB | ||
| 1363 | help | 1434 | help |
| 1364 | This driver supports the IMI RDACM21 GMSL camera, used in | 1435 | Video output driver for AKM AK8813 and AK8814 TV encoders |
| 1365 | ADAS systems. | ||
| 1366 | |||
| 1367 | This camera should be used in conjunction with a GMSL | ||
| 1368 | deserialiser such as the MAX9286. | ||
| 1369 | 1436 | ||
| 1370 | config VIDEO_RJ54N1 | 1437 | config VIDEO_SAA7127 |
| 1371 | tristate "Sharp RJ54N1CB0C sensor support" | 1438 | tristate "Philips SAA7127/9 digital video encoders" |
| 1372 | depends on I2C && VIDEO_V4L2 | 1439 | depends on VIDEO_DEV && I2C |
| 1373 | help | 1440 | help |
| 1374 | This is a V4L2 sensor driver for Sharp RJ54N1CB0C CMOS image | 1441 | Support for the Philips SAA7127/9 digital video encoders. |
| 1375 | sensor. | ||
| 1376 | 1442 | ||
| 1377 | To compile this driver as a module, choose M here: the | 1443 | To compile this driver as a module, choose M here: the |
| 1378 | module will be called rj54n1. | 1444 | module will be called saa7127. |
| 1379 | 1445 | ||
| 1380 | config VIDEO_S5K6AA | 1446 | config VIDEO_SAA7185 |
| 1381 | tristate "Samsung S5K6AAFX sensor support" | 1447 | tristate "Philips SAA7185 video encoder" |
| 1382 | depends on I2C && VIDEO_V4L2 | 1448 | depends on VIDEO_DEV && I2C |
| 1383 | select MEDIA_CONTROLLER | ||
| 1384 | select VIDEO_V4L2_SUBDEV_API | ||
| 1385 | help | 1449 | help |
| 1386 | This is a V4L2 sensor driver for Samsung S5K6AA(FX) 1.3M | 1450 | Support for the Philips SAA7185 video encoder. |
| 1387 | camera sensor with an embedded SoC image signal processor. | ||
| 1388 | 1451 | ||
| 1389 | config VIDEO_S5K6A3 | 1452 | To compile this driver as a module, choose M here: the |
| 1390 | tristate "Samsung S5K6A3 sensor support" | 1453 | module will be called saa7185. |
| 1391 | depends on I2C && VIDEO_V4L2 | ||
| 1392 | select MEDIA_CONTROLLER | ||
| 1393 | select VIDEO_V4L2_SUBDEV_API | ||
| 1394 | help | ||
| 1395 | This is a V4L2 sensor driver for Samsung S5K6A3 raw | ||
| 1396 | camera sensor. | ||
| 1397 | 1454 | ||
| 1398 | config VIDEO_S5K4ECGX | 1455 | config VIDEO_THS8200 |
| 1399 | tristate "Samsung S5K4ECGX sensor support" | 1456 | tristate "Texas Instruments THS8200 video encoder" |
| 1400 | depends on I2C && VIDEO_V4L2 | 1457 | depends on VIDEO_DEV && I2C |
| 1401 | select MEDIA_CONTROLLER | 1458 | select V4L2_ASYNC |
| 1402 | select VIDEO_V4L2_SUBDEV_API | ||
| 1403 | select CRC32 | ||
| 1404 | help | 1459 | help |
| 1405 | This is a V4L2 sensor driver for Samsung S5K4ECGX 5M | 1460 | Support for the Texas Instruments THS8200 video encoder. |
| 1406 | camera sensor with an embedded SoC image signal processor. | ||
| 1407 | 1461 | ||
| 1408 | config VIDEO_S5K5BAF | 1462 | To compile this driver as a module, choose M here: the |
| 1409 | tristate "Samsung S5K5BAF sensor support" | 1463 | module will be called ths8200. |
| 1410 | depends on I2C && VIDEO_V4L2 | 1464 | |
| 1411 | select MEDIA_CONTROLLER | 1465 | endmenu |
| 1412 | select VIDEO_V4L2_SUBDEV_API | 1466 | |
| 1413 | select V4L2_FWNODE | 1467 | menu "Video improvement chips" |
| 1468 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV | ||
| 1469 | |||
| 1470 | config VIDEO_UPD64031A | ||
| 1471 | tristate "NEC Electronics uPD64031A Ghost Reduction" | ||
| 1472 | depends on VIDEO_DEV && I2C | ||
| 1473 | select V4L2_ASYNC | ||
| 1414 | help | 1474 | help |
| 1415 | This is a V4L2 sensor driver for Samsung S5K5BAF 2M | 1475 | Support for the NEC Electronics uPD64031A Ghost Reduction |
| 1416 | camera sensor with an embedded SoC image signal processor. | 1476 | video chip. It is most often found in NTSC TV cards made for |
| 1477 | Japan and is used to reduce the 'ghosting' effect that can | ||
| 1478 | be present in analog TV broadcasts. | ||
| 1417 | 1479 | ||
| 1418 | source "drivers/media/i2c/ccs/Kconfig" | 1480 | To compile this driver as a module, choose M here: the |
| 1419 | source "drivers/media/i2c/et8ek8/Kconfig" | 1481 | module will be called upd64031a. |
| 1420 | 1482 | ||
| 1421 | config VIDEO_S5C73M3 | 1483 | config VIDEO_UPD64083 |
| 1422 | tristate "Samsung S5C73M3 sensor support" | 1484 | tristate "NEC Electronics uPD64083 3-Dimensional Y/C separation" |
| 1423 | depends on I2C && SPI && VIDEO_V4L2 | 1485 | depends on VIDEO_DEV && I2C |
| 1424 | select MEDIA_CONTROLLER | ||
| 1425 | select VIDEO_V4L2_SUBDEV_API | ||
| 1426 | select V4L2_FWNODE | ||
| 1427 | help | 1486 | help |
| 1428 | This is a V4L2 sensor driver for Samsung S5C73M3 | 1487 | Support for the NEC Electronics uPD64083 3-Dimensional Y/C |
| 1429 | 8 Mpixel camera. | 1488 | separation video chip. It is used to improve the quality of |
| 1489 | the colors of a composite signal. | ||
| 1490 | |||
| 1491 | To compile this driver as a module, choose M here: the | ||
| 1492 | module will be called upd64083. | ||
| 1430 | 1493 | ||
| 1431 | endmenu | 1494 | endmenu |
| 1432 | 1495 | ||
| 1433 | menu "Lens drivers" | 1496 | menu "Audio/Video compression chips" |
| 1434 | visible if MEDIA_CAMERA_SUPPORT | 1497 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV |
| 1435 | 1498 | ||
| 1436 | config VIDEO_AD5820 | 1499 | config VIDEO_SAA6752HS |
| 1437 | tristate "AD5820 lens voice coil support" | 1500 | tristate "Philips SAA6752HS MPEG-2 Audio/Video Encoder" |
| 1438 | depends on GPIOLIB && I2C && VIDEO_V4L2 | 1501 | depends on VIDEO_DEV && I2C |
| 1439 | select MEDIA_CONTROLLER | 1502 | select CRC32 |
| 1440 | select V4L2_ASYNC | ||
| 1441 | help | 1503 | help |
| 1442 | This is a driver for the AD5820 camera lens voice coil. | 1504 | Support for the Philips SAA6752HS MPEG-2 video and MPEG-audio/AC-3 |
| 1443 | It is used for example in Nokia N900 (RX-51). | 1505 | audio encoder with multiplexer. |
| 1444 | 1506 | ||
| 1445 | config VIDEO_AK7375 | 1507 | To compile this driver as a module, choose M here: the |
| 1446 | tristate "AK7375 lens voice coil support" | 1508 | module will be called saa6752hs. |
| 1447 | depends on I2C && VIDEO_V4L2 | ||
| 1448 | select MEDIA_CONTROLLER | ||
| 1449 | select VIDEO_V4L2_SUBDEV_API | ||
| 1450 | select V4L2_ASYNC | ||
| 1451 | help | ||
| 1452 | This is a driver for the AK7375 camera lens voice coil. | ||
| 1453 | AK7375 is a 12 bit DAC with 120mA output current sink | ||
| 1454 | capability. This is designed for linear control of | ||
| 1455 | voice coil motors, controlled via I2C serial interface. | ||
| 1456 | 1509 | ||
| 1457 | config VIDEO_DW9714 | 1510 | endmenu |
| 1458 | tristate "DW9714 lens voice coil support" | ||
| 1459 | depends on I2C && VIDEO_V4L2 | ||
| 1460 | select MEDIA_CONTROLLER | ||
| 1461 | select VIDEO_V4L2_SUBDEV_API | ||
| 1462 | select V4L2_ASYNC | ||
| 1463 | help | ||
| 1464 | This is a driver for the DW9714 camera lens voice coil. | ||
| 1465 | DW9714 is a 10 bit DAC with 120mA output current sink | ||
| 1466 | capability. This is designed for linear control of | ||
| 1467 | voice coil motors, controlled via I2C serial interface. | ||
| 1468 | 1511 | ||
| 1469 | config VIDEO_DW9768 | 1512 | menu "SDR tuner chips" |
| 1470 | tristate "DW9768 lens voice coil support" | 1513 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV |
| 1471 | depends on I2C && VIDEO_V4L2 | ||
| 1472 | select MEDIA_CONTROLLER | ||
| 1473 | select VIDEO_V4L2_SUBDEV_API | ||
| 1474 | select V4L2_FWNODE | ||
| 1475 | help | ||
| 1476 | This is a driver for the DW9768 camera lens voice coil. | ||
| 1477 | DW9768 is a 10 bit DAC with 100mA output current sink | ||
| 1478 | capability. This is designed for linear control of | ||
| 1479 | voice coil motors, controlled via I2C serial interface. | ||
| 1480 | 1514 | ||
| 1481 | config VIDEO_DW9807_VCM | 1515 | config SDR_MAX2175 |
| 1482 | tristate "DW9807 lens voice coil support" | 1516 | tristate "Maxim 2175 RF to Bits tuner" |
| 1483 | depends on I2C && VIDEO_V4L2 | 1517 | depends on VIDEO_DEV && MEDIA_SDR_SUPPORT && I2C |
| 1484 | select MEDIA_CONTROLLER | 1518 | select REGMAP_I2C |
| 1485 | select VIDEO_V4L2_SUBDEV_API | ||
| 1486 | select V4L2_ASYNC | 1519 | select V4L2_ASYNC |
| 1487 | help | 1520 | help |
| 1488 | This is a driver for the DW9807 camera lens voice coil. | 1521 | Support for Maxim 2175 tuner. It is an advanced analog/digital |
| 1489 | DW9807 is a 10 bit DAC with 100mA output current sink | 1522 | radio receiver with RF-to-Bits front-end designed for SDR solutions. |
| 1490 | capability. This is designed for linear control of | 1523 | |
| 1491 | voice coil motors, controlled via I2C serial interface. | 1524 | To compile this driver as a module, choose M here; the |
| 1525 | module will be called max2175. | ||
| 1492 | 1526 | ||
| 1493 | endmenu | 1527 | endmenu |
| 1494 | 1528 | ||
| 1495 | menu "Flash devices" | 1529 | menu "Miscellaneous helper chips" |
| 1496 | visible if MEDIA_CAMERA_SUPPORT | 1530 | visible if !MEDIA_HIDE_ANCILLARY_SUBDRV |
| 1497 | 1531 | ||
| 1498 | config VIDEO_ADP1653 | 1532 | config VIDEO_I2C |
| 1499 | tristate "ADP1653 flash support" | 1533 | tristate "I2C transport video support" |
| 1500 | depends on I2C && VIDEO_V4L2 | 1534 | depends on VIDEO_DEV && I2C |
| 1501 | select MEDIA_CONTROLLER | 1535 | select VIDEOBUF2_VMALLOC |
| 1502 | select V4L2_ASYNC | 1536 | imply HWMON |
| 1503 | help | 1537 | help |
| 1504 | This is a driver for the ADP1653 flash controller. It is used for | 1538 | Enable the I2C transport video support which supports the |
| 1505 | example in Nokia N900. | 1539 | following: |
| 1540 | * Panasonic AMG88xx Grid-Eye Sensors | ||
| 1541 | * Melexis MLX90640 Thermal Cameras | ||
| 1506 | 1542 | ||
| 1507 | config VIDEO_LM3560 | 1543 | To compile this driver as a module, choose M here: the |
| 1508 | tristate "LM3560 dual flash driver support" | 1544 | module will be called video-i2c |
| 1509 | depends on I2C && VIDEO_V4L2 | 1545 | |
| 1510 | select MEDIA_CONTROLLER | 1546 | config VIDEO_M52790 |
| 1511 | select REGMAP_I2C | 1547 | tristate "Mitsubishi M52790 A/V switch" |
| 1512 | select V4L2_ASYNC | 1548 | depends on VIDEO_DEV && I2C |
| 1513 | help | 1549 | help |
| 1514 | This is a driver for the lm3560 dual flash controllers. It controls | 1550 | Support for the Mitsubishi M52790 A/V switch. |
| 1515 | flash, torch LEDs. | ||
| 1516 | 1551 | ||
| 1517 | config VIDEO_LM3646 | 1552 | To compile this driver as a module, choose M here: the |
| 1518 | tristate "LM3646 dual flash driver support" | 1553 | module will be called m52790. |
| 1519 | depends on I2C && VIDEO_V4L2 | 1554 | |
| 1555 | config VIDEO_ST_MIPID02 | ||
| 1556 | tristate "STMicroelectronics MIPID02 CSI-2 to PARALLEL bridge" | ||
| 1557 | depends on I2C && VIDEO_DEV | ||
| 1520 | select MEDIA_CONTROLLER | 1558 | select MEDIA_CONTROLLER |
| 1521 | select REGMAP_I2C | 1559 | select VIDEO_V4L2_SUBDEV_API |
| 1560 | select V4L2_FWNODE | ||
| 1561 | help | ||
| 1562 | Support for STMicroelectronics MIPID02 CSI-2 to PARALLEL bridge. | ||
| 1563 | It is used to allow usage of CSI-2 sensor with PARALLEL port | ||
| 1564 | controller. | ||
| 1565 | |||
| 1566 | To compile this driver as a module, choose M here: the | ||
| 1567 | module will be called st-mipid02. | ||
| 1568 | |||
| 1569 | config VIDEO_THS7303 | ||
| 1570 | tristate "THS7303/53 Video Amplifier" | ||
| 1571 | depends on VIDEO_DEV && I2C | ||
| 1522 | select V4L2_ASYNC | 1572 | select V4L2_ASYNC |
| 1523 | help | 1573 | help |
| 1524 | This is a driver for the lm3646 dual flash controllers. It controls | 1574 | Support for TI THS7303/53 video amplifier |
| 1525 | flash, torch LEDs. | 1575 | |
| 1576 | To compile this driver as a module, choose M here: the | ||
| 1577 | module will be called ths7303. | ||
| 1578 | |||
| 1526 | endmenu | 1579 | endmenu |
| 1527 | 1580 | ||
| 1528 | endif # VIDEO_V4L2 | 1581 | endif # VIDEO_DEV |
| @@ -1,31 +1,11 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | msp3400-objs := msp3400-driver.o msp3400-kthreads.o | ||
| 3 | obj-$(CONFIG_VIDEO_MSP3400) += msp3400.o | ||
| 4 | 2 | ||
| 5 | obj-$(CONFIG_VIDEO_CCS) += ccs/ | 3 | msp3400-objs := msp3400-driver.o msp3400-kthreads.o |
| 6 | obj-$(CONFIG_VIDEO_ET8EK8) += et8ek8/ | ||
| 7 | obj-$(CONFIG_VIDEO_CX25840) += cx25840/ | ||
| 8 | obj-$(CONFIG_VIDEO_M5MOLS) += m5mols/ | ||
| 9 | 4 | ||
| 10 | obj-$(CONFIG_VIDEO_APTINA_PLL) += aptina-pll.o | 5 | obj-$(CONFIG_SDR_MAX2175) += max2175.o |
| 11 | obj-$(CONFIG_VIDEO_TVAUDIO) += tvaudio.o | 6 | obj-$(CONFIG_VIDEO_AD5820) += ad5820.o |
| 12 | obj-$(CONFIG_VIDEO_TDA7432) += tda7432.o | 7 | obj-$(CONFIG_VIDEO_AD9389B) += ad9389b.o |
| 13 | obj-$(CONFIG_VIDEO_SAA6588) += saa6588.o | 8 | obj-$(CONFIG_VIDEO_ADP1653) += adp1653.o |
| 14 | obj-$(CONFIG_VIDEO_TDA9840) += tda9840.o | ||
| 15 | obj-$(CONFIG_VIDEO_TDA1997X) += tda1997x.o | ||
| 16 | obj-$(CONFIG_VIDEO_TEA6415C) += tea6415c.o | ||
| 17 | obj-$(CONFIG_VIDEO_TEA6420) += tea6420.o | ||
| 18 | obj-$(CONFIG_VIDEO_SAA7110) += saa7110.o | ||
| 19 | obj-$(CONFIG_VIDEO_SAA711X) += saa7115.o | ||
| 20 | obj-$(CONFIG_VIDEO_SAA717X) += saa717x.o | ||
| 21 | obj-$(CONFIG_VIDEO_SAA7127) += saa7127.o | ||
| 22 | obj-$(CONFIG_VIDEO_SAA7185) += saa7185.o | ||
| 23 | obj-$(CONFIG_VIDEO_SAA6752HS) += saa6752hs.o | ||
| 24 | obj-$(CONFIG_VIDEO_AD5820) += ad5820.o | ||
| 25 | obj-$(CONFIG_VIDEO_AK7375) += ak7375.o | ||
| 26 | obj-$(CONFIG_VIDEO_DW9714) += dw9714.o | ||
| 27 | obj-$(CONFIG_VIDEO_DW9768) += dw9768.o | ||
| 28 | obj-$(CONFIG_VIDEO_DW9807_VCM) += dw9807-vcm.o | ||
| 29 | obj-$(CONFIG_VIDEO_ADV7170) += adv7170.o | 9 | obj-$(CONFIG_VIDEO_ADV7170) += adv7170.o |
| 30 | obj-$(CONFIG_VIDEO_ADV7175) += adv7175.o | 10 | obj-$(CONFIG_VIDEO_ADV7175) += adv7175.o |
| 31 | obj-$(CONFIG_VIDEO_ADV7180) += adv7180.o | 11 | obj-$(CONFIG_VIDEO_ADV7180) += adv7180.o |
| @@ -33,39 +13,68 @@ obj-$(CONFIG_VIDEO_ADV7183) += adv7183.o · 1 unmodified line | |||
| 33 | obj-$(CONFIG_VIDEO_ADV7343) += adv7343.o | 13 | obj-$(CONFIG_VIDEO_ADV7343) += adv7343.o |
| 34 | obj-$(CONFIG_VIDEO_ADV7393) += adv7393.o | 14 | obj-$(CONFIG_VIDEO_ADV7393) += adv7393.o |
| 35 | obj-$(CONFIG_VIDEO_ADV748X) += adv748x/ | 15 | obj-$(CONFIG_VIDEO_ADV748X) += adv748x/ |
| 16 | obj-$(CONFIG_VIDEO_ADV7511) += adv7511-v4l2.o | ||
| 36 | obj-$(CONFIG_VIDEO_ADV7604) += adv7604.o | 17 | obj-$(CONFIG_VIDEO_ADV7604) += adv7604.o |
| 37 | obj-$(CONFIG_VIDEO_ADV7842) += adv7842.o | 18 | obj-$(CONFIG_VIDEO_ADV7842) += adv7842.o |
| 38 | obj-$(CONFIG_VIDEO_AD9389B) += ad9389b.o | 19 | obj-$(CONFIG_VIDEO_AK7375) += ak7375.o |
| 39 | obj-$(CONFIG_VIDEO_ADV7511) += adv7511-v4l2.o | 20 | obj-$(CONFIG_VIDEO_AK881X) += ak881x.o |
| 40 | obj-$(CONFIG_VIDEO_VPX3220) += vpx3220.o | 21 | obj-$(CONFIG_VIDEO_APTINA_PLL) += aptina-pll.o |
| 41 | obj-$(CONFIG_VIDEO_VS6624) += vs6624.o | ||
| 42 | obj-$(CONFIG_VIDEO_BT819) += bt819.o | 22 | obj-$(CONFIG_VIDEO_BT819) += bt819.o |
| 43 | obj-$(CONFIG_VIDEO_BT856) += bt856.o | 23 | obj-$(CONFIG_VIDEO_BT856) += bt856.o |
| 44 | obj-$(CONFIG_VIDEO_BT866) += bt866.o | 24 | obj-$(CONFIG_VIDEO_BT866) += bt866.o |
| 45 | obj-$(CONFIG_VIDEO_KS0127) += ks0127.o | 25 | obj-$(CONFIG_VIDEO_CCS) += ccs/ |
| 46 | obj-$(CONFIG_VIDEO_THS7303) += ths7303.o | 26 | obj-$(CONFIG_VIDEO_CCS_PLL) += ccs-pll.o |
| 47 | obj-$(CONFIG_VIDEO_THS8200) += ths8200.o | ||
| 48 | obj-$(CONFIG_VIDEO_TVP5150) += tvp5150.o | ||
| 49 | obj-$(CONFIG_VIDEO_TVP514X) += tvp514x.o | ||
| 50 | obj-$(CONFIG_VIDEO_TVP7002) += tvp7002.o | ||
| 51 | obj-$(CONFIG_VIDEO_TW2804) += tw2804.o | ||
| 52 | obj-$(CONFIG_VIDEO_TW9903) += tw9903.o | ||
| 53 | obj-$(CONFIG_VIDEO_TW9906) += tw9906.o | ||
| 54 | obj-$(CONFIG_VIDEO_TW9910) += tw9910.o | ||
| 55 | obj-$(CONFIG_VIDEO_CS3308) += cs3308.o | 27 | obj-$(CONFIG_VIDEO_CS3308) += cs3308.o |
| 56 | obj-$(CONFIG_VIDEO_CS5345) += cs5345.o | 28 | obj-$(CONFIG_VIDEO_CS5345) += cs5345.o |
| 57 | obj-$(CONFIG_VIDEO_CS53L32A) += cs53l32a.o | 29 | obj-$(CONFIG_VIDEO_CS53L32A) += cs53l32a.o |
| 30 | obj-$(CONFIG_VIDEO_CX25840) += cx25840/ | ||
| 31 | obj-$(CONFIG_VIDEO_DW9714) += dw9714.o | ||
| 32 | obj-$(CONFIG_VIDEO_DW9768) += dw9768.o | ||
| 33 | obj-$(CONFIG_VIDEO_DW9807_VCM) += dw9807-vcm.o | ||
| 34 | obj-$(CONFIG_VIDEO_ET8EK8) += et8ek8/ | ||
| 35 | obj-$(CONFIG_VIDEO_HI556) += hi556.o | ||
| 36 | obj-$(CONFIG_VIDEO_HI846) += hi846.o | ||
| 37 | obj-$(CONFIG_VIDEO_HI847) += hi847.o | ||
| 38 | obj-$(CONFIG_VIDEO_I2C) += video-i2c.o | ||
| 39 | obj-$(CONFIG_VIDEO_IMX208) += imx208.o | ||
| 40 | obj-$(CONFIG_VIDEO_IMX214) += imx214.o | ||
| 41 | obj-$(CONFIG_VIDEO_IMX219) += imx219.o | ||
| 42 | obj-$(CONFIG_VIDEO_IMX258) += imx258.o | ||
| 43 | obj-$(CONFIG_VIDEO_IMX274) += imx274.o | ||
| 44 | obj-$(CONFIG_VIDEO_IMX290) += imx290.o | ||
| 45 | obj-$(CONFIG_VIDEO_IMX319) += imx319.o | ||
| 46 | obj-$(CONFIG_VIDEO_IMX334) += imx334.o | ||
| 47 | obj-$(CONFIG_VIDEO_IMX335) += imx335.o | ||
| 48 | obj-$(CONFIG_VIDEO_IMX355) += imx355.o | ||
| 49 | obj-$(CONFIG_VIDEO_IMX412) += imx412.o | ||
| 50 | obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o | ||
| 51 | obj-$(CONFIG_VIDEO_ISL7998X) += isl7998x.o | ||
| 52 | obj-$(CONFIG_VIDEO_KS0127) += ks0127.o | ||
| 53 | obj-$(CONFIG_VIDEO_LM3560) += lm3560.o | ||
| 54 | obj-$(CONFIG_VIDEO_LM3646) += lm3646.o | ||
| 58 | obj-$(CONFIG_VIDEO_M52790) += m52790.o | 55 | obj-$(CONFIG_VIDEO_M52790) += m52790.o |
| 59 | obj-$(CONFIG_VIDEO_TLV320AIC23B) += tlv320aic23b.o | 56 | obj-$(CONFIG_VIDEO_M5MOLS) += m5mols/ |
| 60 | obj-$(CONFIG_VIDEO_UDA1342) += uda1342.o | 57 | obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o |
| 61 | obj-$(CONFIG_VIDEO_WM8775) += wm8775.o | 58 | obj-$(CONFIG_VIDEO_MAX9286) += max9286.o |
| 62 | obj-$(CONFIG_VIDEO_WM8739) += wm8739.o | 59 | obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o |
| 63 | obj-$(CONFIG_VIDEO_VP27SMPX) += vp27smpx.o | 60 | obj-$(CONFIG_VIDEO_MSP3400) += msp3400.o |
| 64 | obj-$(CONFIG_VIDEO_SONY_BTF_MPX) += sony-btf-mpx.o | 61 | obj-$(CONFIG_VIDEO_MT9M001) += mt9m001.o |
| 65 | obj-$(CONFIG_VIDEO_UPD64031A) += upd64031a.o | 62 | obj-$(CONFIG_VIDEO_MT9M032) += mt9m032.o |
| 66 | obj-$(CONFIG_VIDEO_UPD64083) += upd64083.o | 63 | obj-$(CONFIG_VIDEO_MT9M111) += mt9m111.o |
| 64 | obj-$(CONFIG_VIDEO_MT9P031) += mt9p031.o | ||
| 65 | obj-$(CONFIG_VIDEO_MT9T001) += mt9t001.o | ||
| 66 | obj-$(CONFIG_VIDEO_MT9T112) += mt9t112.o | ||
| 67 | obj-$(CONFIG_VIDEO_MT9V011) += mt9v011.o | ||
| 68 | obj-$(CONFIG_VIDEO_MT9V032) += mt9v032.o | ||
| 69 | obj-$(CONFIG_VIDEO_MT9V111) += mt9v111.o | ||
| 70 | obj-$(CONFIG_VIDEO_NOON010PC30) += noon010pc30.o | ||
| 71 | obj-$(CONFIG_VIDEO_OG01A1B) += og01a1b.o | ||
| 67 | obj-$(CONFIG_VIDEO_OV02A10) += ov02a10.o | 72 | obj-$(CONFIG_VIDEO_OV02A10) += ov02a10.o |
| 73 | obj-$(CONFIG_VIDEO_OV08D10) += ov08d10.o | ||
| 74 | obj-$(CONFIG_VIDEO_OV13858) += ov13858.o | ||
| 75 | obj-$(CONFIG_VIDEO_OV13B10) += ov13b10.o | ||
| 68 | obj-$(CONFIG_VIDEO_OV2640) += ov2640.o | 76 | obj-$(CONFIG_VIDEO_OV2640) += ov2640.o |
| 77 | obj-$(CONFIG_VIDEO_OV2659) += ov2659.o | ||
| 69 | obj-$(CONFIG_VIDEO_OV2680) += ov2680.o | 78 | obj-$(CONFIG_VIDEO_OV2680) += ov2680.o |
| 70 | obj-$(CONFIG_VIDEO_OV2685) += ov2685.o | 79 | obj-$(CONFIG_VIDEO_OV2685) += ov2685.o |
| 71 | obj-$(CONFIG_VIDEO_OV2740) += ov2740.o | 80 | obj-$(CONFIG_VIDEO_OV2740) += ov2740.o |
| @@ -89,51 +98,46 @@ obj-$(CONFIG_VIDEO_OV9282) += ov9282.o · 17 unmodified lines | |||
| 89 | obj-$(CONFIG_VIDEO_OV9640) += ov9640.o | 98 | obj-$(CONFIG_VIDEO_OV9640) += ov9640.o |
| 90 | obj-$(CONFIG_VIDEO_OV9650) += ov9650.o | 99 | obj-$(CONFIG_VIDEO_OV9650) += ov9650.o |
| 91 | obj-$(CONFIG_VIDEO_OV9734) += ov9734.o | 100 | obj-$(CONFIG_VIDEO_OV9734) += ov9734.o |
| 92 | obj-$(CONFIG_VIDEO_OV13858) += ov13858.o | 101 | obj-$(CONFIG_VIDEO_RDACM20) += rdacm20.o |
| 93 | obj-$(CONFIG_VIDEO_OV13B10) += ov13b10.o | 102 | obj-$(CONFIG_VIDEO_RDACM21) += rdacm21.o |
| 94 | obj-$(CONFIG_VIDEO_MT9M001) += mt9m001.o | 103 | obj-$(CONFIG_VIDEO_RJ54N1) += rj54n1cb0c.o |
| 95 | obj-$(CONFIG_VIDEO_MT9M032) += mt9m032.o | 104 | obj-$(CONFIG_VIDEO_S5C73M3) += s5c73m3/ |
| 96 | obj-$(CONFIG_VIDEO_MT9M111) += mt9m111.o | 105 | obj-$(CONFIG_VIDEO_S5K4ECGX) += s5k4ecgx.o |
| 97 | obj-$(CONFIG_VIDEO_MT9P031) += mt9p031.o | 106 | obj-$(CONFIG_VIDEO_S5K5BAF) += s5k5baf.o |
| 98 | obj-$(CONFIG_VIDEO_MT9T001) += mt9t001.o | 107 | obj-$(CONFIG_VIDEO_S5K6A3) += s5k6a3.o |
| 99 | obj-$(CONFIG_VIDEO_MT9T112) += mt9t112.o | 108 | obj-$(CONFIG_VIDEO_S5K6AA) += s5k6aa.o |
| 100 | obj-$(CONFIG_VIDEO_MT9V011) += mt9v011.o | 109 | obj-$(CONFIG_VIDEO_SAA6588) += saa6588.o |
| 101 | obj-$(CONFIG_VIDEO_MT9V032) += mt9v032.o | 110 | obj-$(CONFIG_VIDEO_SAA6752HS) += saa6752hs.o |
| 102 | obj-$(CONFIG_VIDEO_MT9V111) += mt9v111.o | 111 | obj-$(CONFIG_VIDEO_SAA7110) += saa7110.o |
| 103 | obj-$(CONFIG_VIDEO_SR030PC30) += sr030pc30.o | 112 | obj-$(CONFIG_VIDEO_SAA711X) += saa7115.o |
| 104 | obj-$(CONFIG_VIDEO_NOON010PC30) += noon010pc30.o | 113 | obj-$(CONFIG_VIDEO_SAA7127) += saa7127.o |
| 105 | obj-$(CONFIG_VIDEO_RJ54N1) += rj54n1cb0c.o | 114 | obj-$(CONFIG_VIDEO_SAA717X) += saa717x.o |
| 106 | obj-$(CONFIG_VIDEO_S5K6AA) += s5k6aa.o | 115 | obj-$(CONFIG_VIDEO_SAA7185) += saa7185.o |
| 107 | obj-$(CONFIG_VIDEO_S5K6A3) += s5k6a3.o | 116 | obj-$(CONFIG_VIDEO_SONY_BTF_MPX) += sony-btf-mpx.o |
| 108 | obj-$(CONFIG_VIDEO_S5K4ECGX) += s5k4ecgx.o | 117 | obj-$(CONFIG_VIDEO_SR030PC30) += sr030pc30.o |
| 109 | obj-$(CONFIG_VIDEO_S5K5BAF) += s5k5baf.o | ||
| 110 | obj-$(CONFIG_VIDEO_S5C73M3) += s5c73m3/ | ||
| 111 | obj-$(CONFIG_VIDEO_ADP1653) += adp1653.o | ||
| 112 | obj-$(CONFIG_VIDEO_LM3560) += lm3560.o | ||
| 113 | obj-$(CONFIG_VIDEO_LM3646) += lm3646.o | ||
| 114 | obj-$(CONFIG_VIDEO_CCS_PLL) += ccs-pll.o | ||
| 115 | obj-$(CONFIG_VIDEO_AK881X) += ak881x.o | ||
| 116 | obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o | ||
| 117 | obj-$(CONFIG_VIDEO_I2C) += video-i2c.o | ||
| 118 | obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o | ||
| 119 | obj-$(CONFIG_VIDEO_OV2659) += ov2659.o | ||
| 120 | obj-$(CONFIG_VIDEO_TC358743) += tc358743.o | ||
| 121 | obj-$(CONFIG_VIDEO_HI556) += hi556.o | ||
| 122 | obj-$(CONFIG_VIDEO_HI846) += hi846.o | ||
| 123 | obj-$(CONFIG_VIDEO_IMX208) += imx208.o | ||
| 124 | obj-$(CONFIG_VIDEO_IMX214) += imx214.o | ||
| 125 | obj-$(CONFIG_VIDEO_IMX219) += imx219.o | ||
| 126 | obj-$(CONFIG_VIDEO_IMX258) += imx258.o | ||
| 127 | obj-$(CONFIG_VIDEO_IMX274) += imx274.o | ||
| 128 | obj-$(CONFIG_VIDEO_IMX290) += imx290.o | ||
| 129 | obj-$(CONFIG_VIDEO_IMX319) += imx319.o | ||
| 130 | obj-$(CONFIG_VIDEO_IMX334) += imx334.o | ||
| 131 | obj-$(CONFIG_VIDEO_IMX335) += imx335.o | ||
| 132 | obj-$(CONFIG_VIDEO_IMX355) += imx355.o | ||
| 133 | obj-$(CONFIG_VIDEO_IMX412) += imx412.o | ||
| 134 | obj-$(CONFIG_VIDEO_MAX9286) += max9286.o | ||
| 135 | obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o | ||
| 136 | obj-$(CONFIG_VIDEO_RDACM20) += rdacm20.o | ||
| 137 | obj-$(CONFIG_VIDEO_RDACM21) += rdacm21.o | ||
| 138 | obj-$(CONFIG_VIDEO_ST_MIPID02) += st-mipid02.o | 118 | obj-$(CONFIG_VIDEO_ST_MIPID02) += st-mipid02.o |
| 139 | obj-$(CONFIG_SDR_MAX2175) += max2175.o | 119 | obj-$(CONFIG_VIDEO_TC358743) += tc358743.o |
| 120 | obj-$(CONFIG_VIDEO_TDA1997X) += tda1997x.o | ||
| 121 | obj-$(CONFIG_VIDEO_TDA7432) += tda7432.o | ||
| 122 | obj-$(CONFIG_VIDEO_TDA9840) += tda9840.o | ||
| 123 | obj-$(CONFIG_VIDEO_TEA6415C) += tea6415c.o | ||
| 124 | obj-$(CONFIG_VIDEO_TEA6420) += tea6420.o | ||
| 125 | obj-$(CONFIG_VIDEO_THS7303) += ths7303.o | ||
| 126 | obj-$(CONFIG_VIDEO_THS8200) += ths8200.o | ||
| 127 | obj-$(CONFIG_VIDEO_TLV320AIC23B) += tlv320aic23b.o | ||
| 128 | obj-$(CONFIG_VIDEO_TVAUDIO) += tvaudio.o | ||
| 129 | obj-$(CONFIG_VIDEO_TVP514X) += tvp514x.o | ||
| 130 | obj-$(CONFIG_VIDEO_TVP5150) += tvp5150.o | ||
| 131 | obj-$(CONFIG_VIDEO_TVP7002) += tvp7002.o | ||
| 132 | obj-$(CONFIG_VIDEO_TW2804) += tw2804.o | ||
| 133 | obj-$(CONFIG_VIDEO_TW9903) += tw9903.o | ||
| 134 | obj-$(CONFIG_VIDEO_TW9906) += tw9906.o | ||
| 135 | obj-$(CONFIG_VIDEO_TW9910) += tw9910.o | ||
| 136 | obj-$(CONFIG_VIDEO_UDA1342) += uda1342.o | ||
| 137 | obj-$(CONFIG_VIDEO_UPD64031A) += upd64031a.o | ||
| 138 | obj-$(CONFIG_VIDEO_UPD64083) += upd64083.o | ||
| 139 | obj-$(CONFIG_VIDEO_VP27SMPX) += vp27smpx.o | ||
| 140 | obj-$(CONFIG_VIDEO_VPX3220) += vpx3220.o | ||
| 141 | obj-$(CONFIG_VIDEO_VS6624) += vs6624.o | ||
| 142 | obj-$(CONFIG_VIDEO_WM8739) += wm8739.o | ||
| 143 | obj-$(CONFIG_VIDEO_WM8775) += wm8775.o | ||
| @@ -784,16 +784,16 @@ static int adv7180_get_mbus_config(struct v4l2_subdev *sd, · 783 unmodified lines | |||
| 784 | 784 | ||
| 785 | if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { | 785 | if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { |
| 786 | cfg->type = V4L2_MBUS_CSI2_DPHY; | 786 | cfg->type = V4L2_MBUS_CSI2_DPHY; |
| 787 | cfg->flags = V4L2_MBUS_CSI2_1_LANE | | 787 | cfg->bus.mipi_csi2.num_data_lanes = 1; |
| 788 | V4L2_MBUS_CSI2_CHANNEL_0 | | 788 | cfg->bus.mipi_csi2.flags = 0; |
| 789 | V4L2_MBUS_CSI2_CONTINUOUS_CLOCK; | ||
| 790 | } else { | 789 | } else { |
| 791 | /* | 790 | /* |
| 792 | * The ADV7180 sensor supports BT.601/656 output modes. | 791 | * The ADV7180 sensor supports BT.601/656 output modes. |
| 793 | * The BT.656 is default and not yet configurable by s/w. | 792 | * The BT.656 is default and not yet configurable by s/w. |
| 794 | */ | 793 | */ |
| 795 | cfg->flags = V4L2_MBUS_MASTER | V4L2_MBUS_PCLK_SAMPLE_RISING | | 794 | cfg->bus.parallel.flags = V4L2_MBUS_MASTER | |
| 796 | V4L2_MBUS_DATA_ACTIVE_HIGH; | 795 | V4L2_MBUS_PCLK_SAMPLE_RISING | |
| 796 | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 797 | cfg->type = V4L2_MBUS_BT656; | 797 | cfg->type = V4L2_MBUS_BT656; |
| 798 | } | 798 | } |
| 799 | 799 | ||
| @@ -7,7 +7,7 @@ · 6 unmodified lines | |||
| 7 | 7 | ||
| 8 | #include <linux/delay.h> | 8 | #include <linux/delay.h> |
| 9 | #include <linux/errno.h> | 9 | #include <linux/errno.h> |
| 10 | #include <linux/gpio.h> | 10 | #include <linux/gpio/consumer.h> |
| 11 | #include <linux/i2c.h> | 11 | #include <linux/i2c.h> |
| 12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
| 13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
| @@ -28,8 +28,8 @@ struct adv7183 { · 14 unmodified lines | |||
| 28 | v4l2_std_id std; /* Current set standard */ | 28 | v4l2_std_id std; /* Current set standard */ |
| 29 | u32 input; | 29 | u32 input; |
| 30 | u32 output; | 30 | u32 output; |
| 31 | unsigned reset_pin; | 31 | struct gpio_desc *reset_pin; |
| 32 | unsigned oe_pin; | 32 | struct gpio_desc *oe_pin; |
| 33 | struct v4l2_mbus_framefmt fmt; | 33 | struct v4l2_mbus_framefmt fmt; |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| @@ -465,9 +465,9 @@ static int adv7183_s_stream(struct v4l2_subdev *sd, int enable) · 429 unmodified lines | |||
| 465 | struct adv7183 *decoder = to_adv7183(sd); | 465 | struct adv7183 *decoder = to_adv7183(sd); |
| 466 | 466 | ||
| 467 | if (enable) | 467 | if (enable) |
| 468 | gpio_set_value(decoder->oe_pin, 0); | 468 | gpiod_set_value(decoder->oe_pin, 1); |
| 469 | else | 469 | else |
| 470 | gpio_set_value(decoder->oe_pin, 1); | 470 | gpiod_set_value(decoder->oe_pin, 0); |
| 471 | udelay(1); | 471 | udelay(1); |
| 472 | return 0; | 472 | return 0; |
| 473 | } | 473 | } |
| @@ -531,7 +531,6 @@ static int adv7183_probe(struct i2c_client *client, · 57 unmodified lines | |||
| 531 | struct v4l2_subdev_format fmt = { | 531 | struct v4l2_subdev_format fmt = { |
| 532 | .which = V4L2_SUBDEV_FORMAT_ACTIVE, | 532 | .which = V4L2_SUBDEV_FORMAT_ACTIVE, |
| 533 | }; | 533 | }; |
| 534 | const unsigned *pin_array; | ||
| 535 | 534 | ||
| 536 | /* Check if the adapter supports the needed features */ | 535 | /* Check if the adapter supports the needed features */ |
| 537 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) | 536 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) |
| @@ -540,29 +539,28 @@ static int adv7183_probe(struct i2c_client *client, · 2 unmodified lines | |||
| 540 | v4l_info(client, "chip found @ 0x%02x (%s)\n", | 539 | v4l_info(client, "chip found @ 0x%02x (%s)\n", |
| 541 | client->addr << 1, client->adapter->name); | 540 | client->addr << 1, client->adapter->name); |
| 542 | 541 | ||
| 543 | pin_array = client->dev.platform_data; | ||
| 544 | if (pin_array == NULL) | ||
| 545 | return -EINVAL; | ||
| 546 | |||
| 547 | decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); | 542 | decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); |
| 548 | if (decoder == NULL) | 543 | if (decoder == NULL) |
| 549 | return -ENOMEM; | 544 | return -ENOMEM; |
| 550 | 545 | ||
| 551 | decoder->reset_pin = pin_array[0]; | 546 | /* |
| 552 | decoder->oe_pin = pin_array[1]; | 547 | * Requesting high will assert reset, the line should be |
| 553 | 548 | * flagged as active low in descriptor table or machine description. | |
| 554 | if (devm_gpio_request_one(&client->dev, decoder->reset_pin, | 549 | */ |
| 555 | GPIOF_OUT_INIT_LOW, "ADV7183 Reset")) { | 550 | decoder->reset_pin = devm_gpiod_get(&client->dev, "reset", |
| 556 | v4l_err(client, "failed to request GPIO %d\n", decoder->reset_pin); | 551 | GPIOD_OUT_HIGH); |
| 557 | return -EBUSY; | 552 | if (IS_ERR(decoder->reset_pin)) |
| 558 | } | 553 | return PTR_ERR(decoder->reset_pin); |
| 559 | 554 | gpiod_set_consumer_name(decoder->reset_pin, "ADV7183 Reset"); | |
| 560 | if (devm_gpio_request_one(&client->dev, decoder->oe_pin, | 555 | /* |
| 561 | GPIOF_OUT_INIT_HIGH, | 556 | * Requesting low will start with output disabled, the line should be |
| 562 | "ADV7183 Output Enable")) { | 557 | * flagged as active low in descriptor table or machine description. |
| 563 | v4l_err(client, "failed to request GPIO %d\n", decoder->oe_pin); | 558 | */ |
| 564 | return -EBUSY; | 559 | decoder->oe_pin = devm_gpiod_get(&client->dev, "oe", |
| 565 | } | 560 | GPIOD_OUT_LOW); |
| 561 | if (IS_ERR(decoder->oe_pin)) | ||
| 562 | return PTR_ERR(decoder->oe_pin); | ||
| 563 | gpiod_set_consumer_name(decoder->reset_pin, "ADV7183 Output Enable"); | ||
| 566 | 564 | ||
| 567 | sd = &decoder->sd; | 565 | sd = &decoder->sd; |
| 568 | v4l2_i2c_subdev_init(sd, client, &adv7183_ops); | 566 | v4l2_i2c_subdev_init(sd, client, &adv7183_ops); |
| @@ -594,7 +592,8 @@ static int adv7183_probe(struct i2c_client *client, · 25 unmodified lines | |||
| 594 | /* reset chip */ | 592 | /* reset chip */ |
| 595 | /* reset pulse width at least 5ms */ | 593 | /* reset pulse width at least 5ms */ |
| 596 | mdelay(10); | 594 | mdelay(10); |
| 597 | gpio_set_value(decoder->reset_pin, 1); | 595 | /* De-assert reset line (descriptor tagged active low) */ |
| 596 | gpiod_set_value(decoder->reset_pin, 0); | ||
| 598 | /* wait 5ms before any further i2c writes are performed */ | 597 | /* wait 5ms before any further i2c writes are performed */ |
| 599 | mdelay(5); | 598 | mdelay(5); |
| 600 | 599 | ||
| @@ -222,23 +222,7 @@ static int adv748x_csi2_get_mbus_config(struct v4l2_subdev *sd, unsigned int pad · 221 unmodified lines | |||
| 222 | return -EINVAL; | 222 | return -EINVAL; |
| 223 | 223 | ||
| 224 | config->type = V4L2_MBUS_CSI2_DPHY; | 224 | config->type = V4L2_MBUS_CSI2_DPHY; |
| 225 | switch (tx->active_lanes) { | 225 | config->bus.mipi_csi2.num_data_lanes = tx->active_lanes; |
| 226 | case 1: | ||
| 227 | config->flags = V4L2_MBUS_CSI2_1_LANE; | ||
| 228 | break; | ||
| 229 | |||
| 230 | case 2: | ||
| 231 | config->flags = V4L2_MBUS_CSI2_2_LANE; | ||
| 232 | break; | ||
| 233 | |||
| 234 | case 3: | ||
| 235 | config->flags = V4L2_MBUS_CSI2_3_LANE; | ||
| 236 | break; | ||
| 237 | |||
| 238 | case 4: | ||
| 239 | config->flags = V4L2_MBUS_CSI2_4_LANE; | ||
| 240 | break; | ||
| 241 | } | ||
| 242 | 226 | ||
| 243 | return 0; | 227 | return 0; |
| 244 | } | 228 | } |
| @@ -17,7 +17,6 @@ · 16 unmodified lines | |||
| 17 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
| 18 | #include <linux/delay.h> | 18 | #include <linux/delay.h> |
| 19 | #include <linux/videodev2.h> | 19 | #include <linux/videodev2.h> |
| 20 | #include <linux/gpio.h> | ||
| 21 | #include <linux/workqueue.h> | 20 | #include <linux/workqueue.h> |
| 22 | #include <linux/hdmi.h> | 21 | #include <linux/hdmi.h> |
| 23 | #include <linux/v4l2-dv-timings.h> | 22 | #include <linux/v4l2-dv-timings.h> |
| @@ -522,7 +521,7 @@ static void log_infoframe(struct v4l2_subdev *sd, const struct adv7511_cfg_read_ · 498 unmodified lines | |||
| 522 | buffer[3] = 0; | 521 | buffer[3] = 0; |
| 523 | buffer[3] = hdmi_infoframe_checksum(buffer, len + 4); | 522 | buffer[3] = hdmi_infoframe_checksum(buffer, len + 4); |
| 524 | 523 | ||
| 525 | if (hdmi_infoframe_unpack(&frame, buffer, sizeof(buffer)) < 0) { | 524 | if (hdmi_infoframe_unpack(&frame, buffer, len + 4) < 0) { |
| 526 | v4l2_err(sd, "%s: unpack of %s infoframe failed\n", __func__, cri->desc); | 525 | v4l2_err(sd, "%s: unpack of %s infoframe failed\n", __func__, cri->desc); |
| 527 | return; | 526 | return; |
| 528 | } | 527 | } |
| @@ -2484,7 +2484,7 @@ static int adv76xx_read_infoframe(struct v4l2_subdev *sd, int index, · 2483 unmodified lines | |||
| 2484 | buffer[i + 3] = infoframe_read(sd, | 2484 | buffer[i + 3] = infoframe_read(sd, |
| 2485 | adv76xx_cri[index].payload_addr + i); | 2485 | adv76xx_cri[index].payload_addr + i); |
| 2486 | 2486 | ||
| 2487 | if (hdmi_infoframe_unpack(frame, buffer, sizeof(buffer)) < 0) { | 2487 | if (hdmi_infoframe_unpack(frame, buffer, len + 3) < 0) { |
| 2488 | v4l2_err(sd, "%s: unpack of %s infoframe failed\n", __func__, | 2488 | v4l2_err(sd, "%s: unpack of %s infoframe failed\n", __func__, |
| 2489 | adv76xx_cri[index].desc); | 2489 | adv76xx_cri[index].desc); |
| 2490 | return -ENOENT; | 2490 | return -ENOENT; |
| @@ -2583,7 +2583,7 @@ static void log_infoframe(struct v4l2_subdev *sd, const struct adv7842_cfg_read_ · 2582 unmodified lines | |||
| 2583 | for (i = 0; i < len; i++) | 2583 | for (i = 0; i < len; i++) |
| 2584 | buffer[i + 3] = infoframe_read(sd, cri->payload_addr + i); | 2584 | buffer[i + 3] = infoframe_read(sd, cri->payload_addr + i); |
| 2585 | 2585 | ||
| 2586 | if (hdmi_infoframe_unpack(&frame, buffer, sizeof(buffer)) < 0) { | 2586 | if (hdmi_infoframe_unpack(&frame, buffer, len + 3) < 0) { |
| 2587 | v4l2_err(sd, "%s: unpack of %s infoframe failed\n", __func__, cri->desc); | 2587 | v4l2_err(sd, "%s: unpack of %s infoframe failed\n", __func__, cri->desc); |
| 2588 | return; | 2588 | return; |
| 2589 | } | 2589 | } |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_CCS | 2 | config VIDEO_CCS |
| 3 | tristate "MIPI CCS/SMIA++/SMIA sensor support" | 3 | tristate "MIPI CCS/SMIA++/SMIA sensor support" |
| 4 | depends on I2C && VIDEO_V4L2 && HAVE_CLK | 4 | depends on I2C && VIDEO_DEV && HAVE_CLK |
| 5 | select MEDIA_CONTROLLER | 5 | select MEDIA_CONTROLLER |
| 6 | select VIDEO_V4L2_SUBDEV_API | 6 | select VIDEO_V4L2_SUBDEV_API |
| 7 | select VIDEO_CCS_PLL | 7 | select VIDEO_CCS_PLL |
| @@ -17,7 +17,6 @@ · 16 unmodified lines | |||
| 17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
| 18 | #include <linux/device.h> | 18 | #include <linux/device.h> |
| 19 | #include <linux/firmware.h> | 19 | #include <linux/firmware.h> |
| 20 | #include <linux/gpio.h> | ||
| 21 | #include <linux/gpio/consumer.h> | 20 | #include <linux/gpio/consumer.h> |
| 22 | #include <linux/module.h> | 21 | #include <linux/module.h> |
| 23 | #include <linux/pm_runtime.h> | 22 | #include <linux/pm_runtime.h> |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_CX25840 | 2 | config VIDEO_CX25840 |
| 3 | tristate "Conexant CX2584x audio/video decoders" | 3 | tristate "Conexant CX2584x audio/video decoders" |
| 4 | depends on VIDEO_V4L2 && I2C | 4 | depends on VIDEO_DEV && I2C |
| 5 | help | 5 | help |
| 6 | Support for the Conexant CX2584x audio/video decoders. | 6 | Support for the Conexant CX2584x audio/video decoders. |
| 7 | 7 | ||
| @@ -5,6 +5,7 @@ · 4 unmodified lines | |||
| 5 | #include <linux/i2c.h> | 5 | #include <linux/i2c.h> |
| 6 | #include <linux/module.h> | 6 | #include <linux/module.h> |
| 7 | #include <linux/pm_runtime.h> | 7 | #include <linux/pm_runtime.h> |
| 8 | #include <linux/regulator/consumer.h> | ||
| 8 | #include <media/v4l2-ctrls.h> | 9 | #include <media/v4l2-ctrls.h> |
| 9 | #include <media/v4l2-device.h> | 10 | #include <media/v4l2-device.h> |
| 10 | #include <media/v4l2-event.h> | 11 | #include <media/v4l2-event.h> |
| @@ -36,6 +37,7 @@ struct dw9714_device { · 25 unmodified lines | |||
| 36 | struct v4l2_ctrl_handler ctrls_vcm; | 37 | struct v4l2_ctrl_handler ctrls_vcm; |
| 37 | struct v4l2_subdev sd; | 38 | struct v4l2_subdev sd; |
| 38 | u16 current_val; | 39 | u16 current_val; |
| 40 | struct regulator *vcc; | ||
| 39 | }; | 41 | }; |
| 40 | 42 | ||
| 41 | static inline struct dw9714_device *to_dw9714_vcm(struct v4l2_ctrl *ctrl) | 43 | static inline struct dw9714_device *to_dw9714_vcm(struct v4l2_ctrl *ctrl) |
| @@ -145,6 +147,16 @@ static int dw9714_probe(struct i2c_client *client) · 103 unmodified lines | |||
| 145 | if (dw9714_dev == NULL) | 147 | if (dw9714_dev == NULL) |
| 146 | return -ENOMEM; | 148 | return -ENOMEM; |
| 147 | 149 | ||
| 150 | dw9714_dev->vcc = devm_regulator_get(&client->dev, "vcc"); | ||
| 151 | if (IS_ERR(dw9714_dev->vcc)) | ||
| 152 | return PTR_ERR(dw9714_dev->vcc); | ||
| 153 | |||
| 154 | rval = regulator_enable(dw9714_dev->vcc); | ||
| 155 | if (rval < 0) { | ||
| 156 | dev_err(&client->dev, "failed to enable vcc: %d\n", rval); | ||
| 157 | return rval; | ||
| 158 | } | ||
| 159 | |||
| 148 | v4l2_i2c_subdev_init(&dw9714_dev->sd, client, &dw9714_ops); | 160 | v4l2_i2c_subdev_init(&dw9714_dev->sd, client, &dw9714_ops); |
| 149 | dw9714_dev->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | | 161 | dw9714_dev->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | |
| 150 | V4L2_SUBDEV_FL_HAS_EVENTS; | 162 | V4L2_SUBDEV_FL_HAS_EVENTS; |
| @@ -181,8 +193,18 @@ static int dw9714_remove(struct i2c_client *client) · 30 unmodified lines | |||
| 181 | { | 193 | { |
| 182 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 194 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
| 183 | struct dw9714_device *dw9714_dev = sd_to_dw9714_vcm(sd); | 195 | struct dw9714_device *dw9714_dev = sd_to_dw9714_vcm(sd); |
| 196 | int ret; | ||
| 184 | 197 | ||
| 185 | pm_runtime_disable(&client->dev); | 198 | pm_runtime_disable(&client->dev); |
| 199 | if (!pm_runtime_status_suspended(&client->dev)) { | ||
| 200 | ret = regulator_disable(dw9714_dev->vcc); | ||
| 201 | if (ret) { | ||
| 202 | dev_err(&client->dev, | ||
| 203 | "Failed to disable vcc: %d\n", ret); | ||
| 204 | return ret; | ||
| 205 | } | ||
| 206 | } | ||
| 207 | pm_runtime_set_suspended(&client->dev); | ||
| 186 | dw9714_subdev_cleanup(dw9714_dev); | 208 | dw9714_subdev_cleanup(dw9714_dev); |
| 187 | 209 | ||
| 188 | return 0; | 210 | return 0; |
| @@ -200,6 +222,9 @@ static int __maybe_unused dw9714_vcm_suspend(struct device *dev) · 11 unmodified lines | |||
| 200 | struct dw9714_device *dw9714_dev = sd_to_dw9714_vcm(sd); | 222 | struct dw9714_device *dw9714_dev = sd_to_dw9714_vcm(sd); |
| 201 | int ret, val; | 223 | int ret, val; |
| 202 | 224 | ||
| 225 | if (pm_runtime_suspended(&client->dev)) | ||
| 226 | return 0; | ||
| 227 | |||
| 203 | for (val = dw9714_dev->current_val & ~(DW9714_CTRL_STEPS - 1); | 228 | for (val = dw9714_dev->current_val & ~(DW9714_CTRL_STEPS - 1); |
| 204 | val >= 0; val -= DW9714_CTRL_STEPS) { | 229 | val >= 0; val -= DW9714_CTRL_STEPS) { |
| 205 | ret = dw9714_i2c_write(client, | 230 | ret = dw9714_i2c_write(client, |
| @@ -208,7 +233,12 @@ static int __maybe_unused dw9714_vcm_suspend(struct device *dev) · 2 unmodified lines | |||
| 208 | dev_err_once(dev, "%s I2C failure: %d", __func__, ret); | 233 | dev_err_once(dev, "%s I2C failure: %d", __func__, ret); |
| 209 | usleep_range(DW9714_CTRL_DELAY_US, DW9714_CTRL_DELAY_US + 10); | 234 | usleep_range(DW9714_CTRL_DELAY_US, DW9714_CTRL_DELAY_US + 10); |
| 210 | } | 235 | } |
| 211 | return 0; | 236 | |
| 237 | ret = regulator_disable(dw9714_dev->vcc); | ||
| 238 | if (ret) | ||
| 239 | dev_err(dev, "Failed to disable vcc: %d\n", ret); | ||
| 240 | |||
| 241 | return ret; | ||
| 212 | } | 242 | } |
| 213 | 243 | ||
| 214 | /* | 244 | /* |
| @@ -224,6 +254,16 @@ static int __maybe_unused dw9714_vcm_resume(struct device *dev) · 9 unmodified lines | |||
| 224 | struct dw9714_device *dw9714_dev = sd_to_dw9714_vcm(sd); | 254 | struct dw9714_device *dw9714_dev = sd_to_dw9714_vcm(sd); |
| 225 | int ret, val; | 255 | int ret, val; |
| 226 | 256 | ||
| 257 | if (pm_runtime_suspended(&client->dev)) | ||
| 258 | return 0; | ||
| 259 | |||
| 260 | ret = regulator_enable(dw9714_dev->vcc); | ||
| 261 | if (ret) { | ||
| 262 | dev_err(dev, "Failed to enable vcc: %d\n", ret); | ||
| 263 | return ret; | ||
| 264 | } | ||
| 265 | usleep_range(1000, 2000); | ||
| 266 | |||
| 227 | for (val = dw9714_dev->current_val % DW9714_CTRL_STEPS; | 267 | for (val = dw9714_dev->current_val % DW9714_CTRL_STEPS; |
| 228 | val < dw9714_dev->current_val + DW9714_CTRL_STEPS - 1; | 268 | val < dw9714_dev->current_val + DW9714_CTRL_STEPS - 1; |
| 229 | val += DW9714_CTRL_STEPS) { | 269 | val += DW9714_CTRL_STEPS) { |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_ET8EK8 | 2 | config VIDEO_ET8EK8 |
| 3 | tristate "ET8EK8 camera sensor support" | 3 | tristate "ET8EK8 camera sensor support" |
| 4 | depends on I2C && VIDEO_V4L2 | 4 | depends on I2C && VIDEO_DEV |
| 5 | select MEDIA_CONTROLLER | 5 | select MEDIA_CONTROLLER |
| 6 | select VIDEO_V4L2_SUBDEV_API | 6 | select VIDEO_V4L2_SUBDEV_API |
| 7 | select V4L2_FWNODE | 7 | select V4L2_FWNODE |
| @@ -0,0 +1,3012 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 2 | // Copyright (c) 2022 Intel Corporation. | ||
| 3 | |||
| 4 | #include <asm/unaligned.h> | ||
| 5 | #include <linux/acpi.h> | ||
| 6 | #include <linux/delay.h> | ||
| 7 | #include <linux/i2c.h> | ||
| 8 | #include <linux/module.h> | ||
| 9 | #include <linux/pm_runtime.h> | ||
| 10 | #include <media/v4l2-ctrls.h> | ||
| 11 | #include <media/v4l2-device.h> | ||
| 12 | #include <media/v4l2-fwnode.h> | ||
| 13 | |||
| 14 | #define HI847_REG_VALUE_08BIT 1 | ||
| 15 | #define HI847_REG_VALUE_16BIT 2 | ||
| 16 | #define HI847_REG_VALUE_24BIT 3 | ||
| 17 | |||
| 18 | #define HI847_LINK_FREQ_400MHZ 400000000ULL | ||
| 19 | #define HI847_LINK_FREQ_200MHZ 200000000ULL | ||
| 20 | #define HI847_SCLK 72000000ULL | ||
| 21 | #define HI847_MCLK 19200000 | ||
| 22 | #define HI847_DATA_LANES 4 | ||
| 23 | #define HI847_RGB_DEPTH 10 | ||
| 24 | |||
| 25 | #define HI847_REG_CHIP_ID 0x0716 | ||
| 26 | #define HI847_CHIP_ID 0x0847 | ||
| 27 | |||
| 28 | #define HI847_REG_MODE_SELECT 0x0B00 | ||
| 29 | #define HI847_MODE_STANDBY 0x0000 | ||
| 30 | #define HI847_MODE_STREAMING 0x0100 | ||
| 31 | |||
| 32 | #define HI847_REG_MODE_TG 0x027E | ||
| 33 | #define HI847_REG_MODE_TG_ENABLE 0x0100 | ||
| 34 | #define HI847_REG_MODE_TG_DISABLE 0x0000 | ||
| 35 | |||
| 36 | /* vertical-timings from sensor */ | ||
| 37 | #define HI847_REG_FLL 0x020E | ||
| 38 | #define HI847_FLL_30FPS 0x0B51 | ||
| 39 | #define HI847_FLL_30FPS_MIN 0x0B51 | ||
| 40 | #define HI847_FLL_60FPS 0x05A9 | ||
| 41 | #define HI847_FLL_60FPS_MIN 0x05A9 | ||
| 42 | #define HI847_FLL_MAX 0x7fff | ||
| 43 | |||
| 44 | /* horizontal-timings from sensor */ | ||
| 45 | #define HI847_REG_LLP 0x0206 | ||
| 46 | |||
| 47 | /* Exposure controls from sensor */ | ||
| 48 | #define HI847_REG_EXPOSURE 0x020A | ||
| 49 | #define HI847_EXPOSURE_MIN 4 | ||
| 50 | #define HI847_EXPOSURE_MAX_MARGIN 4 | ||
| 51 | #define HI847_EXPOSURE_STEP 1 | ||
| 52 | |||
| 53 | /* Analog gain controls from sensor */ | ||
| 54 | #define HI847_REG_ANALOG_GAIN 0x0212 | ||
| 55 | #define HI847_ANAL_GAIN_MIN 0 | ||
| 56 | #define HI847_ANAL_GAIN_MAX 240 | ||
| 57 | #define HI847_ANAL_GAIN_STEP 1 | ||
| 58 | |||
| 59 | /* Digital gain controls from sensor */ | ||
| 60 | #define HI847_REG_MWB_GR_GAIN 0x0214 | ||
| 61 | #define HI847_REG_MWB_GB_GAIN 0x0216 | ||
| 62 | #define HI847_REG_MWB_R_GAIN 0x0218 | ||
| 63 | #define HI847_REG_MWB_B_GAIN 0x021A | ||
| 64 | #define HI847_DGTL_GAIN_MIN 1 | ||
| 65 | #define HI847_DGTL_GAIN_MAX 8191 | ||
| 66 | #define HI847_DGTL_GAIN_STEP 1 | ||
| 67 | #define HI847_DGTL_GAIN_DEFAULT 512 | ||
| 68 | |||
| 69 | /* Test Pattern Control */ | ||
| 70 | #define HI847_REG_ISP 0X0B04 | ||
| 71 | #define HI847_REG_ISP_TPG_EN 0x0001 | ||
| 72 | #define HI847_REG_TEST_PATTERN 0x0C0A | ||
| 73 | |||
| 74 | /* Flip Mirror Controls from sensor */ | ||
| 75 | #define HI847_REG_MIRROR_FLIP 0x0202 | ||
| 76 | |||
| 77 | #define HI847_REG_FORMAT_X 0x0F04 | ||
| 78 | #define HI847_REG_FORMAT_Y 0x0F06 | ||
| 79 | |||
| 80 | enum { | ||
| 81 | HI847_LINK_FREQ_400MHZ_INDEX, | ||
| 82 | HI847_LINK_FREQ_200MHZ_INDEX, | ||
| 83 | }; | ||
| 84 | |||
| 85 | struct hi847_reg { | ||
| 86 | u16 address; | ||
| 87 | u16 val; | ||
| 88 | }; | ||
| 89 | |||
| 90 | struct hi847_reg_list { | ||
| 91 | u32 num_of_regs; | ||
| 92 | const struct hi847_reg *regs; | ||
| 93 | }; | ||
| 94 | |||
| 95 | struct hi847_link_freq_config { | ||
| 96 | const struct hi847_reg_list reg_list; | ||
| 97 | }; | ||
| 98 | |||
| 99 | struct hi847_mode { | ||
| 100 | /* Frame width in pixels */ | ||
| 101 | u32 width; | ||
| 102 | |||
| 103 | /* Frame height in pixels */ | ||
| 104 | u32 height; | ||
| 105 | |||
| 106 | /* Horizontal timining size */ | ||
| 107 | u32 llp; | ||
| 108 | |||
| 109 | /* Default vertical timining size */ | ||
| 110 | u32 fll_def; | ||
| 111 | |||
| 112 | /* Min vertical timining size */ | ||
| 113 | u32 fll_min; | ||
| 114 | |||
| 115 | /* Link frequency needed for this resolution */ | ||
| 116 | u32 link_freq_index; | ||
| 117 | |||
| 118 | /* Sensor register settings for this resolution */ | ||
| 119 | const struct hi847_reg_list reg_list; | ||
| 120 | }; | ||
| 121 | |||
| 122 | #define to_hi847(_sd) container_of(_sd, struct hi847, sd) | ||
| 123 | |||
| 124 | //SENSOR_INITIALIZATION | ||
| 125 | static const struct hi847_reg mipi_data_rate_lane_4[] = { | ||
| 126 | {0x0790, 0x0100}, | ||
| 127 | {0x2000, 0x0000}, | ||
| 128 | {0x2002, 0x0058}, | ||
| 129 | {0x2006, 0x40B2}, | ||
| 130 | {0x2008, 0xB05C}, | ||
| 131 | {0x200A, 0x8446}, | ||
| 132 | {0x200C, 0x40B2}, | ||
| 133 | {0x200E, 0xB082}, | ||
| 134 | {0x2010, 0x8450}, | ||
| 135 | {0x2012, 0x40B2}, | ||
| 136 | {0x2014, 0xB0AE}, | ||
| 137 | {0x2016, 0x84C6}, | ||
| 138 | {0x2018, 0x40B2}, | ||
| 139 | {0x201A, 0xB11A}, | ||
| 140 | {0x201C, 0x84BC}, | ||
| 141 | {0x201E, 0x40B2}, | ||
| 142 | {0x2020, 0xB34A}, | ||
| 143 | {0x2022, 0x84B4}, | ||
| 144 | {0x2024, 0x40B2}, | ||
| 145 | {0x2026, 0xB386}, | ||
| 146 | {0x2028, 0x84B0}, | ||
| 147 | {0x202A, 0x40B2}, | ||
| 148 | {0x202C, 0xB3B4}, | ||
| 149 | {0x202E, 0x84B8}, | ||
| 150 | {0x2030, 0x40B2}, | ||
| 151 | {0x2032, 0xB0F4}, | ||
| 152 | {0x2034, 0x8470}, | ||
| 153 | {0x2036, 0x40B2}, | ||
| 154 | {0x2038, 0xB3EA}, | ||
| 155 | {0x203A, 0x847C}, | ||
| 156 | {0x203C, 0x40B2}, | ||
| 157 | {0x203E, 0xB658}, | ||
| 158 | {0x2040, 0x8478}, | ||
| 159 | {0x2042, 0x40B2}, | ||
| 160 | {0x2044, 0xB67E}, | ||
| 161 | {0x2046, 0x847E}, | ||
| 162 | {0x2048, 0x40B2}, | ||
| 163 | {0x204A, 0xB78E}, | ||
| 164 | {0x204C, 0x843A}, | ||
| 165 | {0x204E, 0x40B2}, | ||
| 166 | {0x2050, 0xB980}, | ||
| 167 | {0x2052, 0x845C}, | ||
| 168 | {0x2054, 0x40B2}, | ||
| 169 | {0x2056, 0xB9B0}, | ||
| 170 | {0x2058, 0x845E}, | ||
| 171 | {0x205A, 0x4130}, | ||
| 172 | {0x205C, 0x1292}, | ||
| 173 | {0x205E, 0xD016}, | ||
| 174 | {0x2060, 0xB3D2}, | ||
| 175 | {0x2062, 0x0B00}, | ||
| 176 | {0x2064, 0x2002}, | ||
| 177 | {0x2066, 0xD2E2}, | ||
| 178 | {0x2068, 0x0381}, | ||
| 179 | {0x206A, 0x93C2}, | ||
| 180 | {0x206C, 0x0263}, | ||
| 181 | {0x206E, 0x2001}, | ||
| 182 | {0x2070, 0x4130}, | ||
| 183 | {0x2072, 0x422D}, | ||
| 184 | {0x2074, 0x403E}, | ||
| 185 | {0x2076, 0x888E}, | ||
| 186 | {0x2078, 0x403F}, | ||
| 187 | {0x207A, 0x192A}, | ||
| 188 | {0x207C, 0x1292}, | ||
| 189 | {0x207E, 0x843E}, | ||
| 190 | {0x2080, 0x3FF7}, | ||
| 191 | {0x2082, 0x422D}, | ||
| 192 | {0x2084, 0x403E}, | ||
| 193 | {0x2086, 0x192A}, | ||
| 194 | {0x2088, 0x403F}, | ||
| 195 | {0x208A, 0x888E}, | ||
| 196 | {0x208C, 0x1292}, | ||
| 197 | {0x208E, 0x843E}, | ||
| 198 | {0x2090, 0xB3D2}, | ||
| 199 | {0x2092, 0x0267}, | ||
| 200 | {0x2094, 0x2403}, | ||
| 201 | {0x2096, 0xD0F2}, | ||
| 202 | {0x2098, 0x0040}, | ||
| 203 | {0x209A, 0x0381}, | ||
| 204 | {0x209C, 0x90F2}, | ||
| 205 | {0x209E, 0x0010}, | ||
| 206 | {0x20A0, 0x0260}, | ||
| 207 | {0x20A2, 0x2002}, | ||
| 208 | {0x20A4, 0x1292}, | ||
| 209 | {0x20A6, 0x84BC}, | ||
| 210 | {0x20A8, 0x1292}, | ||
| 211 | {0x20AA, 0xD020}, | ||
| 212 | {0x20AC, 0x4130}, | ||
| 213 | {0x20AE, 0x1292}, | ||
| 214 | {0x20B0, 0x8470}, | ||
| 215 | {0x20B2, 0x1292}, | ||
| 216 | {0x20B4, 0x8452}, | ||
| 217 | {0x20B6, 0x0900}, | ||
| 218 | {0x20B8, 0x7118}, | ||
| 219 | {0x20BA, 0x1292}, | ||
| 220 | {0x20BC, 0x848E}, | ||
| 221 | {0x20BE, 0x0900}, | ||
| 222 | {0x20C0, 0x7112}, | ||
| 223 | {0x20C2, 0x0800}, | ||
| 224 | {0x20C4, 0x7A20}, | ||
| 225 | {0x20C6, 0x4292}, | ||
| 226 | {0x20C8, 0x87DE}, | ||
| 227 | {0x20CA, 0x7334}, | ||
| 228 | {0x20CC, 0x0F00}, | ||
| 229 | {0x20CE, 0x7304}, | ||
| 230 | {0x20D0, 0x421F}, | ||
| 231 | {0x20D2, 0x8718}, | ||
| 232 | {0x20D4, 0x1292}, | ||
| 233 | {0x20D6, 0x846E}, | ||
| 234 | {0x20D8, 0x1292}, | ||
| 235 | {0x20DA, 0x8488}, | ||
| 236 | {0x20DC, 0x0B00}, | ||
| 237 | {0x20DE, 0x7114}, | ||
| 238 | {0x20E0, 0x0002}, | ||
| 239 | {0x20E2, 0x1292}, | ||
| 240 | {0x20E4, 0x848C}, | ||
| 241 | {0x20E6, 0x1292}, | ||
| 242 | {0x20E8, 0x8454}, | ||
| 243 | {0x20EA, 0x43C2}, | ||
| 244 | {0x20EC, 0x86EE}, | ||
| 245 | {0x20EE, 0x1292}, | ||
| 246 | {0x20F0, 0x8444}, | ||
| 247 | {0x20F2, 0x4130}, | ||
| 248 | {0x20F4, 0x4392}, | ||
| 249 | {0x20F6, 0x7360}, | ||
| 250 | {0x20F8, 0xB3D2}, | ||
| 251 | {0x20FA, 0x0B00}, | ||
| 252 | {0x20FC, 0x2402}, | ||
| 253 | {0x20FE, 0xC2E2}, | ||
| 254 | {0x2100, 0x0381}, | ||
| 255 | {0x2102, 0x0900}, | ||
| 256 | {0x2104, 0x732C}, | ||
| 257 | {0x2106, 0x4382}, | ||
| 258 | {0x2108, 0x7360}, | ||
| 259 | {0x210A, 0x422D}, | ||
| 260 | {0x210C, 0x403E}, | ||
| 261 | {0x210E, 0x87F0}, | ||
| 262 | {0x2110, 0x403F}, | ||
| 263 | {0x2112, 0x87E8}, | ||
| 264 | {0x2114, 0x1292}, | ||
| 265 | {0x2116, 0x843E}, | ||
| 266 | {0x2118, 0x4130}, | ||
| 267 | {0x211A, 0x120B}, | ||
| 268 | {0x211C, 0x120A}, | ||
| 269 | {0x211E, 0x4392}, | ||
| 270 | {0x2120, 0x87FA}, | ||
| 271 | {0x2122, 0x4392}, | ||
| 272 | {0x2124, 0x760E}, | ||
| 273 | {0x2126, 0x0900}, | ||
| 274 | {0x2128, 0x760C}, | ||
| 275 | {0x212A, 0x421B}, | ||
| 276 | {0x212C, 0x760A}, | ||
| 277 | {0x212E, 0x903B}, | ||
| 278 | {0x2130, 0x0201}, | ||
| 279 | {0x2132, 0x2408}, | ||
| 280 | {0x2134, 0x903B}, | ||
| 281 | {0x2136, 0x0102}, | ||
| 282 | {0x2138, 0x2405}, | ||
| 283 | {0x213A, 0x4292}, | ||
| 284 | {0x213C, 0x030A}, | ||
| 285 | {0x213E, 0x87F8}, | ||
| 286 | {0x2140, 0x1292}, | ||
| 287 | {0x2142, 0x849A}, | ||
| 288 | {0x2144, 0x903B}, | ||
| 289 | {0x2146, 0x0020}, | ||
| 290 | {0x2148, 0x2010}, | ||
| 291 | {0x214A, 0x403B}, | ||
| 292 | {0x214C, 0x8498}, | ||
| 293 | {0x214E, 0x422F}, | ||
| 294 | {0x2150, 0x12AB}, | ||
| 295 | {0x2152, 0x403F}, | ||
| 296 | {0x2154, 0x0028}, | ||
| 297 | {0x2156, 0x12AB}, | ||
| 298 | {0x2158, 0x403B}, | ||
| 299 | {0x215A, 0x84C4}, | ||
| 300 | {0x215C, 0x407F}, | ||
| 301 | {0x215E, 0xFFAA}, | ||
| 302 | {0x2160, 0x12AB}, | ||
| 303 | {0x2162, 0x407F}, | ||
| 304 | {0x2164, 0x0055}, | ||
| 305 | {0x2166, 0x12AB}, | ||
| 306 | {0x2168, 0x3FDC}, | ||
| 307 | {0x216A, 0x903B}, | ||
| 308 | {0x216C, 0x0021}, | ||
| 309 | {0x216E, 0x2890}, | ||
| 310 | {0x2170, 0x903B}, | ||
| 311 | {0x2172, 0x0100}, | ||
| 312 | {0x2174, 0x200D}, | ||
| 313 | {0x2176, 0x403F}, | ||
| 314 | {0x2178, 0x0028}, | ||
| 315 | {0x217A, 0x1292}, | ||
| 316 | {0x217C, 0x8498}, | ||
| 317 | {0x217E, 0x425F}, | ||
| 318 | {0x2180, 0x0306}, | ||
| 319 | {0x2182, 0x1292}, | ||
| 320 | {0x2184, 0x84C4}, | ||
| 321 | {0x2186, 0x4FC2}, | ||
| 322 | {0x2188, 0x0318}, | ||
| 323 | {0x218A, 0x0261}, | ||
| 324 | {0x218C, 0x0000}, | ||
| 325 | {0x218E, 0x3FC9}, | ||
| 326 | {0x2190, 0x903B}, | ||
| 327 | {0x2192, 0x0101}, | ||
| 328 | {0x2194, 0x2858}, | ||
| 329 | {0x2196, 0x903B}, | ||
| 330 | {0x2198, 0x0200}, | ||
| 331 | {0x219A, 0x2450}, | ||
| 332 | {0x219C, 0x903B}, | ||
| 333 | {0x219E, 0x0201}, | ||
| 334 | {0x21A0, 0x2C47}, | ||
| 335 | {0x21A2, 0x903B}, | ||
| 336 | {0x21A4, 0x0102}, | ||
| 337 | {0x21A6, 0x2041}, | ||
| 338 | {0x21A8, 0x93E2}, | ||
| 339 | {0x21AA, 0x0262}, | ||
| 340 | {0x21AC, 0x240A}, | ||
| 341 | {0x21AE, 0x425F}, | ||
| 342 | {0x21B0, 0x0306}, | ||
| 343 | {0x21B2, 0x1292}, | ||
| 344 | {0x21B4, 0x84C4}, | ||
| 345 | {0x21B6, 0x4F4E}, | ||
| 346 | {0x21B8, 0x4EC2}, | ||
| 347 | {0x21BA, 0x0318}, | ||
| 348 | {0x21BC, 0x0260}, | ||
| 349 | {0x21BE, 0x0000}, | ||
| 350 | {0x21C0, 0x3FB0}, | ||
| 351 | {0x21C2, 0x403A}, | ||
| 352 | {0x21C4, 0x8030}, | ||
| 353 | {0x21C6, 0x4382}, | ||
| 354 | {0x21C8, 0x0326}, | ||
| 355 | {0x21CA, 0x4382}, | ||
| 356 | {0x21CC, 0x0328}, | ||
| 357 | {0x21CE, 0x421B}, | ||
| 358 | {0x21D0, 0x030C}, | ||
| 359 | {0x21D2, 0x930B}, | ||
| 360 | {0x21D4, 0x2420}, | ||
| 361 | {0x21D6, 0x4A5F}, | ||
| 362 | {0x21D8, 0x0001}, | ||
| 363 | {0x21DA, 0x1292}, | ||
| 364 | {0x21DC, 0x84C4}, | ||
| 365 | {0x21DE, 0x4F4E}, | ||
| 366 | {0x21E0, 0x4A5F}, | ||
| 367 | {0x21E2, 0x0001}, | ||
| 368 | {0x21E4, 0x9F0E}, | ||
| 369 | {0x21E6, 0x2402}, | ||
| 370 | {0x21E8, 0x5392}, | ||
| 371 | {0x21EA, 0x0326}, | ||
| 372 | {0x21EC, 0x4ECA}, | ||
| 373 | {0x21EE, 0x0001}, | ||
| 374 | {0x21F0, 0x533B}, | ||
| 375 | {0x21F2, 0x2411}, | ||
| 376 | {0x21F4, 0x4A6F}, | ||
| 377 | {0x21F6, 0x1292}, | ||
| 378 | {0x21F8, 0x84C4}, | ||
| 379 | {0x21FA, 0x4F4E}, | ||
| 380 | {0x21FC, 0x4A6F}, | ||
| 381 | {0x21FE, 0x9F0E}, | ||
| 382 | {0x2200, 0x2402}, | ||
| 383 | {0x2202, 0x5392}, | ||
| 384 | {0x2204, 0x0326}, | ||
| 385 | {0x2206, 0x4ECA}, | ||
| 386 | {0x2208, 0x0000}, | ||
| 387 | {0x220A, 0x533B}, | ||
| 388 | {0x220C, 0x532A}, | ||
| 389 | {0x220E, 0x0260}, | ||
| 390 | {0x2210, 0x0000}, | ||
| 391 | {0x2212, 0x930B}, | ||
| 392 | {0x2214, 0x23E0}, | ||
| 393 | {0x2216, 0x40B2}, | ||
| 394 | {0x2218, 0xAA55}, | ||
| 395 | {0x221A, 0x0328}, | ||
| 396 | {0x221C, 0xB0F2}, | ||
| 397 | {0x221E, 0x0040}, | ||
| 398 | {0x2220, 0x0381}, | ||
| 399 | {0x2222, 0x277F}, | ||
| 400 | {0x2224, 0xD3D2}, | ||
| 401 | {0x2226, 0x0267}, | ||
| 402 | {0x2228, 0x3F7C}, | ||
| 403 | {0x222A, 0x0261}, | ||
| 404 | {0x222C, 0x0000}, | ||
| 405 | {0x222E, 0x3F79}, | ||
| 406 | {0x2230, 0x903B}, | ||
| 407 | {0x2232, 0x0201}, | ||
| 408 | {0x2234, 0x23FA}, | ||
| 409 | {0x2236, 0x1292}, | ||
| 410 | {0x2238, 0x84C0}, | ||
| 411 | {0x223A, 0x3F73}, | ||
| 412 | {0x223C, 0x1292}, | ||
| 413 | {0x223E, 0x84C0}, | ||
| 414 | {0x2240, 0x0261}, | ||
| 415 | {0x2242, 0x0000}, | ||
| 416 | {0x2244, 0x3F6E}, | ||
| 417 | {0x2246, 0x903B}, | ||
| 418 | {0x2248, 0x0040}, | ||
| 419 | {0x224A, 0x2018}, | ||
| 420 | {0x224C, 0x422F}, | ||
| 421 | {0x224E, 0x1292}, | ||
| 422 | {0x2250, 0x8498}, | ||
| 423 | {0x2252, 0x12B0}, | ||
| 424 | {0x2254, 0xF0EA}, | ||
| 425 | {0x2256, 0x907F}, | ||
| 426 | {0x2258, 0xFFAA}, | ||
| 427 | {0x225A, 0x240D}, | ||
| 428 | {0x225C, 0x5392}, | ||
| 429 | {0x225E, 0x0312}, | ||
| 430 | {0x2260, 0x12B0}, | ||
| 431 | {0x2262, 0xF0EA}, | ||
| 432 | {0x2264, 0x907F}, | ||
| 433 | {0x2266, 0x0055}, | ||
| 434 | {0x2268, 0x2403}, | ||
| 435 | {0x226A, 0x5392}, | ||
| 436 | {0x226C, 0x0312}, | ||
| 437 | {0x226E, 0x3F59}, | ||
| 438 | {0x2270, 0x5392}, | ||
| 439 | {0x2272, 0x0310}, | ||
| 440 | {0x2274, 0x3F56}, | ||
| 441 | {0x2276, 0x5392}, | ||
| 442 | {0x2278, 0x0310}, | ||
| 443 | {0x227A, 0x3FF2}, | ||
| 444 | {0x227C, 0x903B}, | ||
| 445 | {0x227E, 0x0080}, | ||
| 446 | {0x2280, 0x23D4}, | ||
| 447 | {0x2282, 0x4382}, | ||
| 448 | {0x2284, 0x0312}, | ||
| 449 | {0x2286, 0x4382}, | ||
| 450 | {0x2288, 0x0310}, | ||
| 451 | {0x228A, 0x0261}, | ||
| 452 | {0x228C, 0x0000}, | ||
| 453 | {0x228E, 0x3F49}, | ||
| 454 | {0x2290, 0x932B}, | ||
| 455 | {0x2292, 0x2005}, | ||
| 456 | {0x2294, 0x403F}, | ||
| 457 | {0x2296, 0x0028}, | ||
| 458 | {0x2298, 0x1292}, | ||
| 459 | {0x229A, 0x8498}, | ||
| 460 | {0x229C, 0x3F42}, | ||
| 461 | {0x229E, 0x903B}, | ||
| 462 | {0x22A0, 0x0003}, | ||
| 463 | {0x22A2, 0x284B}, | ||
| 464 | {0x22A4, 0x923B}, | ||
| 465 | {0x22A6, 0x2015}, | ||
| 466 | {0x22A8, 0x403F}, | ||
| 467 | {0x22AA, 0x0023}, | ||
| 468 | {0x22AC, 0x1292}, | ||
| 469 | {0x22AE, 0x8498}, | ||
| 470 | {0x22B0, 0x421B}, | ||
| 471 | {0x22B2, 0x87F8}, | ||
| 472 | {0x22B4, 0x421F}, | ||
| 473 | {0x22B6, 0x030C}, | ||
| 474 | {0x22B8, 0x9F0B}, | ||
| 475 | {0x22BA, 0x2F33}, | ||
| 476 | {0x22BC, 0x1292}, | ||
| 477 | {0x22BE, 0x84BA}, | ||
| 478 | {0x22C0, 0x930F}, | ||
| 479 | {0x22C2, 0x2004}, | ||
| 480 | {0x22C4, 0x5392}, | ||
| 481 | {0x22C6, 0x0312}, | ||
| 482 | {0x22C8, 0x531B}, | ||
| 483 | {0x22CA, 0x3FF4}, | ||
| 484 | {0x22CC, 0x5392}, | ||
| 485 | {0x22CE, 0x0310}, | ||
| 486 | {0x22D0, 0x3FFB}, | ||
| 487 | {0x22D2, 0x903B}, | ||
| 488 | {0x22D4, 0x0009}, | ||
| 489 | {0x22D6, 0x2818}, | ||
| 490 | {0x22D8, 0x903B}, | ||
| 491 | {0x22DA, 0x0010}, | ||
| 492 | {0x22DC, 0x23A6}, | ||
| 493 | {0x22DE, 0x403F}, | ||
| 494 | {0x22E0, 0x0027}, | ||
| 495 | {0x22E2, 0x1292}, | ||
| 496 | {0x22E4, 0x8498}, | ||
| 497 | {0x22E6, 0x421B}, | ||
| 498 | {0x22E8, 0x87F8}, | ||
| 499 | {0x22EA, 0x421F}, | ||
| 500 | {0x22EC, 0x030C}, | ||
| 501 | {0x22EE, 0x9F0B}, | ||
| 502 | {0x22F0, 0x2F18}, | ||
| 503 | {0x22F2, 0x1292}, | ||
| 504 | {0x22F4, 0x84BA}, | ||
| 505 | {0x22F6, 0x930F}, | ||
| 506 | {0x22F8, 0x2004}, | ||
| 507 | {0x22FA, 0x5392}, | ||
| 508 | {0x22FC, 0x0312}, | ||
| 509 | {0x22FE, 0x531B}, | ||
| 510 | {0x2300, 0x3FF4}, | ||
| 511 | {0x2302, 0x5392}, | ||
| 512 | {0x2304, 0x0310}, | ||
| 513 | {0x2306, 0x3FFB}, | ||
| 514 | {0x2308, 0x922B}, | ||
| 515 | {0x230A, 0x238F}, | ||
| 516 | {0x230C, 0x421B}, | ||
| 517 | {0x230E, 0x87F8}, | ||
| 518 | {0x2310, 0x421F}, | ||
| 519 | {0x2312, 0x030C}, | ||
| 520 | {0x2314, 0x9F0B}, | ||
| 521 | {0x2316, 0x2C0B}, | ||
| 522 | {0x2318, 0x1292}, | ||
| 523 | {0x231A, 0x84C2}, | ||
| 524 | {0x231C, 0x934F}, | ||
| 525 | {0x231E, 0x240A}, | ||
| 526 | {0x2320, 0x5392}, | ||
| 527 | {0x2322, 0x0312}, | ||
| 528 | {0x2324, 0x531B}, | ||
| 529 | {0x2326, 0x421F}, | ||
| 530 | {0x2328, 0x030C}, | ||
| 531 | {0x232A, 0x9F0B}, | ||
| 532 | {0x232C, 0x2BF5}, | ||
| 533 | {0x232E, 0x0261}, | ||
| 534 | {0x2330, 0x0000}, | ||
| 535 | {0x2332, 0x3EF7}, | ||
| 536 | {0x2334, 0x5392}, | ||
| 537 | {0x2336, 0x0310}, | ||
| 538 | {0x2338, 0x3FF5}, | ||
| 539 | {0x233A, 0x930B}, | ||
| 540 | {0x233C, 0x277F}, | ||
| 541 | {0x233E, 0x931B}, | ||
| 542 | {0x2340, 0x277A}, | ||
| 543 | {0x2342, 0x3F73}, | ||
| 544 | {0x2344, 0x413A}, | ||
| 545 | {0x2346, 0x413B}, | ||
| 546 | {0x2348, 0x4130}, | ||
| 547 | {0x234A, 0x4F0C}, | ||
| 548 | {0x234C, 0x403F}, | ||
| 549 | {0x234E, 0x0267}, | ||
| 550 | {0x2350, 0xF0FF}, | ||
| 551 | {0x2352, 0xFFDF}, | ||
| 552 | {0x2354, 0x0000}, | ||
| 553 | {0x2356, 0xF0FF}, | ||
| 554 | {0x2358, 0xFFEF}, | ||
| 555 | {0x235A, 0x0000}, | ||
| 556 | {0x235C, 0x421D}, | ||
| 557 | {0x235E, 0x84B0}, | ||
| 558 | {0x2360, 0x403E}, | ||
| 559 | {0x2362, 0x06F9}, | ||
| 560 | {0x2364, 0x4C0F}, | ||
| 561 | {0x2366, 0x1292}, | ||
| 562 | {0x2368, 0x84AC}, | ||
| 563 | {0x236A, 0x4F4E}, | ||
| 564 | {0x236C, 0xB31E}, | ||
| 565 | {0x236E, 0x2403}, | ||
| 566 | {0x2370, 0xD0F2}, | ||
| 567 | {0x2372, 0x0020}, | ||
| 568 | {0x2374, 0x0267}, | ||
| 569 | {0x2376, 0xB32E}, | ||
| 570 | {0x2378, 0x2403}, | ||
| 571 | {0x237A, 0xD0F2}, | ||
| 572 | {0x237C, 0x0010}, | ||
| 573 | {0x237E, 0x0267}, | ||
| 574 | {0x2380, 0xC3E2}, | ||
| 575 | {0x2382, 0x0267}, | ||
| 576 | {0x2384, 0x4130}, | ||
| 577 | {0x2386, 0x120B}, | ||
| 578 | {0x2388, 0x120A}, | ||
| 579 | {0x238A, 0x403A}, | ||
| 580 | {0x238C, 0x1140}, | ||
| 581 | {0x238E, 0x1292}, | ||
| 582 | {0x2390, 0xD080}, | ||
| 583 | {0x2392, 0x430B}, | ||
| 584 | {0x2394, 0x4A0F}, | ||
| 585 | {0x2396, 0x532A}, | ||
| 586 | {0x2398, 0x1292}, | ||
| 587 | {0x239A, 0x84A4}, | ||
| 588 | {0x239C, 0x4F0E}, | ||
| 589 | {0x239E, 0x430F}, | ||
| 590 | {0x23A0, 0x5E82}, | ||
| 591 | {0x23A2, 0x87FC}, | ||
| 592 | {0x23A4, 0x6F82}, | ||
| 593 | {0x23A6, 0x87FE}, | ||
| 594 | {0x23A8, 0x531B}, | ||
| 595 | {0x23AA, 0x923B}, | ||
| 596 | {0x23AC, 0x2BF3}, | ||
| 597 | {0x23AE, 0x413A}, | ||
| 598 | {0x23B0, 0x413B}, | ||
| 599 | {0x23B2, 0x4130}, | ||
| 600 | {0x23B4, 0xF0F2}, | ||
| 601 | {0x23B6, 0x007F}, | ||
| 602 | {0x23B8, 0x0267}, | ||
| 603 | {0x23BA, 0x421D}, | ||
| 604 | {0x23BC, 0x84B6}, | ||
| 605 | {0x23BE, 0x403E}, | ||
| 606 | {0x23C0, 0x01F9}, | ||
| 607 | {0x23C2, 0x1292}, | ||
| 608 | {0x23C4, 0x84AC}, | ||
| 609 | {0x23C6, 0x4F4E}, | ||
| 610 | {0x23C8, 0xF35F}, | ||
| 611 | {0x23CA, 0x2403}, | ||
| 612 | {0x23CC, 0xD0F2}, | ||
| 613 | {0x23CE, 0xFF80}, | ||
| 614 | {0x23D0, 0x0267}, | ||
| 615 | {0x23D2, 0xB36E}, | ||
| 616 | {0x23D4, 0x2404}, | ||
| 617 | {0x23D6, 0xD0F2}, | ||
| 618 | {0x23D8, 0x0040}, | ||
| 619 | {0x23DA, 0x0267}, | ||
| 620 | {0x23DC, 0x3C03}, | ||
| 621 | {0x23DE, 0xF0F2}, | ||
| 622 | {0x23E0, 0xFFBF}, | ||
| 623 | {0x23E2, 0x0267}, | ||
| 624 | {0x23E4, 0xC2E2}, | ||
| 625 | {0x23E6, 0x0267}, | ||
| 626 | {0x23E8, 0x4130}, | ||
| 627 | {0x23EA, 0x120B}, | ||
| 628 | {0x23EC, 0x120A}, | ||
| 629 | {0x23EE, 0x8231}, | ||
| 630 | {0x23F0, 0x430B}, | ||
| 631 | {0x23F2, 0x93C2}, | ||
| 632 | {0x23F4, 0x0C0A}, | ||
| 633 | {0x23F6, 0x2404}, | ||
| 634 | {0x23F8, 0xB3D2}, | ||
| 635 | {0x23FA, 0x0B05}, | ||
| 636 | {0x23FC, 0x2401}, | ||
| 637 | {0x23FE, 0x431B}, | ||
| 638 | {0x2400, 0x422D}, | ||
| 639 | {0x2402, 0x403E}, | ||
| 640 | {0x2404, 0x192A}, | ||
| 641 | {0x2406, 0x403F}, | ||
| 642 | {0x2408, 0x888E}, | ||
| 643 | {0x240A, 0x1292}, | ||
| 644 | {0x240C, 0x843E}, | ||
| 645 | {0x240E, 0x930B}, | ||
| 646 | {0x2410, 0x20F4}, | ||
| 647 | {0x2412, 0x93E2}, | ||
| 648 | {0x2414, 0x0241}, | ||
| 649 | {0x2416, 0x24EB}, | ||
| 650 | {0x2418, 0x403A}, | ||
| 651 | {0x241A, 0x0292}, | ||
| 652 | {0x241C, 0x4AA2}, | ||
| 653 | {0x241E, 0x0A00}, | ||
| 654 | {0x2420, 0xB2E2}, | ||
| 655 | {0x2422, 0x0361}, | ||
| 656 | {0x2424, 0x2405}, | ||
| 657 | {0x2426, 0x4A2F}, | ||
| 658 | {0x2428, 0x1292}, | ||
| 659 | {0x242A, 0x8474}, | ||
| 660 | {0x242C, 0x4F82}, | ||
| 661 | {0x242E, 0x0A1C}, | ||
| 662 | {0x2430, 0x93C2}, | ||
| 663 | {0x2432, 0x0360}, | ||
| 664 | {0x2434, 0x34CD}, | ||
| 665 | {0x2436, 0x430C}, | ||
| 666 | {0x2438, 0x4C0F}, | ||
| 667 | {0x243A, 0x5F0F}, | ||
| 668 | {0x243C, 0x4F0D}, | ||
| 669 | {0x243E, 0x510D}, | ||
| 670 | {0x2440, 0x4F0E}, | ||
| 671 | {0x2442, 0x5A0E}, | ||
| 672 | {0x2444, 0x4E1E}, | ||
| 673 | {0x2446, 0x0002}, | ||
| 674 | {0x2448, 0x4F1F}, | ||
| 675 | {0x244A, 0x192A}, | ||
| 676 | {0x244C, 0x1202}, | ||
| 677 | {0x244E, 0xC232}, | ||
| 678 | {0x2450, 0x4303}, | ||
| 679 | {0x2452, 0x4E82}, | ||
| 680 | {0x2454, 0x0130}, | ||
| 681 | {0x2456, 0x4F82}, | ||
| 682 | {0x2458, 0x0138}, | ||
| 683 | {0x245A, 0x421E}, | ||
| 684 | {0x245C, 0x013A}, | ||
| 685 | {0x245E, 0x421F}, | ||
| 686 | {0x2460, 0x013C}, | ||
| 687 | {0x2462, 0x4132}, | ||
| 688 | {0x2464, 0x108E}, | ||
| 689 | {0x2466, 0x108F}, | ||
| 690 | {0x2468, 0xEF4E}, | ||
| 691 | {0x246A, 0xEF0E}, | ||
| 692 | {0x246C, 0xF37F}, | ||
| 693 | {0x246E, 0xC312}, | ||
| 694 | {0x2470, 0x100F}, | ||
| 695 | {0x2472, 0x100E}, | ||
| 696 | {0x2474, 0x4E8D}, | ||
| 697 | {0x2476, 0x0000}, | ||
| 698 | {0x2478, 0x531C}, | ||
| 699 | {0x247A, 0x922C}, | ||
| 700 | {0x247C, 0x2BDD}, | ||
| 701 | {0x247E, 0xB3D2}, | ||
| 702 | {0x2480, 0x1921}, | ||
| 703 | {0x2482, 0x2403}, | ||
| 704 | {0x2484, 0x410F}, | ||
| 705 | {0x2486, 0x1292}, | ||
| 706 | {0x2488, 0x847E}, | ||
| 707 | {0x248A, 0x403B}, | ||
| 708 | {0x248C, 0x843E}, | ||
| 709 | {0x248E, 0x422D}, | ||
| 710 | {0x2490, 0x410E}, | ||
| 711 | {0x2492, 0x403F}, | ||
| 712 | {0x2494, 0x1908}, | ||
| 713 | {0x2496, 0x12AB}, | ||
| 714 | {0x2498, 0x403D}, | ||
| 715 | {0x249A, 0x0005}, | ||
| 716 | {0x249C, 0x403E}, | ||
| 717 | {0x249E, 0x0292}, | ||
| 718 | {0x24A0, 0x403F}, | ||
| 719 | {0x24A2, 0x86E4}, | ||
| 720 | {0x24A4, 0x12AB}, | ||
| 721 | {0x24A6, 0x421F}, | ||
| 722 | {0x24A8, 0x060E}, | ||
| 723 | {0x24AA, 0x9F82}, | ||
| 724 | {0x24AC, 0x8720}, | ||
| 725 | {0x24AE, 0x288D}, | ||
| 726 | {0x24B0, 0x9382}, | ||
| 727 | {0x24B2, 0x060E}, | ||
| 728 | {0x24B4, 0x248A}, | ||
| 729 | {0x24B6, 0x90BA}, | ||
| 730 | {0x24B8, 0x0010}, | ||
| 731 | {0x24BA, 0x0000}, | ||
| 732 | {0x24BC, 0x2C0B}, | ||
| 733 | {0x24BE, 0x93C2}, | ||
| 734 | {0x24C0, 0x86EE}, | ||
| 735 | {0x24C2, 0x2008}, | ||
| 736 | {0x24C4, 0x403F}, | ||
| 737 | {0x24C6, 0x06A7}, | ||
| 738 | {0x24C8, 0xD0FF}, | ||
| 739 | {0x24CA, 0x0007}, | ||
| 740 | {0x24CC, 0x0000}, | ||
| 741 | {0x24CE, 0xF0FF}, | ||
| 742 | {0x24D0, 0xFFF8}, | ||
| 743 | {0x24D2, 0x0000}, | ||
| 744 | {0x24D4, 0x4392}, | ||
| 745 | {0x24D6, 0x8720}, | ||
| 746 | {0x24D8, 0x403F}, | ||
| 747 | {0x24DA, 0x06A7}, | ||
| 748 | {0x24DC, 0xD2EF}, | ||
| 749 | {0x24DE, 0x0000}, | ||
| 750 | {0x24E0, 0xC2EF}, | ||
| 751 | {0x24E2, 0x0000}, | ||
| 752 | {0x24E4, 0x93C2}, | ||
| 753 | {0x24E6, 0x87D3}, | ||
| 754 | {0x24E8, 0x2068}, | ||
| 755 | {0x24EA, 0xB0F2}, | ||
| 756 | {0x24EC, 0x0040}, | ||
| 757 | {0x24EE, 0x0B05}, | ||
| 758 | {0x24F0, 0x2461}, | ||
| 759 | {0x24F2, 0xD3D2}, | ||
| 760 | {0x24F4, 0x0410}, | ||
| 761 | {0x24F6, 0xB3E2}, | ||
| 762 | {0x24F8, 0x0381}, | ||
| 763 | {0x24FA, 0x2089}, | ||
| 764 | {0x24FC, 0x90B2}, | ||
| 765 | {0x24FE, 0x0030}, | ||
| 766 | {0x2500, 0x0A00}, | ||
| 767 | {0x2502, 0x2C52}, | ||
| 768 | {0x2504, 0x93C2}, | ||
| 769 | {0x2506, 0x86EE}, | ||
| 770 | {0x2508, 0x204F}, | ||
| 771 | {0x250A, 0x430E}, | ||
| 772 | {0x250C, 0x430C}, | ||
| 773 | {0x250E, 0x4C0F}, | ||
| 774 | {0x2510, 0x5F0F}, | ||
| 775 | {0x2512, 0x5F0F}, | ||
| 776 | {0x2514, 0x5F0F}, | ||
| 777 | {0x2516, 0x4F1F}, | ||
| 778 | {0x2518, 0x8668}, | ||
| 779 | {0x251A, 0xF03F}, | ||
| 780 | {0x251C, 0x07FF}, | ||
| 781 | {0x251E, 0x903F}, | ||
| 782 | {0x2520, 0x0400}, | ||
| 783 | {0x2522, 0x343E}, | ||
| 784 | {0x2524, 0x5F0E}, | ||
| 785 | {0x2526, 0x531C}, | ||
| 786 | {0x2528, 0x923C}, | ||
| 787 | {0x252A, 0x2BF1}, | ||
| 788 | {0x252C, 0x4E0F}, | ||
| 789 | {0x252E, 0x930E}, | ||
| 790 | {0x2530, 0x3834}, | ||
| 791 | {0x2532, 0x110F}, | ||
| 792 | {0x2534, 0x110F}, | ||
| 793 | {0x2536, 0x110F}, | ||
| 794 | {0x2538, 0x9382}, | ||
| 795 | {0x253A, 0x86EE}, | ||
| 796 | {0x253C, 0x2023}, | ||
| 797 | {0x253E, 0x5F82}, | ||
| 798 | {0x2540, 0x87D6}, | ||
| 799 | {0x2542, 0x403B}, | ||
| 800 | {0x2544, 0x87D6}, | ||
| 801 | {0x2546, 0x4B2F}, | ||
| 802 | {0x2548, 0x12B0}, | ||
| 803 | {0x254A, 0xB624}, | ||
| 804 | {0x254C, 0x4F8B}, | ||
| 805 | {0x254E, 0x0000}, | ||
| 806 | {0x2550, 0x430C}, | ||
| 807 | {0x2552, 0x4C0D}, | ||
| 808 | {0x2554, 0x5D0D}, | ||
| 809 | {0x2556, 0x5D0D}, | ||
| 810 | {0x2558, 0x5D0D}, | ||
| 811 | {0x255A, 0x403A}, | ||
| 812 | {0x255C, 0x87D8}, | ||
| 813 | {0x255E, 0x421B}, | ||
| 814 | {0x2560, 0x87D6}, | ||
| 815 | {0x2562, 0x4B0F}, | ||
| 816 | {0x2564, 0x8A2F}, | ||
| 817 | {0x2566, 0x4F0E}, | ||
| 818 | {0x2568, 0x4E0F}, | ||
| 819 | {0x256A, 0x5F0F}, | ||
| 820 | {0x256C, 0x7F0F}, | ||
| 821 | {0x256E, 0xE33F}, | ||
| 822 | {0x2570, 0x8E8D}, | ||
| 823 | {0x2572, 0x8668}, | ||
| 824 | {0x2574, 0x7F8D}, | ||
| 825 | {0x2576, 0x866A}, | ||
| 826 | {0x2578, 0x531C}, | ||
| 827 | {0x257A, 0x923C}, | ||
| 828 | {0x257C, 0x2BEA}, | ||
| 829 | {0x257E, 0x4B8A}, | ||
| 830 | {0x2580, 0x0000}, | ||
| 831 | {0x2582, 0x3C45}, | ||
| 832 | {0x2584, 0x9382}, | ||
| 833 | {0x2586, 0x86F0}, | ||
| 834 | {0x2588, 0x2005}, | ||
| 835 | {0x258A, 0x4382}, | ||
| 836 | {0x258C, 0x87D6}, | ||
| 837 | {0x258E, 0x4382}, | ||
| 838 | {0x2590, 0x87D8}, | ||
| 839 | {0x2592, 0x3FD7}, | ||
| 840 | {0x2594, 0x4F82}, | ||
| 841 | {0x2596, 0x87D6}, | ||
| 842 | {0x2598, 0x3FD4}, | ||
| 843 | {0x259A, 0x503F}, | ||
| 844 | {0x259C, 0x0007}, | ||
| 845 | {0x259E, 0x3FC9}, | ||
| 846 | {0x25A0, 0x5F0E}, | ||
| 847 | {0x25A2, 0x503E}, | ||
| 848 | {0x25A4, 0xF800}, | ||
| 849 | {0x25A6, 0x3FBF}, | ||
| 850 | {0x25A8, 0x430F}, | ||
| 851 | {0x25AA, 0x12B0}, | ||
| 852 | {0x25AC, 0xB624}, | ||
| 853 | {0x25AE, 0x4382}, | ||
| 854 | {0x25B0, 0x87D6}, | ||
| 855 | {0x25B2, 0x3C2D}, | ||
| 856 | {0x25B4, 0xC3D2}, | ||
| 857 | {0x25B6, 0x0410}, | ||
| 858 | {0x25B8, 0x3F9E}, | ||
| 859 | {0x25BA, 0x430D}, | ||
| 860 | {0x25BC, 0x403E}, | ||
| 861 | {0x25BE, 0x0050}, | ||
| 862 | {0x25C0, 0x403F}, | ||
| 863 | {0x25C2, 0x85C8}, | ||
| 864 | {0x25C4, 0x1292}, | ||
| 865 | {0x25C6, 0x844E}, | ||
| 866 | {0x25C8, 0x3F90}, | ||
| 867 | {0x25CA, 0x5392}, | ||
| 868 | {0x25CC, 0x8720}, | ||
| 869 | {0x25CE, 0x3F84}, | ||
| 870 | {0x25D0, 0x403B}, | ||
| 871 | {0x25D2, 0x843E}, | ||
| 872 | {0x25D4, 0x4A0F}, | ||
| 873 | {0x25D6, 0x532F}, | ||
| 874 | {0x25D8, 0x422D}, | ||
| 875 | {0x25DA, 0x4F0E}, | ||
| 876 | {0x25DC, 0x403F}, | ||
| 877 | {0x25DE, 0x0E08}, | ||
| 878 | {0x25E0, 0x12AB}, | ||
| 879 | {0x25E2, 0x422D}, | ||
| 880 | {0x25E4, 0x403E}, | ||
| 881 | {0x25E6, 0x192A}, | ||
| 882 | {0x25E8, 0x410F}, | ||
| 883 | {0x25EA, 0x12AB}, | ||
| 884 | {0x25EC, 0x3F48}, | ||
| 885 | {0x25EE, 0x93C2}, | ||
| 886 | {0x25F0, 0x86EE}, | ||
| 887 | {0x25F2, 0x2312}, | ||
| 888 | {0x25F4, 0x403A}, | ||
| 889 | {0x25F6, 0x86E4}, | ||
| 890 | {0x25F8, 0x3F11}, | ||
| 891 | {0x25FA, 0x403D}, | ||
| 892 | {0x25FC, 0x0200}, | ||
| 893 | {0x25FE, 0x422E}, | ||
| 894 | {0x2600, 0x403F}, | ||
| 895 | {0x2602, 0x192A}, | ||
| 896 | {0x2604, 0x1292}, | ||
| 897 | {0x2606, 0x844E}, | ||
| 898 | {0x2608, 0xC3D2}, | ||
| 899 | {0x260A, 0x1921}, | ||
| 900 | {0x260C, 0x3F02}, | ||
| 901 | {0x260E, 0x422D}, | ||
| 902 | {0x2610, 0x403E}, | ||
| 903 | {0x2612, 0x888E}, | ||
| 904 | {0x2614, 0x403F}, | ||
| 905 | {0x2616, 0x192A}, | ||
| 906 | {0x2618, 0x1292}, | ||
| 907 | {0x261A, 0x843E}, | ||
| 908 | {0x261C, 0x5231}, | ||
| 909 | {0x261E, 0x413A}, | ||
| 910 | {0x2620, 0x413B}, | ||
| 911 | {0x2622, 0x4130}, | ||
| 912 | {0x2624, 0x4382}, | ||
| 913 | {0x2626, 0x052C}, | ||
| 914 | {0x2628, 0x4F0D}, | ||
| 915 | {0x262A, 0x930D}, | ||
| 916 | {0x262C, 0x3402}, | ||
| 917 | {0x262E, 0xE33D}, | ||
| 918 | {0x2630, 0x531D}, | ||
| 919 | {0x2632, 0xF03D}, | ||
| 920 | {0x2634, 0x07F0}, | ||
| 921 | {0x2636, 0x4D0E}, | ||
| 922 | {0x2638, 0xC312}, | ||
| 923 | {0x263A, 0x100E}, | ||
| 924 | {0x263C, 0x110E}, | ||
| 925 | {0x263E, 0x110E}, | ||
| 926 | {0x2640, 0x110E}, | ||
| 927 | {0x2642, 0x930F}, | ||
| 928 | {0x2644, 0x3803}, | ||
| 929 | {0x2646, 0x4EC2}, | ||
| 930 | {0x2648, 0x052C}, | ||
| 931 | {0x264A, 0x3C04}, | ||
| 932 | {0x264C, 0x4EC2}, | ||
| 933 | {0x264E, 0x052D}, | ||
| 934 | {0x2650, 0xE33D}, | ||
| 935 | {0x2652, 0x531D}, | ||
| 936 | {0x2654, 0x4D0F}, | ||
| 937 | {0x2656, 0x4130}, | ||
| 938 | {0x2658, 0x1292}, | ||
| 939 | {0x265A, 0xD048}, | ||
| 940 | {0x265C, 0x93C2}, | ||
| 941 | {0x265E, 0x86EE}, | ||
| 942 | {0x2660, 0x200D}, | ||
| 943 | {0x2662, 0xB0F2}, | ||
| 944 | {0x2664, 0x0020}, | ||
| 945 | {0x2666, 0x0381}, | ||
| 946 | {0x2668, 0x2407}, | ||
| 947 | {0x266A, 0x9292}, | ||
| 948 | {0x266C, 0x8722}, | ||
| 949 | {0x266E, 0x0384}, | ||
| 950 | {0x2670, 0x2C03}, | ||
| 951 | {0x2672, 0xD3D2}, | ||
| 952 | {0x2674, 0x0649}, | ||
| 953 | {0x2676, 0x4130}, | ||
| 954 | {0x2678, 0xC3D2}, | ||
| 955 | {0x267A, 0x0649}, | ||
| 956 | {0x267C, 0x4130}, | ||
| 957 | {0x267E, 0x120B}, | ||
| 958 | {0x2680, 0x120A}, | ||
| 959 | {0x2682, 0x1209}, | ||
| 960 | {0x2684, 0x1208}, | ||
| 961 | {0x2686, 0x1207}, | ||
| 962 | {0x2688, 0x1206}, | ||
| 963 | {0x268A, 0x1205}, | ||
| 964 | {0x268C, 0x1204}, | ||
| 965 | {0x268E, 0x8231}, | ||
| 966 | {0x2690, 0x4F81}, | ||
| 967 | {0x2692, 0x0000}, | ||
| 968 | {0x2694, 0x4381}, | ||
| 969 | {0x2696, 0x0002}, | ||
| 970 | {0x2698, 0x4304}, | ||
| 971 | {0x269A, 0x411C}, | ||
| 972 | {0x269C, 0x0002}, | ||
| 973 | {0x269E, 0x5C0C}, | ||
| 974 | {0x26A0, 0x4C0F}, | ||
| 975 | {0x26A2, 0x5F0F}, | ||
| 976 | {0x26A4, 0x5F0F}, | ||
| 977 | {0x26A6, 0x5F0F}, | ||
| 978 | {0x26A8, 0x5F0F}, | ||
| 979 | {0x26AA, 0x5F0F}, | ||
| 980 | {0x26AC, 0x503F}, | ||
| 981 | {0x26AE, 0x1980}, | ||
| 982 | {0x26B0, 0x440D}, | ||
| 983 | {0x26B2, 0x5D0D}, | ||
| 984 | {0x26B4, 0x4D0E}, | ||
| 985 | {0x26B6, 0x5F0E}, | ||
| 986 | {0x26B8, 0x4E2E}, | ||
| 987 | {0x26BA, 0x4D05}, | ||
| 988 | {0x26BC, 0x5505}, | ||
| 989 | {0x26BE, 0x5F05}, | ||
| 990 | {0x26C0, 0x4516}, | ||
| 991 | {0x26C2, 0x0008}, | ||
| 992 | {0x26C4, 0x4517}, | ||
| 993 | {0x26C6, 0x000A}, | ||
| 994 | {0x26C8, 0x460A}, | ||
| 995 | {0x26CA, 0x470B}, | ||
| 996 | {0x26CC, 0xF30A}, | ||
| 997 | {0x26CE, 0xF32B}, | ||
| 998 | {0x26D0, 0x4A81}, | ||
| 999 | {0x26D2, 0x0004}, | ||
| 1000 | {0x26D4, 0x4B81}, | ||
| 1001 | {0x26D6, 0x0006}, | ||
| 1002 | {0x26D8, 0xB03E}, | ||
| 1003 | {0x26DA, 0x2000}, | ||
| 1004 | {0x26DC, 0x2404}, | ||
| 1005 | {0x26DE, 0xF03E}, | ||
| 1006 | {0x26E0, 0x1FFF}, | ||
| 1007 | {0x26E2, 0xE33E}, | ||
| 1008 | {0x26E4, 0x531E}, | ||
| 1009 | {0x26E6, 0xF317}, | ||
| 1010 | {0x26E8, 0x503E}, | ||
| 1011 | {0x26EA, 0x2000}, | ||
| 1012 | {0x26EC, 0x4E0F}, | ||
| 1013 | {0x26EE, 0x5F0F}, | ||
| 1014 | {0x26F0, 0x7F0F}, | ||
| 1015 | {0x26F2, 0xE33F}, | ||
| 1016 | {0x26F4, 0x512C}, | ||
| 1017 | {0x26F6, 0x4C28}, | ||
| 1018 | {0x26F8, 0x4309}, | ||
| 1019 | {0x26FA, 0x4E0A}, | ||
| 1020 | {0x26FC, 0x4F0B}, | ||
| 1021 | {0x26FE, 0x480C}, | ||
| 1022 | {0x2700, 0x490D}, | ||
| 1023 | {0x2702, 0x1202}, | ||
| 1024 | {0x2704, 0xC232}, | ||
| 1025 | {0x2706, 0x12B0}, | ||
| 1026 | {0x2708, 0xFFC0}, | ||
| 1027 | {0x270A, 0x4132}, | ||
| 1028 | {0x270C, 0x108E}, | ||
| 1029 | {0x270E, 0x108F}, | ||
| 1030 | {0x2710, 0xEF4E}, | ||
| 1031 | {0x2712, 0xEF0E}, | ||
| 1032 | {0x2714, 0xF37F}, | ||
| 1033 | {0x2716, 0xC312}, | ||
| 1034 | {0x2718, 0x100F}, | ||
| 1035 | {0x271A, 0x100E}, | ||
| 1036 | {0x271C, 0x4E85}, | ||
| 1037 | {0x271E, 0x0018}, | ||
| 1038 | {0x2720, 0x4F85}, | ||
| 1039 | {0x2722, 0x001A}, | ||
| 1040 | {0x2724, 0x480A}, | ||
| 1041 | {0x2726, 0x490B}, | ||
| 1042 | {0x2728, 0x460C}, | ||
| 1043 | {0x272A, 0x470D}, | ||
| 1044 | {0x272C, 0x1202}, | ||
| 1045 | {0x272E, 0xC232}, | ||
| 1046 | {0x2730, 0x12B0}, | ||
| 1047 | {0x2732, 0xFFC0}, | ||
| 1048 | {0x2734, 0x4132}, | ||
| 1049 | {0x2736, 0x4E0C}, | ||
| 1050 | {0x2738, 0x4F0D}, | ||
| 1051 | {0x273A, 0x108C}, | ||
| 1052 | {0x273C, 0x108D}, | ||
| 1053 | {0x273E, 0xED4C}, | ||
| 1054 | {0x2740, 0xED0C}, | ||
| 1055 | {0x2742, 0xF37D}, | ||
| 1056 | {0x2744, 0xC312}, | ||
| 1057 | {0x2746, 0x100D}, | ||
| 1058 | {0x2748, 0x100C}, | ||
| 1059 | {0x274A, 0x411E}, | ||
| 1060 | {0x274C, 0x0004}, | ||
| 1061 | {0x274E, 0x411F}, | ||
| 1062 | {0x2750, 0x0006}, | ||
| 1063 | {0x2752, 0x5E0E}, | ||
| 1064 | {0x2754, 0x6F0F}, | ||
| 1065 | {0x2756, 0x5E0E}, | ||
| 1066 | {0x2758, 0x6F0F}, | ||
| 1067 | {0x275A, 0x5E0E}, | ||
| 1068 | {0x275C, 0x6F0F}, | ||
| 1069 | {0x275E, 0xDE0C}, | ||
| 1070 | {0x2760, 0xDF0D}, | ||
| 1071 | {0x2762, 0x4C85}, | ||
| 1072 | {0x2764, 0x002C}, | ||
| 1073 | {0x2766, 0x4D85}, | ||
| 1074 | {0x2768, 0x002E}, | ||
| 1075 | {0x276A, 0x5314}, | ||
| 1076 | {0x276C, 0x9224}, | ||
| 1077 | {0x276E, 0x2B95}, | ||
| 1078 | {0x2770, 0x5391}, | ||
| 1079 | {0x2772, 0x0002}, | ||
| 1080 | {0x2774, 0x92A1}, | ||
| 1081 | {0x2776, 0x0002}, | ||
| 1082 | {0x2778, 0x2B8F}, | ||
| 1083 | {0x277A, 0x5231}, | ||
| 1084 | {0x277C, 0x4134}, | ||
| 1085 | {0x277E, 0x4135}, | ||
| 1086 | {0x2780, 0x4136}, | ||
| 1087 | {0x2782, 0x4137}, | ||
| 1088 | {0x2784, 0x4138}, | ||
| 1089 | {0x2786, 0x4139}, | ||
| 1090 | {0x2788, 0x413A}, | ||
| 1091 | {0x278A, 0x413B}, | ||
| 1092 | {0x278C, 0x4130}, | ||
| 1093 | {0x278E, 0x120B}, | ||
| 1094 | {0x2790, 0x120A}, | ||
| 1095 | {0x2792, 0x1209}, | ||
| 1096 | {0x2794, 0x8031}, | ||
| 1097 | {0x2796, 0x000C}, | ||
| 1098 | {0x2798, 0x425F}, | ||
| 1099 | {0x279A, 0x0205}, | ||
| 1100 | {0x279C, 0xC312}, | ||
| 1101 | {0x279E, 0x104F}, | ||
| 1102 | {0x27A0, 0x114F}, | ||
| 1103 | {0x27A2, 0x114F}, | ||
| 1104 | {0x27A4, 0x114F}, | ||
| 1105 | {0x27A6, 0x114F}, | ||
| 1106 | {0x27A8, 0x114F}, | ||
| 1107 | {0x27AA, 0xF37F}, | ||
| 1108 | {0x27AC, 0x4F0B}, | ||
| 1109 | {0x27AE, 0xF31B}, | ||
| 1110 | {0x27B0, 0x5B0B}, | ||
| 1111 | {0x27B2, 0x5B0B}, | ||
| 1112 | {0x27B4, 0x5B0B}, | ||
| 1113 | {0x27B6, 0x503B}, | ||
| 1114 | {0x27B8, 0xD194}, | ||
| 1115 | {0x27BA, 0x4219}, | ||
| 1116 | {0x27BC, 0x0508}, | ||
| 1117 | {0x27BE, 0xF039}, | ||
| 1118 | {0x27C0, 0x2000}, | ||
| 1119 | {0x27C2, 0x4F0A}, | ||
| 1120 | {0x27C4, 0xC312}, | ||
| 1121 | {0x27C6, 0x100A}, | ||
| 1122 | {0x27C8, 0xE31A}, | ||
| 1123 | {0x27CA, 0x421F}, | ||
| 1124 | {0x27CC, 0x87DE}, | ||
| 1125 | {0x27CE, 0x503F}, | ||
| 1126 | {0x27D0, 0xFF60}, | ||
| 1127 | {0x27D2, 0x903F}, | ||
| 1128 | {0x27D4, 0x00C8}, | ||
| 1129 | {0x27D6, 0x2C02}, | ||
| 1130 | {0x27D8, 0x403F}, | ||
| 1131 | {0x27DA, 0x00C8}, | ||
| 1132 | {0x27DC, 0x4F82}, | ||
| 1133 | {0x27DE, 0x7322}, | ||
| 1134 | {0x27E0, 0xB3D2}, | ||
| 1135 | {0x27E2, 0x0381}, | ||
| 1136 | {0x27E4, 0x2009}, | ||
| 1137 | {0x27E6, 0x421F}, | ||
| 1138 | {0x27E8, 0x86F0}, | ||
| 1139 | {0x27EA, 0xD21F}, | ||
| 1140 | {0x27EC, 0x86EE}, | ||
| 1141 | {0x27EE, 0x930F}, | ||
| 1142 | {0x27F0, 0x24B9}, | ||
| 1143 | {0x27F2, 0x40F2}, | ||
| 1144 | {0x27F4, 0xFF80}, | ||
| 1145 | {0x27F6, 0x0619}, | ||
| 1146 | {0x27F8, 0x1292}, | ||
| 1147 | {0x27FA, 0xD00A}, | ||
| 1148 | {0x27FC, 0xB3D2}, | ||
| 1149 | {0x27FE, 0x0385}, | ||
| 1150 | {0x2800, 0x2405}, | ||
| 1151 | {0x2802, 0x421F}, | ||
| 1152 | {0x2804, 0x880A}, | ||
| 1153 | {0x2806, 0x4F92}, | ||
| 1154 | {0x2808, 0x0002}, | ||
| 1155 | {0x280A, 0x8714}, | ||
| 1156 | {0x280C, 0x430D}, | ||
| 1157 | {0x280E, 0x93C2}, | ||
| 1158 | {0x2810, 0x87D0}, | ||
| 1159 | {0x2812, 0x2003}, | ||
| 1160 | {0x2814, 0xB2F2}, | ||
| 1161 | {0x2816, 0x0360}, | ||
| 1162 | {0x2818, 0x2001}, | ||
| 1163 | {0x281A, 0x431D}, | ||
| 1164 | {0x281C, 0x425F}, | ||
| 1165 | {0x281E, 0x87D3}, | ||
| 1166 | {0x2820, 0xD25F}, | ||
| 1167 | {0x2822, 0x87D2}, | ||
| 1168 | {0x2824, 0xF37F}, | ||
| 1169 | {0x2826, 0x5F0F}, | ||
| 1170 | {0x2828, 0x425E}, | ||
| 1171 | {0x282A, 0x87CD}, | ||
| 1172 | {0x282C, 0xDE0F}, | ||
| 1173 | {0x282E, 0x5F0F}, | ||
| 1174 | {0x2830, 0x5B0F}, | ||
| 1175 | {0x2832, 0x4FA2}, | ||
| 1176 | {0x2834, 0x0402}, | ||
| 1177 | {0x2836, 0x930D}, | ||
| 1178 | {0x2838, 0x2007}, | ||
| 1179 | {0x283A, 0x930A}, | ||
| 1180 | {0x283C, 0x248E}, | ||
| 1181 | {0x283E, 0x4F5F}, | ||
| 1182 | {0x2840, 0x0001}, | ||
| 1183 | {0x2842, 0xF37F}, | ||
| 1184 | {0x2844, 0x4FC2}, | ||
| 1185 | {0x2846, 0x0403}, | ||
| 1186 | {0x2848, 0x93C2}, | ||
| 1187 | {0x284A, 0x87CD}, | ||
| 1188 | {0x284C, 0x2483}, | ||
| 1189 | {0x284E, 0xC2F2}, | ||
| 1190 | {0x2850, 0x0400}, | ||
| 1191 | {0x2852, 0xB2E2}, | ||
| 1192 | {0x2854, 0x0265}, | ||
| 1193 | {0x2856, 0x2407}, | ||
| 1194 | {0x2858, 0x421F}, | ||
| 1195 | {0x285A, 0x0508}, | ||
| 1196 | {0x285C, 0xF03F}, | ||
| 1197 | {0x285E, 0xFFDF}, | ||
| 1198 | {0x2860, 0xD90F}, | ||
| 1199 | {0x2862, 0x4F82}, | ||
| 1200 | {0x2864, 0x0508}, | ||
| 1201 | {0x2866, 0xB3D2}, | ||
| 1202 | {0x2868, 0x0383}, | ||
| 1203 | {0x286A, 0x2484}, | ||
| 1204 | {0x286C, 0x403F}, | ||
| 1205 | {0x286E, 0x0508}, | ||
| 1206 | {0x2870, 0x4FB1}, | ||
| 1207 | {0x2872, 0x0000}, | ||
| 1208 | {0x2874, 0x4FB1}, | ||
| 1209 | {0x2876, 0x0002}, | ||
| 1210 | {0x2878, 0x4FB1}, | ||
| 1211 | {0x287A, 0x0004}, | ||
| 1212 | {0x287C, 0x403F}, | ||
| 1213 | {0x287E, 0x0500}, | ||
| 1214 | {0x2880, 0x4FB1}, | ||
| 1215 | {0x2882, 0x0006}, | ||
| 1216 | {0x2884, 0x4FB1}, | ||
| 1217 | {0x2886, 0x0008}, | ||
| 1218 | {0x2888, 0x4FB1}, | ||
| 1219 | {0x288A, 0x000A}, | ||
| 1220 | {0x288C, 0xB3E2}, | ||
| 1221 | {0x288E, 0x0383}, | ||
| 1222 | {0x2890, 0x2412}, | ||
| 1223 | {0x2892, 0xC2E1}, | ||
| 1224 | {0x2894, 0x0002}, | ||
| 1225 | {0x2896, 0xB2E2}, | ||
| 1226 | {0x2898, 0x0383}, | ||
| 1227 | {0x289A, 0x434F}, | ||
| 1228 | {0x289C, 0x634F}, | ||
| 1229 | {0x289E, 0xF37F}, | ||
| 1230 | {0x28A0, 0x4F4E}, | ||
| 1231 | {0x28A2, 0x114E}, | ||
| 1232 | {0x28A4, 0x434E}, | ||
| 1233 | {0x28A6, 0x104E}, | ||
| 1234 | {0x28A8, 0x415F}, | ||
| 1235 | {0x28AA, 0x0007}, | ||
| 1236 | {0x28AC, 0xF07F}, | ||
| 1237 | {0x28AE, 0x007F}, | ||
| 1238 | {0x28B0, 0xDE4F}, | ||
| 1239 | {0x28B2, 0x4FC1}, | ||
| 1240 | {0x28B4, 0x0007}, | ||
| 1241 | {0x28B6, 0xB2F2}, | ||
| 1242 | {0x28B8, 0x0383}, | ||
| 1243 | {0x28BA, 0x2415}, | ||
| 1244 | {0x28BC, 0xF0F1}, | ||
| 1245 | {0x28BE, 0xFFBF}, | ||
| 1246 | {0x28C0, 0x0000}, | ||
| 1247 | {0x28C2, 0xB0F2}, | ||
| 1248 | {0x28C4, 0x0010}, | ||
| 1249 | {0x28C6, 0x0383}, | ||
| 1250 | {0x28C8, 0x434E}, | ||
| 1251 | {0x28CA, 0x634E}, | ||
| 1252 | {0x28CC, 0x5E4E}, | ||
| 1253 | {0x28CE, 0x5E4E}, | ||
| 1254 | {0x28D0, 0x5E4E}, | ||
| 1255 | {0x28D2, 0x5E4E}, | ||
| 1256 | {0x28D4, 0x5E4E}, | ||
| 1257 | {0x28D6, 0x5E4E}, | ||
| 1258 | {0x28D8, 0x415F}, | ||
| 1259 | {0x28DA, 0x0006}, | ||
| 1260 | {0x28DC, 0xF07F}, | ||
| 1261 | {0x28DE, 0xFFBF}, | ||
| 1262 | {0x28E0, 0xDE4F}, | ||
| 1263 | {0x28E2, 0x4FC1}, | ||
| 1264 | {0x28E4, 0x0006}, | ||
| 1265 | {0x28E6, 0xB0F2}, | ||
| 1266 | {0x28E8, 0x0020}, | ||
| 1267 | {0x28EA, 0x0383}, | ||
| 1268 | {0x28EC, 0x2410}, | ||
| 1269 | {0x28EE, 0xF0F1}, | ||
| 1270 | {0x28F0, 0xFFDF}, | ||
| 1271 | {0x28F2, 0x0002}, | ||
| 1272 | {0x28F4, 0xB0F2}, | ||
| 1273 | {0x28F6, 0x0040}, | ||
| 1274 | {0x28F8, 0x0383}, | ||
| 1275 | {0x28FA, 0x434E}, | ||
| 1276 | {0x28FC, 0x634E}, | ||
| 1277 | {0x28FE, 0x5E4E}, | ||
| 1278 | {0x2900, 0x5E4E}, | ||
| 1279 | {0x2902, 0x415F}, | ||
| 1280 | {0x2904, 0x0008}, | ||
| 1281 | {0x2906, 0xC26F}, | ||
| 1282 | {0x2908, 0xDE4F}, | ||
| 1283 | {0x290A, 0x4FC1}, | ||
| 1284 | {0x290C, 0x0008}, | ||
| 1285 | {0x290E, 0x93C2}, | ||
| 1286 | {0x2910, 0x0383}, | ||
| 1287 | {0x2912, 0x3412}, | ||
| 1288 | {0x2914, 0xF0F1}, | ||
| 1289 | {0x2916, 0xFFDF}, | ||
| 1290 | {0x2918, 0x0000}, | ||
| 1291 | {0x291A, 0x425E}, | ||
| 1292 | {0x291C, 0x0382}, | ||
| 1293 | {0x291E, 0xF35E}, | ||
| 1294 | {0x2920, 0x5E4E}, | ||
| 1295 | {0x2922, 0x5E4E}, | ||
| 1296 | {0x2924, 0x5E4E}, | ||
| 1297 | {0x2926, 0x5E4E}, | ||
| 1298 | {0x2928, 0x5E4E}, | ||
| 1299 | {0x292A, 0x415F}, | ||
| 1300 | {0x292C, 0x0006}, | ||
| 1301 | {0x292E, 0xF07F}, | ||
| 1302 | {0x2930, 0xFFDF}, | ||
| 1303 | {0x2932, 0xDE4F}, | ||
| 1304 | {0x2934, 0x4FC1}, | ||
| 1305 | {0x2936, 0x0006}, | ||
| 1306 | {0x2938, 0x410F}, | ||
| 1307 | {0x293A, 0x4FB2}, | ||
| 1308 | {0x293C, 0x0508}, | ||
| 1309 | {0x293E, 0x4FB2}, | ||
| 1310 | {0x2940, 0x050A}, | ||
| 1311 | {0x2942, 0x4FB2}, | ||
| 1312 | {0x2944, 0x050C}, | ||
| 1313 | {0x2946, 0x4FB2}, | ||
| 1314 | {0x2948, 0x0500}, | ||
| 1315 | {0x294A, 0x4FB2}, | ||
| 1316 | {0x294C, 0x0502}, | ||
| 1317 | {0x294E, 0x4FB2}, | ||
| 1318 | {0x2950, 0x0504}, | ||
| 1319 | {0x2952, 0x3C10}, | ||
| 1320 | {0x2954, 0xD2F2}, | ||
| 1321 | {0x2956, 0x0400}, | ||
| 1322 | {0x2958, 0x3F7C}, | ||
| 1323 | {0x295A, 0x4F6F}, | ||
| 1324 | {0x295C, 0xF37F}, | ||
| 1325 | {0x295E, 0x4FC2}, | ||
| 1326 | {0x2960, 0x0402}, | ||
| 1327 | {0x2962, 0x3F72}, | ||
| 1328 | {0x2964, 0x90F2}, | ||
| 1329 | {0x2966, 0x0011}, | ||
| 1330 | {0x2968, 0x0619}, | ||
| 1331 | {0x296A, 0x2B46}, | ||
| 1332 | {0x296C, 0x50F2}, | ||
| 1333 | {0x296E, 0xFFF0}, | ||
| 1334 | {0x2970, 0x0619}, | ||
| 1335 | {0x2972, 0x3F42}, | ||
| 1336 | {0x2974, 0x5031}, | ||
| 1337 | {0x2976, 0x000C}, | ||
| 1338 | {0x2978, 0x4139}, | ||
| 1339 | {0x297A, 0x413A}, | ||
| 1340 | {0x297C, 0x413B}, | ||
| 1341 | {0x297E, 0x4130}, | ||
| 1342 | {0x2980, 0x0900}, | ||
| 1343 | {0x2982, 0x7312}, | ||
| 1344 | {0x2984, 0x421F}, | ||
| 1345 | {0x2986, 0x0A08}, | ||
| 1346 | {0x2988, 0xF03F}, | ||
| 1347 | {0x298A, 0xF7FF}, | ||
| 1348 | {0x298C, 0x4F82}, | ||
| 1349 | {0x298E, 0x0A88}, | ||
| 1350 | {0x2990, 0x0900}, | ||
| 1351 | {0x2992, 0x7312}, | ||
| 1352 | {0x2994, 0x421F}, | ||
| 1353 | {0x2996, 0x0A0E}, | ||
| 1354 | {0x2998, 0xF03F}, | ||
| 1355 | {0x299A, 0x7FFF}, | ||
| 1356 | {0x299C, 0x4F82}, | ||
| 1357 | {0x299E, 0x0A8E}, | ||
| 1358 | {0x29A0, 0x0900}, | ||
| 1359 | {0x29A2, 0x7312}, | ||
| 1360 | {0x29A4, 0x421F}, | ||
| 1361 | {0x29A6, 0x0A1E}, | ||
| 1362 | {0x29A8, 0xC31F}, | ||
| 1363 | {0x29AA, 0x4F82}, | ||
| 1364 | {0x29AC, 0x0A9E}, | ||
| 1365 | {0x29AE, 0x4130}, | ||
| 1366 | {0x29B0, 0x4292}, | ||
| 1367 | {0x29B2, 0x0A08}, | ||
| 1368 | {0x29B4, 0x0A88}, | ||
| 1369 | {0x29B6, 0x0900}, | ||
| 1370 | {0x29B8, 0x7312}, | ||
| 1371 | {0x29BA, 0x4292}, | ||
| 1372 | {0x29BC, 0x0A0E}, | ||
| 1373 | {0x29BE, 0x0A8E}, | ||
| 1374 | {0x29C0, 0x0900}, | ||
| 1375 | {0x29C2, 0x7312}, | ||
| 1376 | {0x29C4, 0x4292}, | ||
| 1377 | {0x29C6, 0x0A1E}, | ||
| 1378 | {0x29C8, 0x0A9E}, | ||
| 1379 | {0x29CA, 0x4130}, | ||
| 1380 | {0x29CC, 0x7400}, | ||
| 1381 | {0x29CE, 0x8058}, | ||
| 1382 | {0x29D0, 0x1807}, | ||
| 1383 | {0x29D2, 0x00E0}, | ||
| 1384 | {0x29D4, 0x7002}, | ||
| 1385 | {0x29D6, 0x17C7}, | ||
| 1386 | {0x29D8, 0x0045}, | ||
| 1387 | {0x29DA, 0x0006}, | ||
| 1388 | {0x29DC, 0x17CC}, | ||
| 1389 | {0x29DE, 0x0015}, | ||
| 1390 | {0x29E0, 0x1512}, | ||
| 1391 | {0x29E2, 0x216F}, | ||
| 1392 | {0x29E4, 0x005B}, | ||
| 1393 | {0x29E6, 0x005D}, | ||
| 1394 | {0x29E8, 0x00DE}, | ||
| 1395 | {0x29EA, 0x00DD}, | ||
| 1396 | {0x29EC, 0x5023}, | ||
| 1397 | {0x29EE, 0x00DE}, | ||
| 1398 | {0x29F0, 0x005B}, | ||
| 1399 | {0x29F2, 0x0410}, | ||
| 1400 | {0x29F4, 0x0091}, | ||
| 1401 | {0x29F6, 0x0015}, | ||
| 1402 | {0x29F8, 0x0040}, | ||
| 1403 | {0x29FA, 0x7023}, | ||
| 1404 | {0x29FC, 0x1653}, | ||
| 1405 | {0x29FE, 0x0156}, | ||
| 1406 | {0x2A00, 0x0001}, | ||
| 1407 | {0x2A02, 0x2081}, | ||
| 1408 | {0x2A04, 0x7020}, | ||
| 1409 | {0x2A06, 0x2F99}, | ||
| 1410 | {0x2A08, 0x005C}, | ||
| 1411 | {0x2A0A, 0x0000}, | ||
| 1412 | {0x2A0C, 0x5040}, | ||
| 1413 | {0x2A0E, 0x0045}, | ||
| 1414 | {0x2A10, 0x213A}, | ||
| 1415 | {0x2A12, 0x0303}, | ||
| 1416 | {0x2A14, 0x0148}, | ||
| 1417 | {0x2A16, 0x0049}, | ||
| 1418 | {0x2A18, 0x0045}, | ||
| 1419 | {0x2A1A, 0x0046}, | ||
| 1420 | {0x2A1C, 0x05DD}, | ||
| 1421 | {0x2A1E, 0x00DE}, | ||
| 1422 | {0x2A20, 0x00DD}, | ||
| 1423 | {0x2A22, 0x00DC}, | ||
| 1424 | {0x2A24, 0x00DE}, | ||
| 1425 | {0x2A26, 0x04D6}, | ||
| 1426 | {0x2A28, 0x2014}, | ||
| 1427 | {0x2A2A, 0x2081}, | ||
| 1428 | {0x2A2C, 0x7087}, | ||
| 1429 | {0x2A2E, 0x2F99}, | ||
| 1430 | {0x2A30, 0x005C}, | ||
| 1431 | {0x2A32, 0x0002}, | ||
| 1432 | {0x2A34, 0x5060}, | ||
| 1433 | {0x2A36, 0x31C0}, | ||
| 1434 | {0x2A38, 0x2122}, | ||
| 1435 | {0x2A3A, 0x7800}, | ||
| 1436 | {0x2A3C, 0xC08C}, | ||
| 1437 | {0x2A3E, 0x0001}, | ||
| 1438 | {0x2A40, 0x9038}, | ||
| 1439 | {0x2A42, 0x59F7}, | ||
| 1440 | {0x2A44, 0x907A}, | ||
| 1441 | {0x2A46, 0x03D8}, | ||
| 1442 | {0x2A48, 0x8D90}, | ||
| 1443 | {0x2A4A, 0x01C0}, | ||
| 1444 | {0x2A4C, 0x7400}, | ||
| 1445 | {0x2A4E, 0x8058}, | ||
| 1446 | {0x2A50, 0x1807}, | ||
| 1447 | {0x2A52, 0x00E0}, | ||
| 1448 | {0x2A54, 0x7002}, | ||
| 1449 | {0x2A56, 0x17C7}, | ||
| 1450 | {0x2A58, 0x0045}, | ||
| 1451 | {0x2A5A, 0x0006}, | ||
| 1452 | {0x2A5C, 0x17CC}, | ||
| 1453 | {0x2A5E, 0x0015}, | ||
| 1454 | {0x2A60, 0x1512}, | ||
| 1455 | {0x2A62, 0x216F}, | ||
| 1456 | {0x2A64, 0x005B}, | ||
| 1457 | {0x2A66, 0x005D}, | ||
| 1458 | {0x2A68, 0x00DE}, | ||
| 1459 | {0x2A6A, 0x00DD}, | ||
| 1460 | {0x2A6C, 0x5023}, | ||
| 1461 | {0x2A6E, 0x00DE}, | ||
| 1462 | {0x2A70, 0x005B}, | ||
| 1463 | {0x2A72, 0x0410}, | ||
| 1464 | {0x2A74, 0x0091}, | ||
| 1465 | {0x2A76, 0x0015}, | ||
| 1466 | {0x2A78, 0x0040}, | ||
| 1467 | {0x2A7A, 0x7023}, | ||
| 1468 | {0x2A7C, 0x1653}, | ||
| 1469 | {0x2A7E, 0x0156}, | ||
| 1470 | {0x2A80, 0x0001}, | ||
| 1471 | {0x2A82, 0x2081}, | ||
| 1472 | {0x2A84, 0x7020}, | ||
| 1473 | {0x2A86, 0x2F99}, | ||
| 1474 | {0x2A88, 0x005C}, | ||
| 1475 | {0x2A8A, 0x0000}, | ||
| 1476 | {0x2A8C, 0x5040}, | ||
| 1477 | {0x2A8E, 0x0045}, | ||
| 1478 | {0x2A90, 0x213A}, | ||
| 1479 | {0x2A92, 0x0303}, | ||
| 1480 | {0x2A94, 0x0148}, | ||
| 1481 | {0x2A96, 0x0049}, | ||
| 1482 | {0x2A98, 0x0045}, | ||
| 1483 | {0x2A9A, 0x0046}, | ||
| 1484 | {0x2A9C, 0x05DD}, | ||
| 1485 | {0x2A9E, 0x00DE}, | ||
| 1486 | {0x2AA0, 0x00DD}, | ||
| 1487 | {0x2AA2, 0x00DC}, | ||
| 1488 | {0x2AA4, 0x00DE}, | ||
| 1489 | {0x2AA6, 0x0296}, | ||
| 1490 | {0x2AA8, 0x2014}, | ||
| 1491 | {0x2AAA, 0x2081}, | ||
| 1492 | {0x2AAC, 0x7087}, | ||
| 1493 | {0x2AAE, 0x2F99}, | ||
| 1494 | {0x2AB0, 0x005C}, | ||
| 1495 | {0x2AB2, 0x0002}, | ||
| 1496 | {0x2AB4, 0x5060}, | ||
| 1497 | {0x2AB6, 0x31C0}, | ||
| 1498 | {0x2AB8, 0x2122}, | ||
| 1499 | {0x2ABA, 0x7800}, | ||
| 1500 | {0x2ABC, 0xC08C}, | ||
| 1501 | {0x2ABE, 0x0001}, | ||
| 1502 | {0x2AC0, 0x9038}, | ||
| 1503 | {0x2AC2, 0x59F7}, | ||
| 1504 | {0x2AC4, 0x907A}, | ||
| 1505 | {0x2AC6, 0x03D8}, | ||
| 1506 | {0x2AC8, 0x8D90}, | ||
| 1507 | {0x2ACA, 0x01C0}, | ||
| 1508 | {0x2ACC, 0x7400}, | ||
| 1509 | {0x2ACE, 0x2002}, | ||
| 1510 | {0x2AD0, 0x70DF}, | ||
| 1511 | {0x2AD2, 0x2F21}, | ||
| 1512 | {0x2AD4, 0x04C1}, | ||
| 1513 | {0x2AD6, 0x0D80}, | ||
| 1514 | {0x2AD8, 0x7800}, | ||
| 1515 | {0x2ADA, 0x0041}, | ||
| 1516 | {0x2ADC, 0x7400}, | ||
| 1517 | {0x2ADE, 0x2004}, | ||
| 1518 | {0x2AE0, 0x70DF}, | ||
| 1519 | {0x2AE2, 0x2F21}, | ||
| 1520 | {0x2AE4, 0x04C2}, | ||
| 1521 | {0x2AE6, 0x0D80}, | ||
| 1522 | {0x2AE8, 0x7800}, | ||
| 1523 | {0x2AEA, 0x7400}, | ||
| 1524 | {0x2AEC, 0x2008}, | ||
| 1525 | {0x2AEE, 0x70DF}, | ||
| 1526 | {0x2AF0, 0x2F21}, | ||
| 1527 | {0x2AF2, 0x04C3}, | ||
| 1528 | {0x2AF4, 0x0D80}, | ||
| 1529 | {0x2AF6, 0x7800}, | ||
| 1530 | {0x2AF8, 0x7400}, | ||
| 1531 | {0x2AFA, 0x0004}, | ||
| 1532 | {0x2AFC, 0x70DF}, | ||
| 1533 | {0x2AFE, 0x2F22}, | ||
| 1534 | {0x2B00, 0x7008}, | ||
| 1535 | {0x2B02, 0x2F1F}, | ||
| 1536 | {0x2B04, 0x7021}, | ||
| 1537 | {0x2B06, 0x2F01}, | ||
| 1538 | {0x2B08, 0x7800}, | ||
| 1539 | {0x2B0A, 0x7400}, | ||
| 1540 | {0x2B0C, 0x0002}, | ||
| 1541 | {0x2B0E, 0x70DF}, | ||
| 1542 | {0x2B10, 0x3F5F}, | ||
| 1543 | {0x2B12, 0x703A}, | ||
| 1544 | {0x2B14, 0x2F01}, | ||
| 1545 | {0x2B16, 0x7800}, | ||
| 1546 | {0x2B18, 0x7400}, | ||
| 1547 | {0x2B1A, 0x2010}, | ||
| 1548 | {0x2B1C, 0x70DF}, | ||
| 1549 | {0x2B1E, 0x3F40}, | ||
| 1550 | {0x2B20, 0x700A}, | ||
| 1551 | {0x2B22, 0x0FC0}, | ||
| 1552 | {0x2B24, 0x7800}, | ||
| 1553 | {0x2B26, 0x7400}, | ||
| 1554 | {0x2B28, 0x2004}, | ||
| 1555 | {0x2B2A, 0x70DF}, | ||
| 1556 | {0x2B2C, 0x2F21}, | ||
| 1557 | {0x2B2E, 0x04C2}, | ||
| 1558 | {0x2B30, 0x0D80}, | ||
| 1559 | {0x2B32, 0x7800}, | ||
| 1560 | {0x2B34, 0x0041}, | ||
| 1561 | {0x2B36, 0x7400}, | ||
| 1562 | {0x2B38, 0x2002}, | ||
| 1563 | {0x2B3A, 0x70DF}, | ||
| 1564 | {0x2B3C, 0x2F22}, | ||
| 1565 | {0x2B3E, 0x04C1}, | ||
| 1566 | {0x2B40, 0x0D80}, | ||
| 1567 | {0x2B42, 0x7800}, | ||
| 1568 | {0x2B44, 0x7400}, | ||
| 1569 | {0x2B46, 0x0001}, | ||
| 1570 | {0x2B48, 0x70DF}, | ||
| 1571 | {0x2B4A, 0x3F5F}, | ||
| 1572 | {0x2B4C, 0x703A}, | ||
| 1573 | {0x2B4E, 0x2F01}, | ||
| 1574 | {0x2B50, 0x7800}, | ||
| 1575 | {0x2B52, 0x7400}, | ||
| 1576 | {0x2B54, 0x200A}, | ||
| 1577 | {0x2B56, 0x70DF}, | ||
| 1578 | {0x2B58, 0x3F40}, | ||
| 1579 | {0x2B5A, 0x700A}, | ||
| 1580 | {0x2B5C, 0x0FC0}, | ||
| 1581 | {0x2B5E, 0x7800}, | ||
| 1582 | {0x2B60, 0x7400}, | ||
| 1583 | {0x2B62, 0x2015}, | ||
| 1584 | {0x2B64, 0x70DF}, | ||
| 1585 | {0x2B66, 0x3F5F}, | ||
| 1586 | {0x2B68, 0x703A}, | ||
| 1587 | {0x2B6A, 0x2F01}, | ||
| 1588 | {0x2B6C, 0x7800}, | ||
| 1589 | {0x2B6E, 0x7400}, | ||
| 1590 | {0x2B70, 0x7800}, | ||
| 1591 | {0x2B72, 0x007F}, | ||
| 1592 | {0x2B74, 0x0000}, | ||
| 1593 | {0x2B76, 0xB9CC}, | ||
| 1594 | {0x2B78, 0x0000}, | ||
| 1595 | {0x2B7A, 0xB9CC}, | ||
| 1596 | {0x2B7C, 0xBA3C}, | ||
| 1597 | {0x2B7E, 0x0002}, | ||
| 1598 | {0x2B80, 0x0000}, | ||
| 1599 | {0x2B82, 0xBA4C}, | ||
| 1600 | {0x2B84, 0x0000}, | ||
| 1601 | {0x2B86, 0xBA4C}, | ||
| 1602 | {0x2B88, 0xBABC}, | ||
| 1603 | {0x2B8A, 0x0002}, | ||
| 1604 | {0x2B8C, 0x0063}, | ||
| 1605 | {0x2B8E, 0xBB26}, | ||
| 1606 | {0x2B90, 0x0063}, | ||
| 1607 | {0x2B92, 0xBB36}, | ||
| 1608 | {0x2B94, 0x0063}, | ||
| 1609 | {0x2B96, 0xBAEA}, | ||
| 1610 | {0x2B98, 0x0063}, | ||
| 1611 | {0x2B9A, 0xBAF8}, | ||
| 1612 | {0x2B9C, 0xBADA}, | ||
| 1613 | {0x2B9E, 0x0004}, | ||
| 1614 | {0x2BA0, 0x0063}, | ||
| 1615 | {0x2BA2, 0xBAEA}, | ||
| 1616 | {0x2BA4, 0x0063}, | ||
| 1617 | {0x2BA6, 0xBB18}, | ||
| 1618 | {0x2BA8, 0x0063}, | ||
| 1619 | {0x2BAA, 0xBB26}, | ||
| 1620 | {0x2BAC, 0x0063}, | ||
| 1621 | {0x2BAE, 0xBB44}, | ||
| 1622 | {0x2BB0, 0xBADA}, | ||
| 1623 | {0x2BB2, 0x0004}, | ||
| 1624 | {0x2BB4, 0x0063}, | ||
| 1625 | {0x2BB6, 0xBACC}, | ||
| 1626 | {0x2BB8, 0x0063}, | ||
| 1627 | {0x2BBA, 0xBADC}, | ||
| 1628 | {0x2BBC, 0x0063}, | ||
| 1629 | {0x2BBE, 0xBAEA}, | ||
| 1630 | {0x2BC0, 0x0063}, | ||
| 1631 | {0x2BC2, 0xBAF8}, | ||
| 1632 | {0x2BC4, 0xBADA}, | ||
| 1633 | {0x2BC6, 0x0004}, | ||
| 1634 | {0x2BC8, 0x0063}, | ||
| 1635 | {0x2BCA, 0xBAEA}, | ||
| 1636 | {0x2BCC, 0x0063}, | ||
| 1637 | {0x2BCE, 0xBB18}, | ||
| 1638 | {0x2BD0, 0x0063}, | ||
| 1639 | {0x2BD2, 0xBACC}, | ||
| 1640 | {0x2BD4, 0x0063}, | ||
| 1641 | {0x2BD6, 0xBB0A}, | ||
| 1642 | {0x2BD8, 0xBADA}, | ||
| 1643 | {0x2BDA, 0x0004}, | ||
| 1644 | {0x2BDC, 0x0063}, | ||
| 1645 | {0x2BDE, 0xBACC}, | ||
| 1646 | {0x2BE0, 0x0063}, | ||
| 1647 | {0x2BE2, 0xBADC}, | ||
| 1648 | {0x2BE4, 0x0063}, | ||
| 1649 | {0x2BE6, 0xBAEA}, | ||
| 1650 | {0x2BE8, 0x0063}, | ||
| 1651 | {0x2BEA, 0xBB18}, | ||
| 1652 | {0x2BEC, 0xBADA}, | ||
| 1653 | {0x2BEE, 0x0004}, | ||
| 1654 | {0x2BF0, 0xFFFF}, | ||
| 1655 | {0x2BF2, 0xBB6E}, | ||
| 1656 | {0x2BF4, 0x0000}, | ||
| 1657 | {0x2BF6, 0x0000}, | ||
| 1658 | {0x2BF8, 0x0000}, | ||
| 1659 | {0x2BFA, 0x0000}, | ||
| 1660 | {0x2BFC, 0x0000}, | ||
| 1661 | {0x2BFE, 0x0000}, | ||
| 1662 | {0x2C00, 0xBB72}, | ||
| 1663 | {0x2C02, 0x0001}, | ||
| 1664 | {0x2C04, 0x0063}, | ||
| 1665 | {0x2C06, 0xBB52}, | ||
| 1666 | {0x2C08, 0x0063}, | ||
| 1667 | {0x2C0A, 0xBB60}, | ||
| 1668 | {0x2C0C, 0x0000}, | ||
| 1669 | {0x2C0E, 0x0000}, | ||
| 1670 | {0x2C10, 0x0000}, | ||
| 1671 | {0x2C12, 0x0000}, | ||
| 1672 | {0x2C14, 0xBADA}, | ||
| 1673 | {0x2C16, 0x0002}, | ||
| 1674 | {0x2C18, 0x0066}, | ||
| 1675 | {0x2C1A, 0x0067}, | ||
| 1676 | {0x2C1C, 0x00AF}, | ||
| 1677 | {0x2C1E, 0x01CF}, | ||
| 1678 | {0x2C20, 0x0087}, | ||
| 1679 | {0x2C22, 0x0083}, | ||
| 1680 | {0x2C24, 0x011B}, | ||
| 1681 | {0x2C26, 0x035A}, | ||
| 1682 | {0x2C28, 0x00FA}, | ||
| 1683 | {0x2C2A, 0x00F2}, | ||
| 1684 | {0x2C2C, 0x00A6}, | ||
| 1685 | {0x2C2E, 0x00A4}, | ||
| 1686 | {0x2C30, 0xFFFF}, | ||
| 1687 | {0x2C32, 0x002C}, | ||
| 1688 | {0x2C34, 0x0058}, | ||
| 1689 | {0x2C36, 0x0000}, | ||
| 1690 | {0x2C38, 0x0000}, | ||
| 1691 | {0x2C3A, 0xBC18}, | ||
| 1692 | {0x2C3C, 0xBB74}, | ||
| 1693 | {0x2C3E, 0xBB80}, | ||
| 1694 | {0x2C40, 0xBC32}, | ||
| 1695 | {0x2C42, 0xBB8C}, | ||
| 1696 | {0x2C44, 0xBBA0}, | ||
| 1697 | {0x2C46, 0xBB8C}, | ||
| 1698 | {0x2C48, 0xBBA0}, | ||
| 1699 | {0x2C4A, 0xBC04}, | ||
| 1700 | {0x2C4C, 0xBC04}, | ||
| 1701 | {0x2C4E, 0xBBF0}, | ||
| 1702 | {0x2C50, 0xBBF0}, | ||
| 1703 | {0x2C52, 0xBBB4}, | ||
| 1704 | {0x2C54, 0xBBC8}, | ||
| 1705 | {0x2C56, 0xBBB4}, | ||
| 1706 | {0x2C58, 0xBBC8}, | ||
| 1707 | {0x2C5A, 0xBC04}, | ||
| 1708 | {0x2C5C, 0xBC04}, | ||
| 1709 | {0x2C5E, 0xBBF0}, | ||
| 1710 | {0x2C60, 0xBBF0}, | ||
| 1711 | {0x2C62, 0xBB8C}, | ||
| 1712 | {0x2C64, 0xBBA0}, | ||
| 1713 | {0x2C66, 0xBB8C}, | ||
| 1714 | {0x2C68, 0xBBA0}, | ||
| 1715 | {0x2C6A, 0xBC04}, | ||
| 1716 | {0x2C6C, 0xBC04}, | ||
| 1717 | {0x2C6E, 0xBBF0}, | ||
| 1718 | {0x2C70, 0xBBF0}, | ||
| 1719 | {0x2C72, 0xBBB4}, | ||
| 1720 | {0x2C74, 0xBBC8}, | ||
| 1721 | {0x2C76, 0xBBB4}, | ||
| 1722 | {0x2C78, 0xBBC8}, | ||
| 1723 | {0x2C7A, 0xBC04}, | ||
| 1724 | {0x2C7C, 0xBC04}, | ||
| 1725 | {0x2C7E, 0xBBF0}, | ||
| 1726 | {0x2C80, 0xBBF0}, | ||
| 1727 | {0x3800, 0x880E}, | ||
| 1728 | {0x3802, 0xBC62}, | ||
| 1729 | {0x3804, 0xBC40}, | ||
| 1730 | {0x3806, 0xD13E}, | ||
| 1731 | {0x3808, 0xBC42}, | ||
| 1732 | {0x380A, 0xBC3C}, | ||
| 1733 | {0x380C, 0x0000}, | ||
| 1734 | {0x380E, 0x0040}, | ||
| 1735 | {0x3810, 0x0040}, | ||
| 1736 | {0x3812, 0x0040}, | ||
| 1737 | {0x3814, 0x0043}, | ||
| 1738 | {0x3816, 0x0046}, | ||
| 1739 | {0x3818, 0x004B}, | ||
| 1740 | {0x381A, 0x004D}, | ||
| 1741 | {0x381C, 0x0051}, | ||
| 1742 | {0x381E, 0x0055}, | ||
| 1743 | {0x3820, 0x005A}, | ||
| 1744 | {0x3822, 0x005E}, | ||
| 1745 | {0x3824, 0x0062}, | ||
| 1746 | {0x3826, 0x0067}, | ||
| 1747 | {0x3828, 0x006C}, | ||
| 1748 | {0x382A, 0x0070}, | ||
| 1749 | {0x382C, 0x0078}, | ||
| 1750 | {0x382E, 0x0086}, | ||
| 1751 | {0x3830, 0x0090}, | ||
| 1752 | {0x3832, 0x0096}, | ||
| 1753 | {0x3834, 0x009D}, | ||
| 1754 | {0x3836, 0x00A5}, | ||
| 1755 | {0x3838, 0x00AD}, | ||
| 1756 | {0x383A, 0x00B4}, | ||
| 1757 | {0x383C, 0x00B9}, | ||
| 1758 | {0x383E, 0x00BE}, | ||
| 1759 | {0x3840, 0x00C3}, | ||
| 1760 | {0x3842, 0x00C8}, | ||
| 1761 | {0x3844, 0x00CD}, | ||
| 1762 | {0x3846, 0x00D2}, | ||
| 1763 | {0x3848, 0x00D7}, | ||
| 1764 | {0x384A, 0x00DC}, | ||
| 1765 | {0x384C, 0x00DC}, | ||
| 1766 | {0x384E, 0x0000}, | ||
| 1767 | {0x3850, 0x0000}, | ||
| 1768 | {0x3852, 0x0000}, | ||
| 1769 | {0x3854, 0x0000}, | ||
| 1770 | {0x3856, 0x0000}, | ||
| 1771 | {0x3858, 0x0000}, | ||
| 1772 | {0x385A, 0x0000}, | ||
| 1773 | {0x385C, 0x0000}, | ||
| 1774 | {0x385E, 0x0000}, | ||
| 1775 | {0x3860, 0x0000}, | ||
| 1776 | {0x3862, 0x0000}, | ||
| 1777 | {0x3864, 0x0000}, | ||
| 1778 | {0x3866, 0x0000}, | ||
| 1779 | {0x3868, 0x0000}, | ||
| 1780 | {0x386A, 0x0000}, | ||
| 1781 | {0x386C, 0x0000}, | ||
| 1782 | {0x386E, 0x0000}, | ||
| 1783 | {0x3870, 0x0000}, | ||
| 1784 | {0x3872, 0x0000}, | ||
| 1785 | {0x3874, 0x0000}, | ||
| 1786 | {0x3876, 0x0000}, | ||
| 1787 | {0x3878, 0x0000}, | ||
| 1788 | {0x387A, 0x0000}, | ||
| 1789 | {0x387C, 0x0000}, | ||
| 1790 | {0x387E, 0x0000}, | ||
| 1791 | {0x3880, 0x0000}, | ||
| 1792 | {0x3882, 0x0000}, | ||
| 1793 | {0x3884, 0x0000}, | ||
| 1794 | {0x3886, 0x0000}, | ||
| 1795 | {0x3888, 0x0000}, | ||
| 1796 | {0x388A, 0x0000}, | ||
| 1797 | {0x388C, 0x0000}, | ||
| 1798 | {0x026A, 0xFFFF}, | ||
| 1799 | {0x026C, 0x00FF}, | ||
| 1800 | {0x026E, 0x0000}, | ||
| 1801 | {0x0360, 0x1E8E}, | ||
| 1802 | {0x040E, 0x01EB}, | ||
| 1803 | {0x0600, 0x1130}, | ||
| 1804 | {0x0602, 0x3112}, | ||
| 1805 | {0x0604, 0x8048}, | ||
| 1806 | {0x0606, 0x00E9}, | ||
| 1807 | {0x067A, 0x0404}, | ||
| 1808 | {0x067C, 0x0404}, | ||
| 1809 | {0x06A8, 0x0240}, | ||
| 1810 | {0x06AA, 0x00CA}, | ||
| 1811 | {0x06AC, 0x0041}, | ||
| 1812 | {0x06B4, 0x3FFF}, | ||
| 1813 | {0x06DE, 0x0404}, | ||
| 1814 | {0x06E0, 0x0404}, | ||
| 1815 | {0x06E2, 0xFF00}, | ||
| 1816 | {0x06E4, 0x8333}, | ||
| 1817 | {0x06E6, 0x8333}, | ||
| 1818 | {0x06E8, 0x8333}, | ||
| 1819 | {0x06EA, 0x8333}, | ||
| 1820 | {0x052A, 0x0000}, | ||
| 1821 | {0x052C, 0x0000}, | ||
| 1822 | {0x0F06, 0x0002}, | ||
| 1823 | {0x0A04, 0xB4C5}, | ||
| 1824 | {0x0A06, 0xC400}, | ||
| 1825 | {0x0A08, 0x988A}, | ||
| 1826 | {0x0A0A, 0xA387}, | ||
| 1827 | {0x0A0E, 0xEEC0}, | ||
| 1828 | {0x0A12, 0x0000}, | ||
| 1829 | {0x0A18, 0x0010}, | ||
| 1830 | {0x0A1C, 0x0040}, | ||
| 1831 | {0x0A20, 0x0015}, | ||
| 1832 | {0x0C00, 0x0021}, | ||
| 1833 | {0x0C16, 0x0002}, | ||
| 1834 | {0x0708, 0x6FC0}, | ||
| 1835 | {0x070C, 0x0000}, | ||
| 1836 | {0x120C, 0x1428}, | ||
| 1837 | {0x121A, 0x0000}, | ||
| 1838 | {0x121C, 0x1896}, | ||
| 1839 | {0x121E, 0x0032}, | ||
| 1840 | {0x1220, 0x0000}, | ||
| 1841 | {0x1222, 0x96FF}, | ||
| 1842 | {0x1244, 0x0000}, | ||
| 1843 | {0x105C, 0x0F0B}, | ||
| 1844 | {0x1958, 0x0000}, | ||
| 1845 | {0x195A, 0x004C}, | ||
| 1846 | {0x195C, 0x0097}, | ||
| 1847 | {0x195E, 0x0221}, | ||
| 1848 | {0x1960, 0x03FE}, | ||
| 1849 | {0x1980, 0x00E0}, | ||
| 1850 | {0x1982, 0x0010}, | ||
| 1851 | {0x1984, 0x2018}, | ||
| 1852 | {0x1986, 0x0008}, | ||
| 1853 | {0x1988, 0x0000}, | ||
| 1854 | {0x198A, 0x0000}, | ||
| 1855 | {0x198C, 0x0880}, | ||
| 1856 | {0x198E, 0x0000}, | ||
| 1857 | {0x1990, 0x1A00}, | ||
| 1858 | {0x1992, 0x0000}, | ||
| 1859 | {0x1994, 0x2800}, | ||
| 1860 | {0x1996, 0x0002}, | ||
| 1861 | {0x1962, 0x0000}, | ||
| 1862 | {0x1964, 0x004C}, | ||
| 1863 | {0x1966, 0x0097}, | ||
| 1864 | {0x1968, 0x0221}, | ||
| 1865 | {0x196A, 0x03FE}, | ||
| 1866 | {0x19C0, 0x00E0}, | ||
| 1867 | {0x19C2, 0x0010}, | ||
| 1868 | {0x19C4, 0x2018}, | ||
| 1869 | {0x19C6, 0x0008}, | ||
| 1870 | {0x19C8, 0x0000}, | ||
| 1871 | {0x19CA, 0x0000}, | ||
| 1872 | {0x19CC, 0x0880}, | ||
| 1873 | {0x19CE, 0x0000}, | ||
| 1874 | {0x19D0, 0x1A00}, | ||
| 1875 | {0x19D2, 0x0000}, | ||
| 1876 | {0x19D4, 0x2800}, | ||
| 1877 | {0x19D6, 0x0002}, | ||
| 1878 | {0x196C, 0x0000}, | ||
| 1879 | {0x196E, 0x004C}, | ||
| 1880 | {0x1970, 0x0097}, | ||
| 1881 | {0x1972, 0x0221}, | ||
| 1882 | {0x1974, 0x03FE}, | ||
| 1883 | {0x1A00, 0x00E0}, | ||
| 1884 | {0x1A02, 0x0010}, | ||
| 1885 | {0x1A04, 0x2018}, | ||
| 1886 | {0x1A06, 0x0008}, | ||
| 1887 | {0x1A08, 0x0000}, | ||
| 1888 | {0x1A0A, 0x0000}, | ||
| 1889 | {0x1A0C, 0x0880}, | ||
| 1890 | {0x1A0E, 0x0000}, | ||
| 1891 | {0x1A10, 0x1A00}, | ||
| 1892 | {0x1A12, 0x0000}, | ||
| 1893 | {0x1A14, 0x2800}, | ||
| 1894 | {0x1A16, 0x0002}, | ||
| 1895 | {0x1976, 0x0000}, | ||
| 1896 | {0x1978, 0x004C}, | ||
| 1897 | {0x197A, 0x0097}, | ||
| 1898 | {0x197C, 0x0221}, | ||
| 1899 | {0x197E, 0x03FE}, | ||
| 1900 | {0x1A40, 0x00E0}, | ||
| 1901 | {0x1A42, 0x0010}, | ||
| 1902 | {0x1A44, 0x2018}, | ||
| 1903 | {0x1A46, 0x0008}, | ||
| 1904 | {0x1A48, 0x0000}, | ||
| 1905 | {0x1A4A, 0x0000}, | ||
| 1906 | {0x1A4C, 0x0880}, | ||
| 1907 | {0x1A4E, 0x0000}, | ||
| 1908 | {0x1A50, 0x1A00}, | ||
| 1909 | {0x1A52, 0x0000}, | ||
| 1910 | {0x1A54, 0x2800}, | ||
| 1911 | {0x1A56, 0x0002}, | ||
| 1912 | {0x192A, 0x0201}, | ||
| 1913 | {0x0384, 0x0001}, | ||
| 1914 | {0x027E, 0x0100}, | ||
| 1915 | }; | ||
| 1916 | |||
| 1917 | static const struct hi847_reg mode_3264x2448_regs[] = { | ||
| 1918 | {0x0B00, 0x0000}, | ||
| 1919 | {0x0204, 0x0000}, | ||
| 1920 | {0x0206, 0x033C}, | ||
| 1921 | {0x020A, 0x0B4D}, | ||
| 1922 | {0x020E, 0x0B51}, | ||
| 1923 | {0x0214, 0x0200}, | ||
| 1924 | {0x0216, 0x0200}, | ||
| 1925 | {0x0218, 0x0200}, | ||
| 1926 | {0x021A, 0x0200}, | ||
| 1927 | {0x0224, 0x002E}, | ||
| 1928 | {0x022A, 0x0017}, | ||
| 1929 | {0x022C, 0x0E1F}, | ||
| 1930 | {0x022E, 0x09C1}, | ||
| 1931 | {0x0234, 0x1111}, | ||
| 1932 | {0x0236, 0x1111}, | ||
| 1933 | {0x0238, 0x1111}, | ||
| 1934 | {0x023A, 0x1111}, | ||
| 1935 | {0x0250, 0x0000}, | ||
| 1936 | {0x0252, 0x0006}, | ||
| 1937 | {0x0254, 0x0000}, | ||
| 1938 | {0x0256, 0x0000}, | ||
| 1939 | {0x0258, 0x0000}, | ||
| 1940 | {0x025A, 0x0000}, | ||
| 1941 | {0x025C, 0x0000}, | ||
| 1942 | {0x025E, 0x0202}, | ||
| 1943 | {0x0268, 0x00CD}, | ||
| 1944 | {0x0440, 0x0002}, | ||
| 1945 | {0x0F00, 0x0000}, | ||
| 1946 | {0x0F04, 0x0008}, | ||
| 1947 | {0x0F06, 0x0002}, | ||
| 1948 | {0x0B02, 0x0100}, | ||
| 1949 | {0x0B04, 0x00DC}, | ||
| 1950 | {0x0B12, 0x0CC0}, | ||
| 1951 | {0x0B14, 0x0990}, | ||
| 1952 | {0x0B20, 0x0100}, | ||
| 1953 | {0x1100, 0x1100}, | ||
| 1954 | {0x1102, 0x0008}, | ||
| 1955 | {0x1108, 0x0202}, | ||
| 1956 | {0x1118, 0x0000}, | ||
| 1957 | {0x0A10, 0xB040}, | ||
| 1958 | {0x0C14, 0x0008}, | ||
| 1959 | {0x0C18, 0x0CC0}, | ||
| 1960 | {0x0C1A, 0x0990}, | ||
| 1961 | {0x0730, 0x0001}, | ||
| 1962 | {0x0732, 0x0000}, | ||
| 1963 | {0x0734, 0x0300}, | ||
| 1964 | {0x0736, 0x004B}, | ||
| 1965 | {0x0738, 0x0001}, | ||
| 1966 | {0x073C, 0x0900}, | ||
| 1967 | {0x0740, 0x0000}, | ||
| 1968 | {0x0742, 0x0000}, | ||
| 1969 | {0x0744, 0x0300}, | ||
| 1970 | {0x0746, 0x007D}, | ||
| 1971 | {0x0748, 0x0002}, | ||
| 1972 | {0x074A, 0x0900}, | ||
| 1973 | {0x074C, 0x0000}, | ||
| 1974 | {0x074E, 0x0100}, | ||
| 1975 | {0x0750, 0x0000}, | ||
| 1976 | {0x1200, 0x0946}, | ||
| 1977 | {0x1202, 0x1A00}, | ||
| 1978 | {0x120E, 0x6027}, | ||
| 1979 | {0x1210, 0x8027}, | ||
| 1980 | {0x1246, 0x0105}, | ||
| 1981 | {0x1000, 0x0300}, | ||
| 1982 | {0x1002, 0xC311}, | ||
| 1983 | {0x1004, 0x2BB0}, | ||
| 1984 | {0x1010, 0x087B}, | ||
| 1985 | {0x1012, 0x0040}, | ||
| 1986 | {0x1014, 0x0020}, | ||
| 1987 | {0x1016, 0x0020}, | ||
| 1988 | {0x101A, 0x0020}, | ||
| 1989 | {0x1020, 0xC107}, | ||
| 1990 | {0x1022, 0x081E}, | ||
| 1991 | {0x1024, 0x0509}, | ||
| 1992 | {0x1026, 0x0B0A}, | ||
| 1993 | {0x1028, 0x1409}, | ||
| 1994 | {0x102A, 0x0B05}, | ||
| 1995 | {0x102C, 0x1400}, | ||
| 1996 | {0x1038, 0x0000}, | ||
| 1997 | {0x103E, 0x0001}, | ||
| 1998 | {0x1040, 0x0000}, | ||
| 1999 | {0x1042, 0x0008}, | ||
| 2000 | {0x1044, 0x0120}, | ||
| 2001 | {0x1046, 0x01B0}, | ||
| 2002 | {0x1048, 0x0090}, | ||
| 2003 | {0x1066, 0x089C}, | ||
| 2004 | {0x1600, 0x0000}, | ||
| 2005 | {0x1608, 0x0028}, | ||
| 2006 | {0x160A, 0x0C80}, | ||
| 2007 | {0x160C, 0x001A}, | ||
| 2008 | {0x160E, 0x0960}, | ||
| 2009 | {0x0252, 0x0009}, | ||
| 2010 | {0x0202, 0x0000}, | ||
| 2011 | }; | ||
| 2012 | |||
| 2013 | static const struct hi847_reg mode_1632x1224_regs[] = { | ||
| 2014 | {0x0B00, 0x0000}, | ||
| 2015 | {0x0204, 0x0200}, | ||
| 2016 | {0x0206, 0x033C}, | ||
| 2017 | {0x020A, 0x05A5}, | ||
| 2018 | {0x020E, 0x05A9}, | ||
| 2019 | {0x0214, 0x0200}, | ||
| 2020 | {0x0216, 0x0200}, | ||
| 2021 | {0x0218, 0x0200}, | ||
| 2022 | {0x021A, 0x0200}, | ||
| 2023 | {0x0224, 0x002C}, | ||
| 2024 | {0x022A, 0x0015}, | ||
| 2025 | {0x022C, 0x0E2D}, | ||
| 2026 | {0x022E, 0x09C1}, | ||
| 2027 | {0x0234, 0x3311}, | ||
| 2028 | {0x0236, 0x3311}, | ||
| 2029 | {0x0238, 0x3311}, | ||
| 2030 | {0x023A, 0x2222}, | ||
| 2031 | {0x0250, 0x0000}, | ||
| 2032 | {0x0252, 0x0006}, | ||
| 2033 | {0x0254, 0x0000}, | ||
| 2034 | {0x0256, 0x0000}, | ||
| 2035 | {0x0258, 0x0000}, | ||
| 2036 | {0x025A, 0x0000}, | ||
| 2037 | {0x025C, 0x0000}, | ||
| 2038 | {0x025E, 0x0202}, | ||
| 2039 | {0x0268, 0x00CD}, | ||
| 2040 | {0x0440, 0x0002}, | ||
| 2041 | {0x0F00, 0x0400}, | ||
| 2042 | {0x0F04, 0x0004}, | ||
| 2043 | {0x0F06, 0x0002}, | ||
| 2044 | {0x0B02, 0x0100}, | ||
| 2045 | {0x0B04, 0x00FC}, | ||
| 2046 | {0x0B12, 0x0660}, | ||
| 2047 | {0x0B14, 0x04C8}, | ||
| 2048 | {0x0B20, 0x0200}, | ||
| 2049 | {0x1100, 0x1100}, | ||
| 2050 | {0x1102, 0x0008}, | ||
| 2051 | {0x1108, 0x0402}, | ||
| 2052 | {0x1118, 0x0000}, | ||
| 2053 | {0x0A10, 0xB060}, | ||
| 2054 | {0x0C14, 0x0008}, | ||
| 2055 | {0x0C18, 0x0CC0}, | ||
| 2056 | {0x0C1A, 0x04C8}, | ||
| 2057 | {0x0730, 0x0001}, | ||
| 2058 | {0x0732, 0x0000}, | ||
| 2059 | {0x0734, 0x0300}, | ||
| 2060 | {0x0736, 0x004B}, | ||
| 2061 | {0x0738, 0x0001}, | ||
| 2062 | {0x073C, 0x0900}, | ||
| 2063 | {0x0740, 0x0000}, | ||
| 2064 | {0x0742, 0x0000}, | ||
| 2065 | {0x0744, 0x0300}, | ||
| 2066 | {0x0746, 0x007D}, | ||
| 2067 | {0x0748, 0x0002}, | ||
| 2068 | {0x074A, 0x0900}, | ||
| 2069 | {0x074C, 0x0100}, | ||
| 2070 | {0x074E, 0x0100}, | ||
| 2071 | {0x0750, 0x0000}, | ||
| 2072 | {0x1200, 0x0946}, | ||
| 2073 | {0x1202, 0x1A00}, | ||
| 2074 | {0x120E, 0x6027}, | ||
| 2075 | {0x1210, 0x8027}, | ||
| 2076 | {0x1246, 0x0105}, | ||
| 2077 | {0x1000, 0x0300}, | ||
| 2078 | {0x1002, 0xC311}, | ||
| 2079 | {0x1004, 0x2BB0}, | ||
| 2080 | {0x1010, 0x042B}, | ||
| 2081 | {0x1012, 0x0012}, | ||
| 2082 | {0x1014, 0x0020}, | ||
| 2083 | {0x1016, 0x0020}, | ||
| 2084 | {0x101A, 0x0020}, | ||
| 2085 | {0x1020, 0xC103}, | ||
| 2086 | {0x1022, 0x040F}, | ||
| 2087 | {0x1024, 0x0304}, | ||
| 2088 | {0x1026, 0x0607}, | ||
| 2089 | {0x1028, 0x0D06}, | ||
| 2090 | {0x102A, 0x0605}, | ||
| 2091 | {0x102C, 0x0C00}, | ||
| 2092 | {0x1038, 0x0000}, | ||
| 2093 | {0x103E, 0x0101}, | ||
| 2094 | {0x1040, 0x0000}, | ||
| 2095 | {0x1042, 0x0008}, | ||
| 2096 | {0x1044, 0x0120}, | ||
| 2097 | {0x1046, 0x01B0}, | ||
| 2098 | {0x1048, 0x0090}, | ||
| 2099 | {0x1066, 0x043B}, | ||
| 2100 | {0x1600, 0x0400}, | ||
| 2101 | {0x1608, 0x0028}, | ||
| 2102 | {0x160A, 0x0C80}, | ||
| 2103 | {0x160C, 0x001A}, | ||
| 2104 | {0x160E, 0x0960}, | ||
| 2105 | {0x0252, 0x0009}, | ||
| 2106 | {0x0202, 0x0000}, | ||
| 2107 | }; | ||
| 2108 | |||
| 2109 | static const char * const hi847_test_pattern_menu[] = { | ||
| 2110 | "No Pattern", | ||
| 2111 | "Solid Colour", | ||
| 2112 | "100% Colour Bars", | ||
| 2113 | "Fade To Grey Colour Bars", | ||
| 2114 | "PN9", | ||
| 2115 | "Horizontal Gradient Pattern", | ||
| 2116 | "Vertical Gradient Pattern", | ||
| 2117 | "Check Board", | ||
| 2118 | "Slant Pattern", | ||
| 2119 | }; | ||
| 2120 | |||
| 2121 | static const s64 link_freq_menu_items[] = { | ||
| 2122 | HI847_LINK_FREQ_400MHZ, | ||
| 2123 | HI847_LINK_FREQ_200MHZ, | ||
| 2124 | }; | ||
| 2125 | |||
| 2126 | static const struct hi847_link_freq_config link_freq_configs[] = { | ||
| 2127 | [HI847_LINK_FREQ_400MHZ_INDEX] = { | ||
| 2128 | .reg_list = { | ||
| 2129 | .num_of_regs = ARRAY_SIZE(mipi_data_rate_lane_4), | ||
| 2130 | .regs = mipi_data_rate_lane_4, | ||
| 2131 | } | ||
| 2132 | }, | ||
| 2133 | [HI847_LINK_FREQ_200MHZ_INDEX] = { | ||
| 2134 | .reg_list = { | ||
| 2135 | .num_of_regs = ARRAY_SIZE(mipi_data_rate_lane_4), | ||
| 2136 | .regs = mipi_data_rate_lane_4, | ||
| 2137 | } | ||
| 2138 | } | ||
| 2139 | }; | ||
| 2140 | |||
| 2141 | static const struct hi847_mode supported_modes[] = { | ||
| 2142 | { | ||
| 2143 | .width = 3264, | ||
| 2144 | .height = 2448, | ||
| 2145 | .fll_def = HI847_FLL_30FPS, | ||
| 2146 | .fll_min = HI847_FLL_30FPS_MIN, | ||
| 2147 | .llp = 0x033C, | ||
| 2148 | .reg_list = { | ||
| 2149 | .num_of_regs = ARRAY_SIZE(mode_3264x2448_regs), | ||
| 2150 | .regs = mode_3264x2448_regs, | ||
| 2151 | }, | ||
| 2152 | .link_freq_index = HI847_LINK_FREQ_400MHZ_INDEX, | ||
| 2153 | }, | ||
| 2154 | { | ||
| 2155 | .width = 1632, | ||
| 2156 | .height = 1224, | ||
| 2157 | .fll_def = HI847_FLL_60FPS, | ||
| 2158 | .fll_min = HI847_FLL_60FPS_MIN, | ||
| 2159 | .llp = 0x033C, | ||
| 2160 | .reg_list = { | ||
| 2161 | .num_of_regs = ARRAY_SIZE(mode_1632x1224_regs), | ||
| 2162 | .regs = mode_1632x1224_regs, | ||
| 2163 | }, | ||
| 2164 | .link_freq_index = HI847_LINK_FREQ_200MHZ_INDEX, | ||
| 2165 | } | ||
| 2166 | }; | ||
| 2167 | |||
| 2168 | struct hi847 { | ||
| 2169 | struct v4l2_subdev sd; | ||
| 2170 | struct media_pad pad; | ||
| 2171 | struct v4l2_ctrl_handler ctrl_handler; | ||
| 2172 | |||
| 2173 | /* V4L2 Controls */ | ||
| 2174 | struct v4l2_ctrl *link_freq; | ||
| 2175 | struct v4l2_ctrl *pixel_rate; | ||
| 2176 | struct v4l2_ctrl *vblank; | ||
| 2177 | struct v4l2_ctrl *hblank; | ||
| 2178 | struct v4l2_ctrl *exposure; | ||
| 2179 | struct v4l2_ctrl *vflip; | ||
| 2180 | struct v4l2_ctrl *hflip; | ||
| 2181 | |||
| 2182 | /* Current mode */ | ||
| 2183 | const struct hi847_mode *cur_mode; | ||
| 2184 | |||
| 2185 | /* To serialize asynchronus callbacks */ | ||
| 2186 | struct mutex mutex; | ||
| 2187 | |||
| 2188 | /* Streaming on/off */ | ||
| 2189 | bool streaming; | ||
| 2190 | }; | ||
| 2191 | |||
| 2192 | static u64 to_pixel_rate(u32 f_index) | ||
| 2193 | { | ||
| 2194 | u64 pixel_rate = link_freq_menu_items[f_index] * 2 * HI847_DATA_LANES; | ||
| 2195 | |||
| 2196 | do_div(pixel_rate, HI847_RGB_DEPTH); | ||
| 2197 | |||
| 2198 | return pixel_rate; | ||
| 2199 | } | ||
| 2200 | |||
| 2201 | static int hi847_read_reg(struct hi847 *hi847, u16 reg, u16 len, u32 *val) | ||
| 2202 | { | ||
| 2203 | struct i2c_client *client = v4l2_get_subdevdata(&hi847->sd); | ||
| 2204 | struct i2c_msg msgs[2]; | ||
| 2205 | u8 addr_buf[2]; | ||
| 2206 | u8 data_buf[4] = {0}; | ||
| 2207 | int ret; | ||
| 2208 | |||
| 2209 | if (len > 4) | ||
| 2210 | return -EINVAL; | ||
| 2211 | |||
| 2212 | put_unaligned_be16(reg, addr_buf); | ||
| 2213 | msgs[0].addr = client->addr; | ||
| 2214 | msgs[0].flags = 0; | ||
| 2215 | msgs[0].len = sizeof(addr_buf); | ||
| 2216 | msgs[0].buf = addr_buf; | ||
| 2217 | msgs[1].addr = client->addr; | ||
| 2218 | msgs[1].flags = I2C_M_RD; | ||
| 2219 | msgs[1].len = len; | ||
| 2220 | msgs[1].buf = &data_buf[4 - len]; | ||
| 2221 | |||
| 2222 | ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); | ||
| 2223 | if (ret != ARRAY_SIZE(msgs)) | ||
| 2224 | return -EIO; | ||
| 2225 | |||
| 2226 | *val = get_unaligned_be32(data_buf); | ||
| 2227 | |||
| 2228 | return 0; | ||
| 2229 | } | ||
| 2230 | |||
| 2231 | static int hi847_write_reg(struct hi847 *hi847, u16 reg, u16 len, u32 val) | ||
| 2232 | { | ||
| 2233 | struct i2c_client *client = v4l2_get_subdevdata(&hi847->sd); | ||
| 2234 | u8 buf[6]; | ||
| 2235 | |||
| 2236 | if (len > 4) | ||
| 2237 | return -EINVAL; | ||
| 2238 | |||
| 2239 | put_unaligned_be16(reg, buf); | ||
| 2240 | put_unaligned_be32(val << 8 * (4 - len), buf + 2); | ||
| 2241 | if (i2c_master_send(client, buf, len + 2) != len + 2) | ||
| 2242 | return -EIO; | ||
| 2243 | |||
| 2244 | return 0; | ||
| 2245 | } | ||
| 2246 | |||
| 2247 | static int hi847_write_reg_list(struct hi847 *hi847, | ||
| 2248 | const struct hi847_reg_list *r_list) | ||
| 2249 | { | ||
| 2250 | struct i2c_client *client = v4l2_get_subdevdata(&hi847->sd); | ||
| 2251 | unsigned int i; | ||
| 2252 | int ret; | ||
| 2253 | |||
| 2254 | for (i = 0; i < r_list->num_of_regs; i++) { | ||
| 2255 | ret = hi847_write_reg(hi847, r_list->regs[i].address, | ||
| 2256 | HI847_REG_VALUE_16BIT, | ||
| 2257 | r_list->regs[i].val); | ||
| 2258 | if (ret) { | ||
| 2259 | dev_err_ratelimited(&client->dev, | ||
| 2260 | "failed to write reg 0x%4.4x. error = %d", | ||
| 2261 | r_list->regs[i].address, ret); | ||
| 2262 | return ret; | ||
| 2263 | } | ||
| 2264 | } | ||
| 2265 | |||
| 2266 | return 0; | ||
| 2267 | } | ||
| 2268 | |||
| 2269 | static int hi847_update_digital_gain(struct hi847 *hi847, u32 d_gain) | ||
| 2270 | { | ||
| 2271 | int ret; | ||
| 2272 | |||
| 2273 | ret = hi847_write_reg(hi847, HI847_REG_MWB_GR_GAIN, | ||
| 2274 | HI847_REG_VALUE_16BIT, d_gain); | ||
| 2275 | if (ret) | ||
| 2276 | return ret; | ||
| 2277 | |||
| 2278 | ret = hi847_write_reg(hi847, HI847_REG_MWB_GB_GAIN, | ||
| 2279 | HI847_REG_VALUE_16BIT, d_gain); | ||
| 2280 | if (ret) | ||
| 2281 | return ret; | ||
| 2282 | |||
| 2283 | ret = hi847_write_reg(hi847, HI847_REG_MWB_R_GAIN, | ||
| 2284 | HI847_REG_VALUE_16BIT, d_gain); | ||
| 2285 | if (ret) | ||
| 2286 | return ret; | ||
| 2287 | |||
| 2288 | return hi847_write_reg(hi847, HI847_REG_MWB_B_GAIN, | ||
| 2289 | HI847_REG_VALUE_16BIT, d_gain); | ||
| 2290 | } | ||
| 2291 | |||
| 2292 | static int hi847_test_pattern(struct hi847 *hi847, u32 pattern) | ||
| 2293 | { | ||
| 2294 | int ret; | ||
| 2295 | u32 val; | ||
| 2296 | |||
| 2297 | if (pattern) { | ||
| 2298 | ret = hi847_read_reg(hi847, HI847_REG_ISP, | ||
| 2299 | HI847_REG_VALUE_16BIT, &val); | ||
| 2300 | if (ret) | ||
| 2301 | return ret; | ||
| 2302 | |||
| 2303 | ret = hi847_write_reg(hi847, HI847_REG_ISP, | ||
| 2304 | HI847_REG_VALUE_16BIT, | ||
| 2305 | val | HI847_REG_ISP_TPG_EN); | ||
| 2306 | if (ret) | ||
| 2307 | return ret; | ||
| 2308 | } | ||
| 2309 | |||
| 2310 | ret = hi847_read_reg(hi847, HI847_REG_TEST_PATTERN, | ||
| 2311 | HI847_REG_VALUE_16BIT, &val); | ||
| 2312 | if (ret) | ||
| 2313 | return ret; | ||
| 2314 | |||
| 2315 | return hi847_write_reg(hi847, HI847_REG_TEST_PATTERN, | ||
| 2316 | HI847_REG_VALUE_16BIT, val | pattern << 8); | ||
| 2317 | } | ||
| 2318 | |||
| 2319 | static int hi847_grbg_shift(struct hi847 *hi847) | ||
| 2320 | { | ||
| 2321 | int ret; | ||
| 2322 | int hflip, vflip; | ||
| 2323 | |||
| 2324 | /* regs shift for full size */ | ||
| 2325 | static const u32 FORMAT_X_SHIFT_1[2][2] = { | ||
| 2326 | { 0x0008, 0x0007, }, | ||
| 2327 | { 0x0008, 0x0007, }, | ||
| 2328 | }; | ||
| 2329 | |||
| 2330 | static const u32 FORMAT_Y_SHIFT_1[2][2] = { | ||
| 2331 | { 0x0002, 0x0002, }, | ||
| 2332 | { 0x0001, 0x0001, }, | ||
| 2333 | }; | ||
| 2334 | |||
| 2335 | /* regs shift for binning size */ | ||
| 2336 | static const u32 FORMAT_X_SHIFT_2[2][2] = { | ||
| 2337 | { 0x0004, 0x0003, }, | ||
| 2338 | { 0x0004, 0x0003, }, | ||
| 2339 | }; | ||
| 2340 | |||
| 2341 | static const u32 FORMAT_Y_SHIFT_2[2][2] = { | ||
| 2342 | { 0x0002, 0x0002, }, | ||
| 2343 | { 0x0001, 0x0001, }, | ||
| 2344 | }; | ||
| 2345 | |||
| 2346 | hflip = hi847->hflip->val; | ||
| 2347 | vflip = hi847->vflip->val; | ||
| 2348 | |||
| 2349 | if (hi847->cur_mode->width == 3264) { | ||
| 2350 | ret = hi847_write_reg(hi847, HI847_REG_FORMAT_X, | ||
| 2351 | HI847_REG_VALUE_16BIT, | ||
| 2352 | FORMAT_X_SHIFT_1[vflip][hflip]); | ||
| 2353 | if (ret) | ||
| 2354 | return ret; | ||
| 2355 | |||
| 2356 | return hi847_write_reg(hi847, HI847_REG_FORMAT_Y, | ||
| 2357 | HI847_REG_VALUE_16BIT, | ||
| 2358 | FORMAT_Y_SHIFT_1[vflip][hflip]); | ||
| 2359 | } else { | ||
| 2360 | ret = hi847_write_reg(hi847, HI847_REG_FORMAT_X, | ||
| 2361 | HI847_REG_VALUE_16BIT, | ||
| 2362 | FORMAT_X_SHIFT_2[vflip][hflip]); | ||
| 2363 | if (ret) | ||
| 2364 | return ret; | ||
| 2365 | |||
| 2366 | return hi847_write_reg(hi847, HI847_REG_FORMAT_Y, | ||
| 2367 | HI847_REG_VALUE_16BIT, | ||
| 2368 | FORMAT_Y_SHIFT_2[vflip][hflip]); | ||
| 2369 | } | ||
| 2370 | } | ||
| 2371 | |||
| 2372 | static int hi847_set_ctrl_hflip(struct hi847 *hi847, u32 ctrl_val) | ||
| 2373 | { | ||
| 2374 | int ret; | ||
| 2375 | u32 val; | ||
| 2376 | |||
| 2377 | ret = hi847_read_reg(hi847, HI847_REG_MIRROR_FLIP, | ||
| 2378 | HI847_REG_VALUE_16BIT, &val); | ||
| 2379 | if (ret) | ||
| 2380 | return ret; | ||
| 2381 | |||
| 2382 | ret = hi847_grbg_shift(hi847); | ||
| 2383 | if (ret) | ||
| 2384 | return ret; | ||
| 2385 | |||
| 2386 | return hi847_write_reg(hi847, HI847_REG_MIRROR_FLIP, | ||
| 2387 | HI847_REG_VALUE_16BIT, | ||
| 2388 | ctrl_val ? val | BIT(8) : val & ~BIT(8)); | ||
| 2389 | } | ||
| 2390 | |||
| 2391 | static int hi847_set_ctrl_vflip(struct hi847 *hi847, u8 ctrl_val) | ||
| 2392 | { | ||
| 2393 | int ret; | ||
| 2394 | u32 val; | ||
| 2395 | |||
| 2396 | ret = hi847_read_reg(hi847, HI847_REG_MIRROR_FLIP, | ||
| 2397 | HI847_REG_VALUE_16BIT, &val); | ||
| 2398 | if (ret) | ||
| 2399 | return ret; | ||
| 2400 | |||
| 2401 | ret = hi847_grbg_shift(hi847); | ||
| 2402 | if (ret) | ||
| 2403 | return ret; | ||
| 2404 | |||
| 2405 | return hi847_write_reg(hi847, HI847_REG_MIRROR_FLIP, | ||
| 2406 | HI847_REG_VALUE_16BIT, | ||
| 2407 | ctrl_val ? val | BIT(9) : val & ~BIT(9)); | ||
| 2408 | } | ||
| 2409 | |||
| 2410 | static int hi847_set_ctrl(struct v4l2_ctrl *ctrl) | ||
| 2411 | { | ||
| 2412 | struct hi847 *hi847 = container_of(ctrl->handler, | ||
| 2413 | struct hi847, ctrl_handler); | ||
| 2414 | struct i2c_client *client = v4l2_get_subdevdata(&hi847->sd); | ||
| 2415 | s64 exposure_max; | ||
| 2416 | int ret = 0; | ||
| 2417 | |||
| 2418 | /* Propagate change of current control to all related controls */ | ||
| 2419 | if (ctrl->id == V4L2_CID_VBLANK) { | ||
| 2420 | /* Update max exposure while meeting expected vblanking */ | ||
| 2421 | exposure_max = hi847->cur_mode->height + ctrl->val - | ||
| 2422 | HI847_EXPOSURE_MAX_MARGIN; | ||
| 2423 | __v4l2_ctrl_modify_range(hi847->exposure, | ||
| 2424 | hi847->exposure->minimum, | ||
| 2425 | exposure_max, hi847->exposure->step, | ||
| 2426 | exposure_max); | ||
| 2427 | } | ||
| 2428 | |||
| 2429 | /* V4L2 controls values will be applied only when power is already up */ | ||
| 2430 | if (!pm_runtime_get_if_in_use(&client->dev)) | ||
| 2431 | return 0; | ||
| 2432 | |||
| 2433 | switch (ctrl->id) { | ||
| 2434 | case V4L2_CID_ANALOGUE_GAIN: | ||
| 2435 | ret = hi847_write_reg(hi847, HI847_REG_ANALOG_GAIN, | ||
| 2436 | HI847_REG_VALUE_16BIT, ctrl->val); | ||
| 2437 | break; | ||
| 2438 | |||
| 2439 | case V4L2_CID_DIGITAL_GAIN: | ||
| 2440 | ret = hi847_update_digital_gain(hi847, ctrl->val); | ||
| 2441 | break; | ||
| 2442 | |||
| 2443 | case V4L2_CID_EXPOSURE: | ||
| 2444 | ret = hi847_write_reg(hi847, HI847_REG_EXPOSURE, | ||
| 2445 | HI847_REG_VALUE_16BIT, ctrl->val); | ||
| 2446 | break; | ||
| 2447 | |||
| 2448 | case V4L2_CID_VBLANK: | ||
| 2449 | /* Update FLL that meets expected vertical blanking */ | ||
| 2450 | ret = hi847_write_reg(hi847, HI847_REG_FLL, | ||
| 2451 | HI847_REG_VALUE_16BIT, | ||
| 2452 | hi847->cur_mode->height + ctrl->val); | ||
| 2453 | break; | ||
| 2454 | |||
| 2455 | case V4L2_CID_TEST_PATTERN: | ||
| 2456 | ret = hi847_test_pattern(hi847, ctrl->val); | ||
| 2457 | break; | ||
| 2458 | |||
| 2459 | case V4L2_CID_HFLIP: | ||
| 2460 | hi847_set_ctrl_hflip(hi847, ctrl->val); | ||
| 2461 | break; | ||
| 2462 | |||
| 2463 | case V4L2_CID_VFLIP: | ||
| 2464 | hi847_set_ctrl_vflip(hi847, ctrl->val); | ||
| 2465 | break; | ||
| 2466 | |||
| 2467 | default: | ||
| 2468 | ret = -EINVAL; | ||
| 2469 | break; | ||
| 2470 | } | ||
| 2471 | |||
| 2472 | pm_runtime_put(&client->dev); | ||
| 2473 | |||
| 2474 | return ret; | ||
| 2475 | } | ||
| 2476 | |||
| 2477 | static const struct v4l2_ctrl_ops hi847_ctrl_ops = { | ||
| 2478 | .s_ctrl = hi847_set_ctrl, | ||
| 2479 | }; | ||
| 2480 | |||
| 2481 | static int hi847_init_controls(struct hi847 *hi847) | ||
| 2482 | { | ||
| 2483 | struct v4l2_ctrl_handler *ctrl_hdlr; | ||
| 2484 | s64 exposure_max, h_blank; | ||
| 2485 | int ret; | ||
| 2486 | |||
| 2487 | ctrl_hdlr = &hi847->ctrl_handler; | ||
| 2488 | ret = v4l2_ctrl_handler_init(ctrl_hdlr, 8); | ||
| 2489 | if (ret) | ||
| 2490 | return ret; | ||
| 2491 | |||
| 2492 | ctrl_hdlr->lock = &hi847->mutex; | ||
| 2493 | hi847->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2494 | V4L2_CID_LINK_FREQ, | ||
| 2495 | ARRAY_SIZE(link_freq_menu_items) - 1, | ||
| 2496 | 0, link_freq_menu_items); | ||
| 2497 | if (hi847->link_freq) | ||
| 2498 | hi847->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; | ||
| 2499 | |||
| 2500 | hi847->pixel_rate = v4l2_ctrl_new_std | ||
| 2501 | (ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2502 | V4L2_CID_PIXEL_RATE, 0, | ||
| 2503 | to_pixel_rate(HI847_LINK_FREQ_400MHZ_INDEX), | ||
| 2504 | 1, | ||
| 2505 | to_pixel_rate(HI847_LINK_FREQ_400MHZ_INDEX)); | ||
| 2506 | hi847->vblank = v4l2_ctrl_new_std(ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2507 | V4L2_CID_VBLANK, | ||
| 2508 | hi847->cur_mode->fll_min - | ||
| 2509 | hi847->cur_mode->height, | ||
| 2510 | HI847_FLL_MAX - | ||
| 2511 | hi847->cur_mode->height, 1, | ||
| 2512 | hi847->cur_mode->fll_def - | ||
| 2513 | hi847->cur_mode->height); | ||
| 2514 | |||
| 2515 | h_blank = hi847->cur_mode->llp - hi847->cur_mode->width; | ||
| 2516 | |||
| 2517 | hi847->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2518 | V4L2_CID_HBLANK, h_blank, h_blank, 1, | ||
| 2519 | h_blank); | ||
| 2520 | if (hi847->hblank) | ||
| 2521 | hi847->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; | ||
| 2522 | |||
| 2523 | v4l2_ctrl_new_std(ctrl_hdlr, &hi847_ctrl_ops, V4L2_CID_ANALOGUE_GAIN, | ||
| 2524 | HI847_ANAL_GAIN_MIN, HI847_ANAL_GAIN_MAX, | ||
| 2525 | HI847_ANAL_GAIN_STEP, HI847_ANAL_GAIN_MIN); | ||
| 2526 | v4l2_ctrl_new_std(ctrl_hdlr, &hi847_ctrl_ops, V4L2_CID_DIGITAL_GAIN, | ||
| 2527 | HI847_DGTL_GAIN_MIN, HI847_DGTL_GAIN_MAX, | ||
| 2528 | HI847_DGTL_GAIN_STEP, HI847_DGTL_GAIN_DEFAULT); | ||
| 2529 | exposure_max = hi847->cur_mode->fll_def - HI847_EXPOSURE_MAX_MARGIN; | ||
| 2530 | hi847->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2531 | V4L2_CID_EXPOSURE, | ||
| 2532 | HI847_EXPOSURE_MIN, exposure_max, | ||
| 2533 | HI847_EXPOSURE_STEP, | ||
| 2534 | exposure_max); | ||
| 2535 | v4l2_ctrl_new_std_menu_items(ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2536 | V4L2_CID_TEST_PATTERN, | ||
| 2537 | ARRAY_SIZE(hi847_test_pattern_menu) - 1, | ||
| 2538 | 0, 0, hi847_test_pattern_menu); | ||
| 2539 | hi847->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2540 | V4L2_CID_HFLIP, 0, 1, 1, 0); | ||
| 2541 | hi847->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &hi847_ctrl_ops, | ||
| 2542 | V4L2_CID_VFLIP, 0, 1, 1, 0); | ||
| 2543 | |||
| 2544 | if (ctrl_hdlr->error) | ||
| 2545 | return ctrl_hdlr->error; | ||
| 2546 | |||
| 2547 | hi847->sd.ctrl_handler = ctrl_hdlr; | ||
| 2548 | |||
| 2549 | return 0; | ||
| 2550 | } | ||
| 2551 | |||
| 2552 | static void hi847_assign_pad_format(const struct hi847_mode *mode, | ||
| 2553 | struct v4l2_mbus_framefmt *fmt) | ||
| 2554 | { | ||
| 2555 | fmt->width = mode->width; | ||
| 2556 | fmt->height = mode->height; | ||
| 2557 | fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; | ||
| 2558 | fmt->field = V4L2_FIELD_NONE; | ||
| 2559 | } | ||
| 2560 | |||
| 2561 | static int hi847_start_streaming(struct hi847 *hi847) | ||
| 2562 | { | ||
| 2563 | struct i2c_client *client = v4l2_get_subdevdata(&hi847->sd); | ||
| 2564 | const struct hi847_reg_list *reg_list; | ||
| 2565 | int link_freq_index, ret; | ||
| 2566 | |||
| 2567 | link_freq_index = hi847->cur_mode->link_freq_index; | ||
| 2568 | reg_list = &link_freq_configs[link_freq_index].reg_list; | ||
| 2569 | ret = hi847_write_reg_list(hi847, reg_list); | ||
| 2570 | if (ret) { | ||
| 2571 | dev_err(&client->dev, "failed to set plls"); | ||
| 2572 | return ret; | ||
| 2573 | } | ||
| 2574 | |||
| 2575 | reg_list = &hi847->cur_mode->reg_list; | ||
| 2576 | ret = hi847_write_reg_list(hi847, reg_list); | ||
| 2577 | if (ret) { | ||
| 2578 | dev_err(&client->dev, "failed to set mode"); | ||
| 2579 | return ret; | ||
| 2580 | } | ||
| 2581 | |||
| 2582 | ret = __v4l2_ctrl_handler_setup(hi847->sd.ctrl_handler); | ||
| 2583 | if (ret) | ||
| 2584 | return ret; | ||
| 2585 | |||
| 2586 | ret = hi847_write_reg(hi847, HI847_REG_MODE_TG, | ||
| 2587 | HI847_REG_VALUE_16BIT, HI847_REG_MODE_TG_ENABLE); | ||
| 2588 | |||
| 2589 | ret = hi847_write_reg(hi847, HI847_REG_MODE_SELECT, | ||
| 2590 | HI847_REG_VALUE_16BIT, HI847_MODE_STREAMING); | ||
| 2591 | |||
| 2592 | if (ret) { | ||
| 2593 | dev_err(&client->dev, "failed to set stream"); | ||
| 2594 | return ret; | ||
| 2595 | } | ||
| 2596 | |||
| 2597 | return 0; | ||
| 2598 | } | ||
| 2599 | |||
| 2600 | static void hi847_stop_streaming(struct hi847 *hi847) | ||
| 2601 | { | ||
| 2602 | struct i2c_client *client = v4l2_get_subdevdata(&hi847->sd); | ||
| 2603 | |||
| 2604 | if (hi847_write_reg(hi847, HI847_REG_MODE_TG, | ||
| 2605 | HI847_REG_VALUE_16BIT, HI847_REG_MODE_TG_DISABLE)) | ||
| 2606 | dev_err(&client->dev, "failed to set stream 0x%x", | ||
| 2607 | HI847_REG_MODE_TG); | ||
| 2608 | |||
| 2609 | if (hi847_write_reg(hi847, HI847_REG_MODE_SELECT, | ||
| 2610 | HI847_REG_VALUE_16BIT, HI847_MODE_STANDBY)) | ||
| 2611 | dev_err(&client->dev, "failed to set stream 0x%x", | ||
| 2612 | HI847_REG_MODE_SELECT); | ||
| 2613 | } | ||
| 2614 | |||
| 2615 | static int hi847_set_stream(struct v4l2_subdev *sd, int enable) | ||
| 2616 | { | ||
| 2617 | struct hi847 *hi847 = to_hi847(sd); | ||
| 2618 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 2619 | int ret = 0; | ||
| 2620 | |||
| 2621 | if (hi847->streaming == enable) | ||
| 2622 | return 0; | ||
| 2623 | |||
| 2624 | mutex_lock(&hi847->mutex); | ||
| 2625 | if (enable) { | ||
| 2626 | ret = pm_runtime_get_sync(&client->dev); | ||
| 2627 | if (ret < 0) { | ||
| 2628 | pm_runtime_put_noidle(&client->dev); | ||
| 2629 | mutex_unlock(&hi847->mutex); | ||
| 2630 | return ret; | ||
| 2631 | } | ||
| 2632 | |||
| 2633 | ret = hi847_start_streaming(hi847); | ||
| 2634 | if (ret) { | ||
| 2635 | enable = 0; | ||
| 2636 | hi847_stop_streaming(hi847); | ||
| 2637 | pm_runtime_put(&client->dev); | ||
| 2638 | } | ||
| 2639 | } else { | ||
| 2640 | hi847_stop_streaming(hi847); | ||
| 2641 | pm_runtime_put(&client->dev); | ||
| 2642 | } | ||
| 2643 | |||
| 2644 | hi847->streaming = enable; | ||
| 2645 | mutex_unlock(&hi847->mutex); | ||
| 2646 | |||
| 2647 | return ret; | ||
| 2648 | } | ||
| 2649 | |||
| 2650 | static int __maybe_unused hi847_suspend(struct device *dev) | ||
| 2651 | { | ||
| 2652 | struct i2c_client *client = to_i2c_client(dev); | ||
| 2653 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 2654 | struct hi847 *hi847 = to_hi847(sd); | ||
| 2655 | |||
| 2656 | mutex_lock(&hi847->mutex); | ||
| 2657 | if (hi847->streaming) | ||
| 2658 | hi847_stop_streaming(hi847); | ||
| 2659 | |||
| 2660 | mutex_unlock(&hi847->mutex); | ||
| 2661 | |||
| 2662 | return 0; | ||
| 2663 | } | ||
| 2664 | |||
| 2665 | static int __maybe_unused hi847_resume(struct device *dev) | ||
| 2666 | { | ||
| 2667 | struct i2c_client *client = to_i2c_client(dev); | ||
| 2668 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 2669 | struct hi847 *hi847 = to_hi847(sd); | ||
| 2670 | int ret; | ||
| 2671 | |||
| 2672 | mutex_lock(&hi847->mutex); | ||
| 2673 | if (hi847->streaming) { | ||
| 2674 | ret = hi847_start_streaming(hi847); | ||
| 2675 | if (ret) | ||
| 2676 | goto error; | ||
| 2677 | } | ||
| 2678 | |||
| 2679 | mutex_unlock(&hi847->mutex); | ||
| 2680 | |||
| 2681 | return 0; | ||
| 2682 | |||
| 2683 | error: | ||
| 2684 | hi847_stop_streaming(hi847); | ||
| 2685 | hi847->streaming = 0; | ||
| 2686 | mutex_unlock(&hi847->mutex); | ||
| 2687 | return ret; | ||
| 2688 | } | ||
| 2689 | |||
| 2690 | static int hi847_set_format(struct v4l2_subdev *sd, | ||
| 2691 | struct v4l2_subdev_state *sd_state, | ||
| 2692 | struct v4l2_subdev_format *fmt) | ||
| 2693 | { | ||
| 2694 | struct hi847 *hi847 = to_hi847(sd); | ||
| 2695 | const struct hi847_mode *mode; | ||
| 2696 | s32 vblank_def, h_blank; | ||
| 2697 | |||
| 2698 | mode = v4l2_find_nearest_size(supported_modes, | ||
| 2699 | ARRAY_SIZE(supported_modes), width, | ||
| 2700 | height, fmt->format.width, | ||
| 2701 | fmt->format.height); | ||
| 2702 | |||
| 2703 | mutex_lock(&hi847->mutex); | ||
| 2704 | hi847_assign_pad_format(mode, &fmt->format); | ||
| 2705 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { | ||
| 2706 | *v4l2_subdev_get_try_format(sd, sd_state, fmt->pad) = | ||
| 2707 | fmt->format; | ||
| 2708 | } else { | ||
| 2709 | hi847->cur_mode = mode; | ||
| 2710 | __v4l2_ctrl_s_ctrl(hi847->link_freq, mode->link_freq_index); | ||
| 2711 | __v4l2_ctrl_s_ctrl_int64(hi847->pixel_rate, | ||
| 2712 | to_pixel_rate(mode->link_freq_index)); | ||
| 2713 | |||
| 2714 | /* Update limits and set FPS to default */ | ||
| 2715 | vblank_def = mode->fll_def - mode->height; | ||
| 2716 | __v4l2_ctrl_modify_range(hi847->vblank, | ||
| 2717 | mode->fll_min - mode->height, | ||
| 2718 | HI847_FLL_MAX - mode->height, 1, | ||
| 2719 | vblank_def); | ||
| 2720 | __v4l2_ctrl_s_ctrl(hi847->vblank, vblank_def); | ||
| 2721 | |||
| 2722 | h_blank = hi847->cur_mode->llp - hi847->cur_mode->width; | ||
| 2723 | |||
| 2724 | __v4l2_ctrl_modify_range(hi847->hblank, h_blank, h_blank, 1, | ||
| 2725 | h_blank); | ||
| 2726 | } | ||
| 2727 | |||
| 2728 | mutex_unlock(&hi847->mutex); | ||
| 2729 | |||
| 2730 | return 0; | ||
| 2731 | } | ||
| 2732 | |||
| 2733 | static int hi847_get_format(struct v4l2_subdev *sd, | ||
| 2734 | struct v4l2_subdev_state *sd_state, | ||
| 2735 | struct v4l2_subdev_format *fmt) | ||
| 2736 | { | ||
| 2737 | struct hi847 *hi847 = to_hi847(sd); | ||
| 2738 | |||
| 2739 | mutex_lock(&hi847->mutex); | ||
| 2740 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) | ||
| 2741 | fmt->format = *v4l2_subdev_get_try_format(&hi847->sd, | ||
| 2742 | sd_state, | ||
| 2743 | fmt->pad); | ||
| 2744 | else | ||
| 2745 | hi847_assign_pad_format(hi847->cur_mode, &fmt->format); | ||
| 2746 | |||
| 2747 | mutex_unlock(&hi847->mutex); | ||
| 2748 | |||
| 2749 | return 0; | ||
| 2750 | } | ||
| 2751 | |||
| 2752 | static int hi847_enum_mbus_code(struct v4l2_subdev *sd, | ||
| 2753 | struct v4l2_subdev_state *sd_state, | ||
| 2754 | struct v4l2_subdev_mbus_code_enum *code) | ||
| 2755 | { | ||
| 2756 | if (code->index > 0) | ||
| 2757 | return -EINVAL; | ||
| 2758 | |||
| 2759 | code->code = MEDIA_BUS_FMT_SGRBG10_1X10; | ||
| 2760 | |||
| 2761 | return 0; | ||
| 2762 | } | ||
| 2763 | |||
| 2764 | static int hi847_enum_frame_size(struct v4l2_subdev *sd, | ||
| 2765 | struct v4l2_subdev_state *sd_state, | ||
| 2766 | struct v4l2_subdev_frame_size_enum *fse) | ||
| 2767 | { | ||
| 2768 | if (fse->index >= ARRAY_SIZE(supported_modes)) | ||
| 2769 | return -EINVAL; | ||
| 2770 | |||
| 2771 | if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) | ||
| 2772 | return -EINVAL; | ||
| 2773 | |||
| 2774 | fse->min_width = supported_modes[fse->index].width; | ||
| 2775 | fse->max_width = fse->min_width; | ||
| 2776 | fse->min_height = supported_modes[fse->index].height; | ||
| 2777 | fse->max_height = fse->min_height; | ||
| 2778 | |||
| 2779 | return 0; | ||
| 2780 | } | ||
| 2781 | |||
| 2782 | static int hi847_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) | ||
| 2783 | { | ||
| 2784 | struct hi847 *hi847 = to_hi847(sd); | ||
| 2785 | |||
| 2786 | mutex_lock(&hi847->mutex); | ||
| 2787 | hi847_assign_pad_format(&supported_modes[0], | ||
| 2788 | v4l2_subdev_get_try_format(sd, fh->state, 0)); | ||
| 2789 | mutex_unlock(&hi847->mutex); | ||
| 2790 | |||
| 2791 | return 0; | ||
| 2792 | } | ||
| 2793 | |||
| 2794 | static const struct v4l2_subdev_video_ops hi847_video_ops = { | ||
| 2795 | .s_stream = hi847_set_stream, | ||
| 2796 | }; | ||
| 2797 | |||
| 2798 | static const struct v4l2_subdev_pad_ops hi847_pad_ops = { | ||
| 2799 | .set_fmt = hi847_set_format, | ||
| 2800 | .get_fmt = hi847_get_format, | ||
| 2801 | .enum_mbus_code = hi847_enum_mbus_code, | ||
| 2802 | .enum_frame_size = hi847_enum_frame_size, | ||
| 2803 | }; | ||
| 2804 | |||
| 2805 | static const struct v4l2_subdev_ops hi847_subdev_ops = { | ||
| 2806 | .video = &hi847_video_ops, | ||
| 2807 | .pad = &hi847_pad_ops, | ||
| 2808 | }; | ||
| 2809 | |||
| 2810 | static const struct media_entity_operations hi847_subdev_entity_ops = { | ||
| 2811 | .link_validate = v4l2_subdev_link_validate, | ||
| 2812 | }; | ||
| 2813 | |||
| 2814 | static const struct v4l2_subdev_internal_ops hi847_internal_ops = { | ||
| 2815 | .open = hi847_open, | ||
| 2816 | }; | ||
| 2817 | |||
| 2818 | static int hi847_identify_module(struct hi847 *hi847) | ||
| 2819 | { | ||
| 2820 | struct i2c_client *client = v4l2_get_subdevdata(&hi847->sd); | ||
| 2821 | int ret; | ||
| 2822 | u32 val; | ||
| 2823 | |||
| 2824 | ret = hi847_read_reg(hi847, HI847_REG_CHIP_ID, | ||
| 2825 | HI847_REG_VALUE_16BIT, &val); | ||
| 2826 | if (ret) | ||
| 2827 | return ret; | ||
| 2828 | |||
| 2829 | if (val != HI847_CHIP_ID) { | ||
| 2830 | dev_err(&client->dev, "chip id mismatch: %x!=%x", | ||
| 2831 | HI847_CHIP_ID, val); | ||
| 2832 | return -ENXIO; | ||
| 2833 | } | ||
| 2834 | |||
| 2835 | return 0; | ||
| 2836 | } | ||
| 2837 | |||
| 2838 | static int hi847_check_hwcfg(struct device *dev) | ||
| 2839 | { | ||
| 2840 | struct fwnode_handle *ep; | ||
| 2841 | struct fwnode_handle *fwnode = dev_fwnode(dev); | ||
| 2842 | struct v4l2_fwnode_endpoint bus_cfg = { | ||
| 2843 | .bus_type = V4L2_MBUS_CSI2_DPHY | ||
| 2844 | }; | ||
| 2845 | u32 mclk; | ||
| 2846 | int ret; | ||
| 2847 | unsigned int i, j; | ||
| 2848 | |||
| 2849 | if (!fwnode) | ||
| 2850 | return -ENXIO; | ||
| 2851 | |||
| 2852 | ret = fwnode_property_read_u32(fwnode, "clock-frequency", &mclk); | ||
| 2853 | if (ret) { | ||
| 2854 | dev_err(dev, "can't get clock frequency"); | ||
| 2855 | return ret; | ||
| 2856 | } | ||
| 2857 | |||
| 2858 | if (mclk != HI847_MCLK) { | ||
| 2859 | dev_err(dev, "external clock %d is not supported", mclk); | ||
| 2860 | return -EINVAL; | ||
| 2861 | } | ||
| 2862 | |||
| 2863 | ep = fwnode_graph_get_next_endpoint(fwnode, NULL); | ||
| 2864 | if (!ep) | ||
| 2865 | return -ENXIO; | ||
| 2866 | |||
| 2867 | ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); | ||
| 2868 | fwnode_handle_put(ep); | ||
| 2869 | if (ret) | ||
| 2870 | return ret; | ||
| 2871 | |||
| 2872 | if (bus_cfg.bus.mipi_csi2.num_data_lanes != HI847_DATA_LANES) { | ||
| 2873 | dev_err(dev, "number of CSI2 data lanes %d is not supported", | ||
| 2874 | bus_cfg.bus.mipi_csi2.num_data_lanes); | ||
| 2875 | ret = -EINVAL; | ||
| 2876 | goto check_hwcfg_error; | ||
| 2877 | } | ||
| 2878 | |||
| 2879 | if (!bus_cfg.nr_of_link_frequencies) { | ||
| 2880 | dev_err(dev, "no link frequencies defined"); | ||
| 2881 | ret = -EINVAL; | ||
| 2882 | goto check_hwcfg_error; | ||
| 2883 | } | ||
| 2884 | |||
| 2885 | for (i = 0; i < ARRAY_SIZE(link_freq_menu_items); i++) { | ||
| 2886 | for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { | ||
| 2887 | if (link_freq_menu_items[i] == | ||
| 2888 | bus_cfg.link_frequencies[j]) | ||
| 2889 | break; | ||
| 2890 | } | ||
| 2891 | |||
| 2892 | if (j == bus_cfg.nr_of_link_frequencies) { | ||
| 2893 | dev_err(dev, "no link frequency %lld supported", | ||
| 2894 | link_freq_menu_items[i]); | ||
| 2895 | ret = -EINVAL; | ||
| 2896 | goto check_hwcfg_error; | ||
| 2897 | } | ||
| 2898 | } | ||
| 2899 | |||
| 2900 | check_hwcfg_error: | ||
| 2901 | v4l2_fwnode_endpoint_free(&bus_cfg); | ||
| 2902 | |||
| 2903 | return ret; | ||
| 2904 | } | ||
| 2905 | |||
| 2906 | static int hi847_remove(struct i2c_client *client) | ||
| 2907 | { | ||
| 2908 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 2909 | struct hi847 *hi847 = to_hi847(sd); | ||
| 2910 | |||
| 2911 | v4l2_async_unregister_subdev(sd); | ||
| 2912 | media_entity_cleanup(&sd->entity); | ||
| 2913 | v4l2_ctrl_handler_free(sd->ctrl_handler); | ||
| 2914 | pm_runtime_disable(&client->dev); | ||
| 2915 | mutex_destroy(&hi847->mutex); | ||
| 2916 | |||
| 2917 | return 0; | ||
| 2918 | } | ||
| 2919 | |||
| 2920 | static int hi847_probe(struct i2c_client *client) | ||
| 2921 | { | ||
| 2922 | struct hi847 *hi847; | ||
| 2923 | int ret; | ||
| 2924 | |||
| 2925 | hi847 = devm_kzalloc(&client->dev, sizeof(*hi847), GFP_KERNEL); | ||
| 2926 | if (!hi847) | ||
| 2927 | return -ENOMEM; | ||
| 2928 | |||
| 2929 | ret = hi847_check_hwcfg(&client->dev); | ||
| 2930 | if (ret) { | ||
| 2931 | dev_err(&client->dev, "failed to get HW configuration: %d", | ||
| 2932 | ret); | ||
| 2933 | return ret; | ||
| 2934 | } | ||
| 2935 | |||
| 2936 | v4l2_i2c_subdev_init(&hi847->sd, client, &hi847_subdev_ops); | ||
| 2937 | ret = hi847_identify_module(hi847); | ||
| 2938 | if (ret) { | ||
| 2939 | dev_err(&client->dev, "failed to find sensor: %d", ret); | ||
| 2940 | return ret; | ||
| 2941 | } | ||
| 2942 | |||
| 2943 | mutex_init(&hi847->mutex); | ||
| 2944 | hi847->cur_mode = &supported_modes[0]; | ||
| 2945 | ret = hi847_init_controls(hi847); | ||
| 2946 | if (ret) { | ||
| 2947 | dev_err(&client->dev, "failed to init controls: %d", ret); | ||
| 2948 | goto probe_error_v4l2_ctrl_handler_free; | ||
| 2949 | } | ||
| 2950 | |||
| 2951 | hi847->sd.internal_ops = &hi847_internal_ops; | ||
| 2952 | hi847->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; | ||
| 2953 | hi847->sd.entity.ops = &hi847_subdev_entity_ops; | ||
| 2954 | hi847->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; | ||
| 2955 | hi847->pad.flags = MEDIA_PAD_FL_SOURCE; | ||
| 2956 | ret = media_entity_pads_init(&hi847->sd.entity, 1, &hi847->pad); | ||
| 2957 | if (ret) { | ||
| 2958 | dev_err(&client->dev, "failed to init entity pads: %d", ret); | ||
| 2959 | goto probe_error_v4l2_ctrl_handler_free; | ||
| 2960 | } | ||
| 2961 | |||
| 2962 | ret = v4l2_async_register_subdev_sensor(&hi847->sd); | ||
| 2963 | if (ret < 0) { | ||
| 2964 | dev_err(&client->dev, "failed to register V4L2 subdev: %d", | ||
| 2965 | ret); | ||
| 2966 | goto probe_error_media_entity_cleanup; | ||
| 2967 | } | ||
| 2968 | |||
| 2969 | pm_runtime_set_active(&client->dev); | ||
| 2970 | pm_runtime_enable(&client->dev); | ||
| 2971 | pm_runtime_idle(&client->dev); | ||
| 2972 | |||
| 2973 | return 0; | ||
| 2974 | |||
| 2975 | probe_error_media_entity_cleanup: | ||
| 2976 | media_entity_cleanup(&hi847->sd.entity); | ||
| 2977 | |||
| 2978 | probe_error_v4l2_ctrl_handler_free: | ||
| 2979 | v4l2_ctrl_handler_free(hi847->sd.ctrl_handler); | ||
| 2980 | mutex_destroy(&hi847->mutex); | ||
| 2981 | |||
| 2982 | return ret; | ||
| 2983 | } | ||
| 2984 | |||
| 2985 | static const struct dev_pm_ops hi847_pm_ops = { | ||
| 2986 | SET_SYSTEM_SLEEP_PM_OPS(hi847_suspend, hi847_resume) | ||
| 2987 | }; | ||
| 2988 | |||
| 2989 | #ifdef CONFIG_ACPI | ||
| 2990 | static const struct acpi_device_id hi847_acpi_ids[] = { | ||
| 2991 | {"HYV0847"}, | ||
| 2992 | {} | ||
| 2993 | }; | ||
| 2994 | |||
| 2995 | MODULE_DEVICE_TABLE(acpi, hi847_acpi_ids); | ||
| 2996 | #endif | ||
| 2997 | |||
| 2998 | static struct i2c_driver hi847_i2c_driver = { | ||
| 2999 | .driver = { | ||
| 3000 | .name = "hi847", | ||
| 3001 | .pm = &hi847_pm_ops, | ||
| 3002 | .acpi_match_table = ACPI_PTR(hi847_acpi_ids), | ||
| 3003 | }, | ||
| 3004 | .probe_new = hi847_probe, | ||
| 3005 | .remove = hi847_remove, | ||
| 3006 | }; | ||
| 3007 | |||
| 3008 | module_i2c_driver(hi847_i2c_driver); | ||
| 3009 | |||
| 3010 | MODULE_AUTHOR("Shawn Tu <shawnx.tu@intel.com>"); | ||
| 3011 | MODULE_DESCRIPTION("Hynix HI847 sensor driver"); | ||
| 3012 | MODULE_LICENSE("GPL v2"); | ||
| @@ -11,13 +11,11 @@ · 10 unmodified lines | |||
| 11 | 11 | ||
| 12 | #include <linux/clk.h> | 12 | #include <linux/clk.h> |
| 13 | #include <linux/delay.h> | 13 | #include <linux/delay.h> |
| 14 | #include <linux/gpio.h> | ||
| 15 | #include <linux/gpio/consumer.h> | 14 | #include <linux/gpio/consumer.h> |
| 16 | #include <linux/i2c.h> | 15 | #include <linux/i2c.h> |
| 17 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| 18 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
| 19 | #include <linux/module.h> | 18 | #include <linux/module.h> |
| 20 | #include <linux/of_gpio.h> | ||
| 21 | #include <linux/pm_runtime.h> | 19 | #include <linux/pm_runtime.h> |
| 22 | #include <linux/regmap.h> | 20 | #include <linux/regmap.h> |
| 23 | #include <linux/regulator/consumer.h> | 21 | #include <linux/regulator/consumer.h> |
| @@ -0,0 +1,1628 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 2 | /* | ||
| 3 | * Intersil ISL7998x analog to MIPI CSI-2 or BT.656 decoder driver. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2018-2019 Marek Vasut <marex@denx.de> | ||
| 6 | * Copyright (C) 2021 Michael Tretter <kernel@pengutronix.de> | ||
| 7 | */ | ||
| 8 | |||
| 9 | #include <linux/bitfield.h> | ||
| 10 | #include <linux/delay.h> | ||
| 11 | #include <linux/gpio.h> | ||
| 12 | #include <linux/i2c.h> | ||
| 13 | #include <linux/module.h> | ||
| 14 | #include <linux/of_graph.h> | ||
| 15 | #include <linux/pm_runtime.h> | ||
| 16 | #include <linux/regmap.h> | ||
| 17 | #include <linux/slab.h> | ||
| 18 | #include <linux/v4l2-mediabus.h> | ||
| 19 | #include <linux/videodev2.h> | ||
| 20 | |||
| 21 | #include <media/v4l2-async.h> | ||
| 22 | #include <media/v4l2-common.h> | ||
| 23 | #include <media/v4l2-ctrls.h> | ||
| 24 | #include <media/v4l2-device.h> | ||
| 25 | #include <media/v4l2-fwnode.h> | ||
| 26 | #include <media/v4l2-ioctl.h> | ||
| 27 | |||
| 28 | /* | ||
| 29 | * This control allows to activate and deactivate the test pattern on | ||
| 30 | * selected output channels. | ||
| 31 | * This value is ISL7998x specific. | ||
| 32 | */ | ||
| 33 | #define V4L2_CID_TEST_PATTERN_CHANNELS (V4L2_CID_USER_ISL7998X_BASE + 0) | ||
| 34 | |||
| 35 | /* | ||
| 36 | * This control allows to specify the color of the test pattern. | ||
| 37 | * This value is ISL7998x specific. | ||
| 38 | */ | ||
| 39 | #define V4L2_CID_TEST_PATTERN_COLOR (V4L2_CID_USER_ISL7998X_BASE + 1) | ||
| 40 | |||
| 41 | /* | ||
| 42 | * This control allows to specify the bar pattern in the test pattern. | ||
| 43 | * This value is ISL7998x specific. | ||
| 44 | */ | ||
| 45 | #define V4L2_CID_TEST_PATTERN_BARS (V4L2_CID_USER_ISL7998X_BASE + 2) | ||
| 46 | |||
| 47 | #define ISL7998X_INPUTS 4 | ||
| 48 | |||
| 49 | #define ISL7998X_REG(page, reg) (((page) << 8) | (reg)) | ||
| 50 | |||
| 51 | #define ISL7998X_REG_PN_SIZE 256 | ||
| 52 | #define ISL7998X_REG_PN_BASE(n) ((n) * ISL7998X_REG_PN_SIZE) | ||
| 53 | |||
| 54 | #define ISL7998X_REG_PX_DEC_PAGE(page) ISL7998X_REG((page), 0xff) | ||
| 55 | #define ISL7998X_REG_PX_DEC_PAGE_MASK 0xf | ||
| 56 | #define ISL7998X_REG_P0_PRODUCT_ID_CODE ISL7998X_REG(0, 0x00) | ||
| 57 | #define ISL7998X_REG_P0_PRODUCT_REV_CODE ISL7998X_REG(0, 0x01) | ||
| 58 | #define ISL7998X_REG_P0_SW_RESET_CTL ISL7998X_REG(0, 0x02) | ||
| 59 | #define ISL7998X_REG_P0_IO_BUFFER_CTL ISL7998X_REG(0, 0x03) | ||
| 60 | #define ISL7998X_REG_P0_IO_BUFFER_CTL_1_1 ISL7998X_REG(0, 0x04) | ||
| 61 | #define ISL7998X_REG_P0_IO_PAD_PULL_EN_CTL ISL7998X_REG(0, 0x05) | ||
| 62 | #define ISL7998X_REG_P0_IO_BUFFER_CTL_1_2 ISL7998X_REG(0, 0x06) | ||
| 63 | #define ISL7998X_REG_P0_VIDEO_IN_CHAN_CTL ISL7998X_REG(0, 0x07) | ||
| 64 | #define ISL7998X_REG_P0_CLK_CTL_1 ISL7998X_REG(0, 0x08) | ||
| 65 | #define ISL7998X_REG_P0_CLK_CTL_2 ISL7998X_REG(0, 0x09) | ||
| 66 | #define ISL7998X_REG_P0_CLK_CTL_3 ISL7998X_REG(0, 0x0a) | ||
| 67 | #define ISL7998X_REG_P0_CLK_CTL_4 ISL7998X_REG(0, 0x0b) | ||
| 68 | #define ISL7998X_REG_P0_MPP1_SYNC_CTL ISL7998X_REG(0, 0x0c) | ||
| 69 | #define ISL7998X_REG_P0_MPP2_SYNC_CTL ISL7998X_REG(0, 0x0d) | ||
| 70 | #define ISL7998X_REG_P0_IRQ_SYNC_CTL ISL7998X_REG(0, 0x0e) | ||
| 71 | #define ISL7998X_REG_P0_INTERRUPT_STATUS ISL7998X_REG(0, 0x10) | ||
| 72 | #define ISL7998X_REG_P0_CHAN_1_IRQ ISL7998X_REG(0, 0x11) | ||
| 73 | #define ISL7998X_REG_P0_CHAN_2_IRQ ISL7998X_REG(0, 0x12) | ||
| 74 | #define ISL7998X_REG_P0_CHAN_3_IRQ ISL7998X_REG(0, 0x13) | ||
| 75 | #define ISL7998X_REG_P0_CHAN_4_IRQ ISL7998X_REG(0, 0x14) | ||
| 76 | #define ISL7998X_REG_P0_SHORT_DIAG_IRQ ISL7998X_REG(0, 0x15) | ||
| 77 | #define ISL7998X_REG_P0_CHAN_1_IRQ_EN ISL7998X_REG(0, 0x16) | ||
| 78 | #define ISL7998X_REG_P0_CHAN_2_IRQ_EN ISL7998X_REG(0, 0x17) | ||
| 79 | #define ISL7998X_REG_P0_CHAN_3_IRQ_EN ISL7998X_REG(0, 0x18) | ||
| 80 | #define ISL7998X_REG_P0_CHAN_4_IRQ_EN ISL7998X_REG(0, 0x19) | ||
| 81 | #define ISL7998X_REG_P0_SHORT_DIAG_IRQ_EN ISL7998X_REG(0, 0x1a) | ||
| 82 | #define ISL7998X_REG_P0_CHAN_1_STATUS ISL7998X_REG(0, 0x1b) | ||
| 83 | #define ISL7998X_REG_P0_CHAN_2_STATUS ISL7998X_REG(0, 0x1c) | ||
| 84 | #define ISL7998X_REG_P0_CHAN_3_STATUS ISL7998X_REG(0, 0x1d) | ||
| 85 | #define ISL7998X_REG_P0_CHAN_4_STATUS ISL7998X_REG(0, 0x1e) | ||
| 86 | #define ISL7998X_REG_P0_SHORT_DIAG_STATUS ISL7998X_REG(0, 0x1f) | ||
| 87 | #define ISL7998X_REG_P0_CLOCK_DELAY ISL7998X_REG(0, 0x20) | ||
| 88 | |||
| 89 | #define ISL7998X_REG_PX_DEC_INPUT_FMT(pg) ISL7998X_REG((pg), 0x02) | ||
| 90 | #define ISL7998X_REG_PX_DEC_STATUS_1(pg) ISL7998X_REG((pg), 0x03) | ||
| 91 | #define ISL7998X_REG_PX_DEC_STATUS_1_VDLOSS BIT(7) | ||
| 92 | #define ISL7998X_REG_PX_DEC_STATUS_1_HLOCK BIT(6) | ||
| 93 | #define ISL7998X_REG_PX_DEC_STATUS_1_VLOCK BIT(3) | ||
| 94 | #define ISL7998X_REG_PX_DEC_HS_DELAY_CTL(pg) ISL7998X_REG((pg), 0x04) | ||
| 95 | #define ISL7998X_REG_PX_DEC_ANCTL(pg) ISL7998X_REG((pg), 0x06) | ||
| 96 | #define ISL7998X_REG_PX_DEC_CROP_HI(pg) ISL7998X_REG((pg), 0x07) | ||
| 97 | #define ISL7998X_REG_PX_DEC_VDELAY_LO(pg) ISL7998X_REG((pg), 0x08) | ||
| 98 | #define ISL7998X_REG_PX_DEC_VACTIVE_LO(pg) ISL7998X_REG((pg), 0x09) | ||
| 99 | #define ISL7998X_REG_PX_DEC_HDELAY_LO(pg) ISL7998X_REG((pg), 0x0a) | ||
| 100 | #define ISL7998X_REG_PX_DEC_HACTIVE_LO(pg) ISL7998X_REG((pg), 0x0b) | ||
| 101 | #define ISL7998X_REG_PX_DEC_CNTRL1(pg) ISL7998X_REG((pg), 0x0c) | ||
| 102 | #define ISL7998X_REG_PX_DEC_CSC_CTL(pg) ISL7998X_REG((pg), 0x0d) | ||
| 103 | #define ISL7998X_REG_PX_DEC_BRIGHT(pg) ISL7998X_REG((pg), 0x10) | ||
| 104 | #define ISL7998X_REG_PX_DEC_CONTRAST(pg) ISL7998X_REG((pg), 0x11) | ||
| 105 | #define ISL7998X_REG_PX_DEC_SHARPNESS(pg) ISL7998X_REG((pg), 0x12) | ||
| 106 | #define ISL7998X_REG_PX_DEC_SAT_U(pg) ISL7998X_REG((pg), 0x13) | ||
| 107 | #define ISL7998X_REG_PX_DEC_SAT_V(pg) ISL7998X_REG((pg), 0x14) | ||
| 108 | #define ISL7998X_REG_PX_DEC_HUE(pg) ISL7998X_REG((pg), 0x15) | ||
| 109 | #define ISL7998X_REG_PX_DEC_VERT_PEAK(pg) ISL7998X_REG((pg), 0x17) | ||
| 110 | #define ISL7998X_REG_PX_DEC_CORING(pg) ISL7998X_REG((pg), 0x18) | ||
| 111 | #define ISL7998X_REG_PX_DEC_SDT(pg) ISL7998X_REG((pg), 0x1c) | ||
| 112 | #define ISL7998X_REG_PX_DEC_SDT_DET BIT(7) | ||
| 113 | #define ISL7998X_REG_PX_DEC_SDT_NOW GENMASK(6, 4) | ||
| 114 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD GENMASK(2, 0) | ||
| 115 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_NTSC_M 0 | ||
| 116 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL 1 | ||
| 117 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_SECAM 2 | ||
| 118 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_NTSC_443 3 | ||
| 119 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL_M 4 | ||
| 120 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL_CN 5 | ||
| 121 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL_60 6 | ||
| 122 | #define ISL7998X_REG_PX_DEC_SDT_STANDARD_UNKNOWN 7 | ||
| 123 | #define ISL7998X_REG_PX_DEC_SDTR(pg) ISL7998X_REG((pg), 0x1d) | ||
| 124 | #define ISL7998X_REG_PX_DEC_SDTR_ATSTART BIT(7) | ||
| 125 | #define ISL7998X_REG_PX_DEC_CLMPG(pg) ISL7998X_REG((pg), 0x20) | ||
| 126 | #define ISL7998X_REG_PX_DEC_IAGC(pg) ISL7998X_REG((pg), 0x21) | ||
| 127 | #define ISL7998X_REG_PX_DEC_AGCGAIN(pg) ISL7998X_REG((pg), 0x22) | ||
| 128 | #define ISL7998X_REG_PX_DEC_PEAKWT(pg) ISL7998X_REG((pg), 0x23) | ||
| 129 | #define ISL7998X_REG_PX_DEC_CLMPL(pg) ISL7998X_REG((pg), 0x24) | ||
| 130 | #define ISL7998X_REG_PX_DEC_SYNCT(pg) ISL7998X_REG((pg), 0x25) | ||
| 131 | #define ISL7998X_REG_PX_DEC_MISSCNT(pg) ISL7998X_REG((pg), 0x26) | ||
| 132 | #define ISL7998X_REG_PX_DEC_PCLAMP(pg) ISL7998X_REG((pg), 0x27) | ||
| 133 | #define ISL7998X_REG_PX_DEC_VERT_CTL_1(pg) ISL7998X_REG((pg), 0x28) | ||
| 134 | #define ISL7998X_REG_PX_DEC_VERT_CTL_2(pg) ISL7998X_REG((pg), 0x29) | ||
| 135 | #define ISL7998X_REG_PX_DEC_CLR_KILL_LVL(pg) ISL7998X_REG((pg), 0x2a) | ||
| 136 | #define ISL7998X_REG_PX_DEC_COMB_FILTER_CTL(pg) ISL7998X_REG((pg), 0x2b) | ||
| 137 | #define ISL7998X_REG_PX_DEC_LUMA_DELAY(pg) ISL7998X_REG((pg), 0x2c) | ||
| 138 | #define ISL7998X_REG_PX_DEC_MISC1(pg) ISL7998X_REG((pg), 0x2d) | ||
| 139 | #define ISL7998X_REG_PX_DEC_MISC2(pg) ISL7998X_REG((pg), 0x2e) | ||
| 140 | #define ISL7998X_REG_PX_DEC_MISC3(pg) ISL7998X_REG((pg), 0x2f) | ||
| 141 | #define ISL7998X_REG_PX_DEC_MVSN(pg) ISL7998X_REG((pg), 0x30) | ||
| 142 | #define ISL7998X_REG_PX_DEC_CSTATUS2(pg) ISL7998X_REG((pg), 0x31) | ||
| 143 | #define ISL7998X_REG_PX_DEC_HFREF(pg) ISL7998X_REG((pg), 0x32) | ||
| 144 | #define ISL7998X_REG_PX_DEC_CLMD(pg) ISL7998X_REG((pg), 0x33) | ||
| 145 | #define ISL7998X_REG_PX_DEC_ID_DET_CTL(pg) ISL7998X_REG((pg), 0x34) | ||
| 146 | #define ISL7998X_REG_PX_DEC_CLCNTL(pg) ISL7998X_REG((pg), 0x35) | ||
| 147 | #define ISL7998X_REG_PX_DEC_DIFF_CLMP_CTL_1(pg) ISL7998X_REG((pg), 0x36) | ||
| 148 | #define ISL7998X_REG_PX_DEC_DIFF_CLMP_CTL_2(pg) ISL7998X_REG((pg), 0x37) | ||
| 149 | #define ISL7998X_REG_PX_DEC_DIFF_CLMP_CTL_3(pg) ISL7998X_REG((pg), 0x38) | ||
| 150 | #define ISL7998X_REG_PX_DEC_DIFF_CLMP_CTL_4(pg) ISL7998X_REG((pg), 0x39) | ||
| 151 | #define ISL7998X_REG_PX_DEC_SHORT_DET_CTL(pg) ISL7998X_REG((pg), 0x3a) | ||
| 152 | #define ISL7998X_REG_PX_DEC_SHORT_DET_CTL_1(pg) ISL7998X_REG((pg), 0x3b) | ||
| 153 | #define ISL7998X_REG_PX_DEC_AFE_TST_MUX_CTL(pg) ISL7998X_REG((pg), 0x3c) | ||
| 154 | #define ISL7998X_REG_PX_DEC_DATA_CONV(pg) ISL7998X_REG((pg), 0x3d) | ||
| 155 | #define ISL7998X_REG_PX_DEC_INTERNAL_TEST(pg) ISL7998X_REG((pg), 0x3f) | ||
| 156 | #define ISL7998X_REG_PX_DEC_H_DELAY_CTL(pg) ISL7998X_REG((pg), 0x43) | ||
| 157 | #define ISL7998X_REG_PX_DEC_H_DELAY_II_HI(pg) ISL7998X_REG((pg), 0x44) | ||
| 158 | #define ISL7998X_REG_PX_DEC_H_DELAY_II_LOW(pg) ISL7998X_REG((pg), 0x45) | ||
| 159 | |||
| 160 | #define ISL7998X_REG_PX_ACA_CTL_1(pg) ISL7998X_REG((pg), 0x80) | ||
| 161 | #define ISL7998X_REG_PX_ACA_GAIN_CTL(pg) ISL7998X_REG((pg), 0x81) | ||
| 162 | #define ISL7998X_REG_PX_ACA_Y_AVG_HI_LIMIT(pg) ISL7998X_REG((pg), 0x82) | ||
| 163 | #define ISL7998X_REG_PX_ACA_Y_AVG_LO_LIMIT(pg) ISL7998X_REG((pg), 0x83) | ||
| 164 | #define ISL7998X_REG_PX_ACA_Y_DET_THRESHOLD(pg) ISL7998X_REG((pg), 0x84) | ||
| 165 | #define ISL7998X_REG_PX_ACA_BLACK_LVL(pg) ISL7998X_REG((pg), 0x85) | ||
| 166 | #define ISL7998X_REG_PX_ACA_CENTER_LVL(pg) ISL7998X_REG((pg), 0x86) | ||
| 167 | #define ISL7998X_REG_PX_ACA_WHITE_LVL(pg) ISL7998X_REG((pg), 0x87) | ||
| 168 | #define ISL7998X_REG_PX_ACA_MEAN_OFF_LIMIT(pg) ISL7998X_REG((pg), 0x88) | ||
| 169 | #define ISL7998X_REG_PX_ACA_MEAN_OFF_UPGAIN(pg) ISL7998X_REG((pg), 0x89) | ||
| 170 | #define ISL7998X_REG_PX_ACA_MEAN_OFF_SLOPE(pg) ISL7998X_REG((pg), 0x8a) | ||
| 171 | #define ISL7998X_REG_PX_ACA_MEAN_OFF_DNGAIN(pg) ISL7998X_REG((pg), 0x8b) | ||
| 172 | #define ISL7998X_REG_PX_ACA_DELTA_CO_THRES(pg) ISL7998X_REG((pg), 0x8c) | ||
| 173 | #define ISL7998X_REG_PX_ACA_DELTA_SLOPE(pg) ISL7998X_REG((pg), 0x8d) | ||
| 174 | #define ISL7998X_REG_PX_ACA_LO_HI_AVG_THRES(pg) ISL7998X_REG((pg), 0x8e) | ||
| 175 | #define ISL7998X_REG_PX_ACA_LO_MAX_LVL_CTL(pg) ISL7998X_REG((pg), 0x8f) | ||
| 176 | #define ISL7998X_REG_PX_ACA_HI_MAX_LVL_CTL(pg) ISL7998X_REG((pg), 0x90) | ||
| 177 | #define ISL7998X_REG_PX_ACA_LO_UPGAIN_CTL(pg) ISL7998X_REG((pg), 0x91) | ||
| 178 | #define ISL7998X_REG_PX_ACA_LO_DNGAIN_CTL(pg) ISL7998X_REG((pg), 0x92) | ||
| 179 | #define ISL7998X_REG_PX_ACA_HI_UPGAIN_CTL(pg) ISL7998X_REG((pg), 0x93) | ||
| 180 | #define ISL7998X_REG_PX_ACA_HI_DNGAIN_CTL(pg) ISL7998X_REG((pg), 0x94) | ||
| 181 | #define ISL7998X_REG_PX_ACA_LOPASS_FLT_COEF(pg) ISL7998X_REG((pg), 0x95) | ||
| 182 | #define ISL7998X_REG_PX_ACA_PDF_INDEX(pg) ISL7998X_REG((pg), 0x96) | ||
| 183 | #define ISL7998X_REG_PX_ACA_HIST_WIN_H_STT(pg) ISL7998X_REG((pg), 0x97) | ||
| 184 | #define ISL7998X_REG_PX_ACA_HIST_WIN_H_SZ1(pg) ISL7998X_REG((pg), 0x98) | ||
| 185 | #define ISL7998X_REG_PX_ACA_HIST_WIN_H_SZ2(pg) ISL7998X_REG((pg), 0x99) | ||
| 186 | #define ISL7998X_REG_PX_ACA_HIST_WIN_V_STT(pg) ISL7998X_REG((pg), 0x9a) | ||
| 187 | #define ISL7998X_REG_PX_ACA_HIST_WIN_V_SZ1(pg) ISL7998X_REG((pg), 0x9b) | ||
| 188 | #define ISL7998X_REG_PX_ACA_HIST_WIN_V_SZ2(pg) ISL7998X_REG((pg), 0x9c) | ||
| 189 | #define ISL7998X_REG_PX_ACA_Y_AVG(pg) ISL7998X_REG((pg), 0xa0) | ||
| 190 | #define ISL7998X_REG_PX_ACA_Y_AVG_LIM(pg) ISL7998X_REG((pg), 0xa1) | ||
| 191 | #define ISL7998X_REG_PX_ACA_LO_AVG(pg) ISL7998X_REG((pg), 0xa2) | ||
| 192 | #define ISL7998X_REG_PX_ACA_HI_AVG(pg) ISL7998X_REG((pg), 0xa3) | ||
| 193 | #define ISL7998X_REG_PX_ACA_Y_MAX(pg) ISL7998X_REG((pg), 0xa4) | ||
| 194 | #define ISL7998X_REG_PX_ACA_Y_MIN(pg) ISL7998X_REG((pg), 0xa5) | ||
| 195 | #define ISL7998X_REG_PX_ACA_MOFFSET(pg) ISL7998X_REG((pg), 0xa6) | ||
| 196 | #define ISL7998X_REG_PX_ACA_LO_GAIN(pg) ISL7998X_REG((pg), 0xa7) | ||
| 197 | #define ISL7998X_REG_PX_ACA_HI_GAIN(pg) ISL7998X_REG((pg), 0xa8) | ||
| 198 | #define ISL7998X_REG_PX_ACA_LL_SLOPE(pg) ISL7998X_REG((pg), 0xa9) | ||
| 199 | #define ISL7998X_REG_PX_ACA_LH_SLOPE(pg) ISL7998X_REG((pg), 0xaa) | ||
| 200 | #define ISL7998X_REG_PX_ACA_HL_SLOPE(pg) ISL7998X_REG((pg), 0xab) | ||
| 201 | #define ISL7998X_REG_PX_ACA_HH_SLOPE(pg) ISL7998X_REG((pg), 0xac) | ||
| 202 | #define ISL7998X_REG_PX_ACA_X_LOW(pg) ISL7998X_REG((pg), 0xad) | ||
| 203 | #define ISL7998X_REG_PX_ACA_X_MEAN(pg) ISL7998X_REG((pg), 0xae) | ||
| 204 | #define ISL7998X_REG_PX_ACA_X_HIGH(pg) ISL7998X_REG((pg), 0xaf) | ||
| 205 | #define ISL7998X_REG_PX_ACA_Y_LOW(pg) ISL7998X_REG((pg), 0xb0) | ||
| 206 | #define ISL7998X_REG_PX_ACA_Y_MEAN(pg) ISL7998X_REG((pg), 0xb1) | ||
| 207 | #define ISL7998X_REG_PX_ACA_Y_HIGH(pg) ISL7998X_REG((pg), 0xb2) | ||
| 208 | #define ISL7998X_REG_PX_ACA_CTL_2(pg) ISL7998X_REG((pg), 0xb3) | ||
| 209 | #define ISL7998X_REG_PX_ACA_CTL_3(pg) ISL7998X_REG((pg), 0xb4) | ||
| 210 | #define ISL7998X_REG_PX_ACA_CTL_4(pg) ISL7998X_REG((pg), 0xb5) | ||
| 211 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_HIST(pg) ISL7998X_REG((pg), 0xc0) | ||
| 212 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_TL_H(pg) ISL7998X_REG((pg), 0xc1) | ||
| 213 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_TL_L(pg) ISL7998X_REG((pg), 0xc2) | ||
| 214 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_TL_H(pg) ISL7998X_REG((pg), 0xc3) | ||
| 215 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_TL_L(pg) ISL7998X_REG((pg), 0xc4) | ||
| 216 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_TR_H(pg) ISL7998X_REG((pg), 0xc5) | ||
| 217 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_TR_L(pg) ISL7998X_REG((pg), 0xc6) | ||
| 218 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_TR_H(pg) ISL7998X_REG((pg), 0xc7) | ||
| 219 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_TR_L(pg) ISL7998X_REG((pg), 0xc8) | ||
| 220 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_BL_H(pg) ISL7998X_REG((pg), 0xc9) | ||
| 221 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_BL_L(pg) ISL7998X_REG((pg), 0xca) | ||
| 222 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_BL_H(pg) ISL7998X_REG((pg), 0xcb) | ||
| 223 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_BL_L(pg) ISL7998X_REG((pg), 0xcc) | ||
| 224 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_BR_H(pg) ISL7998X_REG((pg), 0xcd) | ||
| 225 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_BR_L(pg) ISL7998X_REG((pg), 0xce) | ||
| 226 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_BR_H(pg) ISL7998X_REG((pg), 0xcf) | ||
| 227 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_BR_L(pg) ISL7998X_REG((pg), 0xd0) | ||
| 228 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_LM_H(pg) ISL7998X_REG((pg), 0xd1) | ||
| 229 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_LM_L(pg) ISL7998X_REG((pg), 0xd2) | ||
| 230 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_LM_H(pg) ISL7998X_REG((pg), 0xd3) | ||
| 231 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_LM_L(pg) ISL7998X_REG((pg), 0xd4) | ||
| 232 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_TM_H(pg) ISL7998X_REG((pg), 0xd5) | ||
| 233 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_TM_L(pg) ISL7998X_REG((pg), 0xd6) | ||
| 234 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_TM_H(pg) ISL7998X_REG((pg), 0xd7) | ||
| 235 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_TM_L(pg) ISL7998X_REG((pg), 0xd8) | ||
| 236 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_BM_H(pg) ISL7998X_REG((pg), 0xd9) | ||
| 237 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_BM_L(pg) ISL7998X_REG((pg), 0xda) | ||
| 238 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_BM_H(pg) ISL7998X_REG((pg), 0xdb) | ||
| 239 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_BM_L(pg) ISL7998X_REG((pg), 0xdc) | ||
| 240 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_RM_H(pg) ISL7998X_REG((pg), 0xdd) | ||
| 241 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_X_RM_L(pg) ISL7998X_REG((pg), 0xde) | ||
| 242 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_RM_H(pg) ISL7998X_REG((pg), 0xdf) | ||
| 243 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_RM_L(pg) ISL7998X_REG((pg), 0xe0) | ||
| 244 | #define ISL7998X_REG_PX_ACA_HIST_DATA_LO(pg) ISL7998X_REG((pg), 0xe1) | ||
| 245 | #define ISL7998X_REG_PX_ACA_HIST_DATA_MID(pg) ISL7998X_REG((pg), 0xe2) | ||
| 246 | #define ISL7998X_REG_PX_ACA_HIST_DATA_HI(pg) ISL7998X_REG((pg), 0xe3) | ||
| 247 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_Y_CLR(pg) ISL7998X_REG((pg), 0xe4) | ||
| 248 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_CB_CLR(pg) ISL7998X_REG((pg), 0xe5) | ||
| 249 | #define ISL7998X_REG_PX_ACA_FLEX_WIN_CR_CLR(pg) ISL7998X_REG((pg), 0xe6) | ||
| 250 | #define ISL7998X_REG_PX_ACA_XFER_HIST_HOST(pg) ISL7998X_REG((pg), 0xe7) | ||
| 251 | |||
| 252 | #define ISL7998X_REG_P5_LI_ENGINE_CTL ISL7998X_REG(5, 0x00) | ||
| 253 | #define ISL7998X_REG_P5_LI_ENGINE_LINE_CTL ISL7998X_REG(5, 0x01) | ||
| 254 | #define ISL7998X_REG_P5_LI_ENGINE_PIC_WIDTH ISL7998X_REG(5, 0x02) | ||
| 255 | #define ISL7998X_REG_P5_LI_ENGINE_SYNC_CTL ISL7998X_REG(5, 0x03) | ||
| 256 | #define ISL7998X_REG_P5_LI_ENGINE_VC_ASSIGNMENT ISL7998X_REG(5, 0x04) | ||
| 257 | #define ISL7998X_REG_P5_LI_ENGINE_TYPE_CTL ISL7998X_REG(5, 0x05) | ||
| 258 | #define ISL7998X_REG_P5_LI_ENGINE_FIFO_CTL ISL7998X_REG(5, 0x06) | ||
| 259 | #define ISL7998X_REG_P5_MIPI_READ_START_CTL ISL7998X_REG(5, 0x07) | ||
| 260 | #define ISL7998X_REG_P5_PSEUDO_FRM_FIELD_CTL ISL7998X_REG(5, 0x08) | ||
| 261 | #define ISL7998X_REG_P5_ONE_FIELD_MODE_CTL ISL7998X_REG(5, 0x09) | ||
| 262 | #define ISL7998X_REG_P5_MIPI_INT_HW_TST_CTR ISL7998X_REG(5, 0x0a) | ||
| 263 | #define ISL7998X_REG_P5_TP_GEN_BAR_PATTERN ISL7998X_REG(5, 0x0b) | ||
| 264 | #define ISL7998X_REG_P5_MIPI_PCNT_PSFRM ISL7998X_REG(5, 0x0c) | ||
| 265 | #define ISL7998X_REG_P5_LI_ENGINE_TP_GEN_CTL ISL7998X_REG(5, 0x0d) | ||
| 266 | #define ISL7998X_REG_P5_MIPI_VBLANK_PSFRM ISL7998X_REG(5, 0x0e) | ||
| 267 | #define ISL7998X_REG_P5_LI_ENGINE_CTL_2 ISL7998X_REG(5, 0x0f) | ||
| 268 | #define ISL7998X_REG_P5_MIPI_WCNT_1 ISL7998X_REG(5, 0x10) | ||
| 269 | #define ISL7998X_REG_P5_MIPI_WCNT_2 ISL7998X_REG(5, 0x11) | ||
| 270 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_1 ISL7998X_REG(5, 0x12) | ||
| 271 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_2 ISL7998X_REG(5, 0x13) | ||
| 272 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_3 ISL7998X_REG(5, 0x14) | ||
| 273 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_4 ISL7998X_REG(5, 0x15) | ||
| 274 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_5 ISL7998X_REG(5, 0x16) | ||
| 275 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_6 ISL7998X_REG(5, 0x17) | ||
| 276 | #define ISL7998X_REG_P5_MIPI_DPHY_PARAMS_1 ISL7998X_REG(5, 0x18) | ||
| 277 | #define ISL7998X_REG_P5_MIPI_DPHY_SOT_PERIOD ISL7998X_REG(5, 0x19) | ||
| 278 | #define ISL7998X_REG_P5_MIPI_DPHY_EOT_PERIOD ISL7998X_REG(5, 0x1a) | ||
| 279 | #define ISL7998X_REG_P5_MIPI_DPHY_PARAMS_2 ISL7998X_REG(5, 0x1b) | ||
| 280 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_7 ISL7998X_REG(5, 0x1c) | ||
| 281 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_8 ISL7998X_REG(5, 0x1d) | ||
| 282 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_9 ISL7998X_REG(5, 0x1e) | ||
| 283 | #define ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_10 ISL7998X_REG(5, 0x1f) | ||
| 284 | #define ISL7998X_REG_P5_TP_GEN_MIPI ISL7998X_REG(5, 0x20) | ||
| 285 | #define ISL7998X_REG_P5_ESC_MODE_TIME_CTL ISL7998X_REG(5, 0x21) | ||
| 286 | #define ISL7998X_REG_P5_AUTO_TEST_ERR_DET ISL7998X_REG(5, 0x22) | ||
| 287 | #define ISL7998X_REG_P5_MIPI_TIMING ISL7998X_REG(5, 0x23) | ||
| 288 | #define ISL7998X_REG_P5_PIC_HEIGHT_HIGH ISL7998X_REG(5, 0x24) | ||
| 289 | #define ISL7998X_REG_P5_PIC_HEIGHT_LOW ISL7998X_REG(5, 0x25) | ||
| 290 | #define ISL7998X_REG_P5_MIPI_SP_HS_TRL_CTL ISL7998X_REG(5, 0x26) | ||
| 291 | #define ISL7998X_REG_P5_FIFO_THRSH_CNT_1 ISL7998X_REG(5, 0x28) | ||
| 292 | #define ISL7998X_REG_P5_FIFO_THRSH_CNT_2 ISL7998X_REG(5, 0x29) | ||
| 293 | #define ISL7998X_REG_P5_TP_GEN_RND_SYNC_CTL_1 ISL7998X_REG(5, 0x2a) | ||
| 294 | #define ISL7998X_REG_P5_TP_GEN_RND_SYNC_CTL_2 ISL7998X_REG(5, 0x2b) | ||
| 295 | #define ISL7998X_REG_P5_PSF_FIELD_END_CTL_1 ISL7998X_REG(5, 0x2c) | ||
| 296 | #define ISL7998X_REG_P5_PSF_FIELD_END_CTL_2 ISL7998X_REG(5, 0x2d) | ||
| 297 | #define ISL7998X_REG_P5_PSF_FIELD_END_CTL_3 ISL7998X_REG(5, 0x2e) | ||
| 298 | #define ISL7998X_REG_P5_PSF_FIELD_END_CTL_4 ISL7998X_REG(5, 0x2f) | ||
| 299 | #define ISL7998X_REG_P5_MIPI_ANA_DATA_CTL_1 ISL7998X_REG(5, 0x30) | ||
| 300 | #define ISL7998X_REG_P5_MIPI_ANA_DATA_CTL_2 ISL7998X_REG(5, 0x31) | ||
| 301 | #define ISL7998X_REG_P5_MIPI_ANA_CLK_CTL ISL7998X_REG(5, 0x32) | ||
| 302 | #define ISL7998X_REG_P5_PLL_ANA_STATUS ISL7998X_REG(5, 0x33) | ||
| 303 | #define ISL7998X_REG_P5_PLL_ANA_MISC_CTL ISL7998X_REG(5, 0x34) | ||
| 304 | #define ISL7998X_REG_P5_MIPI_ANA ISL7998X_REG(5, 0x35) | ||
| 305 | #define ISL7998X_REG_P5_PLL_ANA ISL7998X_REG(5, 0x36) | ||
| 306 | #define ISL7998X_REG_P5_TOTAL_PF_LINE_CNT_1 ISL7998X_REG(5, 0x38) | ||
| 307 | #define ISL7998X_REG_P5_TOTAL_PF_LINE_CNT_2 ISL7998X_REG(5, 0x39) | ||
| 308 | #define ISL7998X_REG_P5_H_LINE_CNT_1 ISL7998X_REG(5, 0x3a) | ||
| 309 | #define ISL7998X_REG_P5_H_LINE_CNT_2 ISL7998X_REG(5, 0x3b) | ||
| 310 | #define ISL7998X_REG_P5_HIST_LINE_CNT_1 ISL7998X_REG(5, 0x3c) | ||
| 311 | #define ISL7998X_REG_P5_HIST_LINE_CNT_2 ISL7998X_REG(5, 0x3d) | ||
| 312 | |||
| 313 | static const struct reg_sequence isl7998x_init_seq_1[] = { | ||
| 314 | { ISL7998X_REG_P0_SHORT_DIAG_IRQ_EN, 0xff }, | ||
| 315 | { ISL7998X_REG_PX_DEC_SDT(0x1), 0x00 }, | ||
| 316 | { ISL7998X_REG_PX_DEC_SHORT_DET_CTL_1(0x1), 0x03 }, | ||
| 317 | { ISL7998X_REG_PX_DEC_SDT(0x2), 0x00 }, | ||
| 318 | { ISL7998X_REG_PX_DEC_SHORT_DET_CTL_1(0x2), 0x03 }, | ||
| 319 | { ISL7998X_REG_PX_DEC_SDT(0x3), 0x00 }, | ||
| 320 | { ISL7998X_REG_PX_DEC_SHORT_DET_CTL_1(0x3), 0x03 }, | ||
| 321 | { ISL7998X_REG_PX_DEC_SDT(0x4), 0x00 }, | ||
| 322 | { ISL7998X_REG_PX_DEC_SHORT_DET_CTL_1(0x4), 0x03 }, | ||
| 323 | { ISL7998X_REG_P5_LI_ENGINE_CTL, 0x00 }, | ||
| 324 | { ISL7998X_REG_P0_SW_RESET_CTL, 0x1f, 10 }, | ||
| 325 | { ISL7998X_REG_P0_IO_BUFFER_CTL, 0x00 }, | ||
| 326 | { ISL7998X_REG_P0_MPP2_SYNC_CTL, 0xc9 }, | ||
| 327 | { ISL7998X_REG_P0_IRQ_SYNC_CTL, 0xc9 }, | ||
| 328 | { ISL7998X_REG_P0_CHAN_1_IRQ, 0x03 }, | ||
| 329 | { ISL7998X_REG_P0_CHAN_2_IRQ, 0x00 }, | ||
| 330 | { ISL7998X_REG_P0_CHAN_3_IRQ, 0x00 }, | ||
| 331 | { ISL7998X_REG_P0_CHAN_4_IRQ, 0x00 }, | ||
| 332 | { ISL7998X_REG_P5_LI_ENGINE_CTL, 0x02 }, | ||
| 333 | { ISL7998X_REG_P5_LI_ENGINE_LINE_CTL, 0x85 }, | ||
| 334 | { ISL7998X_REG_P5_LI_ENGINE_PIC_WIDTH, 0xa0 }, | ||
| 335 | { ISL7998X_REG_P5_LI_ENGINE_SYNC_CTL, 0x18 }, | ||
| 336 | { ISL7998X_REG_P5_LI_ENGINE_TYPE_CTL, 0x40 }, | ||
| 337 | { ISL7998X_REG_P5_LI_ENGINE_FIFO_CTL, 0x40 }, | ||
| 338 | { ISL7998X_REG_P5_MIPI_WCNT_1, 0x05 }, | ||
| 339 | { ISL7998X_REG_P5_MIPI_WCNT_2, 0xa0 }, | ||
| 340 | { ISL7998X_REG_P5_TP_GEN_MIPI, 0x00 }, | ||
| 341 | { ISL7998X_REG_P5_ESC_MODE_TIME_CTL, 0x0c }, | ||
| 342 | { ISL7998X_REG_P5_MIPI_SP_HS_TRL_CTL, 0x00 }, | ||
| 343 | { ISL7998X_REG_P5_TP_GEN_RND_SYNC_CTL_1, 0x00 }, | ||
| 344 | { ISL7998X_REG_P5_TP_GEN_RND_SYNC_CTL_2, 0x19 }, | ||
| 345 | { ISL7998X_REG_P5_PSF_FIELD_END_CTL_1, 0x18 }, | ||
| 346 | { ISL7998X_REG_P5_PSF_FIELD_END_CTL_2, 0xf1 }, | ||
| 347 | { ISL7998X_REG_P5_PSF_FIELD_END_CTL_3, 0x00 }, | ||
| 348 | { ISL7998X_REG_P5_PSF_FIELD_END_CTL_4, 0xf1 }, | ||
| 349 | { ISL7998X_REG_P5_MIPI_ANA_DATA_CTL_1, 0x00 }, | ||
| 350 | { ISL7998X_REG_P5_MIPI_ANA_DATA_CTL_2, 0x00 }, | ||
| 351 | { ISL7998X_REG_P5_MIPI_ANA_CLK_CTL, 0x00 }, | ||
| 352 | { ISL7998X_REG_P5_PLL_ANA_STATUS, 0xc0 }, | ||
| 353 | { ISL7998X_REG_P5_PLL_ANA_MISC_CTL, 0x18 }, | ||
| 354 | { ISL7998X_REG_P5_PLL_ANA, 0x00 }, | ||
| 355 | { ISL7998X_REG_P0_SW_RESET_CTL, 0x10, 10 }, | ||
| 356 | /* Page 0xf means write to all of pages 1,2,3,4 */ | ||
| 357 | { ISL7998X_REG_PX_DEC_VDELAY_LO(0xf), 0x14 }, | ||
| 358 | { ISL7998X_REG_PX_DEC_MISC3(0xf), 0xe6 }, | ||
| 359 | { ISL7998X_REG_PX_DEC_CLMD(0xf), 0x85 }, | ||
| 360 | { ISL7998X_REG_PX_DEC_H_DELAY_II_LOW(0xf), 0x11 }, | ||
| 361 | { ISL7998X_REG_PX_ACA_XFER_HIST_HOST(0xf), 0x00 }, | ||
| 362 | { ISL7998X_REG_P0_CLK_CTL_1, 0x1f }, | ||
| 363 | { ISL7998X_REG_P0_CLK_CTL_2, 0x43 }, | ||
| 364 | { ISL7998X_REG_P0_CLK_CTL_3, 0x4f }, | ||
| 365 | }; | ||
| 366 | |||
| 367 | static const struct reg_sequence isl7998x_init_seq_2[] = { | ||
| 368 | { ISL7998X_REG_P5_LI_ENGINE_SYNC_CTL, 0x10 }, | ||
| 369 | { ISL7998X_REG_P5_LI_ENGINE_VC_ASSIGNMENT, 0xe4 }, | ||
| 370 | { ISL7998X_REG_P5_LI_ENGINE_TYPE_CTL, 0x00 }, | ||
| 371 | { ISL7998X_REG_P5_LI_ENGINE_FIFO_CTL, 0x60 }, | ||
| 372 | { ISL7998X_REG_P5_MIPI_READ_START_CTL, 0x2b }, | ||
| 373 | { ISL7998X_REG_P5_PSEUDO_FRM_FIELD_CTL, 0x02 }, | ||
| 374 | { ISL7998X_REG_P5_ONE_FIELD_MODE_CTL, 0x00 }, | ||
| 375 | { ISL7998X_REG_P5_MIPI_INT_HW_TST_CTR, 0x62 }, | ||
| 376 | { ISL7998X_REG_P5_TP_GEN_BAR_PATTERN, 0x02 }, | ||
| 377 | { ISL7998X_REG_P5_MIPI_PCNT_PSFRM, 0x36 }, | ||
| 378 | { ISL7998X_REG_P5_LI_ENGINE_TP_GEN_CTL, 0x00 }, | ||
| 379 | { ISL7998X_REG_P5_MIPI_VBLANK_PSFRM, 0x6c }, | ||
| 380 | { ISL7998X_REG_P5_LI_ENGINE_CTL_2, 0x00 }, | ||
| 381 | { ISL7998X_REG_P5_MIPI_WCNT_1, 0x05 }, | ||
| 382 | { ISL7998X_REG_P5_MIPI_WCNT_2, 0xa0 }, | ||
| 383 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_1, 0x77 }, | ||
| 384 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_2, 0x17 }, | ||
| 385 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_3, 0x08 }, | ||
| 386 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_4, 0x38 }, | ||
| 387 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_5, 0x14 }, | ||
| 388 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_6, 0xf6 }, | ||
| 389 | { ISL7998X_REG_P5_MIPI_DPHY_PARAMS_1, 0x00 }, | ||
| 390 | { ISL7998X_REG_P5_MIPI_DPHY_SOT_PERIOD, 0x17 }, | ||
| 391 | { ISL7998X_REG_P5_MIPI_DPHY_EOT_PERIOD, 0x0a }, | ||
| 392 | { ISL7998X_REG_P5_MIPI_DPHY_PARAMS_2, 0x71 }, | ||
| 393 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_7, 0x7a }, | ||
| 394 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_8, 0x0f }, | ||
| 395 | { ISL7998X_REG_P5_MIPI_DPHY_TIMING_CTL_9, 0x8c }, | ||
| 396 | { ISL7998X_REG_P5_MIPI_SP_HS_TRL_CTL, 0x08 }, | ||
| 397 | { ISL7998X_REG_P5_FIFO_THRSH_CNT_1, 0x01 }, | ||
| 398 | { ISL7998X_REG_P5_FIFO_THRSH_CNT_2, 0x0e }, | ||
| 399 | { ISL7998X_REG_P5_TP_GEN_RND_SYNC_CTL_1, 0x00 }, | ||
| 400 | { ISL7998X_REG_P5_TP_GEN_RND_SYNC_CTL_2, 0x00 }, | ||
| 401 | { ISL7998X_REG_P5_TOTAL_PF_LINE_CNT_1, 0x03 }, | ||
| 402 | { ISL7998X_REG_P5_TOTAL_PF_LINE_CNT_2, 0xc0 }, | ||
| 403 | { ISL7998X_REG_P5_H_LINE_CNT_1, 0x06 }, | ||
| 404 | { ISL7998X_REG_P5_H_LINE_CNT_2, 0xb3 }, | ||
| 405 | { ISL7998X_REG_P5_HIST_LINE_CNT_1, 0x00 }, | ||
| 406 | { ISL7998X_REG_P5_HIST_LINE_CNT_2, 0xf1 }, | ||
| 407 | { ISL7998X_REG_P5_LI_ENGINE_FIFO_CTL, 0x00 }, | ||
| 408 | { ISL7998X_REG_P5_MIPI_ANA, 0x00 }, | ||
| 409 | /* | ||
| 410 | * Wait a bit after reset so that the chip can capture a frame | ||
| 411 | * and update internal line counters. | ||
| 412 | */ | ||
| 413 | { ISL7998X_REG_P0_SW_RESET_CTL, 0x00, 50 }, | ||
| 414 | }; | ||
| 415 | |||
| 416 | enum isl7998x_pads { | ||
| 417 | ISL7998X_PAD_OUT, | ||
| 418 | ISL7998X_PAD_VIN1, | ||
| 419 | ISL7998X_PAD_VIN2, | ||
| 420 | ISL7998X_PAD_VIN3, | ||
| 421 | ISL7998X_PAD_VIN4, | ||
| 422 | ISL7998X_NUM_PADS | ||
| 423 | }; | ||
| 424 | |||
| 425 | struct isl7998x_datafmt { | ||
| 426 | u32 code; | ||
| 427 | enum v4l2_colorspace colorspace; | ||
| 428 | }; | ||
| 429 | |||
| 430 | static const struct isl7998x_datafmt isl7998x_colour_fmts[] = { | ||
| 431 | { MEDIA_BUS_FMT_UYVY8_2X8, V4L2_COLORSPACE_SRGB }, | ||
| 432 | }; | ||
| 433 | |||
| 434 | /* Menu items for LINK_FREQ V4L2 control */ | ||
| 435 | static const s64 link_freq_menu_items[] = { | ||
| 436 | /* 1 channel, 1 lane or 2 channels, 2 lanes */ | ||
| 437 | 108000000, | ||
| 438 | /* 2 channels, 1 lane or 4 channels, 2 lanes */ | ||
| 439 | 216000000, | ||
| 440 | /* 4 channels, 1 lane */ | ||
| 441 | 432000000, | ||
| 442 | }; | ||
| 443 | |||
| 444 | /* Menu items for TEST_PATTERN V4L2 control */ | ||
| 445 | static const char * const isl7998x_test_pattern_menu[] = { | ||
| 446 | "Disabled", | ||
| 447 | "Enabled", | ||
| 448 | }; | ||
| 449 | |||
| 450 | static const char * const isl7998x_test_pattern_bars[] = { | ||
| 451 | "bbbbwb", "bbbwwb", "bbwbwb", "bbwwwb", | ||
| 452 | }; | ||
| 453 | |||
| 454 | static const char * const isl7998x_test_pattern_colors[] = { | ||
| 455 | "Yellow", "Blue", "Green", "Pink", | ||
| 456 | }; | ||
| 457 | |||
| 458 | struct isl7998x_mode { | ||
| 459 | unsigned int width; | ||
| 460 | unsigned int height; | ||
| 461 | enum v4l2_field field; | ||
| 462 | }; | ||
| 463 | |||
| 464 | static const struct isl7998x_mode supported_modes[] = { | ||
| 465 | { | ||
| 466 | .width = 720, | ||
| 467 | .height = 576, | ||
| 468 | .field = V4L2_FIELD_SEQ_TB, | ||
| 469 | }, | ||
| 470 | { | ||
| 471 | .width = 720, | ||
| 472 | .height = 480, | ||
| 473 | .field = V4L2_FIELD_SEQ_BT, | ||
| 474 | }, | ||
| 475 | }; | ||
| 476 | |||
| 477 | static const struct isl7998x_video_std { | ||
| 478 | const v4l2_std_id norm; | ||
| 479 | unsigned int id; | ||
| 480 | const struct isl7998x_mode *mode; | ||
| 481 | } isl7998x_std_res[] = { | ||
| 482 | { V4L2_STD_NTSC_443, | ||
| 483 | ISL7998X_REG_PX_DEC_SDT_STANDARD_NTSC_443, | ||
| 484 | &supported_modes[1] }, | ||
| 485 | { V4L2_STD_PAL_M, | ||
| 486 | ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL_M, | ||
| 487 | &supported_modes[1] }, | ||
| 488 | { V4L2_STD_PAL_Nc, | ||
| 489 | ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL_CN, | ||
| 490 | &supported_modes[0] }, | ||
| 491 | { V4L2_STD_PAL_N, | ||
| 492 | ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL, | ||
| 493 | &supported_modes[0] }, | ||
| 494 | { V4L2_STD_PAL_60, | ||
| 495 | ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL_60, | ||
| 496 | &supported_modes[1] }, | ||
| 497 | { V4L2_STD_NTSC, | ||
| 498 | ISL7998X_REG_PX_DEC_SDT_STANDARD_NTSC_M, | ||
| 499 | &supported_modes[1] }, | ||
| 500 | { V4L2_STD_PAL, | ||
| 501 | ISL7998X_REG_PX_DEC_SDT_STANDARD_PAL, | ||
| 502 | &supported_modes[0] }, | ||
| 503 | { V4L2_STD_SECAM, | ||
| 504 | ISL7998X_REG_PX_DEC_SDT_STANDARD_SECAM, | ||
| 505 | &supported_modes[0] }, | ||
| 506 | { V4L2_STD_UNKNOWN, | ||
| 507 | ISL7998X_REG_PX_DEC_SDT_STANDARD_UNKNOWN, | ||
| 508 | &supported_modes[1] }, | ||
| 509 | }; | ||
| 510 | |||
| 511 | struct isl7998x { | ||
| 512 | struct v4l2_subdev subdev; | ||
| 513 | struct regmap *regmap; | ||
| 514 | struct gpio_desc *pd_gpio; | ||
| 515 | struct gpio_desc *rstb_gpio; | ||
| 516 | unsigned int nr_mipi_lanes; | ||
| 517 | u32 nr_inputs; | ||
| 518 | |||
| 519 | const struct isl7998x_datafmt *fmt; | ||
| 520 | v4l2_std_id norm; | ||
| 521 | struct media_pad pads[ISL7998X_NUM_PADS]; | ||
| 522 | |||
| 523 | int enabled; | ||
| 524 | |||
| 525 | /* protect fmt, norm, enabled */ | ||
| 526 | struct mutex lock; | ||
| 527 | |||
| 528 | struct v4l2_ctrl_handler ctrl_handler; | ||
| 529 | /* protect ctrl_handler */ | ||
| 530 | struct mutex ctrl_mutex; | ||
| 531 | |||
| 532 | /* V4L2 Controls */ | ||
| 533 | struct v4l2_ctrl *link_freq; | ||
| 534 | u8 test_pattern; | ||
| 535 | u8 test_pattern_bars; | ||
| 536 | u8 test_pattern_chans; | ||
| 537 | u8 test_pattern_color; | ||
| 538 | }; | ||
| 539 | |||
| 540 | static struct isl7998x *sd_to_isl7998x(struct v4l2_subdev *sd) | ||
| 541 | { | ||
| 542 | return container_of(sd, struct isl7998x, subdev); | ||
| 543 | } | ||
| 544 | |||
| 545 | static struct isl7998x *i2c_to_isl7998x(const struct i2c_client *client) | ||
| 546 | { | ||
| 547 | return sd_to_isl7998x(i2c_get_clientdata(client)); | ||
| 548 | } | ||
| 549 | |||
| 550 | static unsigned int isl7998x_norm_to_val(v4l2_std_id norm) | ||
| 551 | { | ||
| 552 | unsigned int i; | ||
| 553 | |||
| 554 | for (i = 0; i < ARRAY_SIZE(isl7998x_std_res); i++) | ||
| 555 | if (isl7998x_std_res[i].norm & norm) | ||
| 556 | break; | ||
| 557 | if (i == ARRAY_SIZE(isl7998x_std_res)) | ||
| 558 | return ISL7998X_REG_PX_DEC_SDT_STANDARD_UNKNOWN; | ||
| 559 | |||
| 560 | return isl7998x_std_res[i].id; | ||
| 561 | } | ||
| 562 | |||
| 563 | static const struct isl7998x_mode *isl7998x_norm_to_mode(v4l2_std_id norm) | ||
| 564 | { | ||
| 565 | unsigned int i; | ||
| 566 | |||
| 567 | for (i = 0; i < ARRAY_SIZE(isl7998x_std_res); i++) | ||
| 568 | if (isl7998x_std_res[i].norm & norm) | ||
| 569 | break; | ||
| 570 | /* Use NTSC default resolution during standard detection */ | ||
| 571 | if (i == ARRAY_SIZE(isl7998x_std_res)) | ||
| 572 | return &supported_modes[1]; | ||
| 573 | |||
| 574 | return isl7998x_std_res[i].mode; | ||
| 575 | } | ||
| 576 | |||
| 577 | static int isl7998x_get_nr_inputs(struct device_node *of_node) | ||
| 578 | { | ||
| 579 | struct device_node *port; | ||
| 580 | unsigned int inputs = 0; | ||
| 581 | unsigned int i; | ||
| 582 | |||
| 583 | if (of_graph_get_endpoint_count(of_node) > ISL7998X_NUM_PADS) | ||
| 584 | return -EINVAL; | ||
| 585 | |||
| 586 | /* | ||
| 587 | * The driver does not provide means to remap the input ports. It | ||
| 588 | * always configures input ports to start from VID1. Ensure that the | ||
| 589 | * device tree is correct. | ||
| 590 | */ | ||
| 591 | for (i = ISL7998X_PAD_VIN1; i <= ISL7998X_PAD_VIN4; i++) { | ||
| 592 | port = of_graph_get_port_by_id(of_node, i); | ||
| 593 | if (!port) | ||
| 594 | continue; | ||
| 595 | |||
| 596 | inputs |= BIT(i); | ||
| 597 | of_node_put(port); | ||
| 598 | } | ||
| 599 | |||
| 600 | switch (inputs) { | ||
| 601 | case BIT(ISL7998X_PAD_VIN1): | ||
| 602 | return 1; | ||
| 603 | case BIT(ISL7998X_PAD_VIN1) | BIT(ISL7998X_PAD_VIN2): | ||
| 604 | return 2; | ||
| 605 | case BIT(ISL7998X_PAD_VIN1) | BIT(ISL7998X_PAD_VIN2) | | ||
| 606 | BIT(ISL7998X_PAD_VIN3) | BIT(ISL7998X_PAD_VIN4): | ||
| 607 | return 4; | ||
| 608 | default: | ||
| 609 | return -EINVAL; | ||
| 610 | } | ||
| 611 | } | ||
| 612 | |||
| 613 | static int isl7998x_wait_power_on(struct isl7998x *isl7998x) | ||
| 614 | { | ||
| 615 | struct device *dev = isl7998x->subdev.dev; | ||
| 616 | u32 chip_id; | ||
| 617 | int ret; | ||
| 618 | int err; | ||
| 619 | |||
| 620 | ret = read_poll_timeout(regmap_read, err, !err, 2000, 20000, false, | ||
| 621 | isl7998x->regmap, | ||
| 622 | ISL7998X_REG_P0_PRODUCT_ID_CODE, &chip_id); | ||
| 623 | if (ret) { | ||
| 624 | dev_err(dev, "timeout while waiting for ISL7998X\n"); | ||
| 625 | return ret; | ||
| 626 | } | ||
| 627 | |||
| 628 | dev_dbg(dev, "Found ISL799%x\n", chip_id); | ||
| 629 | |||
| 630 | return ret; | ||
| 631 | } | ||
| 632 | |||
| 633 | static int isl7998x_set_standard(struct isl7998x *isl7998x, v4l2_std_id norm) | ||
| 634 | { | ||
| 635 | const struct isl7998x_mode *mode = isl7998x_norm_to_mode(norm); | ||
| 636 | unsigned int val = isl7998x_norm_to_val(norm); | ||
| 637 | unsigned int width = mode->width; | ||
| 638 | unsigned int i; | ||
| 639 | int ret; | ||
| 640 | |||
| 641 | for (i = 0; i < ISL7998X_INPUTS; i++) { | ||
| 642 | ret = regmap_write_bits(isl7998x->regmap, | ||
| 643 | ISL7998X_REG_PX_DEC_SDT(i + 1), | ||
| 644 | ISL7998X_REG_PX_DEC_SDT_STANDARD, | ||
| 645 | val); | ||
| 646 | if (ret) | ||
| 647 | return ret; | ||
| 648 | } | ||
| 649 | |||
| 650 | ret = regmap_write(isl7998x->regmap, | ||
| 651 | ISL7998X_REG_P5_LI_ENGINE_LINE_CTL, | ||
| 652 | 0x20 | ((width >> 7) & 0x1f)); | ||
| 653 | if (ret) | ||
| 654 | return ret; | ||
| 655 | |||
| 656 | ret = regmap_write(isl7998x->regmap, | ||
| 657 | ISL7998X_REG_P5_LI_ENGINE_PIC_WIDTH, | ||
| 658 | (width << 1) & 0xff); | ||
| 659 | if (ret) | ||
| 660 | return ret; | ||
| 661 | |||
| 662 | return 0; | ||
| 663 | } | ||
| 664 | |||
| 665 | static int isl7998x_init(struct isl7998x *isl7998x) | ||
| 666 | { | ||
| 667 | const unsigned int lanes = isl7998x->nr_mipi_lanes; | ||
| 668 | const u32 isl7998x_video_in_chan_map[] = { 0x00, 0x11, 0x02, 0x02 }; | ||
| 669 | const struct reg_sequence isl7998x_init_seq_custom[] = { | ||
| 670 | { ISL7998X_REG_P0_VIDEO_IN_CHAN_CTL, | ||
| 671 | isl7998x_video_in_chan_map[isl7998x->nr_inputs - 1] }, | ||
| 672 | { ISL7998X_REG_P0_CLK_CTL_4, | ||
| 673 | (lanes == 1) ? 0x40 : 0x41 }, | ||
| 674 | { ISL7998X_REG_P5_LI_ENGINE_CTL, | ||
| 675 | (lanes == 1) ? 0x01 : 0x02 }, | ||
| 676 | }; | ||
| 677 | struct device *dev = isl7998x->subdev.dev; | ||
| 678 | struct regmap *regmap = isl7998x->regmap; | ||
| 679 | int ret; | ||
| 680 | |||
| 681 | dev_dbg(dev, "configuring %d lanes for %d inputs (norm %s)\n", | ||
| 682 | isl7998x->nr_mipi_lanes, isl7998x->nr_inputs, | ||
| 683 | v4l2_norm_to_name(isl7998x->norm)); | ||
| 684 | |||
| 685 | ret = regmap_register_patch(regmap, isl7998x_init_seq_1, | ||
| 686 | ARRAY_SIZE(isl7998x_init_seq_1)); | ||
| 687 | if (ret) | ||
| 688 | return ret; | ||
| 689 | |||
| 690 | mutex_lock(&isl7998x->lock); | ||
| 691 | ret = isl7998x_set_standard(isl7998x, isl7998x->norm); | ||
| 692 | mutex_unlock(&isl7998x->lock); | ||
| 693 | if (ret) | ||
| 694 | return ret; | ||
| 695 | |||
| 696 | ret = regmap_register_patch(regmap, isl7998x_init_seq_custom, | ||
| 697 | ARRAY_SIZE(isl7998x_init_seq_custom)); | ||
| 698 | if (ret) | ||
| 699 | return ret; | ||
| 700 | |||
| 701 | return regmap_register_patch(regmap, isl7998x_init_seq_2, | ||
| 702 | ARRAY_SIZE(isl7998x_init_seq_2)); | ||
| 703 | } | ||
| 704 | |||
| 705 | static int isl7998x_set_test_pattern(struct isl7998x *isl7998x) | ||
| 706 | { | ||
| 707 | const struct reg_sequence isl7998x_init_seq_tpg_off[] = { | ||
| 708 | { ISL7998X_REG_P5_LI_ENGINE_TP_GEN_CTL, 0 }, | ||
| 709 | { ISL7998X_REG_P5_LI_ENGINE_CTL_2, 0 } | ||
| 710 | }; | ||
| 711 | const struct reg_sequence isl7998x_init_seq_tpg_on[] = { | ||
| 712 | { ISL7998X_REG_P5_TP_GEN_BAR_PATTERN, | ||
| 713 | isl7998x->test_pattern_bars << 6 }, | ||
| 714 | { ISL7998X_REG_P5_LI_ENGINE_CTL_2, | ||
| 715 | isl7998x->norm & V4L2_STD_PAL ? BIT(2) : 0 }, | ||
| 716 | { ISL7998X_REG_P5_LI_ENGINE_TP_GEN_CTL, | ||
| 717 | (isl7998x->test_pattern_chans << 4) | | ||
| 718 | (isl7998x->test_pattern_color << 2) } | ||
| 719 | }; | ||
| 720 | struct device *dev = isl7998x->subdev.dev; | ||
| 721 | struct regmap *regmap = isl7998x->regmap; | ||
| 722 | int ret; | ||
| 723 | |||
| 724 | if (pm_runtime_get_if_in_use(dev) <= 0) | ||
| 725 | return 0; | ||
| 726 | |||
| 727 | if (isl7998x->test_pattern != 0) { | ||
| 728 | dev_dbg(dev, "enabling test pattern: channels 0x%x, %s, %s\n", | ||
| 729 | isl7998x->test_pattern_chans, | ||
| 730 | isl7998x_test_pattern_bars[isl7998x->test_pattern_bars], | ||
| 731 | isl7998x_test_pattern_colors[isl7998x->test_pattern_color]); | ||
| 732 | ret = regmap_register_patch(regmap, isl7998x_init_seq_tpg_on, | ||
| 733 | ARRAY_SIZE(isl7998x_init_seq_tpg_on)); | ||
| 734 | } else { | ||
| 735 | ret = regmap_register_patch(regmap, isl7998x_init_seq_tpg_off, | ||
| 736 | ARRAY_SIZE(isl7998x_init_seq_tpg_off)); | ||
| 737 | } | ||
| 738 | |||
| 739 | pm_runtime_put(dev); | ||
| 740 | |||
| 741 | return ret; | ||
| 742 | } | ||
| 743 | |||
| 744 | #ifdef CONFIG_VIDEO_ADV_DEBUG | ||
| 745 | static int isl7998x_g_register(struct v4l2_subdev *sd, | ||
| 746 | struct v4l2_dbg_register *reg) | ||
| 747 | { | ||
| 748 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 749 | int ret; | ||
| 750 | u32 val; | ||
| 751 | |||
| 752 | ret = regmap_read(isl7998x->regmap, reg->reg, &val); | ||
| 753 | if (ret) | ||
| 754 | return ret; | ||
| 755 | |||
| 756 | reg->size = 1; | ||
| 757 | reg->val = val; | ||
| 758 | |||
| 759 | return 0; | ||
| 760 | } | ||
| 761 | |||
| 762 | static int isl7998x_s_register(struct v4l2_subdev *sd, | ||
| 763 | const struct v4l2_dbg_register *reg) | ||
| 764 | { | ||
| 765 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 766 | |||
| 767 | return regmap_write(isl7998x->regmap, reg->reg, reg->val); | ||
| 768 | } | ||
| 769 | #endif | ||
| 770 | |||
| 771 | static int isl7998x_g_std(struct v4l2_subdev *sd, v4l2_std_id *norm) | ||
| 772 | { | ||
| 773 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 774 | |||
| 775 | mutex_lock(&isl7998x->lock); | ||
| 776 | *norm = isl7998x->norm; | ||
| 777 | mutex_unlock(&isl7998x->lock); | ||
| 778 | |||
| 779 | return 0; | ||
| 780 | } | ||
| 781 | |||
| 782 | static int isl7998x_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) | ||
| 783 | { | ||
| 784 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 785 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 786 | struct device *dev = &client->dev; | ||
| 787 | int ret = 0; | ||
| 788 | |||
| 789 | mutex_lock(&isl7998x->lock); | ||
| 790 | if (isl7998x->enabled) { | ||
| 791 | ret = -EBUSY; | ||
| 792 | mutex_unlock(&isl7998x->lock); | ||
| 793 | return ret; | ||
| 794 | } | ||
| 795 | isl7998x->norm = norm; | ||
| 796 | mutex_unlock(&isl7998x->lock); | ||
| 797 | |||
| 798 | if (pm_runtime_get_if_in_use(dev) <= 0) | ||
| 799 | return ret; | ||
| 800 | |||
| 801 | ret = isl7998x_set_standard(isl7998x, norm); | ||
| 802 | |||
| 803 | pm_runtime_put(dev); | ||
| 804 | |||
| 805 | return ret; | ||
| 806 | } | ||
| 807 | |||
| 808 | static int isl7998x_querystd(struct v4l2_subdev *sd, v4l2_std_id *std) | ||
| 809 | { | ||
| 810 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 811 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 812 | struct device *dev = &client->dev; | ||
| 813 | unsigned int std_id[ISL7998X_INPUTS]; | ||
| 814 | unsigned int i; | ||
| 815 | int ret; | ||
| 816 | u32 reg; | ||
| 817 | |||
| 818 | ret = pm_runtime_resume_and_get(dev); | ||
| 819 | if (ret) | ||
| 820 | return ret; | ||
| 821 | |||
| 822 | dev_dbg(dev, "starting video standard detection\n"); | ||
| 823 | |||
| 824 | mutex_lock(&isl7998x->lock); | ||
| 825 | if (isl7998x->enabled) { | ||
| 826 | ret = -EBUSY; | ||
| 827 | goto out_unlock; | ||
| 828 | } | ||
| 829 | |||
| 830 | ret = isl7998x_set_standard(isl7998x, V4L2_STD_UNKNOWN); | ||
| 831 | if (ret) | ||
| 832 | goto out_unlock; | ||
| 833 | |||
| 834 | for (i = 0; i < ISL7998X_INPUTS; i++) { | ||
| 835 | ret = regmap_write(isl7998x->regmap, | ||
| 836 | ISL7998X_REG_PX_DEC_SDTR(i + 1), | ||
| 837 | ISL7998X_REG_PX_DEC_SDTR_ATSTART); | ||
| 838 | if (ret) | ||
| 839 | goto out_reset_std; | ||
| 840 | } | ||
| 841 | |||
| 842 | for (i = 0; i < ISL7998X_INPUTS; i++) { | ||
| 843 | ret = regmap_read_poll_timeout(isl7998x->regmap, | ||
| 844 | ISL7998X_REG_PX_DEC_SDT(i + 1), | ||
| 845 | reg, | ||
| 846 | !(reg & ISL7998X_REG_PX_DEC_SDT_DET), | ||
| 847 | 2000, 500 * USEC_PER_MSEC); | ||
| 848 | if (ret) | ||
| 849 | goto out_reset_std; | ||
| 850 | std_id[i] = FIELD_GET(ISL7998X_REG_PX_DEC_SDT_NOW, reg); | ||
| 851 | } | ||
| 852 | |||
| 853 | /* | ||
| 854 | * According to Renesas FAE, all input cameras must have the | ||
| 855 | * same standard on this chip. | ||
| 856 | */ | ||
| 857 | for (i = 0; i < isl7998x->nr_inputs; i++) { | ||
| 858 | dev_dbg(dev, "input %d: detected %s\n", | ||
| 859 | i, v4l2_norm_to_name(isl7998x_std_res[std_id[i]].norm)); | ||
| 860 | if (std_id[0] != std_id[i]) | ||
| 861 | dev_warn(dev, | ||
| 862 | "incompatible standards: %s on input %d (expected %s)\n", | ||
| 863 | v4l2_norm_to_name(isl7998x_std_res[std_id[i]].norm), i, | ||
| 864 | v4l2_norm_to_name(isl7998x_std_res[std_id[0]].norm)); | ||
| 865 | } | ||
| 866 | |||
| 867 | *std = isl7998x_std_res[std_id[0]].norm; | ||
| 868 | |||
| 869 | out_reset_std: | ||
| 870 | isl7998x_set_standard(isl7998x, isl7998x->norm); | ||
| 871 | out_unlock: | ||
| 872 | mutex_unlock(&isl7998x->lock); | ||
| 873 | pm_runtime_put(dev); | ||
| 874 | |||
| 875 | return ret; | ||
| 876 | } | ||
| 877 | |||
| 878 | static int isl7998x_g_tvnorms(struct v4l2_subdev *sd, v4l2_std_id *std) | ||
| 879 | { | ||
| 880 | *std = V4L2_STD_ALL; | ||
| 881 | |||
| 882 | return 0; | ||
| 883 | } | ||
| 884 | |||
| 885 | static int isl7998x_g_input_status(struct v4l2_subdev *sd, u32 *status) | ||
| 886 | { | ||
| 887 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 888 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 889 | struct device *dev = &client->dev; | ||
| 890 | unsigned int i; | ||
| 891 | int ret = 0; | ||
| 892 | u32 reg; | ||
| 893 | |||
| 894 | if (!pm_runtime_active(dev)) { | ||
| 895 | *status |= V4L2_IN_ST_NO_POWER; | ||
| 896 | return 0; | ||
| 897 | } | ||
| 898 | |||
| 899 | for (i = 0; i < isl7998x->nr_inputs; i++) { | ||
| 900 | ret = regmap_read(isl7998x->regmap, | ||
| 901 | ISL7998X_REG_PX_DEC_STATUS_1(i + 1), ®); | ||
| 902 | if (!ret) { | ||
| 903 | if (reg & ISL7998X_REG_PX_DEC_STATUS_1_VDLOSS) | ||
| 904 | *status |= V4L2_IN_ST_NO_SIGNAL; | ||
| 905 | if (!(reg & ISL7998X_REG_PX_DEC_STATUS_1_HLOCK)) | ||
| 906 | *status |= V4L2_IN_ST_NO_H_LOCK; | ||
| 907 | if (!(reg & ISL7998X_REG_PX_DEC_STATUS_1_VLOCK)) | ||
| 908 | *status |= V4L2_IN_ST_NO_V_LOCK; | ||
| 909 | } | ||
| 910 | } | ||
| 911 | |||
| 912 | return ret; | ||
| 913 | } | ||
| 914 | |||
| 915 | static int isl7998x_s_stream(struct v4l2_subdev *sd, int enable) | ||
| 916 | { | ||
| 917 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 918 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 919 | struct device *dev = &client->dev; | ||
| 920 | int ret = 0; | ||
| 921 | u32 reg; | ||
| 922 | |||
| 923 | dev_dbg(dev, "stream %s\n", enable ? "ON" : "OFF"); | ||
| 924 | |||
| 925 | mutex_lock(&isl7998x->lock); | ||
| 926 | if (isl7998x->enabled == enable) | ||
| 927 | goto out; | ||
| 928 | isl7998x->enabled = enable; | ||
| 929 | |||
| 930 | if (enable) { | ||
| 931 | ret = isl7998x_set_test_pattern(isl7998x); | ||
| 932 | if (ret) | ||
| 933 | goto out; | ||
| 934 | } | ||
| 935 | |||
| 936 | regmap_read(isl7998x->regmap, | ||
| 937 | ISL7998X_REG_P5_LI_ENGINE_CTL, ®); | ||
| 938 | if (enable) | ||
| 939 | reg &= ~BIT(7); | ||
| 940 | else | ||
| 941 | reg |= BIT(7); | ||
| 942 | ret = regmap_write(isl7998x->regmap, | ||
| 943 | ISL7998X_REG_P5_LI_ENGINE_CTL, reg); | ||
| 944 | |||
| 945 | out: | ||
| 946 | mutex_unlock(&isl7998x->lock); | ||
| 947 | |||
| 948 | return ret; | ||
| 949 | } | ||
| 950 | |||
| 951 | static int isl7998x_pre_streamon(struct v4l2_subdev *sd, u32 flags) | ||
| 952 | { | ||
| 953 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 954 | struct device *dev = &client->dev; | ||
| 955 | |||
| 956 | return pm_runtime_resume_and_get(dev); | ||
| 957 | } | ||
| 958 | |||
| 959 | static int isl7998x_post_streamoff(struct v4l2_subdev *sd) | ||
| 960 | { | ||
| 961 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 962 | struct device *dev = &client->dev; | ||
| 963 | |||
| 964 | pm_runtime_put(dev); | ||
| 965 | |||
| 966 | return 0; | ||
| 967 | } | ||
| 968 | |||
| 969 | static int isl7998x_enum_mbus_code(struct v4l2_subdev *sd, | ||
| 970 | struct v4l2_subdev_state *sd_state, | ||
| 971 | struct v4l2_subdev_mbus_code_enum *code) | ||
| 972 | { | ||
| 973 | if (code->index >= ARRAY_SIZE(isl7998x_colour_fmts)) | ||
| 974 | return -EINVAL; | ||
| 975 | |||
| 976 | code->code = isl7998x_colour_fmts[code->index].code; | ||
| 977 | |||
| 978 | return 0; | ||
| 979 | } | ||
| 980 | |||
| 981 | static int isl7998x_enum_frame_size(struct v4l2_subdev *sd, | ||
| 982 | struct v4l2_subdev_state *sd_state, | ||
| 983 | struct v4l2_subdev_frame_size_enum *fse) | ||
| 984 | { | ||
| 985 | if (fse->index >= ARRAY_SIZE(supported_modes)) | ||
| 986 | return -EINVAL; | ||
| 987 | |||
| 988 | if (fse->code != isl7998x_colour_fmts[0].code) | ||
| 989 | return -EINVAL; | ||
| 990 | |||
| 991 | fse->min_width = supported_modes[fse->index].width; | ||
| 992 | fse->max_width = fse->min_width; | ||
| 993 | fse->min_height = supported_modes[fse->index].height; | ||
| 994 | fse->max_height = fse->min_height; | ||
| 995 | |||
| 996 | return 0; | ||
| 997 | } | ||
| 998 | |||
| 999 | static int isl7998x_get_fmt(struct v4l2_subdev *sd, | ||
| 1000 | struct v4l2_subdev_state *sd_state, | ||
| 1001 | struct v4l2_subdev_format *format) | ||
| 1002 | { | ||
| 1003 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 1004 | struct v4l2_mbus_framefmt *mf = &format->format; | ||
| 1005 | const struct isl7998x_mode *mode; | ||
| 1006 | |||
| 1007 | mutex_lock(&isl7998x->lock); | ||
| 1008 | |||
| 1009 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) { | ||
| 1010 | format->format = *v4l2_subdev_get_try_format(sd, sd_state, | ||
| 1011 | format->pad); | ||
| 1012 | goto out; | ||
| 1013 | } | ||
| 1014 | |||
| 1015 | mode = isl7998x_norm_to_mode(isl7998x->norm); | ||
| 1016 | |||
| 1017 | mf->width = mode->width; | ||
| 1018 | mf->height = mode->height; | ||
| 1019 | mf->code = isl7998x->fmt->code; | ||
| 1020 | mf->field = mode->field; | ||
| 1021 | mf->colorspace = 0; | ||
| 1022 | |||
| 1023 | out: | ||
| 1024 | mutex_unlock(&isl7998x->lock); | ||
| 1025 | |||
| 1026 | return 0; | ||
| 1027 | } | ||
| 1028 | |||
| 1029 | static int isl7998x_set_fmt(struct v4l2_subdev *sd, | ||
| 1030 | struct v4l2_subdev_state *sd_state, | ||
| 1031 | struct v4l2_subdev_format *format) | ||
| 1032 | { | ||
| 1033 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 1034 | struct v4l2_mbus_framefmt *mf = &format->format; | ||
| 1035 | const struct isl7998x_mode *mode; | ||
| 1036 | |||
| 1037 | mutex_lock(&isl7998x->lock); | ||
| 1038 | |||
| 1039 | mode = isl7998x_norm_to_mode(isl7998x->norm); | ||
| 1040 | |||
| 1041 | mf->width = mode->width; | ||
| 1042 | mf->height = mode->height; | ||
| 1043 | mf->code = isl7998x->fmt->code; | ||
| 1044 | mf->field = mode->field; | ||
| 1045 | |||
| 1046 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) | ||
| 1047 | *v4l2_subdev_get_try_format(sd, sd_state, format->pad) = format->format; | ||
| 1048 | |||
| 1049 | mutex_unlock(&isl7998x->lock); | ||
| 1050 | |||
| 1051 | return 0; | ||
| 1052 | } | ||
| 1053 | |||
| 1054 | static int isl7998x_set_ctrl(struct v4l2_ctrl *ctrl) | ||
| 1055 | { | ||
| 1056 | struct isl7998x *isl7998x = container_of(ctrl->handler, | ||
| 1057 | struct isl7998x, ctrl_handler); | ||
| 1058 | int ret = 0; | ||
| 1059 | |||
| 1060 | switch (ctrl->id) { | ||
| 1061 | case V4L2_CID_TEST_PATTERN_BARS: | ||
| 1062 | mutex_lock(&isl7998x->lock); | ||
| 1063 | isl7998x->test_pattern_bars = ctrl->val & 0x3; | ||
| 1064 | ret = isl7998x_set_test_pattern(isl7998x); | ||
| 1065 | mutex_unlock(&isl7998x->lock); | ||
| 1066 | break; | ||
| 1067 | case V4L2_CID_TEST_PATTERN_CHANNELS: | ||
| 1068 | mutex_lock(&isl7998x->lock); | ||
| 1069 | isl7998x->test_pattern_chans = ctrl->val & 0xf; | ||
| 1070 | ret = isl7998x_set_test_pattern(isl7998x); | ||
| 1071 | mutex_unlock(&isl7998x->lock); | ||
| 1072 | break; | ||
| 1073 | case V4L2_CID_TEST_PATTERN_COLOR: | ||
| 1074 | mutex_lock(&isl7998x->lock); | ||
| 1075 | isl7998x->test_pattern_color = ctrl->val & 0x3; | ||
| 1076 | ret = isl7998x_set_test_pattern(isl7998x); | ||
| 1077 | mutex_unlock(&isl7998x->lock); | ||
| 1078 | break; | ||
| 1079 | case V4L2_CID_TEST_PATTERN: | ||
| 1080 | mutex_lock(&isl7998x->lock); | ||
| 1081 | isl7998x->test_pattern = ctrl->val; | ||
| 1082 | ret = isl7998x_set_test_pattern(isl7998x); | ||
| 1083 | mutex_unlock(&isl7998x->lock); | ||
| 1084 | break; | ||
| 1085 | } | ||
| 1086 | |||
| 1087 | return ret; | ||
| 1088 | } | ||
| 1089 | |||
| 1090 | static const struct v4l2_subdev_core_ops isl7998x_subdev_core_ops = { | ||
| 1091 | #ifdef CONFIG_VIDEO_ADV_DEBUG | ||
| 1092 | .g_register = isl7998x_g_register, | ||
| 1093 | .s_register = isl7998x_s_register, | ||
| 1094 | #endif | ||
| 1095 | }; | ||
| 1096 | |||
| 1097 | static const struct v4l2_subdev_video_ops isl7998x_subdev_video_ops = { | ||
| 1098 | .g_std = isl7998x_g_std, | ||
| 1099 | .s_std = isl7998x_s_std, | ||
| 1100 | .querystd = isl7998x_querystd, | ||
| 1101 | .g_tvnorms = isl7998x_g_tvnorms, | ||
| 1102 | .g_input_status = isl7998x_g_input_status, | ||
| 1103 | .s_stream = isl7998x_s_stream, | ||
| 1104 | .pre_streamon = isl7998x_pre_streamon, | ||
| 1105 | .post_streamoff = isl7998x_post_streamoff, | ||
| 1106 | }; | ||
| 1107 | |||
| 1108 | static const struct v4l2_subdev_pad_ops isl7998x_subdev_pad_ops = { | ||
| 1109 | .enum_mbus_code = isl7998x_enum_mbus_code, | ||
| 1110 | .enum_frame_size = isl7998x_enum_frame_size, | ||
| 1111 | .get_fmt = isl7998x_get_fmt, | ||
| 1112 | .set_fmt = isl7998x_set_fmt, | ||
| 1113 | }; | ||
| 1114 | |||
| 1115 | static const struct v4l2_subdev_ops isl7998x_subdev_ops = { | ||
| 1116 | .core = &isl7998x_subdev_core_ops, | ||
| 1117 | .video = &isl7998x_subdev_video_ops, | ||
| 1118 | .pad = &isl7998x_subdev_pad_ops, | ||
| 1119 | }; | ||
| 1120 | |||
| 1121 | static const struct media_entity_operations isl7998x_entity_ops = { | ||
| 1122 | .link_validate = v4l2_subdev_link_validate, | ||
| 1123 | }; | ||
| 1124 | |||
| 1125 | static const struct v4l2_ctrl_ops isl7998x_ctrl_ops = { | ||
| 1126 | .s_ctrl = isl7998x_set_ctrl, | ||
| 1127 | }; | ||
| 1128 | |||
| 1129 | static const struct v4l2_ctrl_config isl7998x_ctrls[] = { | ||
| 1130 | { | ||
| 1131 | .ops = &isl7998x_ctrl_ops, | ||
| 1132 | .id = V4L2_CID_TEST_PATTERN_BARS, | ||
| 1133 | .type = V4L2_CTRL_TYPE_MENU, | ||
| 1134 | .name = "Test Pattern Bars", | ||
| 1135 | .max = ARRAY_SIZE(isl7998x_test_pattern_bars) - 1, | ||
| 1136 | .def = 0, | ||
| 1137 | .qmenu = isl7998x_test_pattern_bars, | ||
| 1138 | }, { | ||
| 1139 | .ops = &isl7998x_ctrl_ops, | ||
| 1140 | .id = V4L2_CID_TEST_PATTERN_CHANNELS, | ||
| 1141 | .type = V4L2_CTRL_TYPE_INTEGER, | ||
| 1142 | .name = "Test Pattern Channels", | ||
| 1143 | .min = 0, | ||
| 1144 | .max = 0xf, | ||
| 1145 | .step = 1, | ||
| 1146 | .def = 0xf, | ||
| 1147 | .flags = 0, | ||
| 1148 | }, { | ||
| 1149 | .ops = &isl7998x_ctrl_ops, | ||
| 1150 | .id = V4L2_CID_TEST_PATTERN_COLOR, | ||
| 1151 | .type = V4L2_CTRL_TYPE_MENU, | ||
| 1152 | .name = "Test Pattern Color", | ||
| 1153 | .max = ARRAY_SIZE(isl7998x_test_pattern_colors) - 1, | ||
| 1154 | .def = 0, | ||
| 1155 | .qmenu = isl7998x_test_pattern_colors, | ||
| 1156 | }, | ||
| 1157 | }; | ||
| 1158 | |||
| 1159 | #define ISL7998X_REG_DECODER_ACA_READABLE_RANGE(page) \ | ||
| 1160 | /* Decoder range */ \ | ||
| 1161 | regmap_reg_range(ISL7998X_REG_PX_DEC_INPUT_FMT(page), \ | ||
| 1162 | ISL7998X_REG_PX_DEC_HS_DELAY_CTL(page)), \ | ||
| 1163 | regmap_reg_range(ISL7998X_REG_PX_DEC_ANCTL(page), \ | ||
| 1164 | ISL7998X_REG_PX_DEC_CSC_CTL(page)), \ | ||
| 1165 | regmap_reg_range(ISL7998X_REG_PX_DEC_BRIGHT(page), \ | ||
| 1166 | ISL7998X_REG_PX_DEC_HUE(page)), \ | ||
| 1167 | regmap_reg_range(ISL7998X_REG_PX_DEC_VERT_PEAK(page), \ | ||
| 1168 | ISL7998X_REG_PX_DEC_CORING(page)), \ | ||
| 1169 | regmap_reg_range(ISL7998X_REG_PX_DEC_SDT(page), \ | ||
| 1170 | ISL7998X_REG_PX_DEC_SDTR(page)), \ | ||
| 1171 | regmap_reg_range(ISL7998X_REG_PX_DEC_CLMPG(page), \ | ||
| 1172 | ISL7998X_REG_PX_DEC_DATA_CONV(page)), \ | ||
| 1173 | regmap_reg_range(ISL7998X_REG_PX_DEC_INTERNAL_TEST(page), \ | ||
| 1174 | ISL7998X_REG_PX_DEC_INTERNAL_TEST(page)), \ | ||
| 1175 | regmap_reg_range(ISL7998X_REG_PX_DEC_H_DELAY_CTL(page), \ | ||
| 1176 | ISL7998X_REG_PX_DEC_H_DELAY_II_LOW(page)), \ | ||
| 1177 | /* ACA range */ \ | ||
| 1178 | regmap_reg_range(ISL7998X_REG_PX_ACA_CTL_1(page), \ | ||
| 1179 | ISL7998X_REG_PX_ACA_HIST_WIN_V_SZ2(page)), \ | ||
| 1180 | regmap_reg_range(ISL7998X_REG_PX_ACA_Y_AVG(page), \ | ||
| 1181 | ISL7998X_REG_PX_ACA_CTL_4(page)), \ | ||
| 1182 | regmap_reg_range(ISL7998X_REG_PX_ACA_FLEX_WIN_HIST(page), \ | ||
| 1183 | ISL7998X_REG_PX_ACA_XFER_HIST_HOST(page)), \ | ||
| 1184 | regmap_reg_range(ISL7998X_REG_PX_DEC_PAGE(page), \ | ||
| 1185 | ISL7998X_REG_PX_DEC_PAGE(page)) | ||
| 1186 | |||
| 1187 | #define ISL7998X_REG_DECODER_ACA_WRITEABLE_RANGE(page) \ | ||
| 1188 | /* Decoder range */ \ | ||
| 1189 | regmap_reg_range(ISL7998X_REG_PX_DEC_INPUT_FMT(page), \ | ||
| 1190 | ISL7998X_REG_PX_DEC_INPUT_FMT(page)), \ | ||
| 1191 | regmap_reg_range(ISL7998X_REG_PX_DEC_HS_DELAY_CTL(page), \ | ||
| 1192 | ISL7998X_REG_PX_DEC_HS_DELAY_CTL(page)), \ | ||
| 1193 | regmap_reg_range(ISL7998X_REG_PX_DEC_ANCTL(page), \ | ||
| 1194 | ISL7998X_REG_PX_DEC_CSC_CTL(page)), \ | ||
| 1195 | regmap_reg_range(ISL7998X_REG_PX_DEC_BRIGHT(page), \ | ||
| 1196 | ISL7998X_REG_PX_DEC_HUE(page)), \ | ||
| 1197 | regmap_reg_range(ISL7998X_REG_PX_DEC_VERT_PEAK(page), \ | ||
| 1198 | ISL7998X_REG_PX_DEC_CORING(page)), \ | ||
| 1199 | regmap_reg_range(ISL7998X_REG_PX_DEC_SDT(page), \ | ||
| 1200 | ISL7998X_REG_PX_DEC_SDTR(page)), \ | ||
| 1201 | regmap_reg_range(ISL7998X_REG_PX_DEC_CLMPG(page), \ | ||
| 1202 | ISL7998X_REG_PX_DEC_MISC3(page)), \ | ||
| 1203 | regmap_reg_range(ISL7998X_REG_PX_DEC_CLMD(page), \ | ||
| 1204 | ISL7998X_REG_PX_DEC_DATA_CONV(page)), \ | ||
| 1205 | regmap_reg_range(ISL7998X_REG_PX_DEC_INTERNAL_TEST(page), \ | ||
| 1206 | ISL7998X_REG_PX_DEC_INTERNAL_TEST(page)), \ | ||
| 1207 | regmap_reg_range(ISL7998X_REG_PX_DEC_H_DELAY_CTL(page), \ | ||
| 1208 | ISL7998X_REG_PX_DEC_H_DELAY_II_LOW(page)), \ | ||
| 1209 | /* ACA range */ \ | ||
| 1210 | regmap_reg_range(ISL7998X_REG_PX_ACA_CTL_1(page), \ | ||
| 1211 | ISL7998X_REG_PX_ACA_HIST_WIN_V_SZ2(page)), \ | ||
| 1212 | regmap_reg_range(ISL7998X_REG_PX_ACA_CTL_2(page), \ | ||
| 1213 | ISL7998X_REG_PX_ACA_CTL_4(page)), \ | ||
| 1214 | regmap_reg_range(ISL7998X_REG_PX_ACA_FLEX_WIN_HIST(page), \ | ||
| 1215 | ISL7998X_REG_PX_ACA_HIST_DATA_LO(page)), \ | ||
| 1216 | regmap_reg_range(ISL7998X_REG_PX_ACA_XFER_HIST_HOST(page), \ | ||
| 1217 | ISL7998X_REG_PX_ACA_XFER_HIST_HOST(page)), \ | ||
| 1218 | regmap_reg_range(ISL7998X_REG_PX_DEC_PAGE(page), \ | ||
| 1219 | ISL7998X_REG_PX_DEC_PAGE(page)) | ||
| 1220 | |||
| 1221 | #define ISL7998X_REG_DECODER_ACA_VOLATILE_RANGE(page) \ | ||
| 1222 | /* Decoder range */ \ | ||
| 1223 | regmap_reg_range(ISL7998X_REG_PX_DEC_STATUS_1(page), \ | ||
| 1224 | ISL7998X_REG_PX_DEC_STATUS_1(page)), \ | ||
| 1225 | regmap_reg_range(ISL7998X_REG_PX_DEC_SDT(page), \ | ||
| 1226 | ISL7998X_REG_PX_DEC_SDT(page)), \ | ||
| 1227 | regmap_reg_range(ISL7998X_REG_PX_DEC_MVSN(page), \ | ||
| 1228 | ISL7998X_REG_PX_DEC_HFREF(page)), \ | ||
| 1229 | /* ACA range */ \ | ||
| 1230 | regmap_reg_range(ISL7998X_REG_PX_ACA_Y_AVG(page), \ | ||
| 1231 | ISL7998X_REG_PX_ACA_Y_HIGH(page)), \ | ||
| 1232 | regmap_reg_range(ISL7998X_REG_PX_ACA_HIST_DATA_LO(page), \ | ||
| 1233 | ISL7998X_REG_PX_ACA_FLEX_WIN_CR_CLR(page)) | ||
| 1234 | |||
| 1235 | static const struct regmap_range isl7998x_readable_ranges[] = { | ||
| 1236 | regmap_reg_range(ISL7998X_REG_P0_PRODUCT_ID_CODE, | ||
| 1237 | ISL7998X_REG_P0_IRQ_SYNC_CTL), | ||
| 1238 | regmap_reg_range(ISL7998X_REG_P0_INTERRUPT_STATUS, | ||
| 1239 | ISL7998X_REG_P0_CLOCK_DELAY), | ||
| 1240 | regmap_reg_range(ISL7998X_REG_PX_DEC_PAGE(0), | ||
| 1241 | ISL7998X_REG_PX_DEC_PAGE(0)), | ||
| 1242 | |||
| 1243 | ISL7998X_REG_DECODER_ACA_READABLE_RANGE(1), | ||
| 1244 | ISL7998X_REG_DECODER_ACA_READABLE_RANGE(2), | ||
| 1245 | ISL7998X_REG_DECODER_ACA_READABLE_RANGE(3), | ||
| 1246 | ISL7998X_REG_DECODER_ACA_READABLE_RANGE(4), | ||
| 1247 | |||
| 1248 | regmap_reg_range(ISL7998X_REG_P5_LI_ENGINE_CTL, | ||
| 1249 | ISL7998X_REG_P5_MIPI_SP_HS_TRL_CTL), | ||
| 1250 | regmap_reg_range(ISL7998X_REG_P5_FIFO_THRSH_CNT_1, | ||
| 1251 | ISL7998X_REG_P5_PLL_ANA), | ||
| 1252 | regmap_reg_range(ISL7998X_REG_P5_TOTAL_PF_LINE_CNT_1, | ||
| 1253 | ISL7998X_REG_P5_HIST_LINE_CNT_2), | ||
| 1254 | regmap_reg_range(ISL7998X_REG_PX_DEC_PAGE(5), | ||
| 1255 | ISL7998X_REG_PX_DEC_PAGE(5)), | ||
| 1256 | }; | ||
| 1257 | |||
| 1258 | static const struct regmap_range isl7998x_writeable_ranges[] = { | ||
| 1259 | regmap_reg_range(ISL7998X_REG_P0_SW_RESET_CTL, | ||
| 1260 | ISL7998X_REG_P0_IRQ_SYNC_CTL), | ||
| 1261 | regmap_reg_range(ISL7998X_REG_P0_CHAN_1_IRQ, | ||
| 1262 | ISL7998X_REG_P0_SHORT_DIAG_IRQ_EN), | ||
| 1263 | regmap_reg_range(ISL7998X_REG_P0_CLOCK_DELAY, | ||
| 1264 | ISL7998X_REG_P0_CLOCK_DELAY), | ||
| 1265 | regmap_reg_range(ISL7998X_REG_PX_DEC_PAGE(0), | ||
| 1266 | ISL7998X_REG_PX_DEC_PAGE(0)), | ||
| 1267 | |||
| 1268 | ISL7998X_REG_DECODER_ACA_WRITEABLE_RANGE(1), | ||
| 1269 | ISL7998X_REG_DECODER_ACA_WRITEABLE_RANGE(2), | ||
| 1270 | ISL7998X_REG_DECODER_ACA_WRITEABLE_RANGE(3), | ||
| 1271 | ISL7998X_REG_DECODER_ACA_WRITEABLE_RANGE(4), | ||
| 1272 | |||
| 1273 | regmap_reg_range(ISL7998X_REG_P5_LI_ENGINE_CTL, | ||
| 1274 | ISL7998X_REG_P5_ESC_MODE_TIME_CTL), | ||
| 1275 | regmap_reg_range(ISL7998X_REG_P5_MIPI_SP_HS_TRL_CTL, | ||
| 1276 | ISL7998X_REG_P5_PLL_ANA), | ||
| 1277 | regmap_reg_range(ISL7998X_REG_P5_TOTAL_PF_LINE_CNT_1, | ||
| 1278 | ISL7998X_REG_P5_HIST_LINE_CNT_2), | ||
| 1279 | regmap_reg_range(ISL7998X_REG_PX_DEC_PAGE(5), | ||
| 1280 | ISL7998X_REG_PX_DEC_PAGE(5)), | ||
| 1281 | |||
| 1282 | ISL7998X_REG_DECODER_ACA_WRITEABLE_RANGE(0xf), | ||
| 1283 | }; | ||
| 1284 | |||
| 1285 | static const struct regmap_range isl7998x_volatile_ranges[] = { | ||
| 1286 | /* Product id code register is used to check availability */ | ||
| 1287 | regmap_reg_range(ISL7998X_REG_P0_PRODUCT_ID_CODE, | ||
| 1288 | ISL7998X_REG_P0_PRODUCT_ID_CODE), | ||
| 1289 | regmap_reg_range(ISL7998X_REG_P0_MPP1_SYNC_CTL, | ||
| 1290 | ISL7998X_REG_P0_IRQ_SYNC_CTL), | ||
| 1291 | regmap_reg_range(ISL7998X_REG_P0_INTERRUPT_STATUS, | ||
| 1292 | ISL7998X_REG_P0_INTERRUPT_STATUS), | ||
| 1293 | regmap_reg_range(ISL7998X_REG_P0_CHAN_1_STATUS, | ||
| 1294 | ISL7998X_REG_P0_SHORT_DIAG_STATUS), | ||
| 1295 | |||
| 1296 | ISL7998X_REG_DECODER_ACA_VOLATILE_RANGE(1), | ||
| 1297 | ISL7998X_REG_DECODER_ACA_VOLATILE_RANGE(2), | ||
| 1298 | ISL7998X_REG_DECODER_ACA_VOLATILE_RANGE(3), | ||
| 1299 | ISL7998X_REG_DECODER_ACA_VOLATILE_RANGE(4), | ||
| 1300 | |||
| 1301 | regmap_reg_range(ISL7998X_REG_P5_AUTO_TEST_ERR_DET, | ||
| 1302 | ISL7998X_REG_P5_PIC_HEIGHT_LOW), | ||
| 1303 | }; | ||
| 1304 | |||
| 1305 | static const struct regmap_access_table isl7998x_readable_table = { | ||
| 1306 | .yes_ranges = isl7998x_readable_ranges, | ||
| 1307 | .n_yes_ranges = ARRAY_SIZE(isl7998x_readable_ranges), | ||
| 1308 | }; | ||
| 1309 | |||
| 1310 | static const struct regmap_access_table isl7998x_writeable_table = { | ||
| 1311 | .yes_ranges = isl7998x_writeable_ranges, | ||
| 1312 | .n_yes_ranges = ARRAY_SIZE(isl7998x_writeable_ranges), | ||
| 1313 | }; | ||
| 1314 | |||
| 1315 | static const struct regmap_access_table isl7998x_volatile_table = { | ||
| 1316 | .yes_ranges = isl7998x_volatile_ranges, | ||
| 1317 | .n_yes_ranges = ARRAY_SIZE(isl7998x_volatile_ranges), | ||
| 1318 | }; | ||
| 1319 | |||
| 1320 | static const struct regmap_range_cfg isl7998x_ranges[] = { | ||
| 1321 | { | ||
| 1322 | .range_min = ISL7998X_REG_PN_BASE(0), | ||
| 1323 | .range_max = ISL7998X_REG_PX_ACA_XFER_HIST_HOST(0xf), | ||
| 1324 | .selector_reg = ISL7998X_REG_PX_DEC_PAGE(0), | ||
| 1325 | .selector_mask = ISL7998X_REG_PX_DEC_PAGE_MASK, | ||
| 1326 | .window_start = 0, | ||
| 1327 | .window_len = 256, | ||
| 1328 | } | ||
| 1329 | }; | ||
| 1330 | |||
| 1331 | static const struct regmap_config isl7998x_regmap = { | ||
| 1332 | .reg_bits = 8, | ||
| 1333 | .val_bits = 8, | ||
| 1334 | .max_register = ISL7998X_REG_PX_ACA_XFER_HIST_HOST(0xf), | ||
| 1335 | .ranges = isl7998x_ranges, | ||
| 1336 | .num_ranges = ARRAY_SIZE(isl7998x_ranges), | ||
| 1337 | .rd_table = &isl7998x_readable_table, | ||
| 1338 | .wr_table = &isl7998x_writeable_table, | ||
| 1339 | .volatile_table = &isl7998x_volatile_table, | ||
| 1340 | .cache_type = REGCACHE_RBTREE, | ||
| 1341 | }; | ||
| 1342 | |||
| 1343 | static int isl7998x_mc_init(struct isl7998x *isl7998x) | ||
| 1344 | { | ||
| 1345 | unsigned int i; | ||
| 1346 | |||
| 1347 | isl7998x->subdev.entity.ops = &isl7998x_entity_ops; | ||
| 1348 | isl7998x->subdev.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; | ||
| 1349 | |||
| 1350 | isl7998x->pads[ISL7998X_PAD_OUT].flags = MEDIA_PAD_FL_SOURCE; | ||
| 1351 | for (i = ISL7998X_PAD_VIN1; i < ISL7998X_NUM_PADS; i++) | ||
| 1352 | isl7998x->pads[i].flags = MEDIA_PAD_FL_SINK; | ||
| 1353 | |||
| 1354 | return media_entity_pads_init(&isl7998x->subdev.entity, | ||
| 1355 | ISL7998X_NUM_PADS, | ||
| 1356 | isl7998x->pads); | ||
| 1357 | } | ||
| 1358 | |||
| 1359 | static int get_link_freq_menu_index(unsigned int lanes, | ||
| 1360 | unsigned int inputs) | ||
| 1361 | { | ||
| 1362 | int ret = -EINVAL; | ||
| 1363 | |||
| 1364 | switch (lanes) { | ||
| 1365 | case 1: | ||
| 1366 | if (inputs == 1) | ||
| 1367 | ret = 0; | ||
| 1368 | if (inputs == 2) | ||
| 1369 | ret = 1; | ||
| 1370 | if (inputs == 4) | ||
| 1371 | ret = 2; | ||
| 1372 | break; | ||
| 1373 | case 2: | ||
| 1374 | if (inputs == 2) | ||
| 1375 | ret = 0; | ||
| 1376 | if (inputs == 4) | ||
| 1377 | ret = 1; | ||
| 1378 | break; | ||
| 1379 | default: | ||
| 1380 | break; | ||
| 1381 | } | ||
| 1382 | |||
| 1383 | return ret; | ||
| 1384 | } | ||
| 1385 | |||
| 1386 | static void isl7998x_remove_controls(struct isl7998x *isl7998x) | ||
| 1387 | { | ||
| 1388 | v4l2_ctrl_handler_free(&isl7998x->ctrl_handler); | ||
| 1389 | mutex_destroy(&isl7998x->ctrl_mutex); | ||
| 1390 | } | ||
| 1391 | |||
| 1392 | static int isl7998x_init_controls(struct isl7998x *isl7998x) | ||
| 1393 | { | ||
| 1394 | struct v4l2_subdev *sd = &isl7998x->subdev; | ||
| 1395 | int link_freq_index; | ||
| 1396 | unsigned int i; | ||
| 1397 | int ret; | ||
| 1398 | |||
| 1399 | ret = v4l2_ctrl_handler_init(&isl7998x->ctrl_handler, | ||
| 1400 | 2 + ARRAY_SIZE(isl7998x_ctrls)); | ||
| 1401 | if (ret) | ||
| 1402 | return ret; | ||
| 1403 | |||
| 1404 | mutex_init(&isl7998x->ctrl_mutex); | ||
| 1405 | isl7998x->ctrl_handler.lock = &isl7998x->ctrl_mutex; | ||
| 1406 | link_freq_index = get_link_freq_menu_index(isl7998x->nr_mipi_lanes, | ||
| 1407 | isl7998x->nr_inputs); | ||
| 1408 | if (link_freq_index < 0 || | ||
| 1409 | link_freq_index >= ARRAY_SIZE(link_freq_menu_items)) { | ||
| 1410 | dev_err(sd->dev, | ||
| 1411 | "failed to find MIPI link freq: %d lanes, %d inputs\n", | ||
| 1412 | isl7998x->nr_mipi_lanes, isl7998x->nr_inputs); | ||
| 1413 | ret = -EINVAL; | ||
| 1414 | goto err; | ||
| 1415 | } | ||
| 1416 | |||
| 1417 | isl7998x->link_freq = v4l2_ctrl_new_int_menu(&isl7998x->ctrl_handler, | ||
| 1418 | &isl7998x_ctrl_ops, | ||
| 1419 | V4L2_CID_LINK_FREQ, | ||
| 1420 | ARRAY_SIZE(link_freq_menu_items) - 1, | ||
| 1421 | link_freq_index, | ||
| 1422 | link_freq_menu_items); | ||
| 1423 | if (isl7998x->link_freq) | ||
| 1424 | isl7998x->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; | ||
| 1425 | |||
| 1426 | for (i = 0; i < ARRAY_SIZE(isl7998x_ctrls); i++) | ||
| 1427 | v4l2_ctrl_new_custom(&isl7998x->ctrl_handler, | ||
| 1428 | &isl7998x_ctrls[i], NULL); | ||
| 1429 | |||
| 1430 | v4l2_ctrl_new_std_menu_items(&isl7998x->ctrl_handler, | ||
| 1431 | &isl7998x_ctrl_ops, | ||
| 1432 | V4L2_CID_TEST_PATTERN, | ||
| 1433 | ARRAY_SIZE(isl7998x_test_pattern_menu) - 1, | ||
| 1434 | 0, 0, isl7998x_test_pattern_menu); | ||
| 1435 | |||
| 1436 | ret = isl7998x->ctrl_handler.error; | ||
| 1437 | if (ret) | ||
| 1438 | goto err; | ||
| 1439 | |||
| 1440 | isl7998x->subdev.ctrl_handler = &isl7998x->ctrl_handler; | ||
| 1441 | v4l2_ctrl_handler_setup(&isl7998x->ctrl_handler); | ||
| 1442 | |||
| 1443 | return 0; | ||
| 1444 | |||
| 1445 | err: | ||
| 1446 | isl7998x_remove_controls(isl7998x); | ||
| 1447 | |||
| 1448 | return ret; | ||
| 1449 | } | ||
| 1450 | |||
| 1451 | static int isl7998x_probe(struct i2c_client *client) | ||
| 1452 | { | ||
| 1453 | struct device *dev = &client->dev; | ||
| 1454 | struct v4l2_fwnode_endpoint endpoint = { | ||
| 1455 | .bus_type = V4L2_MBUS_CSI2_DPHY, | ||
| 1456 | }; | ||
| 1457 | struct fwnode_handle *ep; | ||
| 1458 | struct isl7998x *isl7998x; | ||
| 1459 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); | ||
| 1460 | int nr_inputs; | ||
| 1461 | int ret; | ||
| 1462 | |||
| 1463 | ret = i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA); | ||
| 1464 | if (!ret) { | ||
| 1465 | dev_warn(&adapter->dev, | ||
| 1466 | "I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n"); | ||
| 1467 | return -EIO; | ||
| 1468 | } | ||
| 1469 | |||
| 1470 | isl7998x = devm_kzalloc(dev, sizeof(*isl7998x), GFP_KERNEL); | ||
| 1471 | if (!isl7998x) | ||
| 1472 | return -ENOMEM; | ||
| 1473 | |||
| 1474 | isl7998x->pd_gpio = devm_gpiod_get_optional(dev, "powerdown", | ||
| 1475 | GPIOD_OUT_HIGH); | ||
| 1476 | if (IS_ERR(isl7998x->pd_gpio)) | ||
| 1477 | return dev_err_probe(dev, PTR_ERR(isl7998x->pd_gpio), | ||
| 1478 | "Failed to retrieve/request PD GPIO\n"); | ||
| 1479 | |||
| 1480 | isl7998x->rstb_gpio = devm_gpiod_get_optional(dev, "reset", | ||
| 1481 | GPIOD_OUT_HIGH); | ||
| 1482 | if (IS_ERR(isl7998x->rstb_gpio)) | ||
| 1483 | return dev_err_probe(dev, PTR_ERR(isl7998x->rstb_gpio), | ||
| 1484 | "Failed to retrieve/request RSTB GPIO\n"); | ||
| 1485 | |||
| 1486 | isl7998x->regmap = devm_regmap_init_i2c(client, &isl7998x_regmap); | ||
| 1487 | if (IS_ERR(isl7998x->regmap)) | ||
| 1488 | return dev_err_probe(dev, PTR_ERR(isl7998x->regmap), | ||
| 1489 | "Failed to allocate register map\n"); | ||
| 1490 | |||
| 1491 | ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(dev), | ||
| 1492 | ISL7998X_PAD_OUT, 0, 0); | ||
| 1493 | if (!ep) | ||
| 1494 | return dev_err_probe(dev, -EINVAL, "Missing endpoint node\n"); | ||
| 1495 | |||
| 1496 | ret = v4l2_fwnode_endpoint_parse(ep, &endpoint); | ||
| 1497 | fwnode_handle_put(ep); | ||
| 1498 | if (ret) | ||
| 1499 | return dev_err_probe(dev, ret, "Failed to parse endpoint\n"); | ||
| 1500 | |||
| 1501 | if (endpoint.bus.mipi_csi2.num_data_lanes == 0 || | ||
| 1502 | endpoint.bus.mipi_csi2.num_data_lanes > 2) | ||
| 1503 | return dev_err_probe(dev, -EINVAL, | ||
| 1504 | "Invalid number of MIPI lanes\n"); | ||
| 1505 | |||
| 1506 | isl7998x->nr_mipi_lanes = endpoint.bus.mipi_csi2.num_data_lanes; | ||
| 1507 | |||
| 1508 | nr_inputs = isl7998x_get_nr_inputs(dev->of_node); | ||
| 1509 | if (nr_inputs < 0) | ||
| 1510 | return dev_err_probe(dev, nr_inputs, | ||
| 1511 | "Invalid number of input ports\n"); | ||
| 1512 | isl7998x->nr_inputs = nr_inputs; | ||
| 1513 | |||
| 1514 | v4l2_i2c_subdev_init(&isl7998x->subdev, client, &isl7998x_subdev_ops); | ||
| 1515 | isl7998x->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; | ||
| 1516 | |||
| 1517 | ret = isl7998x_mc_init(isl7998x); | ||
| 1518 | if (ret < 0) | ||
| 1519 | return ret; | ||
| 1520 | |||
| 1521 | isl7998x->fmt = &isl7998x_colour_fmts[0]; | ||
| 1522 | isl7998x->norm = V4L2_STD_NTSC; | ||
| 1523 | isl7998x->enabled = 0; | ||
| 1524 | |||
| 1525 | mutex_init(&isl7998x->lock); | ||
| 1526 | |||
| 1527 | ret = isl7998x_init_controls(isl7998x); | ||
| 1528 | if (ret) | ||
| 1529 | goto err_entity_cleanup; | ||
| 1530 | |||
| 1531 | ret = v4l2_async_register_subdev(&isl7998x->subdev); | ||
| 1532 | if (ret < 0) | ||
| 1533 | goto err_controls_cleanup; | ||
| 1534 | |||
| 1535 | pm_runtime_enable(dev); | ||
| 1536 | |||
| 1537 | return 0; | ||
| 1538 | |||
| 1539 | err_controls_cleanup: | ||
| 1540 | isl7998x_remove_controls(isl7998x); | ||
| 1541 | err_entity_cleanup: | ||
| 1542 | media_entity_cleanup(&isl7998x->subdev.entity); | ||
| 1543 | |||
| 1544 | return ret; | ||
| 1545 | } | ||
| 1546 | |||
| 1547 | static int isl7998x_remove(struct i2c_client *client) | ||
| 1548 | { | ||
| 1549 | struct isl7998x *isl7998x = i2c_to_isl7998x(client); | ||
| 1550 | |||
| 1551 | pm_runtime_disable(&client->dev); | ||
| 1552 | v4l2_async_unregister_subdev(&isl7998x->subdev); | ||
| 1553 | isl7998x_remove_controls(isl7998x); | ||
| 1554 | media_entity_cleanup(&isl7998x->subdev.entity); | ||
| 1555 | |||
| 1556 | return 0; | ||
| 1557 | } | ||
| 1558 | |||
| 1559 | static const struct of_device_id isl7998x_of_match[] = { | ||
| 1560 | { .compatible = "isil,isl79987", }, | ||
| 1561 | { /* sentinel */ }, | ||
| 1562 | }; | ||
| 1563 | MODULE_DEVICE_TABLE(of, isl7998x_of_match); | ||
| 1564 | |||
| 1565 | static const struct i2c_device_id isl7998x_id[] = { | ||
| 1566 | { "isl79987", 0 }, | ||
| 1567 | { /* sentinel */ }, | ||
| 1568 | }; | ||
| 1569 | MODULE_DEVICE_TABLE(i2c, isl7998x_id); | ||
| 1570 | |||
| 1571 | static int __maybe_unused isl7998x_runtime_resume(struct device *dev) | ||
| 1572 | { | ||
| 1573 | struct v4l2_subdev *sd = dev_get_drvdata(dev); | ||
| 1574 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 1575 | int ret; | ||
| 1576 | |||
| 1577 | gpiod_set_value(isl7998x->rstb_gpio, 1); | ||
| 1578 | gpiod_set_value(isl7998x->pd_gpio, 0); | ||
| 1579 | gpiod_set_value(isl7998x->rstb_gpio, 0); | ||
| 1580 | |||
| 1581 | ret = isl7998x_wait_power_on(isl7998x); | ||
| 1582 | if (ret) | ||
| 1583 | goto err; | ||
| 1584 | |||
| 1585 | ret = isl7998x_init(isl7998x); | ||
| 1586 | if (ret) | ||
| 1587 | goto err; | ||
| 1588 | |||
| 1589 | return 0; | ||
| 1590 | |||
| 1591 | err: | ||
| 1592 | gpiod_set_value(isl7998x->pd_gpio, 1); | ||
| 1593 | |||
| 1594 | return ret; | ||
| 1595 | } | ||
| 1596 | |||
| 1597 | static int __maybe_unused isl7998x_runtime_suspend(struct device *dev) | ||
| 1598 | { | ||
| 1599 | struct v4l2_subdev *sd = dev_get_drvdata(dev); | ||
| 1600 | struct isl7998x *isl7998x = sd_to_isl7998x(sd); | ||
| 1601 | |||
| 1602 | gpiod_set_value(isl7998x->pd_gpio, 1); | ||
| 1603 | |||
| 1604 | return 0; | ||
| 1605 | } | ||
| 1606 | |||
| 1607 | static const struct dev_pm_ops isl7998x_pm_ops = { | ||
| 1608 | SET_RUNTIME_PM_OPS(isl7998x_runtime_suspend, | ||
| 1609 | isl7998x_runtime_resume, | ||
| 1610 | NULL) | ||
| 1611 | }; | ||
| 1612 | |||
| 1613 | static struct i2c_driver isl7998x_i2c_driver = { | ||
| 1614 | .driver = { | ||
| 1615 | .name = "isl7998x", | ||
| 1616 | .of_match_table = of_match_ptr(isl7998x_of_match), | ||
| 1617 | .pm = &isl7998x_pm_ops, | ||
| 1618 | }, | ||
| 1619 | .probe_new = isl7998x_probe, | ||
| 1620 | .remove = isl7998x_remove, | ||
| 1621 | .id_table = isl7998x_id, | ||
| 1622 | }; | ||
| 1623 | |||
| 1624 | module_i2c_driver(isl7998x_i2c_driver); | ||
| 1625 | |||
| 1626 | MODULE_DESCRIPTION("Intersil ISL7998x Analog to MIPI CSI-2/BT656 decoder"); | ||
| 1627 | MODULE_AUTHOR("Marek Vasut <marex@denx.de>"); | ||
| 1628 | MODULE_LICENSE("GPL v2"); | ||
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_M5MOLS | 2 | config VIDEO_M5MOLS |
| 3 | tristate "Fujitsu M-5MOLS 8MP sensor support" | 3 | tristate "Fujitsu M-5MOLS 8MP sensor support" |
| 4 | depends on I2C && VIDEO_V4L2 | 4 | depends on I2C && VIDEO_DEV |
| 5 | select MEDIA_CONTROLLER | 5 | select MEDIA_CONTROLLER |
| 6 | select VIDEO_V4L2_SUBDEV_API | 6 | select VIDEO_V4L2_SUBDEV_API |
| 7 | help | 7 | help |
| @@ -13,6 +13,7 @@ · 12 unmodified lines | |||
| 13 | #define M5MOLS_H | 13 | #define M5MOLS_H |
| 14 | 14 | ||
| 15 | #include <linux/sizes.h> | 15 | #include <linux/sizes.h> |
| 16 | #include <linux/gpio/consumer.h> | ||
| 16 | #include <media/v4l2-subdev.h> | 17 | #include <media/v4l2-subdev.h> |
| 17 | #include "m5mols_reg.h" | 18 | #include "m5mols_reg.h" |
| 18 | 19 | ||
| @@ -181,6 +182,7 @@ struct m5mols_version { · 162 unmodified lines | |||
| 181 | * @stabilization: image stabilization control | 182 | * @stabilization: image stabilization control |
| 182 | * @jpeg_quality: JPEG compression quality control | 183 | * @jpeg_quality: JPEG compression quality control |
| 183 | * @set_power: optional power callback to the board code | 184 | * @set_power: optional power callback to the board code |
| 185 | * @reset: GPIO driving the reset pin of M-5MOLS | ||
| 184 | * @lock: mutex protecting the structure fields below | 186 | * @lock: mutex protecting the structure fields below |
| 185 | * @ffmt: current fmt according to resolution type | 187 | * @ffmt: current fmt according to resolution type |
| 186 | * @res_type: current resolution type | 188 | * @res_type: current resolution type |
| @@ -224,6 +226,7 @@ struct m5mols_info { · 37 unmodified lines | |||
| 224 | struct v4l2_ctrl *jpeg_quality; | 226 | struct v4l2_ctrl *jpeg_quality; |
| 225 | 227 | ||
| 226 | int (*set_power)(struct device *dev, int on); | 228 | int (*set_power)(struct device *dev, int on); |
| 229 | struct gpio_desc *reset; | ||
| 227 | 230 | ||
| 228 | struct mutex lock; | 231 | struct mutex lock; |
| 229 | 232 | ||
| @@ -15,7 +15,6 @@ · 14 unmodified lines | |||
| 15 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
| 16 | #include <linux/interrupt.h> | 16 | #include <linux/interrupt.h> |
| 17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
| 18 | #include <linux/gpio.h> | ||
| 19 | #include <linux/regulator/consumer.h> | 18 | #include <linux/regulator/consumer.h> |
| 20 | #include <linux/videodev2.h> | 19 | #include <linux/videodev2.h> |
| 21 | #include <media/v4l2-ctrls.h> | 20 | #include <media/v4l2-ctrls.h> |
| @@ -14,7 +14,7 @@ · 13 unmodified lines | |||
| 14 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
| 15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
| 16 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
| 17 | #include <linux/gpio.h> | 17 | #include <linux/gpio/consumer.h> |
| 18 | #include <linux/regulator/consumer.h> | 18 | #include <linux/regulator/consumer.h> |
| 19 | #include <linux/videodev2.h> | 19 | #include <linux/videodev2.h> |
| 20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
| @@ -752,7 +752,6 @@ static int m5mols_sensor_power(struct m5mols_info *info, bool enable) · 731 unmodified lines | |||
| 752 | { | 752 | { |
| 753 | struct v4l2_subdev *sd = &info->sd; | 753 | struct v4l2_subdev *sd = &info->sd; |
| 754 | struct i2c_client *client = v4l2_get_subdevdata(sd); | 754 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
| 755 | const struct m5mols_platform_data *pdata = info->pdata; | ||
| 756 | int ret; | 755 | int ret; |
| 757 | 756 | ||
| 758 | if (info->power == enable) | 757 | if (info->power == enable) |
| @@ -772,7 +771,7 @@ static int m5mols_sensor_power(struct m5mols_info *info, bool enable) · 13 unmodified lines | |||
| 772 | return ret; | 771 | return ret; |
| 773 | } | 772 | } |
| 774 | 773 | ||
| 775 | gpio_set_value(pdata->gpio_reset, !pdata->reset_polarity); | 774 | gpiod_set_value(info->reset, 0); |
| 776 | info->power = 1; | 775 | info->power = 1; |
| 777 | 776 | ||
| 778 | return ret; | 777 | return ret; |
| @@ -785,7 +784,7 @@ static int m5mols_sensor_power(struct m5mols_info *info, bool enable) · 6 unmodified lines | |||
| 785 | if (info->set_power) | 784 | if (info->set_power) |
| 786 | info->set_power(&client->dev, 0); | 785 | info->set_power(&client->dev, 0); |
| 787 | 786 | ||
| 788 | gpio_set_value(pdata->gpio_reset, pdata->reset_polarity); | 787 | gpiod_set_value(info->reset, 1); |
| 789 | 788 | ||
| 790 | info->isp_ready = 0; | 789 | info->isp_ready = 0; |
| 791 | info->power = 0; | 790 | info->power = 0; |
| @@ -944,7 +943,6 @@ static int m5mols_probe(struct i2c_client *client, · 152 unmodified lines | |||
| 944 | const struct i2c_device_id *id) | 943 | const struct i2c_device_id *id) |
| 945 | { | 944 | { |
| 946 | const struct m5mols_platform_data *pdata = client->dev.platform_data; | 945 | const struct m5mols_platform_data *pdata = client->dev.platform_data; |
| 947 | unsigned long gpio_flags; | ||
| 948 | struct m5mols_info *info; | 946 | struct m5mols_info *info; |
| 949 | struct v4l2_subdev *sd; | 947 | struct v4l2_subdev *sd; |
| 950 | int ret; | 948 | int ret; |
| @@ -954,11 +952,6 @@ static int m5mols_probe(struct i2c_client *client, · 3 unmodified lines | |||
| 954 | return -EINVAL; | 952 | return -EINVAL; |
| 955 | } | 953 | } |
| 956 | 954 | ||
| 957 | if (!gpio_is_valid(pdata->gpio_reset)) { | ||
| 958 | dev_err(&client->dev, "No valid RESET GPIO specified\n"); | ||
| 959 | return -EINVAL; | ||
| 960 | } | ||
| 961 | |||
| 962 | if (!client->irq) { | 955 | if (!client->irq) { |
| 963 | dev_err(&client->dev, "Interrupt not assigned\n"); | 956 | dev_err(&client->dev, "Interrupt not assigned\n"); |
| 964 | return -EINVAL; | 957 | return -EINVAL; |
| @@ -968,18 +961,16 @@ static int m5mols_probe(struct i2c_client *client, · 3 unmodified lines | |||
| 968 | if (!info) | 961 | if (!info) |
| 969 | return -ENOMEM; | 962 | return -ENOMEM; |
| 970 | 963 | ||
| 964 | /* This asserts reset, descriptor shall have polarity specified */ | ||
| 965 | info->reset = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_HIGH); | ||
| 966 | if (IS_ERR(info->reset)) | ||
| 967 | return PTR_ERR(info->reset); | ||
| 968 | /* Notice: the "N" in M5MOLS_NRST implies active low */ | ||
| 969 | gpiod_set_consumer_name(info->reset, "M5MOLS_NRST"); | ||
| 970 | |||
| 971 | info->pdata = pdata; | 971 | info->pdata = pdata; |
| 972 | info->set_power = pdata->set_power; | 972 | info->set_power = pdata->set_power; |
| 973 | 973 | ||
| 974 | gpio_flags = pdata->reset_polarity | ||
| 975 | ? GPIOF_OUT_INIT_HIGH : GPIOF_OUT_INIT_LOW; | ||
| 976 | ret = devm_gpio_request_one(&client->dev, pdata->gpio_reset, gpio_flags, | ||
| 977 | "M5MOLS_NRST"); | ||
| 978 | if (ret) { | ||
| 979 | dev_err(&client->dev, "Failed to request gpio: %d\n", ret); | ||
| 980 | return ret; | ||
| 981 | } | ||
| 982 | |||
| 983 | ret = devm_regulator_bulk_get(&client->dev, ARRAY_SIZE(supplies), | 974 | ret = devm_regulator_bulk_get(&client->dev, ARRAY_SIZE(supplies), |
| 984 | supplies); | 975 | supplies); |
| 985 | if (ret) { | 976 | if (ret) { |
| @@ -257,7 +257,7 @@ static const struct regmap_config max2175_regmap_config = { · 256 unmodified lines | |||
| 257 | .reg_defaults = max2175_reg_defaults, | 257 | .reg_defaults = max2175_reg_defaults, |
| 258 | .num_reg_defaults = ARRAY_SIZE(max2175_reg_defaults), | 258 | .num_reg_defaults = ARRAY_SIZE(max2175_reg_defaults), |
| 259 | .volatile_table = &max2175_volatile_regs, | 259 | .volatile_table = &max2175_volatile_regs, |
| 260 | .cache_type = REGCACHE_FLAT, | 260 | .cache_type = REGCACHE_RBTREE, |
| 261 | }; | 261 | }; |
| 262 | 262 | ||
| 263 | struct max2175 { | 263 | struct max2175 { |
| @@ -15,6 +15,7 @@ · 14 unmodified lines | |||
| 15 | #include <linux/fwnode.h> | 15 | #include <linux/fwnode.h> |
| 16 | #include <linux/gpio/consumer.h> | 16 | #include <linux/gpio/consumer.h> |
| 17 | #include <linux/gpio/driver.h> | 17 | #include <linux/gpio/driver.h> |
| 18 | #include <linux/gpio/machine.h> | ||
| 18 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
| 19 | #include <linux/i2c-mux.h> | 20 | #include <linux/i2c-mux.h> |
| 20 | #include <linux/module.h> | 21 | #include <linux/module.h> |
| @@ -168,6 +169,8 @@ struct max9286_priv { · 147 unmodified lines | |||
| 168 | u32 init_rev_chan_mv; | 169 | u32 init_rev_chan_mv; |
| 169 | u32 rev_chan_mv; | 170 | u32 rev_chan_mv; |
| 170 | 171 | ||
| 172 | u32 gpio_poc[2]; | ||
| 173 | |||
| 171 | struct v4l2_ctrl_handler ctrls; | 174 | struct v4l2_ctrl_handler ctrls; |
| 172 | struct v4l2_ctrl *pixelrate; | 175 | struct v4l2_ctrl *pixelrate; |
| 173 | 176 | ||
| @@ -846,6 +849,10 @@ static const struct v4l2_subdev_internal_ops max9286_subdev_internal_ops = { · 672 unmodified lines | |||
| 846 | .open = max9286_open, | 849 | .open = max9286_open, |
| 847 | }; | 850 | }; |
| 848 | 851 | ||
| 852 | static const struct media_entity_operations max9286_media_ops = { | ||
| 853 | .link_validate = v4l2_subdev_link_validate | ||
| 854 | }; | ||
| 855 | |||
| 849 | static int max9286_s_ctrl(struct v4l2_ctrl *ctrl) | 856 | static int max9286_s_ctrl(struct v4l2_ctrl *ctrl) |
| 850 | { | 857 | { |
| 851 | switch (ctrl->id) { | 858 | switch (ctrl->id) { |
| @@ -895,6 +902,7 @@ static int max9286_v4l2_register(struct max9286_priv *priv) · 43 unmodified lines | |||
| 895 | goto err_async; | 902 | goto err_async; |
| 896 | 903 | ||
| 897 | priv->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; | 904 | priv->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; |
| 905 | priv->sd.entity.ops = &max9286_media_ops; | ||
| 898 | 906 | ||
| 899 | priv->pads[MAX9286_SRC_PAD].flags = MEDIA_PAD_FL_SOURCE; | 907 | priv->pads[MAX9286_SRC_PAD].flags = MEDIA_PAD_FL_SOURCE; |
| 900 | for (i = 0; i < MAX9286_SRC_PAD; i++) | 908 | for (i = 0; i < MAX9286_SRC_PAD; i++) |
| @@ -1025,20 +1033,27 @@ static int max9286_setup(struct max9286_priv *priv) · 124 unmodified lines | |||
| 1025 | return 0; | 1033 | return 0; |
| 1026 | } | 1034 | } |
| 1027 | 1035 | ||
| 1028 | static void max9286_gpio_set(struct gpio_chip *chip, | 1036 | static int max9286_gpio_set(struct max9286_priv *priv, unsigned int offset, |
| 1029 | unsigned int offset, int value) | 1037 | int value) |
| 1030 | { | 1038 | { |
| 1031 | struct max9286_priv *priv = gpiochip_get_data(chip); | ||
| 1032 | |||
| 1033 | if (value) | 1039 | if (value) |
| 1034 | priv->gpio_state |= BIT(offset); | 1040 | priv->gpio_state |= BIT(offset); |
| 1035 | else | 1041 | else |
| 1036 | priv->gpio_state &= ~BIT(offset); | 1042 | priv->gpio_state &= ~BIT(offset); |
| 1037 | 1043 | ||
| 1038 | max9286_write(priv, 0x0f, MAX9286_0X0F_RESERVED | priv->gpio_state); | 1044 | return max9286_write(priv, 0x0f, |
| 1045 | MAX9286_0X0F_RESERVED | priv->gpio_state); | ||
| 1046 | } | ||
| 1047 | |||
| 1048 | static void max9286_gpiochip_set(struct gpio_chip *chip, | ||
| 1049 | unsigned int offset, int value) | ||
| 1050 | { | ||
| 1051 | struct max9286_priv *priv = gpiochip_get_data(chip); | ||
| 1052 | |||
| 1053 | max9286_gpio_set(priv, offset, value); | ||
| 1039 | } | 1054 | } |
| 1040 | 1055 | ||
| 1041 | static int max9286_gpio_get(struct gpio_chip *chip, unsigned int offset) | 1056 | static int max9286_gpiochip_get(struct gpio_chip *chip, unsigned int offset) |
| 1042 | { | 1057 | { |
| 1043 | struct max9286_priv *priv = gpiochip_get_data(chip); | 1058 | struct max9286_priv *priv = gpiochip_get_data(chip); |
| 1044 | 1059 | ||
| @@ -1057,13 +1072,10 @@ static int max9286_register_gpio(struct max9286_priv *priv) · 12 unmodified lines | |||
| 1057 | gpio->owner = THIS_MODULE; | 1072 | gpio->owner = THIS_MODULE; |
| 1058 | gpio->ngpio = 2; | 1073 | gpio->ngpio = 2; |
| 1059 | gpio->base = -1; | 1074 | gpio->base = -1; |
| 1060 | gpio->set = max9286_gpio_set; | 1075 | gpio->set = max9286_gpiochip_set; |
| 1061 | gpio->get = max9286_gpio_get; | 1076 | gpio->get = max9286_gpiochip_get; |
| 1062 | gpio->can_sleep = true; | 1077 | gpio->can_sleep = true; |
| 1063 | 1078 | ||
| 1064 | /* GPIO values default to high */ | ||
| 1065 | priv->gpio_state = BIT(0) | BIT(1); | ||
| 1066 | |||
| 1067 | ret = devm_gpiochip_add_data(dev, gpio, priv); | 1079 | ret = devm_gpiochip_add_data(dev, gpio, priv); |
| 1068 | if (ret) | 1080 | if (ret) |
| 1069 | dev_err(dev, "Unable to create gpio_chip\n"); | 1081 | dev_err(dev, "Unable to create gpio_chip\n"); |
| @@ -1071,6 +1083,70 @@ static int max9286_register_gpio(struct max9286_priv *priv) · 1 unmodified line | |||
| 1071 | return ret; | 1083 | return ret; |
| 1072 | } | 1084 | } |
| 1073 | 1085 | ||
| 1086 | static int max9286_parse_gpios(struct max9286_priv *priv) | ||
| 1087 | { | ||
| 1088 | struct device *dev = &priv->client->dev; | ||
| 1089 | int ret; | ||
| 1090 | |||
| 1091 | /* GPIO values default to high */ | ||
| 1092 | priv->gpio_state = BIT(0) | BIT(1); | ||
| 1093 | |||
| 1094 | /* | ||
| 1095 | * Parse the "gpio-poc" vendor property. If the property is not | ||
| 1096 | * specified the camera power is controlled by a regulator. | ||
| 1097 | */ | ||
| 1098 | ret = of_property_read_u32_array(dev->of_node, "maxim,gpio-poc", | ||
| 1099 | priv->gpio_poc, 2); | ||
| 1100 | if (ret == -EINVAL) { | ||
| 1101 | /* | ||
| 1102 | * If gpio lines are not used for the camera power, register | ||
| 1103 | * a gpio controller for consumers. | ||
| 1104 | */ | ||
| 1105 | ret = max9286_register_gpio(priv); | ||
| 1106 | if (ret) | ||
| 1107 | return ret; | ||
| 1108 | |||
| 1109 | priv->regulator = devm_regulator_get(dev, "poc"); | ||
| 1110 | if (IS_ERR(priv->regulator)) { | ||
| 1111 | return dev_err_probe(dev, PTR_ERR(priv->regulator), | ||
| 1112 | "Unable to get PoC regulator (%ld)\n", | ||
| 1113 | PTR_ERR(priv->regulator)); | ||
| 1114 | } | ||
| 1115 | |||
| 1116 | return 0; | ||
| 1117 | } | ||
| 1118 | |||
| 1119 | /* If the property is specified make sure it is well formed. */ | ||
| 1120 | if (ret || priv->gpio_poc[0] > 1 || | ||
| 1121 | (priv->gpio_poc[1] != GPIO_ACTIVE_HIGH && | ||
| 1122 | priv->gpio_poc[1] != GPIO_ACTIVE_LOW)) { | ||
| 1123 | dev_err(dev, "Invalid 'gpio-poc' property\n"); | ||
| 1124 | return -EINVAL; | ||
| 1125 | } | ||
| 1126 | |||
| 1127 | return 0; | ||
| 1128 | } | ||
| 1129 | |||
| 1130 | static int max9286_poc_enable(struct max9286_priv *priv, bool enable) | ||
| 1131 | { | ||
| 1132 | int ret; | ||
| 1133 | |||
| 1134 | /* If the regulator is not available, use gpio to control power. */ | ||
| 1135 | if (!priv->regulator) | ||
| 1136 | ret = max9286_gpio_set(priv, priv->gpio_poc[0], | ||
| 1137 | enable ^ priv->gpio_poc[1]); | ||
| 1138 | else if (enable) | ||
| 1139 | ret = regulator_enable(priv->regulator); | ||
| 1140 | else | ||
| 1141 | ret = regulator_disable(priv->regulator); | ||
| 1142 | |||
| 1143 | if (ret < 0) | ||
| 1144 | dev_err(&priv->client->dev, "Unable to turn power %s\n", | ||
| 1145 | enable ? "on" : "off"); | ||
| 1146 | |||
| 1147 | return ret; | ||
| 1148 | } | ||
| 1149 | |||
| 1074 | static int max9286_init(struct device *dev) | 1150 | static int max9286_init(struct device *dev) |
| 1075 | { | 1151 | { |
| 1076 | struct max9286_priv *priv; | 1152 | struct max9286_priv *priv; |
| @@ -1080,17 +1156,14 @@ static int max9286_init(struct device *dev) · 3 unmodified lines | |||
| 1080 | client = to_i2c_client(dev); | 1156 | client = to_i2c_client(dev); |
| 1081 | priv = i2c_get_clientdata(client); | 1157 | priv = i2c_get_clientdata(client); |
| 1082 | 1158 | ||
| 1083 | /* Enable the bus power. */ | 1159 | ret = max9286_poc_enable(priv, true); |
| 1084 | ret = regulator_enable(priv->regulator); | 1160 | if (ret) |
| 1085 | if (ret < 0) { | ||
| 1086 | dev_err(&client->dev, "Unable to turn PoC on\n"); | ||
| 1087 | return ret; | 1161 | return ret; |
| 1088 | } | ||
| 1089 | 1162 | ||
| 1090 | ret = max9286_setup(priv); | 1163 | ret = max9286_setup(priv); |
| 1091 | if (ret) { | 1164 | if (ret) { |
| 1092 | dev_err(dev, "Unable to setup max9286\n"); | 1165 | dev_err(dev, "Unable to setup max9286\n"); |
| 1093 | goto err_regulator; | 1166 | goto err_poc_disable; |
| 1094 | } | 1167 | } |
| 1095 | 1168 | ||
| 1096 | /* | 1169 | /* |
| @@ -1100,7 +1173,7 @@ static int max9286_init(struct device *dev) · 3 unmodified lines | |||
| 1100 | ret = max9286_v4l2_register(priv); | 1173 | ret = max9286_v4l2_register(priv); |
| 1101 | if (ret) { | 1174 | if (ret) { |
| 1102 | dev_err(dev, "Failed to register with V4L2\n"); | 1175 | dev_err(dev, "Failed to register with V4L2\n"); |
| 1103 | goto err_regulator; | 1176 | goto err_poc_disable; |
| 1104 | } | 1177 | } |
| 1105 | 1178 | ||
| 1106 | ret = max9286_i2c_mux_init(priv); | 1179 | ret = max9286_i2c_mux_init(priv); |
| @@ -1116,8 +1189,8 @@ static int max9286_init(struct device *dev) · 9 unmodified lines | |||
| 1116 | 1189 | ||
| 1117 | err_v4l2_register: | 1190 | err_v4l2_register: |
| 1118 | max9286_v4l2_unregister(priv); | 1191 | max9286_v4l2_unregister(priv); |
| 1119 | err_regulator: | 1192 | err_poc_disable: |
| 1120 | regulator_disable(priv->regulator); | 1193 | max9286_poc_enable(priv, false); |
| 1121 | 1194 | ||
| 1122 | return ret; | 1195 | return ret; |
| 1123 | } | 1196 | } |
| @@ -1288,18 +1361,10 @@ static int max9286_probe(struct i2c_client *client) · 164 unmodified lines | |||
| 1288 | */ | 1361 | */ |
| 1289 | max9286_configure_i2c(priv, false); | 1362 | max9286_configure_i2c(priv, false); |
| 1290 | 1363 | ||
| 1291 | ret = max9286_register_gpio(priv); | 1364 | ret = max9286_parse_gpios(priv); |
| 1292 | if (ret) | 1365 | if (ret) |
| 1293 | goto err_powerdown; | 1366 | goto err_powerdown; |
| 1294 | 1367 | ||
| 1295 | priv->regulator = devm_regulator_get(&client->dev, "poc"); | ||
| 1296 | if (IS_ERR(priv->regulator)) { | ||
| 1297 | ret = PTR_ERR(priv->regulator); | ||
| 1298 | dev_err_probe(&client->dev, ret, | ||
| 1299 | "Unable to get PoC regulator\n"); | ||
| 1300 | goto err_powerdown; | ||
| 1301 | } | ||
| 1302 | |||
| 1303 | ret = max9286_parse_dt(priv); | 1368 | ret = max9286_parse_dt(priv); |
| 1304 | if (ret) | 1369 | if (ret) |
| 1305 | goto err_powerdown; | 1370 | goto err_powerdown; |
| @@ -1326,7 +1391,7 @@ static int max9286_remove(struct i2c_client *client) · 20 unmodified lines | |||
| 1326 | 1391 | ||
| 1327 | max9286_v4l2_unregister(priv); | 1392 | max9286_v4l2_unregister(priv); |
| 1328 | 1393 | ||
| 1329 | regulator_disable(priv->regulator); | 1394 | max9286_poc_enable(priv, false); |
| 1330 | 1395 | ||
| 1331 | gpiod_set_value_cansleep(priv->gpiod_pwdn, 0); | 1396 | gpiod_set_value_cansleep(priv->gpiod_pwdn, 0); |
| 1332 | 1397 | ||
| @@ -223,9 +223,10 @@ static int ml86v7667_get_mbus_config(struct v4l2_subdev *sd, · 222 unmodified lines | |||
| 223 | unsigned int pad, | 223 | unsigned int pad, |
| 224 | struct v4l2_mbus_config *cfg) | 224 | struct v4l2_mbus_config *cfg) |
| 225 | { | 225 | { |
| 226 | cfg->flags = V4L2_MBUS_MASTER | V4L2_MBUS_PCLK_SAMPLE_RISING | | ||
| 227 | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 228 | cfg->type = V4L2_MBUS_BT656; | 226 | cfg->type = V4L2_MBUS_BT656; |
| 227 | cfg->bus.parallel.flags = V4L2_MBUS_MASTER | | ||
| 228 | V4L2_MBUS_PCLK_SAMPLE_RISING | | ||
| 229 | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 229 | 230 | ||
| 230 | return 0; | 231 | return 0; |
| 231 | } | 232 | } |
| @@ -695,10 +695,12 @@ static int mt9m001_get_mbus_config(struct v4l2_subdev *sd, · 694 unmodified lines | |||
| 695 | struct v4l2_mbus_config *cfg) | 695 | struct v4l2_mbus_config *cfg) |
| 696 | { | 696 | { |
| 697 | /* MT9M001 has all capture_format parameters fixed */ | 697 | /* MT9M001 has all capture_format parameters fixed */ |
| 698 | cfg->flags = V4L2_MBUS_PCLK_SAMPLE_FALLING | | ||
| 699 | V4L2_MBUS_HSYNC_ACTIVE_HIGH | V4L2_MBUS_VSYNC_ACTIVE_HIGH | | ||
| 700 | V4L2_MBUS_DATA_ACTIVE_HIGH | V4L2_MBUS_MASTER; | ||
| 701 | cfg->type = V4L2_MBUS_PARALLEL; | 698 | cfg->type = V4L2_MBUS_PARALLEL; |
| 699 | cfg->bus.parallel.flags = V4L2_MBUS_PCLK_SAMPLE_FALLING | | ||
| 700 | V4L2_MBUS_HSYNC_ACTIVE_HIGH | | ||
| 701 | V4L2_MBUS_VSYNC_ACTIVE_HIGH | | ||
| 702 | V4L2_MBUS_DATA_ACTIVE_HIGH | | ||
| 703 | V4L2_MBUS_MASTER; | ||
| 702 | 704 | ||
| 703 | return 0; | 705 | return 0; |
| 704 | } | 706 | } |
| @@ -9,7 +9,6 @@ · 8 unmodified lines | |||
| 9 | #include <linux/slab.h> | 9 | #include <linux/slab.h> |
| 10 | #include <linux/i2c.h> | 10 | #include <linux/i2c.h> |
| 11 | #include <linux/log2.h> | 11 | #include <linux/log2.h> |
| 12 | #include <linux/gpio.h> | ||
| 13 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
| 14 | #include <linux/regulator/consumer.h> | 13 | #include <linux/regulator/consumer.h> |
| 15 | #include <linux/v4l2-mediabus.h> | 14 | #include <linux/v4l2-mediabus.h> |
| @@ -1143,14 +1142,16 @@ static int mt9m111_get_mbus_config(struct v4l2_subdev *sd, · 1127 unmodified lines | |||
| 1143 | { | 1142 | { |
| 1144 | struct mt9m111 *mt9m111 = container_of(sd, struct mt9m111, subdev); | 1143 | struct mt9m111 *mt9m111 = container_of(sd, struct mt9m111, subdev); |
| 1145 | 1144 | ||
| 1146 | cfg->flags = V4L2_MBUS_MASTER | | 1145 | cfg->type = V4L2_MBUS_PARALLEL; |
| 1147 | V4L2_MBUS_HSYNC_ACTIVE_HIGH | V4L2_MBUS_VSYNC_ACTIVE_HIGH | | ||
| 1148 | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 1149 | 1146 | ||
| 1150 | cfg->flags |= mt9m111->pclk_sample ? V4L2_MBUS_PCLK_SAMPLE_RISING : | 1147 | cfg->bus.parallel.flags = V4L2_MBUS_MASTER | |
| 1151 | V4L2_MBUS_PCLK_SAMPLE_FALLING; | 1148 | V4L2_MBUS_HSYNC_ACTIVE_HIGH | |
| 1149 | V4L2_MBUS_VSYNC_ACTIVE_HIGH | | ||
| 1150 | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 1152 | 1151 | ||
| 1153 | cfg->type = V4L2_MBUS_PARALLEL; | 1152 | cfg->bus.parallel.flags |= mt9m111->pclk_sample ? |
| 1153 | V4L2_MBUS_PCLK_SAMPLE_RISING : | ||
| 1154 | V4L2_MBUS_PCLK_SAMPLE_FALLING; | ||
| 1154 | 1155 | ||
| 1155 | return 0; | 1156 | return 0; |
| 1156 | } | 1157 | } |
| @@ -10,7 +10,7 @@ · 9 unmodified lines | |||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
| 13 | #include <linux/gpio.h> | 13 | #include <linux/gpio/consumer.h> |
| 14 | #include <linux/i2c.h> | 14 | #include <linux/i2c.h> |
| 15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
| 16 | #include <linux/regulator/consumer.h> | 16 | #include <linux/regulator/consumer.h> |
| @@ -130,8 +130,8 @@ struct noon010_info { · 113 unmodified lines | |||
| 130 | struct media_pad pad; | 130 | struct media_pad pad; |
| 131 | struct v4l2_ctrl_handler hdl; | 131 | struct v4l2_ctrl_handler hdl; |
| 132 | struct regulator_bulk_data supply[NOON010_NUM_SUPPLIES]; | 132 | struct regulator_bulk_data supply[NOON010_NUM_SUPPLIES]; |
| 133 | u32 gpio_nreset; | 133 | struct gpio_desc *reset; |
| 134 | u32 gpio_nstby; | 134 | struct gpio_desc *stby; |
| 135 | 135 | ||
| 136 | /* Protects the struct members below */ | 136 | /* Protects the struct members below */ |
| 137 | struct mutex lock; | 137 | struct mutex lock; |
| @@ -393,29 +393,33 @@ static int power_enable(struct noon010_info *info) · 255 unmodified lines | |||
| 393 | return 0; | 393 | return 0; |
| 394 | } | 394 | } |
| 395 | 395 | ||
| 396 | if (gpio_is_valid(info->gpio_nstby)) | 396 | /* Assert standby: line should be flagged active low in descriptor */ |
| 397 | gpio_set_value(info->gpio_nstby, 0); | 397 | if (info->stby) |
| 398 | gpiod_set_value(info->stby, 1); | ||
| 398 | 399 | ||
| 399 | if (gpio_is_valid(info->gpio_nreset)) | 400 | /* Assert reset: line should be flagged active low in descriptor */ |
| 400 | gpio_set_value(info->gpio_nreset, 0); | 401 | if (info->reset) |
| 402 | gpiod_set_value(info->reset, 1); | ||
| 401 | 403 | ||
| 402 | ret = regulator_bulk_enable(NOON010_NUM_SUPPLIES, info->supply); | 404 | ret = regulator_bulk_enable(NOON010_NUM_SUPPLIES, info->supply); |
| 403 | if (ret) | 405 | if (ret) |
| 404 | return ret; | 406 | return ret; |
| 405 | 407 | ||
| 406 | if (gpio_is_valid(info->gpio_nreset)) { | 408 | /* De-assert reset and standby */ |
| 409 | if (info->reset) { | ||
| 407 | msleep(50); | 410 | msleep(50); |
| 408 | gpio_set_value(info->gpio_nreset, 1); | 411 | gpiod_set_value(info->reset, 0); |
| 409 | } | 412 | } |
| 410 | if (gpio_is_valid(info->gpio_nstby)) { | 413 | if (info->stby) { |
| 411 | udelay(1000); | 414 | udelay(1000); |
| 412 | gpio_set_value(info->gpio_nstby, 1); | 415 | gpiod_set_value(info->stby, 0); |
| 413 | } | 416 | } |
| 414 | if (gpio_is_valid(info->gpio_nreset)) { | 417 | /* Cycle reset: assert and deassert */ |
| 418 | if (info->reset) { | ||
| 415 | udelay(1000); | 419 | udelay(1000); |
| 416 | gpio_set_value(info->gpio_nreset, 0); | 420 | gpiod_set_value(info->reset, 1); |
| 417 | msleep(100); | 421 | msleep(100); |
| 418 | gpio_set_value(info->gpio_nreset, 1); | 422 | gpiod_set_value(info->reset, 0); |
| 419 | msleep(20); | 423 | msleep(20); |
| 420 | } | 424 | } |
| 421 | info->power = 1; | 425 | info->power = 1; |
| @@ -438,11 +442,12 @@ static int power_disable(struct noon010_info *info) · 16 unmodified lines | |||
| 438 | if (ret) | 442 | if (ret) |
| 439 | return ret; | 443 | return ret; |
| 440 | 444 | ||
| 441 | if (gpio_is_valid(info->gpio_nstby)) | 445 | /* Assert standby and reset */ |
| 442 | gpio_set_value(info->gpio_nstby, 0); | 446 | if (info->stby) |
| 447 | gpiod_set_value(info->stby, 1); | ||
| 443 | 448 | ||
| 444 | if (gpio_is_valid(info->gpio_nreset)) | 449 | if (info->reset) |
| 445 | gpio_set_value(info->gpio_nreset, 0); | 450 | gpiod_set_value(info->reset, 1); |
| 446 | 451 | ||
| 447 | info->power = 0; | 452 | info->power = 0; |
| 448 | 453 | ||
| @@ -741,34 +746,24 @@ static int noon010_probe(struct i2c_client *client, · 292 unmodified lines | |||
| 741 | goto np_err; | 746 | goto np_err; |
| 742 | 747 | ||
| 743 | info->i2c_reg_page = -1; | 748 | info->i2c_reg_page = -1; |
| 744 | info->gpio_nreset = -EINVAL; | ||
| 745 | info->gpio_nstby = -EINVAL; | ||
| 746 | info->curr_fmt = &noon010_formats[0]; | 749 | info->curr_fmt = &noon010_formats[0]; |
| 747 | info->curr_win = &noon010_sizes[0]; | 750 | info->curr_win = &noon010_sizes[0]; |
| 748 | 751 | ||
| 749 | if (gpio_is_valid(pdata->gpio_nreset)) { | 752 | /* Request reset asserted so we get put into reset */ |
| 750 | ret = devm_gpio_request_one(&client->dev, pdata->gpio_nreset, | 753 | info->reset = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_HIGH); |
| 751 | GPIOF_OUT_INIT_LOW, | 754 | if (IS_ERR(info->reset)) { |
| 752 | "NOON010PC30 NRST"); | 755 | ret = PTR_ERR(info->reset); |
| 753 | if (ret) { | 756 | goto np_err; |
| 754 | dev_err(&client->dev, "GPIO request error: %d\n", ret); | ||
| 755 | goto np_err; | ||
| 756 | } | ||
| 757 | info->gpio_nreset = pdata->gpio_nreset; | ||
| 758 | gpio_export(info->gpio_nreset, 0); | ||
| 759 | } | 757 | } |
| 758 | gpiod_set_consumer_name(info->reset, "NOON010PC30 NRST"); | ||
| 760 | 759 | ||
| 761 | if (gpio_is_valid(pdata->gpio_nstby)) { | 760 | /* Request standby asserted so we get put into standby */ |
| 762 | ret = devm_gpio_request_one(&client->dev, pdata->gpio_nstby, | 761 | info->stby = devm_gpiod_get(&client->dev, "standby", GPIOD_OUT_HIGH); |
| 763 | GPIOF_OUT_INIT_LOW, | 762 | if (IS_ERR(info->stby)) { |
| 764 | "NOON010PC30 NSTBY"); | 763 | ret = PTR_ERR(info->stby); |
| 765 | if (ret) { | 764 | goto np_err; |
| 766 | dev_err(&client->dev, "GPIO request error: %d\n", ret); | ||
| 767 | goto np_err; | ||
| 768 | } | ||
| 769 | info->gpio_nstby = pdata->gpio_nstby; | ||
| 770 | gpio_export(info->gpio_nstby, 0); | ||
| 771 | } | 765 | } |
| 766 | gpiod_set_consumer_name(info->reset, "NOON010PC30 STBY"); | ||
| 772 | 767 | ||
| 773 | for (i = 0; i < NOON010_NUM_SUPPLIES; i++) | 768 | for (i = 0; i < NOON010_NUM_SUPPLIES; i++) |
| 774 | info->supply[i].supply = noon010_supply_name[i]; | 769 | info->supply[i].supply = noon010_supply_name[i]; |
| @@ -0,0 +1,1128 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 2 | // Copyright (c) 2022 Intel Corporation. | ||
| 3 | |||
| 4 | #include <asm/unaligned.h> | ||
| 5 | #include <linux/acpi.h> | ||
| 6 | #include <linux/delay.h> | ||
| 7 | #include <linux/i2c.h> | ||
| 8 | #include <linux/module.h> | ||
| 9 | #include <linux/pm_runtime.h> | ||
| 10 | #include <media/v4l2-ctrls.h> | ||
| 11 | #include <media/v4l2-device.h> | ||
| 12 | #include <media/v4l2-fwnode.h> | ||
| 13 | |||
| 14 | #define OG01A1B_REG_VALUE_08BIT 1 | ||
| 15 | #define OG01A1B_REG_VALUE_16BIT 2 | ||
| 16 | #define OG01A1B_REG_VALUE_24BIT 3 | ||
| 17 | |||
| 18 | #define OG01A1B_LINK_FREQ_500MHZ 500000000ULL | ||
| 19 | #define OG01A1B_SCLK 120000000LL | ||
| 20 | #define OG01A1B_MCLK 19200000 | ||
| 21 | #define OG01A1B_DATA_LANES 2 | ||
| 22 | #define OG01A1B_RGB_DEPTH 10 | ||
| 23 | |||
| 24 | #define OG01A1B_REG_CHIP_ID 0x300a | ||
| 25 | #define OG01A1B_CHIP_ID 0x470141 | ||
| 26 | |||
| 27 | #define OG01A1B_REG_MODE_SELECT 0x0100 | ||
| 28 | #define OG01A1B_MODE_STANDBY 0x00 | ||
| 29 | #define OG01A1B_MODE_STREAMING 0x01 | ||
| 30 | |||
| 31 | /* vertical-timings from sensor */ | ||
| 32 | #define OG01A1B_REG_VTS 0x380e | ||
| 33 | #define OG01A1B_VTS_120FPS 0x0498 | ||
| 34 | #define OG01A1B_VTS_120FPS_MIN 0x0498 | ||
| 35 | #define OG01A1B_VTS_MAX 0x7fff | ||
| 36 | |||
| 37 | /* horizontal-timings from sensor */ | ||
| 38 | #define OG01A1B_REG_HTS 0x380c | ||
| 39 | |||
| 40 | /* Exposure controls from sensor */ | ||
| 41 | #define OG01A1B_REG_EXPOSURE 0x3501 | ||
| 42 | #define OG01A1B_EXPOSURE_MIN 1 | ||
| 43 | #define OG01A1B_EXPOSURE_MAX_MARGIN 14 | ||
| 44 | #define OG01A1B_EXPOSURE_STEP 1 | ||
| 45 | |||
| 46 | /* Analog gain controls from sensor */ | ||
| 47 | #define OG01A1B_REG_ANALOG_GAIN 0x3508 | ||
| 48 | #define OG01A1B_ANAL_GAIN_MIN 16 | ||
| 49 | #define OG01A1B_ANAL_GAIN_MAX 248 /* Max = 15.5x */ | ||
| 50 | #define OG01A1B_ANAL_GAIN_STEP 1 | ||
| 51 | |||
| 52 | /* Digital gain controls from sensor */ | ||
| 53 | #define OG01A1B_REG_DIG_GAIN 0x350a | ||
| 54 | #define OG01A1B_DGTL_GAIN_MIN 1024 | ||
| 55 | #define OG01A1B_DGTL_GAIN_MAX 16384 /* Max = 16x */ | ||
| 56 | #define OG01A1B_DGTL_GAIN_STEP 1 | ||
| 57 | #define OG01A1B_DGTL_GAIN_DEFAULT 1024 | ||
| 58 | |||
| 59 | /* Group Access */ | ||
| 60 | #define OG01A1B_REG_GROUP_ACCESS 0x3208 | ||
| 61 | #define OG01A1B_GROUP_HOLD_START 0x0 | ||
| 62 | #define OG01A1B_GROUP_HOLD_END 0x10 | ||
| 63 | #define OG01A1B_GROUP_HOLD_LAUNCH 0xa0 | ||
| 64 | |||
| 65 | /* Test Pattern Control */ | ||
| 66 | #define OG01A1B_REG_TEST_PATTERN 0x5100 | ||
| 67 | #define OG01A1B_TEST_PATTERN_ENABLE BIT(7) | ||
| 68 | #define OG01A1B_TEST_PATTERN_BAR_SHIFT 2 | ||
| 69 | |||
| 70 | #define to_og01a1b(_sd) container_of(_sd, struct og01a1b, sd) | ||
| 71 | |||
| 72 | enum { | ||
| 73 | OG01A1B_LINK_FREQ_1000MBPS, | ||
| 74 | }; | ||
| 75 | |||
| 76 | struct og01a1b_reg { | ||
| 77 | u16 address; | ||
| 78 | u8 val; | ||
| 79 | }; | ||
| 80 | |||
| 81 | struct og01a1b_reg_list { | ||
| 82 | u32 num_of_regs; | ||
| 83 | const struct og01a1b_reg *regs; | ||
| 84 | }; | ||
| 85 | |||
| 86 | struct og01a1b_link_freq_config { | ||
| 87 | const struct og01a1b_reg_list reg_list; | ||
| 88 | }; | ||
| 89 | |||
| 90 | struct og01a1b_mode { | ||
| 91 | /* Frame width in pixels */ | ||
| 92 | u32 width; | ||
| 93 | |||
| 94 | /* Frame height in pixels */ | ||
| 95 | u32 height; | ||
| 96 | |||
| 97 | /* Horizontal timining size */ | ||
| 98 | u32 hts; | ||
| 99 | |||
| 100 | /* Default vertical timining size */ | ||
| 101 | u32 vts_def; | ||
| 102 | |||
| 103 | /* Min vertical timining size */ | ||
| 104 | u32 vts_min; | ||
| 105 | |||
| 106 | /* Link frequency needed for this resolution */ | ||
| 107 | u32 link_freq_index; | ||
| 108 | |||
| 109 | /* Sensor register settings for this resolution */ | ||
| 110 | const struct og01a1b_reg_list reg_list; | ||
| 111 | }; | ||
| 112 | |||
| 113 | static const struct og01a1b_reg mipi_data_rate_1000mbps[] = { | ||
| 114 | {0x0103, 0x01}, | ||
| 115 | {0x0303, 0x02}, | ||
| 116 | {0x0304, 0x00}, | ||
| 117 | {0x0305, 0xd2}, | ||
| 118 | {0x0323, 0x02}, | ||
| 119 | {0x0324, 0x01}, | ||
| 120 | {0x0325, 0x77}, | ||
| 121 | }; | ||
| 122 | |||
| 123 | static const struct og01a1b_reg mode_1280x1024_regs[] = { | ||
| 124 | {0x0300, 0x0a}, | ||
| 125 | {0x0301, 0x29}, | ||
| 126 | {0x0302, 0x31}, | ||
| 127 | {0x0303, 0x02}, | ||
| 128 | {0x0304, 0x00}, | ||
| 129 | {0x0305, 0xd2}, | ||
| 130 | {0x0306, 0x00}, | ||
| 131 | {0x0307, 0x01}, | ||
| 132 | {0x0308, 0x02}, | ||
| 133 | {0x0309, 0x00}, | ||
| 134 | {0x0310, 0x00}, | ||
| 135 | {0x0311, 0x00}, | ||
| 136 | {0x0312, 0x07}, | ||
| 137 | {0x0313, 0x00}, | ||
| 138 | {0x0314, 0x00}, | ||
| 139 | {0x0315, 0x00}, | ||
| 140 | {0x0320, 0x02}, | ||
| 141 | {0x0321, 0x01}, | ||
| 142 | {0x0322, 0x01}, | ||
| 143 | {0x0323, 0x02}, | ||
| 144 | {0x0324, 0x01}, | ||
| 145 | {0x0325, 0x77}, | ||
| 146 | {0x0326, 0xce}, | ||
| 147 | {0x0327, 0x04}, | ||
| 148 | {0x0329, 0x02}, | ||
| 149 | {0x032a, 0x04}, | ||
| 150 | {0x032b, 0x04}, | ||
| 151 | {0x032c, 0x02}, | ||
| 152 | {0x032d, 0x01}, | ||
| 153 | {0x032e, 0x00}, | ||
| 154 | {0x300d, 0x02}, | ||
| 155 | {0x300e, 0x04}, | ||
| 156 | {0x3021, 0x08}, | ||
| 157 | {0x301e, 0x03}, | ||
| 158 | {0x3103, 0x00}, | ||
| 159 | {0x3106, 0x08}, | ||
| 160 | {0x3107, 0x40}, | ||
| 161 | {0x3216, 0x01}, | ||
| 162 | {0x3217, 0x00}, | ||
| 163 | {0x3218, 0xc0}, | ||
| 164 | {0x3219, 0x55}, | ||
| 165 | {0x3500, 0x00}, | ||
| 166 | {0x3501, 0x04}, | ||
| 167 | {0x3502, 0x8a}, | ||
| 168 | {0x3506, 0x01}, | ||
| 169 | {0x3507, 0x72}, | ||
| 170 | {0x3508, 0x01}, | ||
| 171 | {0x3509, 0x00}, | ||
| 172 | {0x350a, 0x01}, | ||
| 173 | {0x350b, 0x00}, | ||
| 174 | {0x350c, 0x00}, | ||
| 175 | {0x3541, 0x00}, | ||
| 176 | {0x3542, 0x40}, | ||
| 177 | {0x3605, 0xe0}, | ||
| 178 | {0x3606, 0x41}, | ||
| 179 | {0x3614, 0x20}, | ||
| 180 | {0x3620, 0x0b}, | ||
| 181 | {0x3630, 0x07}, | ||
| 182 | {0x3636, 0xa0}, | ||
| 183 | {0x3637, 0xf9}, | ||
| 184 | {0x3638, 0x09}, | ||
| 185 | {0x3639, 0x38}, | ||
| 186 | {0x363f, 0x09}, | ||
| 187 | {0x3640, 0x17}, | ||
| 188 | {0x3662, 0x04}, | ||
| 189 | {0x3665, 0x80}, | ||
| 190 | {0x3670, 0x68}, | ||
| 191 | {0x3674, 0x00}, | ||
| 192 | {0x3677, 0x3f}, | ||
| 193 | {0x3679, 0x00}, | ||
| 194 | {0x369f, 0x19}, | ||
| 195 | {0x36a0, 0x03}, | ||
| 196 | {0x36a2, 0x19}, | ||
| 197 | {0x36a3, 0x03}, | ||
| 198 | {0x370d, 0x66}, | ||
| 199 | {0x370f, 0x00}, | ||
| 200 | {0x3710, 0x03}, | ||
| 201 | {0x3715, 0x03}, | ||
| 202 | {0x3716, 0x03}, | ||
| 203 | {0x3717, 0x06}, | ||
| 204 | {0x3733, 0x00}, | ||
| 205 | {0x3778, 0x00}, | ||
| 206 | {0x37a8, 0x0f}, | ||
| 207 | {0x37a9, 0x01}, | ||
| 208 | {0x37aa, 0x07}, | ||
| 209 | {0x37bd, 0x1c}, | ||
| 210 | {0x37c1, 0x2f}, | ||
| 211 | {0x37c3, 0x09}, | ||
| 212 | {0x37c8, 0x1d}, | ||
| 213 | {0x37ca, 0x30}, | ||
| 214 | {0x37df, 0x00}, | ||
| 215 | {0x3800, 0x00}, | ||
| 216 | {0x3801, 0x00}, | ||
| 217 | {0x3802, 0x00}, | ||
| 218 | {0x3803, 0x00}, | ||
| 219 | {0x3804, 0x05}, | ||
| 220 | {0x3805, 0x0f}, | ||
| 221 | {0x3806, 0x04}, | ||
| 222 | {0x3807, 0x0f}, | ||
| 223 | {0x3808, 0x05}, | ||
| 224 | {0x3809, 0x00}, | ||
| 225 | {0x380a, 0x04}, | ||
| 226 | {0x380b, 0x00}, | ||
| 227 | {0x380c, 0x03}, | ||
| 228 | {0x380d, 0x50}, | ||
| 229 | {0x380e, 0x04}, | ||
| 230 | {0x380f, 0x98}, | ||
| 231 | {0x3810, 0x00}, | ||
| 232 | {0x3811, 0x08}, | ||
| 233 | {0x3812, 0x00}, | ||
| 234 | {0x3813, 0x08}, | ||
| 235 | {0x3814, 0x11}, | ||
| 236 | {0x3815, 0x11}, | ||
| 237 | {0x3820, 0x40}, | ||
| 238 | {0x3821, 0x04}, | ||
| 239 | {0x3826, 0x00}, | ||
| 240 | {0x3827, 0x00}, | ||
| 241 | {0x382a, 0x08}, | ||
| 242 | {0x382b, 0x52}, | ||
| 243 | {0x382d, 0xba}, | ||
| 244 | {0x383d, 0x14}, | ||
| 245 | {0x384a, 0xa2}, | ||
| 246 | {0x3866, 0x0e}, | ||
| 247 | {0x3867, 0x07}, | ||
| 248 | {0x3884, 0x00}, | ||
| 249 | {0x3885, 0x08}, | ||
| 250 | {0x3893, 0x68}, | ||
| 251 | {0x3894, 0x2a}, | ||
| 252 | {0x3898, 0x00}, | ||
| 253 | {0x3899, 0x31}, | ||
| 254 | {0x389a, 0x04}, | ||
| 255 | {0x389b, 0x00}, | ||
| 256 | {0x389c, 0x0b}, | ||
| 257 | {0x389d, 0xad}, | ||
| 258 | {0x389f, 0x08}, | ||
| 259 | {0x38a0, 0x00}, | ||
| 260 | {0x38a1, 0x00}, | ||
| 261 | {0x38a8, 0x70}, | ||
| 262 | {0x38ac, 0xea}, | ||
| 263 | {0x38b2, 0x00}, | ||
| 264 | {0x38b3, 0x08}, | ||
| 265 | {0x38bc, 0x20}, | ||
| 266 | {0x38c4, 0x0c}, | ||
| 267 | {0x38c5, 0x3a}, | ||
| 268 | {0x38c7, 0x3a}, | ||
| 269 | {0x38e1, 0xc0}, | ||
| 270 | {0x38ec, 0x3c}, | ||
| 271 | {0x38f0, 0x09}, | ||
| 272 | {0x38f1, 0x6f}, | ||
| 273 | {0x38fe, 0x3c}, | ||
| 274 | {0x391e, 0x00}, | ||
| 275 | {0x391f, 0x00}, | ||
| 276 | {0x3920, 0xa5}, | ||
| 277 | {0x3921, 0x00}, | ||
| 278 | {0x3922, 0x00}, | ||
| 279 | {0x3923, 0x00}, | ||
| 280 | {0x3924, 0x05}, | ||
| 281 | {0x3925, 0x00}, | ||
| 282 | {0x3926, 0x00}, | ||
| 283 | {0x3927, 0x00}, | ||
| 284 | {0x3928, 0x1a}, | ||
| 285 | {0x3929, 0x01}, | ||
| 286 | {0x392a, 0xb4}, | ||
| 287 | {0x392b, 0x00}, | ||
| 288 | {0x392c, 0x10}, | ||
| 289 | {0x392f, 0x40}, | ||
| 290 | {0x4000, 0xcf}, | ||
| 291 | {0x4003, 0x40}, | ||
| 292 | {0x4008, 0x00}, | ||
| 293 | {0x4009, 0x07}, | ||
| 294 | {0x400a, 0x02}, | ||
| 295 | {0x400b, 0x54}, | ||
| 296 | {0x400c, 0x00}, | ||
| 297 | {0x400d, 0x07}, | ||
| 298 | {0x4010, 0xc0}, | ||
| 299 | {0x4012, 0x02}, | ||
| 300 | {0x4014, 0x04}, | ||
| 301 | {0x4015, 0x04}, | ||
| 302 | {0x4017, 0x02}, | ||
| 303 | {0x4042, 0x01}, | ||
| 304 | {0x4306, 0x04}, | ||
| 305 | {0x4307, 0x12}, | ||
| 306 | {0x4509, 0x00}, | ||
| 307 | {0x450b, 0x83}, | ||
| 308 | {0x4604, 0x68}, | ||
| 309 | {0x4608, 0x0a}, | ||
| 310 | {0x4700, 0x06}, | ||
| 311 | {0x4800, 0x64}, | ||
| 312 | {0x481b, 0x3c}, | ||
| 313 | {0x4825, 0x32}, | ||
| 314 | {0x4833, 0x18}, | ||
| 315 | {0x4837, 0x0f}, | ||
| 316 | {0x4850, 0x40}, | ||
| 317 | {0x4860, 0x00}, | ||
| 318 | {0x4861, 0xec}, | ||
| 319 | {0x4864, 0x00}, | ||
| 320 | {0x4883, 0x00}, | ||
| 321 | {0x4888, 0x90}, | ||
| 322 | {0x4889, 0x05}, | ||
| 323 | {0x488b, 0x04}, | ||
| 324 | {0x4f00, 0x04}, | ||
| 325 | {0x4f10, 0x04}, | ||
| 326 | {0x4f21, 0x01}, | ||
| 327 | {0x4f22, 0x40}, | ||
| 328 | {0x4f23, 0x44}, | ||
| 329 | {0x4f24, 0x51}, | ||
| 330 | {0x4f25, 0x41}, | ||
| 331 | {0x5000, 0x1f}, | ||
| 332 | {0x500a, 0x00}, | ||
| 333 | {0x5100, 0x00}, | ||
| 334 | {0x5111, 0x20}, | ||
| 335 | {0x3020, 0x20}, | ||
| 336 | {0x3613, 0x03}, | ||
| 337 | {0x38c9, 0x02}, | ||
| 338 | {0x5304, 0x01}, | ||
| 339 | {0x3620, 0x08}, | ||
| 340 | {0x3639, 0x58}, | ||
| 341 | {0x363a, 0x10}, | ||
| 342 | {0x3674, 0x04}, | ||
| 343 | {0x3780, 0xff}, | ||
| 344 | {0x3781, 0xff}, | ||
| 345 | {0x3782, 0x00}, | ||
| 346 | {0x3783, 0x01}, | ||
| 347 | {0x3798, 0xa3}, | ||
| 348 | {0x37aa, 0x10}, | ||
| 349 | {0x38a8, 0xf0}, | ||
| 350 | {0x38c4, 0x09}, | ||
| 351 | {0x38c5, 0xb0}, | ||
| 352 | {0x38df, 0x80}, | ||
| 353 | {0x38ff, 0x05}, | ||
| 354 | {0x4010, 0xf1}, | ||
| 355 | {0x4011, 0x70}, | ||
| 356 | {0x3667, 0x80}, | ||
| 357 | {0x4d00, 0x4a}, | ||
| 358 | {0x4d01, 0x18}, | ||
| 359 | {0x4d02, 0xbb}, | ||
| 360 | {0x4d03, 0xde}, | ||
| 361 | {0x4d04, 0x93}, | ||
| 362 | {0x4d05, 0xff}, | ||
| 363 | {0x4d09, 0x0a}, | ||
| 364 | {0x37aa, 0x16}, | ||
| 365 | {0x3606, 0x42}, | ||
| 366 | {0x3605, 0x00}, | ||
| 367 | {0x36a2, 0x17}, | ||
| 368 | {0x300d, 0x0a}, | ||
| 369 | {0x4d00, 0x4d}, | ||
| 370 | {0x4d01, 0x95}, | ||
| 371 | {0x3d8C, 0x70}, | ||
| 372 | {0x3d8d, 0xE9}, | ||
| 373 | {0x5300, 0x00}, | ||
| 374 | {0x5301, 0x10}, | ||
| 375 | {0x5302, 0x00}, | ||
| 376 | {0x5303, 0xE3}, | ||
| 377 | {0x3d88, 0x00}, | ||
| 378 | {0x3d89, 0x10}, | ||
| 379 | {0x3d8a, 0x00}, | ||
| 380 | {0x3d8b, 0xE3}, | ||
| 381 | {0x4f22, 0x00}, | ||
| 382 | }; | ||
| 383 | |||
| 384 | static const char * const og01a1b_test_pattern_menu[] = { | ||
| 385 | "Disabled", | ||
| 386 | "Standard Color Bar", | ||
| 387 | "Top-Bottom Darker Color Bar", | ||
| 388 | "Right-Left Darker Color Bar", | ||
| 389 | "Bottom-Top Darker Color Bar" | ||
| 390 | }; | ||
| 391 | |||
| 392 | static const s64 link_freq_menu_items[] = { | ||
| 393 | OG01A1B_LINK_FREQ_500MHZ, | ||
| 394 | }; | ||
| 395 | |||
| 396 | static const struct og01a1b_link_freq_config link_freq_configs[] = { | ||
| 397 | [OG01A1B_LINK_FREQ_1000MBPS] = { | ||
| 398 | .reg_list = { | ||
| 399 | .num_of_regs = ARRAY_SIZE(mipi_data_rate_1000mbps), | ||
| 400 | .regs = mipi_data_rate_1000mbps, | ||
| 401 | } | ||
| 402 | } | ||
| 403 | }; | ||
| 404 | |||
| 405 | static const struct og01a1b_mode supported_modes[] = { | ||
| 406 | { | ||
| 407 | .width = 1280, | ||
| 408 | .height = 1024, | ||
| 409 | .hts = 848, | ||
| 410 | .vts_def = OG01A1B_VTS_120FPS, | ||
| 411 | .vts_min = OG01A1B_VTS_120FPS_MIN, | ||
| 412 | .reg_list = { | ||
| 413 | .num_of_regs = ARRAY_SIZE(mode_1280x1024_regs), | ||
| 414 | .regs = mode_1280x1024_regs, | ||
| 415 | }, | ||
| 416 | .link_freq_index = OG01A1B_LINK_FREQ_1000MBPS, | ||
| 417 | }, | ||
| 418 | }; | ||
| 419 | |||
| 420 | struct og01a1b { | ||
| 421 | struct v4l2_subdev sd; | ||
| 422 | struct media_pad pad; | ||
| 423 | struct v4l2_ctrl_handler ctrl_handler; | ||
| 424 | |||
| 425 | /* V4L2 Controls */ | ||
| 426 | struct v4l2_ctrl *link_freq; | ||
| 427 | struct v4l2_ctrl *pixel_rate; | ||
| 428 | struct v4l2_ctrl *vblank; | ||
| 429 | struct v4l2_ctrl *hblank; | ||
| 430 | struct v4l2_ctrl *exposure; | ||
| 431 | |||
| 432 | /* Current mode */ | ||
| 433 | const struct og01a1b_mode *cur_mode; | ||
| 434 | |||
| 435 | /* To serialize asynchronus callbacks */ | ||
| 436 | struct mutex mutex; | ||
| 437 | |||
| 438 | /* Streaming on/off */ | ||
| 439 | bool streaming; | ||
| 440 | }; | ||
| 441 | |||
| 442 | static u64 to_pixel_rate(u32 f_index) | ||
| 443 | { | ||
| 444 | u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OG01A1B_DATA_LANES; | ||
| 445 | |||
| 446 | do_div(pixel_rate, OG01A1B_RGB_DEPTH); | ||
| 447 | |||
| 448 | return pixel_rate; | ||
| 449 | } | ||
| 450 | |||
| 451 | static u64 to_pixels_per_line(u32 hts, u32 f_index) | ||
| 452 | { | ||
| 453 | u64 ppl = hts * to_pixel_rate(f_index); | ||
| 454 | |||
| 455 | do_div(ppl, OG01A1B_SCLK); | ||
| 456 | |||
| 457 | return ppl; | ||
| 458 | } | ||
| 459 | |||
| 460 | static int og01a1b_read_reg(struct og01a1b *og01a1b, u16 reg, u16 len, u32 *val) | ||
| 461 | { | ||
| 462 | struct i2c_client *client = v4l2_get_subdevdata(&og01a1b->sd); | ||
| 463 | struct i2c_msg msgs[2]; | ||
| 464 | u8 addr_buf[2]; | ||
| 465 | u8 data_buf[4] = {0}; | ||
| 466 | int ret; | ||
| 467 | |||
| 468 | if (len > 4) | ||
| 469 | return -EINVAL; | ||
| 470 | |||
| 471 | put_unaligned_be16(reg, addr_buf); | ||
| 472 | msgs[0].addr = client->addr; | ||
| 473 | msgs[0].flags = 0; | ||
| 474 | msgs[0].len = sizeof(addr_buf); | ||
| 475 | msgs[0].buf = addr_buf; | ||
| 476 | msgs[1].addr = client->addr; | ||
| 477 | msgs[1].flags = I2C_M_RD; | ||
| 478 | msgs[1].len = len; | ||
| 479 | msgs[1].buf = &data_buf[4 - len]; | ||
| 480 | |||
| 481 | ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); | ||
| 482 | if (ret != ARRAY_SIZE(msgs)) | ||
| 483 | return -EIO; | ||
| 484 | |||
| 485 | *val = get_unaligned_be32(data_buf); | ||
| 486 | |||
| 487 | return 0; | ||
| 488 | } | ||
| 489 | |||
| 490 | static int og01a1b_write_reg(struct og01a1b *og01a1b, u16 reg, u16 len, u32 val) | ||
| 491 | { | ||
| 492 | struct i2c_client *client = v4l2_get_subdevdata(&og01a1b->sd); | ||
| 493 | u8 buf[6]; | ||
| 494 | |||
| 495 | if (len > 4) | ||
| 496 | return -EINVAL; | ||
| 497 | |||
| 498 | put_unaligned_be16(reg, buf); | ||
| 499 | put_unaligned_be32(val << 8 * (4 - len), buf + 2); | ||
| 500 | if (i2c_master_send(client, buf, len + 2) != len + 2) | ||
| 501 | return -EIO; | ||
| 502 | |||
| 503 | return 0; | ||
| 504 | } | ||
| 505 | |||
| 506 | static int og01a1b_write_reg_list(struct og01a1b *og01a1b, | ||
| 507 | const struct og01a1b_reg_list *r_list) | ||
| 508 | { | ||
| 509 | struct i2c_client *client = v4l2_get_subdevdata(&og01a1b->sd); | ||
| 510 | unsigned int i; | ||
| 511 | int ret; | ||
| 512 | |||
| 513 | for (i = 0; i < r_list->num_of_regs; i++) { | ||
| 514 | ret = og01a1b_write_reg(og01a1b, r_list->regs[i].address, 1, | ||
| 515 | r_list->regs[i].val); | ||
| 516 | if (ret) { | ||
| 517 | dev_err_ratelimited(&client->dev, | ||
| 518 | "failed to write reg 0x%4.4x. error = %d", | ||
| 519 | r_list->regs[i].address, ret); | ||
| 520 | return ret; | ||
| 521 | } | ||
| 522 | } | ||
| 523 | |||
| 524 | return 0; | ||
| 525 | } | ||
| 526 | |||
| 527 | static int og01a1b_test_pattern(struct og01a1b *og01a1b, u32 pattern) | ||
| 528 | { | ||
| 529 | if (pattern) | ||
| 530 | pattern = (pattern - 1) << OG01A1B_TEST_PATTERN_BAR_SHIFT | | ||
| 531 | OG01A1B_TEST_PATTERN_ENABLE; | ||
| 532 | |||
| 533 | return og01a1b_write_reg(og01a1b, OG01A1B_REG_TEST_PATTERN, | ||
| 534 | OG01A1B_REG_VALUE_08BIT, pattern); | ||
| 535 | } | ||
| 536 | |||
| 537 | static int og01a1b_set_ctrl(struct v4l2_ctrl *ctrl) | ||
| 538 | { | ||
| 539 | struct og01a1b *og01a1b = container_of(ctrl->handler, | ||
| 540 | struct og01a1b, ctrl_handler); | ||
| 541 | struct i2c_client *client = v4l2_get_subdevdata(&og01a1b->sd); | ||
| 542 | s64 exposure_max; | ||
| 543 | int ret = 0; | ||
| 544 | |||
| 545 | /* Propagate change of current control to all related controls */ | ||
| 546 | if (ctrl->id == V4L2_CID_VBLANK) { | ||
| 547 | /* Update max exposure while meeting expected vblanking */ | ||
| 548 | exposure_max = og01a1b->cur_mode->height + ctrl->val - | ||
| 549 | OG01A1B_EXPOSURE_MAX_MARGIN; | ||
| 550 | __v4l2_ctrl_modify_range(og01a1b->exposure, | ||
| 551 | og01a1b->exposure->minimum, | ||
| 552 | exposure_max, og01a1b->exposure->step, | ||
| 553 | exposure_max); | ||
| 554 | } | ||
| 555 | |||
| 556 | /* V4L2 controls values will be applied only when power is already up */ | ||
| 557 | if (!pm_runtime_get_if_in_use(&client->dev)) | ||
| 558 | return 0; | ||
| 559 | |||
| 560 | switch (ctrl->id) { | ||
| 561 | case V4L2_CID_ANALOGUE_GAIN: | ||
| 562 | ret = og01a1b_write_reg(og01a1b, OG01A1B_REG_ANALOG_GAIN, | ||
| 563 | OG01A1B_REG_VALUE_16BIT, | ||
| 564 | ctrl->val << 4); | ||
| 565 | break; | ||
| 566 | |||
| 567 | case V4L2_CID_DIGITAL_GAIN: | ||
| 568 | ret = og01a1b_write_reg(og01a1b, OG01A1B_REG_DIG_GAIN, | ||
| 569 | OG01A1B_REG_VALUE_24BIT, | ||
| 570 | ctrl->val << 6); | ||
| 571 | break; | ||
| 572 | |||
| 573 | case V4L2_CID_EXPOSURE: | ||
| 574 | ret = og01a1b_write_reg(og01a1b, OG01A1B_REG_EXPOSURE, | ||
| 575 | OG01A1B_REG_VALUE_16BIT, ctrl->val); | ||
| 576 | break; | ||
| 577 | |||
| 578 | case V4L2_CID_VBLANK: | ||
| 579 | ret = og01a1b_write_reg(og01a1b, OG01A1B_REG_VTS, | ||
| 580 | OG01A1B_REG_VALUE_16BIT, | ||
| 581 | og01a1b->cur_mode->height + ctrl->val); | ||
| 582 | break; | ||
| 583 | |||
| 584 | case V4L2_CID_TEST_PATTERN: | ||
| 585 | ret = og01a1b_test_pattern(og01a1b, ctrl->val); | ||
| 586 | break; | ||
| 587 | |||
| 588 | default: | ||
| 589 | ret = -EINVAL; | ||
| 590 | break; | ||
| 591 | } | ||
| 592 | |||
| 593 | pm_runtime_put(&client->dev); | ||
| 594 | |||
| 595 | return ret; | ||
| 596 | } | ||
| 597 | |||
| 598 | static const struct v4l2_ctrl_ops og01a1b_ctrl_ops = { | ||
| 599 | .s_ctrl = og01a1b_set_ctrl, | ||
| 600 | }; | ||
| 601 | |||
| 602 | static int og01a1b_init_controls(struct og01a1b *og01a1b) | ||
| 603 | { | ||
| 604 | struct v4l2_ctrl_handler *ctrl_hdlr; | ||
| 605 | s64 exposure_max, h_blank; | ||
| 606 | int ret; | ||
| 607 | |||
| 608 | ctrl_hdlr = &og01a1b->ctrl_handler; | ||
| 609 | ret = v4l2_ctrl_handler_init(ctrl_hdlr, 8); | ||
| 610 | if (ret) | ||
| 611 | return ret; | ||
| 612 | |||
| 613 | ctrl_hdlr->lock = &og01a1b->mutex; | ||
| 614 | og01a1b->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, | ||
| 615 | &og01a1b_ctrl_ops, | ||
| 616 | V4L2_CID_LINK_FREQ, | ||
| 617 | ARRAY_SIZE | ||
| 618 | (link_freq_menu_items) - 1, | ||
| 619 | 0, link_freq_menu_items); | ||
| 620 | if (og01a1b->link_freq) | ||
| 621 | og01a1b->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; | ||
| 622 | |||
| 623 | og01a1b->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, | ||
| 624 | V4L2_CID_PIXEL_RATE, 0, | ||
| 625 | to_pixel_rate | ||
| 626 | (OG01A1B_LINK_FREQ_1000MBPS), | ||
| 627 | 1, | ||
| 628 | to_pixel_rate | ||
| 629 | (OG01A1B_LINK_FREQ_1000MBPS)); | ||
| 630 | og01a1b->vblank = v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, | ||
| 631 | V4L2_CID_VBLANK, | ||
| 632 | og01a1b->cur_mode->vts_min - | ||
| 633 | og01a1b->cur_mode->height, | ||
| 634 | OG01A1B_VTS_MAX - | ||
| 635 | og01a1b->cur_mode->height, 1, | ||
| 636 | og01a1b->cur_mode->vts_def - | ||
| 637 | og01a1b->cur_mode->height); | ||
| 638 | h_blank = to_pixels_per_line(og01a1b->cur_mode->hts, | ||
| 639 | og01a1b->cur_mode->link_freq_index) - | ||
| 640 | og01a1b->cur_mode->width; | ||
| 641 | og01a1b->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, | ||
| 642 | V4L2_CID_HBLANK, h_blank, h_blank, | ||
| 643 | 1, h_blank); | ||
| 644 | if (og01a1b->hblank) | ||
| 645 | og01a1b->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; | ||
| 646 | |||
| 647 | v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, V4L2_CID_ANALOGUE_GAIN, | ||
| 648 | OG01A1B_ANAL_GAIN_MIN, OG01A1B_ANAL_GAIN_MAX, | ||
| 649 | OG01A1B_ANAL_GAIN_STEP, OG01A1B_ANAL_GAIN_MIN); | ||
| 650 | v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, V4L2_CID_DIGITAL_GAIN, | ||
| 651 | OG01A1B_DGTL_GAIN_MIN, OG01A1B_DGTL_GAIN_MAX, | ||
| 652 | OG01A1B_DGTL_GAIN_STEP, OG01A1B_DGTL_GAIN_DEFAULT); | ||
| 653 | exposure_max = (og01a1b->cur_mode->vts_def - | ||
| 654 | OG01A1B_EXPOSURE_MAX_MARGIN); | ||
| 655 | og01a1b->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, | ||
| 656 | V4L2_CID_EXPOSURE, | ||
| 657 | OG01A1B_EXPOSURE_MIN, | ||
| 658 | exposure_max, | ||
| 659 | OG01A1B_EXPOSURE_STEP, | ||
| 660 | exposure_max); | ||
| 661 | v4l2_ctrl_new_std_menu_items(ctrl_hdlr, &og01a1b_ctrl_ops, | ||
| 662 | V4L2_CID_TEST_PATTERN, | ||
| 663 | ARRAY_SIZE(og01a1b_test_pattern_menu) - 1, | ||
| 664 | 0, 0, og01a1b_test_pattern_menu); | ||
| 665 | |||
| 666 | if (ctrl_hdlr->error) | ||
| 667 | return ctrl_hdlr->error; | ||
| 668 | |||
| 669 | og01a1b->sd.ctrl_handler = ctrl_hdlr; | ||
| 670 | |||
| 671 | return 0; | ||
| 672 | } | ||
| 673 | |||
| 674 | static void og01a1b_update_pad_format(const struct og01a1b_mode *mode, | ||
| 675 | struct v4l2_mbus_framefmt *fmt) | ||
| 676 | { | ||
| 677 | fmt->width = mode->width; | ||
| 678 | fmt->height = mode->height; | ||
| 679 | fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; | ||
| 680 | fmt->field = V4L2_FIELD_NONE; | ||
| 681 | } | ||
| 682 | |||
| 683 | static int og01a1b_start_streaming(struct og01a1b *og01a1b) | ||
| 684 | { | ||
| 685 | struct i2c_client *client = v4l2_get_subdevdata(&og01a1b->sd); | ||
| 686 | const struct og01a1b_reg_list *reg_list; | ||
| 687 | int link_freq_index, ret; | ||
| 688 | |||
| 689 | link_freq_index = og01a1b->cur_mode->link_freq_index; | ||
| 690 | reg_list = &link_freq_configs[link_freq_index].reg_list; | ||
| 691 | |||
| 692 | ret = og01a1b_write_reg_list(og01a1b, reg_list); | ||
| 693 | if (ret) { | ||
| 694 | dev_err(&client->dev, "failed to set plls"); | ||
| 695 | return ret; | ||
| 696 | } | ||
| 697 | |||
| 698 | reg_list = &og01a1b->cur_mode->reg_list; | ||
| 699 | ret = og01a1b_write_reg_list(og01a1b, reg_list); | ||
| 700 | if (ret) { | ||
| 701 | dev_err(&client->dev, "failed to set mode"); | ||
| 702 | return ret; | ||
| 703 | } | ||
| 704 | |||
| 705 | ret = __v4l2_ctrl_handler_setup(og01a1b->sd.ctrl_handler); | ||
| 706 | if (ret) | ||
| 707 | return ret; | ||
| 708 | |||
| 709 | ret = og01a1b_write_reg(og01a1b, OG01A1B_REG_MODE_SELECT, | ||
| 710 | OG01A1B_REG_VALUE_08BIT, | ||
| 711 | OG01A1B_MODE_STREAMING); | ||
| 712 | if (ret) { | ||
| 713 | dev_err(&client->dev, "failed to set stream"); | ||
| 714 | return ret; | ||
| 715 | } | ||
| 716 | |||
| 717 | return 0; | ||
| 718 | } | ||
| 719 | |||
| 720 | static void og01a1b_stop_streaming(struct og01a1b *og01a1b) | ||
| 721 | { | ||
| 722 | struct i2c_client *client = v4l2_get_subdevdata(&og01a1b->sd); | ||
| 723 | |||
| 724 | if (og01a1b_write_reg(og01a1b, OG01A1B_REG_MODE_SELECT, | ||
| 725 | OG01A1B_REG_VALUE_08BIT, OG01A1B_MODE_STANDBY)) | ||
| 726 | dev_err(&client->dev, "failed to set stream"); | ||
| 727 | } | ||
| 728 | |||
| 729 | static int og01a1b_set_stream(struct v4l2_subdev *sd, int enable) | ||
| 730 | { | ||
| 731 | struct og01a1b *og01a1b = to_og01a1b(sd); | ||
| 732 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 733 | int ret = 0; | ||
| 734 | |||
| 735 | if (og01a1b->streaming == enable) | ||
| 736 | return 0; | ||
| 737 | |||
| 738 | mutex_lock(&og01a1b->mutex); | ||
| 739 | if (enable) { | ||
| 740 | ret = pm_runtime_get_sync(&client->dev); | ||
| 741 | if (ret < 0) { | ||
| 742 | pm_runtime_put_noidle(&client->dev); | ||
| 743 | mutex_unlock(&og01a1b->mutex); | ||
| 744 | return ret; | ||
| 745 | } | ||
| 746 | |||
| 747 | ret = og01a1b_start_streaming(og01a1b); | ||
| 748 | if (ret) { | ||
| 749 | enable = 0; | ||
| 750 | og01a1b_stop_streaming(og01a1b); | ||
| 751 | pm_runtime_put(&client->dev); | ||
| 752 | } | ||
| 753 | } else { | ||
| 754 | og01a1b_stop_streaming(og01a1b); | ||
| 755 | pm_runtime_put(&client->dev); | ||
| 756 | } | ||
| 757 | |||
| 758 | og01a1b->streaming = enable; | ||
| 759 | mutex_unlock(&og01a1b->mutex); | ||
| 760 | |||
| 761 | return ret; | ||
| 762 | } | ||
| 763 | |||
| 764 | static int __maybe_unused og01a1b_suspend(struct device *dev) | ||
| 765 | { | ||
| 766 | struct i2c_client *client = to_i2c_client(dev); | ||
| 767 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 768 | struct og01a1b *og01a1b = to_og01a1b(sd); | ||
| 769 | |||
| 770 | mutex_lock(&og01a1b->mutex); | ||
| 771 | if (og01a1b->streaming) | ||
| 772 | og01a1b_stop_streaming(og01a1b); | ||
| 773 | |||
| 774 | mutex_unlock(&og01a1b->mutex); | ||
| 775 | |||
| 776 | return 0; | ||
| 777 | } | ||
| 778 | |||
| 779 | static int __maybe_unused og01a1b_resume(struct device *dev) | ||
| 780 | { | ||
| 781 | struct i2c_client *client = to_i2c_client(dev); | ||
| 782 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 783 | struct og01a1b *og01a1b = to_og01a1b(sd); | ||
| 784 | int ret; | ||
| 785 | |||
| 786 | mutex_lock(&og01a1b->mutex); | ||
| 787 | if (og01a1b->streaming) { | ||
| 788 | ret = og01a1b_start_streaming(og01a1b); | ||
| 789 | if (ret) { | ||
| 790 | og01a1b->streaming = false; | ||
| 791 | og01a1b_stop_streaming(og01a1b); | ||
| 792 | mutex_unlock(&og01a1b->mutex); | ||
| 793 | return ret; | ||
| 794 | } | ||
| 795 | } | ||
| 796 | |||
| 797 | mutex_unlock(&og01a1b->mutex); | ||
| 798 | |||
| 799 | return 0; | ||
| 800 | } | ||
| 801 | |||
| 802 | static int og01a1b_set_format(struct v4l2_subdev *sd, | ||
| 803 | struct v4l2_subdev_state *sd_state, | ||
| 804 | struct v4l2_subdev_format *fmt) | ||
| 805 | { | ||
| 806 | struct og01a1b *og01a1b = to_og01a1b(sd); | ||
| 807 | const struct og01a1b_mode *mode; | ||
| 808 | s32 vblank_def, h_blank; | ||
| 809 | |||
| 810 | mode = v4l2_find_nearest_size(supported_modes, | ||
| 811 | ARRAY_SIZE(supported_modes), width, | ||
| 812 | height, fmt->format.width, | ||
| 813 | fmt->format.height); | ||
| 814 | |||
| 815 | mutex_lock(&og01a1b->mutex); | ||
| 816 | og01a1b_update_pad_format(mode, &fmt->format); | ||
| 817 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { | ||
| 818 | *v4l2_subdev_get_try_format(sd, sd_state, | ||
| 819 | fmt->pad) = fmt->format; | ||
| 820 | } else { | ||
| 821 | og01a1b->cur_mode = mode; | ||
| 822 | __v4l2_ctrl_s_ctrl(og01a1b->link_freq, mode->link_freq_index); | ||
| 823 | __v4l2_ctrl_s_ctrl_int64(og01a1b->pixel_rate, | ||
| 824 | to_pixel_rate(mode->link_freq_index)); | ||
| 825 | |||
| 826 | /* Update limits and set FPS to default */ | ||
| 827 | vblank_def = mode->vts_def - mode->height; | ||
| 828 | __v4l2_ctrl_modify_range(og01a1b->vblank, | ||
| 829 | mode->vts_min - mode->height, | ||
| 830 | OG01A1B_VTS_MAX - mode->height, 1, | ||
| 831 | vblank_def); | ||
| 832 | __v4l2_ctrl_s_ctrl(og01a1b->vblank, vblank_def); | ||
| 833 | h_blank = to_pixels_per_line(mode->hts, mode->link_freq_index) - | ||
| 834 | mode->width; | ||
| 835 | __v4l2_ctrl_modify_range(og01a1b->hblank, h_blank, h_blank, 1, | ||
| 836 | h_blank); | ||
| 837 | } | ||
| 838 | |||
| 839 | mutex_unlock(&og01a1b->mutex); | ||
| 840 | |||
| 841 | return 0; | ||
| 842 | } | ||
| 843 | |||
| 844 | static int og01a1b_get_format(struct v4l2_subdev *sd, | ||
| 845 | struct v4l2_subdev_state *sd_state, | ||
| 846 | struct v4l2_subdev_format *fmt) | ||
| 847 | { | ||
| 848 | struct og01a1b *og01a1b = to_og01a1b(sd); | ||
| 849 | |||
| 850 | mutex_lock(&og01a1b->mutex); | ||
| 851 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) | ||
| 852 | fmt->format = *v4l2_subdev_get_try_format(&og01a1b->sd, | ||
| 853 | sd_state, | ||
| 854 | fmt->pad); | ||
| 855 | else | ||
| 856 | og01a1b_update_pad_format(og01a1b->cur_mode, &fmt->format); | ||
| 857 | |||
| 858 | mutex_unlock(&og01a1b->mutex); | ||
| 859 | |||
| 860 | return 0; | ||
| 861 | } | ||
| 862 | |||
| 863 | static int og01a1b_enum_mbus_code(struct v4l2_subdev *sd, | ||
| 864 | struct v4l2_subdev_state *sd_state, | ||
| 865 | struct v4l2_subdev_mbus_code_enum *code) | ||
| 866 | { | ||
| 867 | if (code->index > 0) | ||
| 868 | return -EINVAL; | ||
| 869 | |||
| 870 | code->code = MEDIA_BUS_FMT_SGRBG10_1X10; | ||
| 871 | |||
| 872 | return 0; | ||
| 873 | } | ||
| 874 | |||
| 875 | static int og01a1b_enum_frame_size(struct v4l2_subdev *sd, | ||
| 876 | struct v4l2_subdev_state *sd_state, | ||
| 877 | struct v4l2_subdev_frame_size_enum *fse) | ||
| 878 | { | ||
| 879 | if (fse->index >= ARRAY_SIZE(supported_modes)) | ||
| 880 | return -EINVAL; | ||
| 881 | |||
| 882 | if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) | ||
| 883 | return -EINVAL; | ||
| 884 | |||
| 885 | fse->min_width = supported_modes[fse->index].width; | ||
| 886 | fse->max_width = fse->min_width; | ||
| 887 | fse->min_height = supported_modes[fse->index].height; | ||
| 888 | fse->max_height = fse->min_height; | ||
| 889 | |||
| 890 | return 0; | ||
| 891 | } | ||
| 892 | |||
| 893 | static int og01a1b_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) | ||
| 894 | { | ||
| 895 | struct og01a1b *og01a1b = to_og01a1b(sd); | ||
| 896 | |||
| 897 | mutex_lock(&og01a1b->mutex); | ||
| 898 | og01a1b_update_pad_format(&supported_modes[0], | ||
| 899 | v4l2_subdev_get_try_format(sd, fh->state, 0)); | ||
| 900 | mutex_unlock(&og01a1b->mutex); | ||
| 901 | |||
| 902 | return 0; | ||
| 903 | } | ||
| 904 | |||
| 905 | static const struct v4l2_subdev_video_ops og01a1b_video_ops = { | ||
| 906 | .s_stream = og01a1b_set_stream, | ||
| 907 | }; | ||
| 908 | |||
| 909 | static const struct v4l2_subdev_pad_ops og01a1b_pad_ops = { | ||
| 910 | .set_fmt = og01a1b_set_format, | ||
| 911 | .get_fmt = og01a1b_get_format, | ||
| 912 | .enum_mbus_code = og01a1b_enum_mbus_code, | ||
| 913 | .enum_frame_size = og01a1b_enum_frame_size, | ||
| 914 | }; | ||
| 915 | |||
| 916 | static const struct v4l2_subdev_ops og01a1b_subdev_ops = { | ||
| 917 | .video = &og01a1b_video_ops, | ||
| 918 | .pad = &og01a1b_pad_ops, | ||
| 919 | }; | ||
| 920 | |||
| 921 | static const struct media_entity_operations og01a1b_subdev_entity_ops = { | ||
| 922 | .link_validate = v4l2_subdev_link_validate, | ||
| 923 | }; | ||
| 924 | |||
| 925 | static const struct v4l2_subdev_internal_ops og01a1b_internal_ops = { | ||
| 926 | .open = og01a1b_open, | ||
| 927 | }; | ||
| 928 | |||
| 929 | static int og01a1b_identify_module(struct og01a1b *og01a1b) | ||
| 930 | { | ||
| 931 | struct i2c_client *client = v4l2_get_subdevdata(&og01a1b->sd); | ||
| 932 | int ret; | ||
| 933 | u32 val; | ||
| 934 | |||
| 935 | ret = og01a1b_read_reg(og01a1b, OG01A1B_REG_CHIP_ID, | ||
| 936 | OG01A1B_REG_VALUE_24BIT, &val); | ||
| 937 | if (ret) | ||
| 938 | return ret; | ||
| 939 | |||
| 940 | if (val != OG01A1B_CHIP_ID) { | ||
| 941 | dev_err(&client->dev, "chip id mismatch: %x!=%x", | ||
| 942 | OG01A1B_CHIP_ID, val); | ||
| 943 | return -ENXIO; | ||
| 944 | } | ||
| 945 | |||
| 946 | return 0; | ||
| 947 | } | ||
| 948 | |||
| 949 | static int og01a1b_check_hwcfg(struct device *dev) | ||
| 950 | { | ||
| 951 | struct fwnode_handle *ep; | ||
| 952 | struct fwnode_handle *fwnode = dev_fwnode(dev); | ||
| 953 | struct v4l2_fwnode_endpoint bus_cfg = { | ||
| 954 | .bus_type = V4L2_MBUS_CSI2_DPHY | ||
| 955 | }; | ||
| 956 | u32 mclk; | ||
| 957 | int ret; | ||
| 958 | unsigned int i, j; | ||
| 959 | |||
| 960 | if (!fwnode) | ||
| 961 | return -ENXIO; | ||
| 962 | |||
| 963 | ret = fwnode_property_read_u32(fwnode, "clock-frequency", &mclk); | ||
| 964 | |||
| 965 | if (ret) { | ||
| 966 | dev_err(dev, "can't get clock frequency"); | ||
| 967 | return ret; | ||
| 968 | } | ||
| 969 | |||
| 970 | if (mclk != OG01A1B_MCLK) { | ||
| 971 | dev_err(dev, "external clock %d is not supported", mclk); | ||
| 972 | return -EINVAL; | ||
| 973 | } | ||
| 974 | |||
| 975 | ep = fwnode_graph_get_next_endpoint(fwnode, NULL); | ||
| 976 | if (!ep) | ||
| 977 | return -ENXIO; | ||
| 978 | |||
| 979 | ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); | ||
| 980 | fwnode_handle_put(ep); | ||
| 981 | if (ret) | ||
| 982 | return ret; | ||
| 983 | |||
| 984 | if (bus_cfg.bus.mipi_csi2.num_data_lanes != OG01A1B_DATA_LANES) { | ||
| 985 | dev_err(dev, "number of CSI2 data lanes %d is not supported", | ||
| 986 | bus_cfg.bus.mipi_csi2.num_data_lanes); | ||
| 987 | ret = -EINVAL; | ||
| 988 | goto check_hwcfg_error; | ||
| 989 | } | ||
| 990 | |||
| 991 | if (!bus_cfg.nr_of_link_frequencies) { | ||
| 992 | dev_err(dev, "no link frequencies defined"); | ||
| 993 | ret = -EINVAL; | ||
| 994 | goto check_hwcfg_error; | ||
| 995 | } | ||
| 996 | |||
| 997 | for (i = 0; i < ARRAY_SIZE(link_freq_menu_items); i++) { | ||
| 998 | for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { | ||
| 999 | if (link_freq_menu_items[i] == | ||
| 1000 | bus_cfg.link_frequencies[j]) | ||
| 1001 | break; | ||
| 1002 | } | ||
| 1003 | |||
| 1004 | if (j == bus_cfg.nr_of_link_frequencies) { | ||
| 1005 | dev_err(dev, "no link frequency %lld supported", | ||
| 1006 | link_freq_menu_items[i]); | ||
| 1007 | ret = -EINVAL; | ||
| 1008 | goto check_hwcfg_error; | ||
| 1009 | } | ||
| 1010 | } | ||
| 1011 | |||
| 1012 | check_hwcfg_error: | ||
| 1013 | v4l2_fwnode_endpoint_free(&bus_cfg); | ||
| 1014 | |||
| 1015 | return ret; | ||
| 1016 | } | ||
| 1017 | |||
| 1018 | static int og01a1b_remove(struct i2c_client *client) | ||
| 1019 | { | ||
| 1020 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 1021 | struct og01a1b *og01a1b = to_og01a1b(sd); | ||
| 1022 | |||
| 1023 | v4l2_async_unregister_subdev(sd); | ||
| 1024 | media_entity_cleanup(&sd->entity); | ||
| 1025 | v4l2_ctrl_handler_free(sd->ctrl_handler); | ||
| 1026 | pm_runtime_disable(&client->dev); | ||
| 1027 | mutex_destroy(&og01a1b->mutex); | ||
| 1028 | |||
| 1029 | return 0; | ||
| 1030 | } | ||
| 1031 | |||
| 1032 | static int og01a1b_probe(struct i2c_client *client) | ||
| 1033 | { | ||
| 1034 | struct og01a1b *og01a1b; | ||
| 1035 | int ret; | ||
| 1036 | |||
| 1037 | ret = og01a1b_check_hwcfg(&client->dev); | ||
| 1038 | if (ret) { | ||
| 1039 | dev_err(&client->dev, "failed to check HW configuration: %d", | ||
| 1040 | ret); | ||
| 1041 | return ret; | ||
| 1042 | } | ||
| 1043 | |||
| 1044 | og01a1b = devm_kzalloc(&client->dev, sizeof(*og01a1b), GFP_KERNEL); | ||
| 1045 | if (!og01a1b) | ||
| 1046 | return -ENOMEM; | ||
| 1047 | |||
| 1048 | v4l2_i2c_subdev_init(&og01a1b->sd, client, &og01a1b_subdev_ops); | ||
| 1049 | ret = og01a1b_identify_module(og01a1b); | ||
| 1050 | if (ret) { | ||
| 1051 | dev_err(&client->dev, "failed to find sensor: %d", ret); | ||
| 1052 | return ret; | ||
| 1053 | } | ||
| 1054 | |||
| 1055 | mutex_init(&og01a1b->mutex); | ||
| 1056 | og01a1b->cur_mode = &supported_modes[0]; | ||
| 1057 | ret = og01a1b_init_controls(og01a1b); | ||
| 1058 | if (ret) { | ||
| 1059 | dev_err(&client->dev, "failed to init controls: %d", ret); | ||
| 1060 | goto probe_error_v4l2_ctrl_handler_free; | ||
| 1061 | } | ||
| 1062 | |||
| 1063 | og01a1b->sd.internal_ops = &og01a1b_internal_ops; | ||
| 1064 | og01a1b->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; | ||
| 1065 | og01a1b->sd.entity.ops = &og01a1b_subdev_entity_ops; | ||
| 1066 | og01a1b->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; | ||
| 1067 | og01a1b->pad.flags = MEDIA_PAD_FL_SOURCE; | ||
| 1068 | ret = media_entity_pads_init(&og01a1b->sd.entity, 1, &og01a1b->pad); | ||
| 1069 | if (ret) { | ||
| 1070 | dev_err(&client->dev, "failed to init entity pads: %d", ret); | ||
| 1071 | goto probe_error_v4l2_ctrl_handler_free; | ||
| 1072 | } | ||
| 1073 | |||
| 1074 | ret = v4l2_async_register_subdev_sensor(&og01a1b->sd); | ||
| 1075 | if (ret < 0) { | ||
| 1076 | dev_err(&client->dev, "failed to register V4L2 subdev: %d", | ||
| 1077 | ret); | ||
| 1078 | goto probe_error_media_entity_cleanup; | ||
| 1079 | } | ||
| 1080 | |||
| 1081 | /* | ||
| 1082 | * Device is already turned on by i2c-core with ACPI domain PM. | ||
| 1083 | * Enable runtime PM and turn off the device. | ||
| 1084 | */ | ||
| 1085 | pm_runtime_set_active(&client->dev); | ||
| 1086 | pm_runtime_enable(&client->dev); | ||
| 1087 | pm_runtime_idle(&client->dev); | ||
| 1088 | |||
| 1089 | return 0; | ||
| 1090 | |||
| 1091 | probe_error_media_entity_cleanup: | ||
| 1092 | media_entity_cleanup(&og01a1b->sd.entity); | ||
| 1093 | |||
| 1094 | probe_error_v4l2_ctrl_handler_free: | ||
| 1095 | v4l2_ctrl_handler_free(og01a1b->sd.ctrl_handler); | ||
| 1096 | mutex_destroy(&og01a1b->mutex); | ||
| 1097 | |||
| 1098 | return ret; | ||
| 1099 | } | ||
| 1100 | |||
| 1101 | static const struct dev_pm_ops og01a1b_pm_ops = { | ||
| 1102 | SET_SYSTEM_SLEEP_PM_OPS(og01a1b_suspend, og01a1b_resume) | ||
| 1103 | }; | ||
| 1104 | |||
| 1105 | #ifdef CONFIG_ACPI | ||
| 1106 | static const struct acpi_device_id og01a1b_acpi_ids[] = { | ||
| 1107 | {"OVTI01AC"}, | ||
| 1108 | {} | ||
| 1109 | }; | ||
| 1110 | |||
| 1111 | MODULE_DEVICE_TABLE(acpi, og01a1b_acpi_ids); | ||
| 1112 | #endif | ||
| 1113 | |||
| 1114 | static struct i2c_driver og01a1b_i2c_driver = { | ||
| 1115 | .driver = { | ||
| 1116 | .name = "og01a1b", | ||
| 1117 | .pm = &og01a1b_pm_ops, | ||
| 1118 | .acpi_match_table = ACPI_PTR(og01a1b_acpi_ids), | ||
| 1119 | }, | ||
| 1120 | .probe_new = og01a1b_probe, | ||
| 1121 | .remove = og01a1b_remove, | ||
| 1122 | }; | ||
| 1123 | |||
| 1124 | module_i2c_driver(og01a1b_i2c_driver); | ||
| 1125 | |||
| 1126 | MODULE_AUTHOR("Shawn Tu <shawnx.tu@intel.com>"); | ||
| 1127 | MODULE_DESCRIPTION("OmniVision OG01A1B sensor driver"); | ||
| 1128 | MODULE_LICENSE("GPL v2"); | ||
| @@ -0,0 +1,1528 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 2 | // Copyright (c) 2022 Intel Corporation. | ||
| 3 | |||
| 4 | #include <linux/acpi.h> | ||
| 5 | #include <linux/clk.h> | ||
| 6 | #include <linux/delay.h> | ||
| 7 | #include <linux/i2c.h> | ||
| 8 | #include <linux/module.h> | ||
| 9 | #include <linux/pm_runtime.h> | ||
| 10 | #include <linux/regulator/consumer.h> | ||
| 11 | #include <media/v4l2-ctrls.h> | ||
| 12 | #include <media/v4l2-device.h> | ||
| 13 | #include <media/v4l2-fwnode.h> | ||
| 14 | |||
| 15 | #define OV08D10_SCLK 144000000ULL | ||
| 16 | #define OV08D10_XVCLK_19_2 19200000 | ||
| 17 | #define OV08D10_ROWCLK 36000 | ||
| 18 | #define OV08D10_DATA_LANES 2 | ||
| 19 | #define OV08D10_RGB_DEPTH 10 | ||
| 20 | |||
| 21 | #define OV08D10_REG_PAGE 0xfd | ||
| 22 | #define OV08D10_REG_GLOBAL_EFFECTIVE 0x01 | ||
| 23 | #define OV08D10_REG_CHIP_ID_0 0x00 | ||
| 24 | #define OV08D10_REG_CHIP_ID_1 0x01 | ||
| 25 | #define OV08D10_ID_MASK GENMASK(15, 0) | ||
| 26 | #define OV08D10_CHIP_ID 0x5608 | ||
| 27 | |||
| 28 | #define OV08D10_REG_MODE_SELECT 0xa0 | ||
| 29 | #define OV08D10_MODE_STANDBY 0x00 | ||
| 30 | #define OV08D10_MODE_STREAMING 0x01 | ||
| 31 | |||
| 32 | /* vertical-timings from sensor */ | ||
| 33 | #define OV08D10_REG_VTS_H 0x05 | ||
| 34 | #define OV08D10_REG_VTS_L 0x06 | ||
| 35 | #define OV08D10_VTS_MAX 0x7fff | ||
| 36 | |||
| 37 | /* Exposure controls from sensor */ | ||
| 38 | #define OV08D10_REG_EXPOSURE_H 0x02 | ||
| 39 | #define OV08D10_REG_EXPOSURE_M 0x03 | ||
| 40 | #define OV08D10_REG_EXPOSURE_L 0x04 | ||
| 41 | #define OV08D10_EXPOSURE_MIN 6 | ||
| 42 | #define OV08D10_EXPOSURE_MAX_MARGIN 6 | ||
| 43 | #define OV08D10_EXPOSURE_STEP 1 | ||
| 44 | |||
| 45 | /* Analog gain controls from sensor */ | ||
| 46 | #define OV08D10_REG_ANALOG_GAIN 0x24 | ||
| 47 | #define OV08D10_ANAL_GAIN_MIN 128 | ||
| 48 | #define OV08D10_ANAL_GAIN_MAX 2047 | ||
| 49 | #define OV08D10_ANAL_GAIN_STEP 1 | ||
| 50 | |||
| 51 | /* Digital gain controls from sensor */ | ||
| 52 | #define OV08D10_REG_MWB_DGAIN_C 0x21 | ||
| 53 | #define OV08D10_REG_MWB_DGAIN_F 0x22 | ||
| 54 | #define OV08D10_DGTL_GAIN_MIN 0 | ||
| 55 | #define OV08D10_DGTL_GAIN_MAX 4095 | ||
| 56 | #define OV08D10_DGTL_GAIN_STEP 1 | ||
| 57 | #define OV08D10_DGTL_GAIN_DEFAULT 1024 | ||
| 58 | |||
| 59 | /* Test Pattern Control */ | ||
| 60 | #define OV08D10_REG_TEST_PATTERN 0x12 | ||
| 61 | #define OV08D10_TEST_PATTERN_ENABLE 0x01 | ||
| 62 | #define OV08D10_TEST_PATTERN_DISABLE 0x00 | ||
| 63 | |||
| 64 | /* Flip Mirror Controls from sensor */ | ||
| 65 | #define OV08D10_REG_FLIP_OPT 0x32 | ||
| 66 | #define OV08D10_REG_FLIP_MASK 0x3 | ||
| 67 | |||
| 68 | #define to_ov08d10(_sd) container_of(_sd, struct ov08d10, sd) | ||
| 69 | |||
| 70 | struct ov08d10_reg { | ||
| 71 | u8 address; | ||
| 72 | u8 val; | ||
| 73 | }; | ||
| 74 | |||
| 75 | struct ov08d10_reg_list { | ||
| 76 | u32 num_of_regs; | ||
| 77 | const struct ov08d10_reg *regs; | ||
| 78 | }; | ||
| 79 | |||
| 80 | struct ov08d10_link_freq_config { | ||
| 81 | const struct ov08d10_reg_list reg_list; | ||
| 82 | }; | ||
| 83 | |||
| 84 | struct ov08d10_mode { | ||
| 85 | /* Frame width in pixels */ | ||
| 86 | u32 width; | ||
| 87 | |||
| 88 | /* Frame height in pixels */ | ||
| 89 | u32 height; | ||
| 90 | |||
| 91 | /* Horizontal timining size */ | ||
| 92 | u32 hts; | ||
| 93 | |||
| 94 | /* Default vertical timining size */ | ||
| 95 | u32 vts_def; | ||
| 96 | |||
| 97 | /* Min vertical timining size */ | ||
| 98 | u32 vts_min; | ||
| 99 | |||
| 100 | /* Link frequency needed for this resolution */ | ||
| 101 | u32 link_freq_index; | ||
| 102 | |||
| 103 | /* Sensor register settings for this resolution */ | ||
| 104 | const struct ov08d10_reg_list reg_list; | ||
| 105 | |||
| 106 | /* Number of data lanes */ | ||
| 107 | u8 data_lanes; | ||
| 108 | }; | ||
| 109 | |||
| 110 | /* 3280x2460, 3264x2448 need 720Mbps/lane, 2 lanes */ | ||
| 111 | static const struct ov08d10_reg mipi_data_rate_720mbps[] = { | ||
| 112 | {0xfd, 0x00}, | ||
| 113 | {0x11, 0x2a}, | ||
| 114 | {0x14, 0x43}, | ||
| 115 | {0x1a, 0x04}, | ||
| 116 | {0x1b, 0xe1}, | ||
| 117 | {0x1e, 0x13}, | ||
| 118 | {0xb7, 0x02} | ||
| 119 | }; | ||
| 120 | |||
| 121 | /* 1632x1224 needs 360Mbps/lane, 2 lanes */ | ||
| 122 | static const struct ov08d10_reg mipi_data_rate_360mbps[] = { | ||
| 123 | {0xfd, 0x00}, | ||
| 124 | {0x1a, 0x04}, | ||
| 125 | {0x1b, 0xe1}, | ||
| 126 | {0x1d, 0x00}, | ||
| 127 | {0x1c, 0x19}, | ||
| 128 | {0x11, 0x2a}, | ||
| 129 | {0x14, 0x54}, | ||
| 130 | {0x1e, 0x13}, | ||
| 131 | {0xb7, 0x02} | ||
| 132 | }; | ||
| 133 | |||
| 134 | static const struct ov08d10_reg lane_2_mode_3280x2460[] = { | ||
| 135 | /* 3280x2460 resolution */ | ||
| 136 | {0xfd, 0x01}, | ||
| 137 | {0x12, 0x00}, | ||
| 138 | {0x03, 0x12}, | ||
| 139 | {0x04, 0x58}, | ||
| 140 | {0x07, 0x05}, | ||
| 141 | {0x21, 0x02}, | ||
| 142 | {0x24, 0x30}, | ||
| 143 | {0x33, 0x03}, | ||
| 144 | {0x01, 0x03}, | ||
| 145 | {0x19, 0x10}, | ||
| 146 | {0x42, 0x55}, | ||
| 147 | {0x43, 0x00}, | ||
| 148 | {0x47, 0x07}, | ||
| 149 | {0x48, 0x08}, | ||
| 150 | {0xb2, 0x7f}, | ||
| 151 | {0xb3, 0x7b}, | ||
| 152 | {0xbd, 0x08}, | ||
| 153 | {0xd2, 0x57}, | ||
| 154 | {0xd3, 0x10}, | ||
| 155 | {0xd4, 0x08}, | ||
| 156 | {0xd5, 0x08}, | ||
| 157 | {0xd6, 0x06}, | ||
| 158 | {0xb1, 0x00}, | ||
| 159 | {0xb4, 0x00}, | ||
| 160 | {0xb7, 0x0a}, | ||
| 161 | {0xbc, 0x44}, | ||
| 162 | {0xbf, 0x48}, | ||
| 163 | {0xc1, 0x10}, | ||
| 164 | {0xc3, 0x24}, | ||
| 165 | {0xc8, 0x03}, | ||
| 166 | {0xc9, 0xf8}, | ||
| 167 | {0xe1, 0x33}, | ||
| 168 | {0xe2, 0xbb}, | ||
| 169 | {0x51, 0x0c}, | ||
| 170 | {0x52, 0x0a}, | ||
| 171 | {0x57, 0x8c}, | ||
| 172 | {0x59, 0x09}, | ||
| 173 | {0x5a, 0x08}, | ||
| 174 | {0x5e, 0x10}, | ||
| 175 | {0x60, 0x02}, | ||
| 176 | {0x6d, 0x5c}, | ||
| 177 | {0x76, 0x16}, | ||
| 178 | {0x7c, 0x11}, | ||
| 179 | {0x90, 0x28}, | ||
| 180 | {0x91, 0x16}, | ||
| 181 | {0x92, 0x1c}, | ||
| 182 | {0x93, 0x24}, | ||
| 183 | {0x95, 0x48}, | ||
| 184 | {0x9c, 0x06}, | ||
| 185 | {0xca, 0x0c}, | ||
| 186 | {0xce, 0x0d}, | ||
| 187 | {0xfd, 0x01}, | ||
| 188 | {0xc0, 0x00}, | ||
| 189 | {0xdd, 0x18}, | ||
| 190 | {0xde, 0x19}, | ||
| 191 | {0xdf, 0x32}, | ||
| 192 | {0xe0, 0x70}, | ||
| 193 | {0xfd, 0x01}, | ||
| 194 | {0xc2, 0x05}, | ||
| 195 | {0xd7, 0x88}, | ||
| 196 | {0xd8, 0x77}, | ||
| 197 | {0xd9, 0x00}, | ||
| 198 | {0xfd, 0x07}, | ||
| 199 | {0x00, 0xf8}, | ||
| 200 | {0x01, 0x2b}, | ||
| 201 | {0x05, 0x40}, | ||
| 202 | {0x08, 0x06}, | ||
| 203 | {0x09, 0x11}, | ||
| 204 | {0x28, 0x6f}, | ||
| 205 | {0x2a, 0x20}, | ||
| 206 | {0x2b, 0x05}, | ||
| 207 | {0x5e, 0x10}, | ||
| 208 | {0x52, 0x00}, | ||
| 209 | {0x53, 0x7c}, | ||
| 210 | {0x54, 0x00}, | ||
| 211 | {0x55, 0x7c}, | ||
| 212 | {0x56, 0x00}, | ||
| 213 | {0x57, 0x7c}, | ||
| 214 | {0x58, 0x00}, | ||
| 215 | {0x59, 0x7c}, | ||
| 216 | {0xfd, 0x02}, | ||
| 217 | {0x9a, 0x30}, | ||
| 218 | {0xa8, 0x02}, | ||
| 219 | {0xfd, 0x02}, | ||
| 220 | {0xa1, 0x01}, | ||
| 221 | {0xa2, 0x09}, | ||
| 222 | {0xa3, 0x9c}, | ||
| 223 | {0xa5, 0x00}, | ||
| 224 | {0xa6, 0x0c}, | ||
| 225 | {0xa7, 0xd0}, | ||
| 226 | {0xfd, 0x00}, | ||
| 227 | {0x24, 0x01}, | ||
| 228 | {0xc0, 0x16}, | ||
| 229 | {0xc1, 0x08}, | ||
| 230 | {0xc2, 0x30}, | ||
| 231 | {0x8e, 0x0c}, | ||
| 232 | {0x8f, 0xd0}, | ||
| 233 | {0x90, 0x09}, | ||
| 234 | {0x91, 0x9c}, | ||
| 235 | {0xfd, 0x05}, | ||
| 236 | {0x04, 0x40}, | ||
| 237 | {0x07, 0x00}, | ||
| 238 | {0x0d, 0x01}, | ||
| 239 | {0x0f, 0x01}, | ||
| 240 | {0x10, 0x00}, | ||
| 241 | {0x11, 0x00}, | ||
| 242 | {0x12, 0x0c}, | ||
| 243 | {0x13, 0xcf}, | ||
| 244 | {0x14, 0x00}, | ||
| 245 | {0x15, 0x00}, | ||
| 246 | {0xfd, 0x00}, | ||
| 247 | {0x20, 0x0f}, | ||
| 248 | {0xe7, 0x03}, | ||
| 249 | {0xe7, 0x00} | ||
| 250 | }; | ||
| 251 | |||
| 252 | static const struct ov08d10_reg lane_2_mode_3264x2448[] = { | ||
| 253 | /* 3264x2448 resolution */ | ||
| 254 | {0xfd, 0x01}, | ||
| 255 | {0x12, 0x00}, | ||
| 256 | {0x03, 0x12}, | ||
| 257 | {0x04, 0x58}, | ||
| 258 | {0x07, 0x05}, | ||
| 259 | {0x21, 0x02}, | ||
| 260 | {0x24, 0x30}, | ||
| 261 | {0x33, 0x03}, | ||
| 262 | {0x01, 0x03}, | ||
| 263 | {0x19, 0x10}, | ||
| 264 | {0x42, 0x55}, | ||
| 265 | {0x43, 0x00}, | ||
| 266 | {0x47, 0x07}, | ||
| 267 | {0x48, 0x08}, | ||
| 268 | {0xb2, 0x7f}, | ||
| 269 | {0xb3, 0x7b}, | ||
| 270 | {0xbd, 0x08}, | ||
| 271 | {0xd2, 0x57}, | ||
| 272 | {0xd3, 0x10}, | ||
| 273 | {0xd4, 0x08}, | ||
| 274 | {0xd5, 0x08}, | ||
| 275 | {0xd6, 0x06}, | ||
| 276 | {0xb1, 0x00}, | ||
| 277 | {0xb4, 0x00}, | ||
| 278 | {0xb7, 0x0a}, | ||
| 279 | {0xbc, 0x44}, | ||
| 280 | {0xbf, 0x48}, | ||
| 281 | {0xc1, 0x10}, | ||
| 282 | {0xc3, 0x24}, | ||
| 283 | {0xc8, 0x03}, | ||
| 284 | {0xc9, 0xf8}, | ||
| 285 | {0xe1, 0x33}, | ||
| 286 | {0xe2, 0xbb}, | ||
| 287 | {0x51, 0x0c}, | ||
| 288 | {0x52, 0x0a}, | ||
| 289 | {0x57, 0x8c}, | ||
| 290 | {0x59, 0x09}, | ||
| 291 | {0x5a, 0x08}, | ||
| 292 | {0x5e, 0x10}, | ||
| 293 | {0x60, 0x02}, | ||
| 294 | {0x6d, 0x5c}, | ||
| 295 | {0x76, 0x16}, | ||
| 296 | {0x7c, 0x11}, | ||
| 297 | {0x90, 0x28}, | ||
| 298 | {0x91, 0x16}, | ||
| 299 | {0x92, 0x1c}, | ||
| 300 | {0x93, 0x24}, | ||
| 301 | {0x95, 0x48}, | ||
| 302 | {0x9c, 0x06}, | ||
| 303 | {0xca, 0x0c}, | ||
| 304 | {0xce, 0x0d}, | ||
| 305 | {0xfd, 0x01}, | ||
| 306 | {0xc0, 0x00}, | ||
| 307 | {0xdd, 0x18}, | ||
| 308 | {0xde, 0x19}, | ||
| 309 | {0xdf, 0x32}, | ||
| 310 | {0xe0, 0x70}, | ||
| 311 | {0xfd, 0x01}, | ||
| 312 | {0xc2, 0x05}, | ||
| 313 | {0xd7, 0x88}, | ||
| 314 | {0xd8, 0x77}, | ||
| 315 | {0xd9, 0x00}, | ||
| 316 | {0xfd, 0x07}, | ||
| 317 | {0x00, 0xf8}, | ||
| 318 | {0x01, 0x2b}, | ||
| 319 | {0x05, 0x40}, | ||
| 320 | {0x08, 0x06}, | ||
| 321 | {0x09, 0x11}, | ||
| 322 | {0x28, 0x6f}, | ||
| 323 | {0x2a, 0x20}, | ||
| 324 | {0x2b, 0x05}, | ||
| 325 | {0x5e, 0x10}, | ||
| 326 | {0x52, 0x00}, | ||
| 327 | {0x53, 0x7c}, | ||
| 328 | {0x54, 0x00}, | ||
| 329 | {0x55, 0x7c}, | ||
| 330 | {0x56, 0x00}, | ||
| 331 | {0x57, 0x7c}, | ||
| 332 | {0x58, 0x00}, | ||
| 333 | {0x59, 0x7c}, | ||
| 334 | {0xfd, 0x02}, | ||
| 335 | {0x9a, 0x30}, | ||
| 336 | {0xa8, 0x02}, | ||
| 337 | {0xfd, 0x02}, | ||
| 338 | {0xa1, 0x09}, | ||
| 339 | {0xa2, 0x09}, | ||
| 340 | {0xa3, 0x90}, | ||
| 341 | {0xa5, 0x08}, | ||
| 342 | {0xa6, 0x0c}, | ||
| 343 | {0xa7, 0xc0}, | ||
| 344 | {0xfd, 0x00}, | ||
| 345 | {0x24, 0x01}, | ||
| 346 | {0xc0, 0x16}, | ||
| 347 | {0xc1, 0x08}, | ||
| 348 | {0xc2, 0x30}, | ||
| 349 | {0x8e, 0x0c}, | ||
| 350 | {0x8f, 0xc0}, | ||
| 351 | {0x90, 0x09}, | ||
| 352 | {0x91, 0x90}, | ||
| 353 | {0xfd, 0x05}, | ||
| 354 | {0x04, 0x40}, | ||
| 355 | {0x07, 0x00}, | ||
| 356 | {0x0d, 0x01}, | ||
| 357 | {0x0f, 0x01}, | ||
| 358 | {0x10, 0x00}, | ||
| 359 | {0x11, 0x00}, | ||
| 360 | {0x12, 0x0c}, | ||
| 361 | {0x13, 0xcf}, | ||
| 362 | {0x14, 0x00}, | ||
| 363 | {0x15, 0x00}, | ||
| 364 | {0xfd, 0x00}, | ||
| 365 | {0x20, 0x0f}, | ||
| 366 | {0xe7, 0x03}, | ||
| 367 | {0xe7, 0x00} | ||
| 368 | }; | ||
| 369 | |||
| 370 | static const struct ov08d10_reg lane_2_mode_1632x1224[] = { | ||
| 371 | /* 1640x1232 resolution */ | ||
| 372 | {0xfd, 0x01}, | ||
| 373 | {0x1a, 0x0a}, | ||
| 374 | {0x1b, 0x08}, | ||
| 375 | {0x2a, 0x01}, | ||
| 376 | {0x2b, 0x9a}, | ||
| 377 | {0xfd, 0x01}, | ||
| 378 | {0x12, 0x00}, | ||
| 379 | {0x03, 0x05}, | ||
| 380 | {0x04, 0xe2}, | ||
| 381 | {0x07, 0x05}, | ||
| 382 | {0x21, 0x02}, | ||
| 383 | {0x24, 0x30}, | ||
| 384 | {0x33, 0x03}, | ||
| 385 | {0x31, 0x06}, | ||
| 386 | {0x33, 0x03}, | ||
| 387 | {0x01, 0x03}, | ||
| 388 | {0x19, 0x10}, | ||
| 389 | {0x42, 0x55}, | ||
| 390 | {0x43, 0x00}, | ||
| 391 | {0x47, 0x07}, | ||
| 392 | {0x48, 0x08}, | ||
| 393 | {0xb2, 0x7f}, | ||
| 394 | {0xb3, 0x7b}, | ||
| 395 | {0xbd, 0x08}, | ||
| 396 | {0xd2, 0x57}, | ||
| 397 | {0xd3, 0x10}, | ||
| 398 | {0xd4, 0x08}, | ||
| 399 | {0xd5, 0x08}, | ||
| 400 | {0xd6, 0x06}, | ||
| 401 | {0xb1, 0x00}, | ||
| 402 | {0xb4, 0x00}, | ||
| 403 | {0xb7, 0x0a}, | ||
| 404 | {0xbc, 0x44}, | ||
| 405 | {0xbf, 0x48}, | ||
| 406 | {0xc1, 0x10}, | ||
| 407 | {0xc3, 0x24}, | ||
| 408 | {0xc8, 0x03}, | ||
| 409 | {0xc9, 0xf8}, | ||
| 410 | {0xe1, 0x33}, | ||
| 411 | {0xe2, 0xbb}, | ||
| 412 | {0x51, 0x0c}, | ||
| 413 | {0x52, 0x0a}, | ||
| 414 | {0x57, 0x8c}, | ||
| 415 | {0x59, 0x09}, | ||
| 416 | {0x5a, 0x08}, | ||
| 417 | {0x5e, 0x10}, | ||
| 418 | {0x60, 0x02}, | ||
| 419 | {0x6d, 0x5c}, | ||
| 420 | {0x76, 0x16}, | ||
| 421 | {0x7c, 0x1a}, | ||
| 422 | {0x90, 0x28}, | ||
| 423 | {0x91, 0x16}, | ||
| 424 | {0x92, 0x1c}, | ||
| 425 | {0x93, 0x24}, | ||
| 426 | {0x95, 0x48}, | ||
| 427 | {0x9c, 0x06}, | ||
| 428 | {0xca, 0x0c}, | ||
| 429 | {0xce, 0x0d}, | ||
| 430 | {0xfd, 0x01}, | ||
| 431 | {0xc0, 0x00}, | ||
| 432 | {0xdd, 0x18}, | ||
| 433 | {0xde, 0x19}, | ||
| 434 | {0xdf, 0x32}, | ||
| 435 | {0xe0, 0x70}, | ||
| 436 | {0xfd, 0x01}, | ||
| 437 | {0xc2, 0x05}, | ||
| 438 | {0xd7, 0x88}, | ||
| 439 | {0xd8, 0x77}, | ||
| 440 | {0xd9, 0x00}, | ||
| 441 | {0xfd, 0x07}, | ||
| 442 | {0x00, 0xf8}, | ||
| 443 | {0x01, 0x2b}, | ||
| 444 | {0x05, 0x40}, | ||
| 445 | {0x08, 0x03}, | ||
| 446 | {0x09, 0x08}, | ||
| 447 | {0x28, 0x6f}, | ||
| 448 | {0x2a, 0x20}, | ||
| 449 | {0x2b, 0x05}, | ||
| 450 | {0x2c, 0x01}, | ||
| 451 | {0x50, 0x02}, | ||
| 452 | {0x51, 0x03}, | ||
| 453 | {0x5e, 0x00}, | ||
| 454 | {0x52, 0x00}, | ||
| 455 | {0x53, 0x7c}, | ||
| 456 | {0x54, 0x00}, | ||
| 457 | {0x55, 0x7c}, | ||
| 458 | {0x56, 0x00}, | ||
| 459 | {0x57, 0x7c}, | ||
| 460 | {0x58, 0x00}, | ||
| 461 | {0x59, 0x7c}, | ||
| 462 | {0xfd, 0x02}, | ||
| 463 | {0x9a, 0x30}, | ||
| 464 | {0xa8, 0x02}, | ||
| 465 | {0xfd, 0x02}, | ||
| 466 | {0xa9, 0x04}, | ||
| 467 | {0xaa, 0xd0}, | ||
| 468 | {0xab, 0x06}, | ||
| 469 | {0xac, 0x68}, | ||
| 470 | {0xa1, 0x09}, | ||
| 471 | {0xa2, 0x04}, | ||
| 472 | {0xa3, 0xc8}, | ||
| 473 | {0xa5, 0x04}, | ||
| 474 | {0xa6, 0x06}, | ||
| 475 | {0xa7, 0x60}, | ||
| 476 | {0xfd, 0x05}, | ||
| 477 | {0x06, 0x80}, | ||
| 478 | {0x18, 0x06}, | ||
| 479 | {0x19, 0x68}, | ||
| 480 | {0xfd, 0x00}, | ||
| 481 | {0x24, 0x01}, | ||
| 482 | {0xc0, 0x16}, | ||
| 483 | {0xc1, 0x08}, | ||
| 484 | {0xc2, 0x30}, | ||
| 485 | {0x8e, 0x06}, | ||
| 486 | {0x8f, 0x60}, | ||
| 487 | {0x90, 0x04}, | ||
| 488 | {0x91, 0xc8}, | ||
| 489 | {0x93, 0x0e}, | ||
| 490 | {0x94, 0x77}, | ||
| 491 | {0x95, 0x77}, | ||
| 492 | {0x96, 0x10}, | ||
| 493 | {0x98, 0x88}, | ||
| 494 | {0x9c, 0x1a}, | ||
| 495 | {0xfd, 0x05}, | ||
| 496 | {0x04, 0x40}, | ||
| 497 | {0x07, 0x99}, | ||
| 498 | {0x0d, 0x03}, | ||
| 499 | {0x0f, 0x03}, | ||
| 500 | {0x10, 0x00}, | ||
| 501 | {0x11, 0x00}, | ||
| 502 | {0x12, 0x0c}, | ||
| 503 | {0x13, 0xcf}, | ||
| 504 | {0x14, 0x00}, | ||
| 505 | {0x15, 0x00}, | ||
| 506 | {0xfd, 0x00}, | ||
| 507 | {0x20, 0x0f}, | ||
| 508 | {0xe7, 0x03}, | ||
| 509 | {0xe7, 0x00}, | ||
| 510 | }; | ||
| 511 | |||
| 512 | static const char * const ov08d10_test_pattern_menu[] = { | ||
| 513 | "Disabled", | ||
| 514 | "Standard Color Bar", | ||
| 515 | }; | ||
| 516 | |||
| 517 | struct ov08d10 { | ||
| 518 | struct v4l2_subdev sd; | ||
| 519 | struct media_pad pad; | ||
| 520 | struct v4l2_ctrl_handler ctrl_handler; | ||
| 521 | |||
| 522 | struct clk *xvclk; | ||
| 523 | |||
| 524 | /* V4L2 Controls */ | ||
| 525 | struct v4l2_ctrl *link_freq; | ||
| 526 | struct v4l2_ctrl *pixel_rate; | ||
| 527 | struct v4l2_ctrl *vblank; | ||
| 528 | struct v4l2_ctrl *hblank; | ||
| 529 | struct v4l2_ctrl *vflip; | ||
| 530 | struct v4l2_ctrl *hflip; | ||
| 531 | struct v4l2_ctrl *exposure; | ||
| 532 | |||
| 533 | /* Current mode */ | ||
| 534 | const struct ov08d10_mode *cur_mode; | ||
| 535 | |||
| 536 | /* To serialize asynchronus callbacks */ | ||
| 537 | struct mutex mutex; | ||
| 538 | |||
| 539 | /* Streaming on/off */ | ||
| 540 | bool streaming; | ||
| 541 | |||
| 542 | /* lanes index */ | ||
| 543 | u8 nlanes; | ||
| 544 | |||
| 545 | const struct ov08d10_lane_cfg *priv_lane; | ||
| 546 | u8 modes_size; | ||
| 547 | }; | ||
| 548 | |||
| 549 | struct ov08d10_lane_cfg { | ||
| 550 | const s64 link_freq_menu[2]; | ||
| 551 | const struct ov08d10_link_freq_config link_freq_configs[2]; | ||
| 552 | const struct ov08d10_mode sp_modes[3]; | ||
| 553 | }; | ||
| 554 | |||
| 555 | static const struct ov08d10_lane_cfg lane_cfg_2 = { | ||
| 556 | { | ||
| 557 | 720000000, | ||
| 558 | 360000000, | ||
| 559 | }, | ||
| 560 | {{ | ||
| 561 | .reg_list = { | ||
| 562 | .num_of_regs = | ||
| 563 | ARRAY_SIZE(mipi_data_rate_720mbps), | ||
| 564 | .regs = mipi_data_rate_720mbps, | ||
| 565 | } | ||
| 566 | }, | ||
| 567 | { | ||
| 568 | .reg_list = { | ||
| 569 | .num_of_regs = | ||
| 570 | ARRAY_SIZE(mipi_data_rate_360mbps), | ||
| 571 | .regs = mipi_data_rate_360mbps, | ||
| 572 | } | ||
| 573 | }}, | ||
| 574 | {{ | ||
| 575 | .width = 3280, | ||
| 576 | .height = 2460, | ||
| 577 | .hts = 1840, | ||
| 578 | .vts_def = 2504, | ||
| 579 | .vts_min = 2504, | ||
| 580 | .reg_list = { | ||
| 581 | .num_of_regs = ARRAY_SIZE(lane_2_mode_3280x2460), | ||
| 582 | .regs = lane_2_mode_3280x2460, | ||
| 583 | }, | ||
| 584 | .link_freq_index = 0, | ||
| 585 | .data_lanes = 2, | ||
| 586 | }, | ||
| 587 | { | ||
| 588 | .width = 3264, | ||
| 589 | .height = 2448, | ||
| 590 | .hts = 1840, | ||
| 591 | .vts_def = 2504, | ||
| 592 | .vts_min = 2504, | ||
| 593 | .reg_list = { | ||
| 594 | .num_of_regs = ARRAY_SIZE(lane_2_mode_3264x2448), | ||
| 595 | .regs = lane_2_mode_3264x2448, | ||
| 596 | }, | ||
| 597 | .link_freq_index = 0, | ||
| 598 | .data_lanes = 2, | ||
| 599 | }, | ||
| 600 | { | ||
| 601 | .width = 1632, | ||
| 602 | .height = 1224, | ||
| 603 | .hts = 1912, | ||
| 604 | .vts_def = 3736, | ||
| 605 | .vts_min = 3736, | ||
| 606 | .reg_list = { | ||
| 607 | .num_of_regs = ARRAY_SIZE(lane_2_mode_1632x1224), | ||
| 608 | .regs = lane_2_mode_1632x1224, | ||
| 609 | }, | ||
| 610 | .link_freq_index = 1, | ||
| 611 | .data_lanes = 2, | ||
| 612 | }} | ||
| 613 | }; | ||
| 614 | |||
| 615 | static u32 ov08d10_get_format_code(struct ov08d10 *ov08d10) | ||
| 616 | { | ||
| 617 | static const u32 codes[2][2] = { | ||
| 618 | { MEDIA_BUS_FMT_SGRBG10_1X10, MEDIA_BUS_FMT_SRGGB10_1X10}, | ||
| 619 | { MEDIA_BUS_FMT_SBGGR10_1X10, MEDIA_BUS_FMT_SGBRG10_1X10}, | ||
| 620 | }; | ||
| 621 | |||
| 622 | return codes[ov08d10->vflip->val][ov08d10->hflip->val]; | ||
| 623 | } | ||
| 624 | |||
| 625 | static unsigned int ov08d10_modes_num(const struct ov08d10 *ov08d10) | ||
| 626 | { | ||
| 627 | unsigned int i, count = 0; | ||
| 628 | |||
| 629 | for (i = 0; i < ARRAY_SIZE(ov08d10->priv_lane->sp_modes); i++) { | ||
| 630 | if (ov08d10->priv_lane->sp_modes[i].width == 0) | ||
| 631 | break; | ||
| 632 | count++; | ||
| 633 | } | ||
| 634 | |||
| 635 | return count; | ||
| 636 | } | ||
| 637 | |||
| 638 | static u64 to_rate(const s64 *link_freq_menu, | ||
| 639 | u32 f_index, u8 nlanes) | ||
| 640 | { | ||
| 641 | u64 pixel_rate = link_freq_menu[f_index] * 2 * nlanes; | ||
| 642 | |||
| 643 | do_div(pixel_rate, OV08D10_RGB_DEPTH); | ||
| 644 | |||
| 645 | return pixel_rate; | ||
| 646 | } | ||
| 647 | |||
| 648 | static u64 to_pixels_per_line(const s64 *link_freq_menu, u32 hts, | ||
| 649 | u32 f_index, u8 nlanes) | ||
| 650 | { | ||
| 651 | u64 ppl = hts * to_rate(link_freq_menu, f_index, nlanes); | ||
| 652 | |||
| 653 | do_div(ppl, OV08D10_SCLK); | ||
| 654 | |||
| 655 | return ppl; | ||
| 656 | } | ||
| 657 | |||
| 658 | static int ov08d10_write_reg_list(struct ov08d10 *ov08d10, | ||
| 659 | const struct ov08d10_reg_list *r_list) | ||
| 660 | { | ||
| 661 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 662 | unsigned int i; | ||
| 663 | int ret; | ||
| 664 | |||
| 665 | for (i = 0; i < r_list->num_of_regs; i++) { | ||
| 666 | ret = i2c_smbus_write_byte_data(client, r_list->regs[i].address, | ||
| 667 | r_list->regs[i].val); | ||
| 668 | if (ret) { | ||
| 669 | dev_err_ratelimited(&client->dev, | ||
| 670 | "failed to write reg 0x%2.2x. error = %d", | ||
| 671 | r_list->regs[i].address, ret); | ||
| 672 | return ret; | ||
| 673 | } | ||
| 674 | } | ||
| 675 | |||
| 676 | return 0; | ||
| 677 | } | ||
| 678 | |||
| 679 | static int ov08d10_update_analog_gain(struct ov08d10 *ov08d10, u32 a_gain) | ||
| 680 | { | ||
| 681 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 682 | u8 val; | ||
| 683 | int ret; | ||
| 684 | |||
| 685 | val = ((a_gain >> 3) & 0xFF); | ||
| 686 | /* CIS control registers */ | ||
| 687 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 688 | if (ret < 0) | ||
| 689 | return ret; | ||
| 690 | |||
| 691 | /* update AGAIN */ | ||
| 692 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_ANALOG_GAIN, val); | ||
| 693 | if (ret < 0) | ||
| 694 | return ret; | ||
| 695 | |||
| 696 | return i2c_smbus_write_byte_data(client, | ||
| 697 | OV08D10_REG_GLOBAL_EFFECTIVE, 0x01); | ||
| 698 | } | ||
| 699 | |||
| 700 | static int ov08d10_update_digital_gain(struct ov08d10 *ov08d10, u32 d_gain) | ||
| 701 | { | ||
| 702 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 703 | u8 val; | ||
| 704 | int ret; | ||
| 705 | |||
| 706 | d_gain = (d_gain >> 1); | ||
| 707 | /* CIS control registers */ | ||
| 708 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 709 | if (ret < 0) | ||
| 710 | return ret; | ||
| 711 | |||
| 712 | val = ((d_gain >> 8) & 0x3F); | ||
| 713 | /* update DGAIN */ | ||
| 714 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_MWB_DGAIN_C, val); | ||
| 715 | if (ret < 0) | ||
| 716 | return ret; | ||
| 717 | |||
| 718 | val = d_gain & 0xFF; | ||
| 719 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_MWB_DGAIN_F, val); | ||
| 720 | if (ret < 0) | ||
| 721 | return ret; | ||
| 722 | |||
| 723 | return i2c_smbus_write_byte_data(client, | ||
| 724 | OV08D10_REG_GLOBAL_EFFECTIVE, 0x01); | ||
| 725 | } | ||
| 726 | |||
| 727 | static int ov08d10_set_exposure(struct ov08d10 *ov08d10, u32 exposure) | ||
| 728 | { | ||
| 729 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 730 | u8 val; | ||
| 731 | u8 hts_h, hts_l; | ||
| 732 | u32 hts, cur_vts, exp_cal; | ||
| 733 | int ret; | ||
| 734 | |||
| 735 | cur_vts = ov08d10->cur_mode->vts_def; | ||
| 736 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 737 | if (ret < 0) | ||
| 738 | return ret; | ||
| 739 | |||
| 740 | hts_h = i2c_smbus_read_byte_data(client, 0x37); | ||
| 741 | hts_l = i2c_smbus_read_byte_data(client, 0x38); | ||
| 742 | hts = ((hts_h << 8) | (hts_l)); | ||
| 743 | exp_cal = 66 * OV08D10_ROWCLK / hts; | ||
| 744 | exposure = exposure * exp_cal / (cur_vts - OV08D10_EXPOSURE_MAX_MARGIN); | ||
| 745 | /* CIS control registers */ | ||
| 746 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 747 | if (ret < 0) | ||
| 748 | return ret; | ||
| 749 | |||
| 750 | /* update exposure */ | ||
| 751 | val = ((exposure >> 16) & 0xFF); | ||
| 752 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_EXPOSURE_H, val); | ||
| 753 | if (ret < 0) | ||
| 754 | return ret; | ||
| 755 | |||
| 756 | val = ((exposure >> 8) & 0xFF); | ||
| 757 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_EXPOSURE_M, val); | ||
| 758 | if (ret < 0) | ||
| 759 | return ret; | ||
| 760 | |||
| 761 | val = exposure & 0xFF; | ||
| 762 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_EXPOSURE_L, val); | ||
| 763 | if (ret < 0) | ||
| 764 | return ret; | ||
| 765 | |||
| 766 | return i2c_smbus_write_byte_data(client, | ||
| 767 | OV08D10_REG_GLOBAL_EFFECTIVE, 0x01); | ||
| 768 | } | ||
| 769 | |||
| 770 | static int ov08d10_set_vblank(struct ov08d10 *ov08d10, u32 vblank) | ||
| 771 | { | ||
| 772 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 773 | u8 val; | ||
| 774 | int ret; | ||
| 775 | |||
| 776 | /* CIS control registers */ | ||
| 777 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 778 | if (ret < 0) | ||
| 779 | return ret; | ||
| 780 | |||
| 781 | val = ((vblank >> 8) & 0xFF); | ||
| 782 | /* update vblank */ | ||
| 783 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_VTS_H, val); | ||
| 784 | if (ret < 0) | ||
| 785 | return ret; | ||
| 786 | |||
| 787 | val = vblank & 0xFF; | ||
| 788 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_VTS_L, val); | ||
| 789 | if (ret < 0) | ||
| 790 | return ret; | ||
| 791 | |||
| 792 | return i2c_smbus_write_byte_data(client, | ||
| 793 | OV08D10_REG_GLOBAL_EFFECTIVE, 0x01); | ||
| 794 | } | ||
| 795 | |||
| 796 | static int ov08d10_test_pattern(struct ov08d10 *ov08d10, u32 pattern) | ||
| 797 | { | ||
| 798 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 799 | u8 val; | ||
| 800 | int ret; | ||
| 801 | |||
| 802 | if (pattern) | ||
| 803 | val = OV08D10_TEST_PATTERN_ENABLE; | ||
| 804 | else | ||
| 805 | val = OV08D10_TEST_PATTERN_DISABLE; | ||
| 806 | |||
| 807 | /* CIS control registers */ | ||
| 808 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 809 | if (ret < 0) | ||
| 810 | return ret; | ||
| 811 | |||
| 812 | ret = i2c_smbus_write_byte_data(client, | ||
| 813 | OV08D10_REG_TEST_PATTERN, val); | ||
| 814 | if (ret < 0) | ||
| 815 | return ret; | ||
| 816 | |||
| 817 | return i2c_smbus_write_byte_data(client, | ||
| 818 | OV08D10_REG_GLOBAL_EFFECTIVE, 0x01); | ||
| 819 | } | ||
| 820 | |||
| 821 | static int ov08d10_set_ctrl_flip(struct ov08d10 *ov08d10, u32 ctrl_val) | ||
| 822 | { | ||
| 823 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 824 | u8 val; | ||
| 825 | int ret; | ||
| 826 | |||
| 827 | /* System control registers */ | ||
| 828 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 829 | if (ret < 0) | ||
| 830 | return ret; | ||
| 831 | |||
| 832 | ret = i2c_smbus_read_byte_data(client, OV08D10_REG_FLIP_OPT); | ||
| 833 | if (ret < 0) | ||
| 834 | return ret; | ||
| 835 | |||
| 836 | val = ret | (ctrl_val & OV08D10_REG_FLIP_MASK); | ||
| 837 | |||
| 838 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 839 | if (ret < 0) | ||
| 840 | return ret; | ||
| 841 | |||
| 842 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_FLIP_OPT, val); | ||
| 843 | |||
| 844 | if (ret < 0) | ||
| 845 | return ret; | ||
| 846 | |||
| 847 | return i2c_smbus_write_byte_data(client, | ||
| 848 | OV08D10_REG_GLOBAL_EFFECTIVE, 0x01); | ||
| 849 | } | ||
| 850 | |||
| 851 | static int ov08d10_set_ctrl(struct v4l2_ctrl *ctrl) | ||
| 852 | { | ||
| 853 | struct ov08d10 *ov08d10 = container_of(ctrl->handler, | ||
| 854 | struct ov08d10, ctrl_handler); | ||
| 855 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 856 | s64 exposure_max; | ||
| 857 | int ret; | ||
| 858 | |||
| 859 | /* Propagate change of current control to all related controls */ | ||
| 860 | if (ctrl->id == V4L2_CID_VBLANK) { | ||
| 861 | /* Update max exposure while meeting expected vblanking */ | ||
| 862 | exposure_max = ov08d10->cur_mode->height + ctrl->val - | ||
| 863 | OV08D10_EXPOSURE_MAX_MARGIN; | ||
| 864 | __v4l2_ctrl_modify_range(ov08d10->exposure, | ||
| 865 | ov08d10->exposure->minimum, | ||
| 866 | exposure_max, ov08d10->exposure->step, | ||
| 867 | exposure_max); | ||
| 868 | } | ||
| 869 | |||
| 870 | /* V4L2 controls values will be applied only when power is already up */ | ||
| 871 | if (!pm_runtime_get_if_in_use(&client->dev)) | ||
| 872 | return 0; | ||
| 873 | |||
| 874 | switch (ctrl->id) { | ||
| 875 | case V4L2_CID_ANALOGUE_GAIN: | ||
| 876 | ret = ov08d10_update_analog_gain(ov08d10, ctrl->val); | ||
| 877 | break; | ||
| 878 | |||
| 879 | case V4L2_CID_DIGITAL_GAIN: | ||
| 880 | ret = ov08d10_update_digital_gain(ov08d10, ctrl->val); | ||
| 881 | break; | ||
| 882 | |||
| 883 | case V4L2_CID_EXPOSURE: | ||
| 884 | ret = ov08d10_set_exposure(ov08d10, ctrl->val); | ||
| 885 | break; | ||
| 886 | |||
| 887 | case V4L2_CID_VBLANK: | ||
| 888 | ret = ov08d10_set_vblank(ov08d10, ctrl->val); | ||
| 889 | break; | ||
| 890 | |||
| 891 | case V4L2_CID_TEST_PATTERN: | ||
| 892 | ret = ov08d10_test_pattern(ov08d10, ctrl->val); | ||
| 893 | break; | ||
| 894 | |||
| 895 | case V4L2_CID_HFLIP: | ||
| 896 | case V4L2_CID_VFLIP: | ||
| 897 | ret = ov08d10_set_ctrl_flip(ov08d10, | ||
| 898 | ov08d10->hflip->val | | ||
| 899 | ov08d10->vflip->val << 1); | ||
| 900 | break; | ||
| 901 | |||
| 902 | default: | ||
| 903 | ret = -EINVAL; | ||
| 904 | break; | ||
| 905 | } | ||
| 906 | |||
| 907 | pm_runtime_put(&client->dev); | ||
| 908 | |||
| 909 | return ret; | ||
| 910 | } | ||
| 911 | |||
| 912 | static const struct v4l2_ctrl_ops ov08d10_ctrl_ops = { | ||
| 913 | .s_ctrl = ov08d10_set_ctrl, | ||
| 914 | }; | ||
| 915 | |||
| 916 | static int ov08d10_init_controls(struct ov08d10 *ov08d10) | ||
| 917 | { | ||
| 918 | struct v4l2_ctrl_handler *ctrl_hdlr; | ||
| 919 | u8 link_freq_size; | ||
| 920 | s64 exposure_max; | ||
| 921 | s64 vblank_def; | ||
| 922 | s64 vblank_min; | ||
| 923 | s64 h_blank; | ||
| 924 | s64 pixel_rate_max; | ||
| 925 | const struct ov08d10_mode *mode; | ||
| 926 | int ret; | ||
| 927 | |||
| 928 | ctrl_hdlr = &ov08d10->ctrl_handler; | ||
| 929 | ret = v4l2_ctrl_handler_init(ctrl_hdlr, 8); | ||
| 930 | if (ret) | ||
| 931 | return ret; | ||
| 932 | |||
| 933 | ctrl_hdlr->lock = &ov08d10->mutex; | ||
| 934 | link_freq_size = ARRAY_SIZE(ov08d10->priv_lane->link_freq_menu); | ||
| 935 | ov08d10->link_freq = | ||
| 936 | v4l2_ctrl_new_int_menu(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 937 | V4L2_CID_LINK_FREQ, | ||
| 938 | link_freq_size - 1, | ||
| 939 | 0, | ||
| 940 | ov08d10->priv_lane->link_freq_menu); | ||
| 941 | if (ov08d10->link_freq) | ||
| 942 | ov08d10->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; | ||
| 943 | |||
| 944 | pixel_rate_max = to_rate(ov08d10->priv_lane->link_freq_menu, 0, | ||
| 945 | ov08d10->cur_mode->data_lanes); | ||
| 946 | ov08d10->pixel_rate = | ||
| 947 | v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 948 | V4L2_CID_PIXEL_RATE, 0, pixel_rate_max, 1, | ||
| 949 | pixel_rate_max); | ||
| 950 | |||
| 951 | mode = ov08d10->cur_mode; | ||
| 952 | vblank_def = mode->vts_def - mode->height; | ||
| 953 | vblank_min = mode->vts_min - mode->height; | ||
| 954 | ov08d10->vblank = | ||
| 955 | v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 956 | V4L2_CID_VBLANK, vblank_min, | ||
| 957 | OV08D10_VTS_MAX - mode->height, 1, | ||
| 958 | vblank_def); | ||
| 959 | |||
| 960 | h_blank = to_pixels_per_line(ov08d10->priv_lane->link_freq_menu, | ||
| 961 | mode->hts, mode->link_freq_index, | ||
| 962 | mode->data_lanes) - | ||
| 963 | mode->width; | ||
| 964 | ov08d10->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 965 | V4L2_CID_HBLANK, h_blank, h_blank, | ||
| 966 | 1, h_blank); | ||
| 967 | if (ov08d10->hblank) | ||
| 968 | ov08d10->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; | ||
| 969 | |||
| 970 | v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, V4L2_CID_ANALOGUE_GAIN, | ||
| 971 | OV08D10_ANAL_GAIN_MIN, OV08D10_ANAL_GAIN_MAX, | ||
| 972 | OV08D10_ANAL_GAIN_STEP, OV08D10_ANAL_GAIN_MIN); | ||
| 973 | |||
| 974 | v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, V4L2_CID_DIGITAL_GAIN, | ||
| 975 | OV08D10_DGTL_GAIN_MIN, OV08D10_DGTL_GAIN_MAX, | ||
| 976 | OV08D10_DGTL_GAIN_STEP, OV08D10_DGTL_GAIN_DEFAULT); | ||
| 977 | |||
| 978 | exposure_max = mode->vts_def - OV08D10_EXPOSURE_MAX_MARGIN; | ||
| 979 | ov08d10->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 980 | V4L2_CID_EXPOSURE, | ||
| 981 | OV08D10_EXPOSURE_MIN, | ||
| 982 | exposure_max, | ||
| 983 | OV08D10_EXPOSURE_STEP, | ||
| 984 | exposure_max); | ||
| 985 | |||
| 986 | v4l2_ctrl_new_std_menu_items(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 987 | V4L2_CID_TEST_PATTERN, | ||
| 988 | ARRAY_SIZE(ov08d10_test_pattern_menu) - 1, | ||
| 989 | 0, 0, ov08d10_test_pattern_menu); | ||
| 990 | |||
| 991 | ov08d10->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 992 | V4L2_CID_HFLIP, 0, 1, 1, 0); | ||
| 993 | ov08d10->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, | ||
| 994 | V4L2_CID_VFLIP, 0, 1, 1, 0); | ||
| 995 | if (ctrl_hdlr->error) | ||
| 996 | return ctrl_hdlr->error; | ||
| 997 | |||
| 998 | ov08d10->sd.ctrl_handler = ctrl_hdlr; | ||
| 999 | |||
| 1000 | return 0; | ||
| 1001 | } | ||
| 1002 | |||
| 1003 | static void ov08d10_update_pad_format(struct ov08d10 *ov08d10, | ||
| 1004 | const struct ov08d10_mode *mode, | ||
| 1005 | struct v4l2_mbus_framefmt *fmt) | ||
| 1006 | { | ||
| 1007 | fmt->width = mode->width; | ||
| 1008 | fmt->height = mode->height; | ||
| 1009 | fmt->code = ov08d10_get_format_code(ov08d10); | ||
| 1010 | fmt->field = V4L2_FIELD_NONE; | ||
| 1011 | } | ||
| 1012 | |||
| 1013 | static int ov08d10_start_streaming(struct ov08d10 *ov08d10) | ||
| 1014 | { | ||
| 1015 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 1016 | const struct ov08d10_reg_list *reg_list; | ||
| 1017 | int link_freq_index, ret; | ||
| 1018 | |||
| 1019 | link_freq_index = ov08d10->cur_mode->link_freq_index; | ||
| 1020 | reg_list = | ||
| 1021 | &ov08d10->priv_lane->link_freq_configs[link_freq_index].reg_list; | ||
| 1022 | |||
| 1023 | /* soft reset */ | ||
| 1024 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x00); | ||
| 1025 | if (ret < 0) { | ||
| 1026 | dev_err(&client->dev, "failed to reset sensor"); | ||
| 1027 | return ret; | ||
| 1028 | } | ||
| 1029 | ret = i2c_smbus_write_byte_data(client, 0x20, 0x0e); | ||
| 1030 | if (ret < 0) { | ||
| 1031 | dev_err(&client->dev, "failed to reset sensor"); | ||
| 1032 | return ret; | ||
| 1033 | } | ||
| 1034 | usleep_range(3000, 4000); | ||
| 1035 | ret = i2c_smbus_write_byte_data(client, 0x20, 0x0b); | ||
| 1036 | if (ret < 0) { | ||
| 1037 | dev_err(&client->dev, "failed to reset sensor"); | ||
| 1038 | return ret; | ||
| 1039 | } | ||
| 1040 | |||
| 1041 | /* update sensor setting */ | ||
| 1042 | ret = ov08d10_write_reg_list(ov08d10, reg_list); | ||
| 1043 | if (ret) { | ||
| 1044 | dev_err(&client->dev, "failed to set plls"); | ||
| 1045 | return ret; | ||
| 1046 | } | ||
| 1047 | |||
| 1048 | reg_list = &ov08d10->cur_mode->reg_list; | ||
| 1049 | ret = ov08d10_write_reg_list(ov08d10, reg_list); | ||
| 1050 | if (ret) { | ||
| 1051 | dev_err(&client->dev, "failed to set mode"); | ||
| 1052 | return ret; | ||
| 1053 | } | ||
| 1054 | |||
| 1055 | ret = __v4l2_ctrl_handler_setup(ov08d10->sd.ctrl_handler); | ||
| 1056 | if (ret) | ||
| 1057 | return ret; | ||
| 1058 | |||
| 1059 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x00); | ||
| 1060 | if (ret < 0) | ||
| 1061 | return ret; | ||
| 1062 | |||
| 1063 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_MODE_SELECT, | ||
| 1064 | OV08D10_MODE_STREAMING); | ||
| 1065 | if (ret < 0) | ||
| 1066 | return ret; | ||
| 1067 | |||
| 1068 | return i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 1069 | } | ||
| 1070 | |||
| 1071 | static void ov08d10_stop_streaming(struct ov08d10 *ov08d10) | ||
| 1072 | { | ||
| 1073 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 1074 | int ret; | ||
| 1075 | |||
| 1076 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x00); | ||
| 1077 | if (ret < 0) { | ||
| 1078 | dev_err(&client->dev, "failed to stop streaming"); | ||
| 1079 | return; | ||
| 1080 | } | ||
| 1081 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_MODE_SELECT, | ||
| 1082 | OV08D10_MODE_STANDBY); | ||
| 1083 | if (ret < 0) { | ||
| 1084 | dev_err(&client->dev, "failed to stop streaming"); | ||
| 1085 | return; | ||
| 1086 | } | ||
| 1087 | |||
| 1088 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01); | ||
| 1089 | if (ret < 0) { | ||
| 1090 | dev_err(&client->dev, "failed to stop streaming"); | ||
| 1091 | return; | ||
| 1092 | } | ||
| 1093 | } | ||
| 1094 | |||
| 1095 | static int ov08d10_set_stream(struct v4l2_subdev *sd, int enable) | ||
| 1096 | { | ||
| 1097 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1098 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 1099 | int ret = 0; | ||
| 1100 | |||
| 1101 | if (ov08d10->streaming == enable) | ||
| 1102 | return 0; | ||
| 1103 | |||
| 1104 | mutex_lock(&ov08d10->mutex); | ||
| 1105 | if (enable) { | ||
| 1106 | ret = pm_runtime_resume_and_get(&client->dev); | ||
| 1107 | if (ret < 0) { | ||
| 1108 | mutex_unlock(&ov08d10->mutex); | ||
| 1109 | return ret; | ||
| 1110 | } | ||
| 1111 | |||
| 1112 | ret = ov08d10_start_streaming(ov08d10); | ||
| 1113 | if (ret) { | ||
| 1114 | enable = 0; | ||
| 1115 | ov08d10_stop_streaming(ov08d10); | ||
| 1116 | pm_runtime_put(&client->dev); | ||
| 1117 | } | ||
| 1118 | } else { | ||
| 1119 | ov08d10_stop_streaming(ov08d10); | ||
| 1120 | pm_runtime_put(&client->dev); | ||
| 1121 | } | ||
| 1122 | |||
| 1123 | ov08d10->streaming = enable; | ||
| 1124 | |||
| 1125 | /* vflip and hflip cannot change during streaming */ | ||
| 1126 | __v4l2_ctrl_grab(ov08d10->vflip, enable); | ||
| 1127 | __v4l2_ctrl_grab(ov08d10->hflip, enable); | ||
| 1128 | |||
| 1129 | mutex_unlock(&ov08d10->mutex); | ||
| 1130 | |||
| 1131 | return ret; | ||
| 1132 | } | ||
| 1133 | |||
| 1134 | static int __maybe_unused ov08d10_suspend(struct device *dev) | ||
| 1135 | { | ||
| 1136 | struct i2c_client *client = to_i2c_client(dev); | ||
| 1137 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 1138 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1139 | |||
| 1140 | mutex_lock(&ov08d10->mutex); | ||
| 1141 | if (ov08d10->streaming) | ||
| 1142 | ov08d10_stop_streaming(ov08d10); | ||
| 1143 | |||
| 1144 | mutex_unlock(&ov08d10->mutex); | ||
| 1145 | |||
| 1146 | return 0; | ||
| 1147 | } | ||
| 1148 | |||
| 1149 | static int __maybe_unused ov08d10_resume(struct device *dev) | ||
| 1150 | { | ||
| 1151 | struct i2c_client *client = to_i2c_client(dev); | ||
| 1152 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 1153 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1154 | int ret; | ||
| 1155 | |||
| 1156 | mutex_lock(&ov08d10->mutex); | ||
| 1157 | |||
| 1158 | if (ov08d10->streaming) { | ||
| 1159 | ret = ov08d10_start_streaming(ov08d10); | ||
| 1160 | if (ret) { | ||
| 1161 | ov08d10->streaming = false; | ||
| 1162 | ov08d10_stop_streaming(ov08d10); | ||
| 1163 | mutex_unlock(&ov08d10->mutex); | ||
| 1164 | return ret; | ||
| 1165 | } | ||
| 1166 | } | ||
| 1167 | |||
| 1168 | mutex_unlock(&ov08d10->mutex); | ||
| 1169 | |||
| 1170 | return 0; | ||
| 1171 | } | ||
| 1172 | |||
| 1173 | static int ov08d10_set_format(struct v4l2_subdev *sd, | ||
| 1174 | struct v4l2_subdev_state *sd_state, | ||
| 1175 | struct v4l2_subdev_format *fmt) | ||
| 1176 | { | ||
| 1177 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1178 | const struct ov08d10_mode *mode; | ||
| 1179 | s32 vblank_def, h_blank; | ||
| 1180 | s64 pixel_rate; | ||
| 1181 | |||
| 1182 | mode = v4l2_find_nearest_size(ov08d10->priv_lane->sp_modes, | ||
| 1183 | ov08d10->modes_size, | ||
| 1184 | width, height, fmt->format.width, | ||
| 1185 | fmt->format.height); | ||
| 1186 | |||
| 1187 | mutex_lock(&ov08d10->mutex); | ||
| 1188 | ov08d10_update_pad_format(ov08d10, mode, &fmt->format); | ||
| 1189 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { | ||
| 1190 | *v4l2_subdev_get_try_format(sd, sd_state, fmt->pad) = | ||
| 1191 | fmt->format; | ||
| 1192 | } else { | ||
| 1193 | ov08d10->cur_mode = mode; | ||
| 1194 | __v4l2_ctrl_s_ctrl(ov08d10->link_freq, mode->link_freq_index); | ||
| 1195 | pixel_rate = to_rate(ov08d10->priv_lane->link_freq_menu, | ||
| 1196 | mode->link_freq_index, | ||
| 1197 | ov08d10->cur_mode->data_lanes); | ||
| 1198 | __v4l2_ctrl_s_ctrl_int64(ov08d10->pixel_rate, pixel_rate); | ||
| 1199 | |||
| 1200 | /* Update limits and set FPS to default */ | ||
| 1201 | vblank_def = mode->vts_def - mode->height; | ||
| 1202 | __v4l2_ctrl_modify_range(ov08d10->vblank, | ||
| 1203 | mode->vts_min - mode->height, | ||
| 1204 | OV08D10_VTS_MAX - mode->height, 1, | ||
| 1205 | vblank_def); | ||
| 1206 | __v4l2_ctrl_s_ctrl(ov08d10->vblank, vblank_def); | ||
| 1207 | h_blank = to_pixels_per_line(ov08d10->priv_lane->link_freq_menu, | ||
| 1208 | mode->hts, | ||
| 1209 | mode->link_freq_index, | ||
| 1210 | ov08d10->cur_mode->data_lanes) | ||
| 1211 | - mode->width; | ||
| 1212 | __v4l2_ctrl_modify_range(ov08d10->hblank, h_blank, h_blank, 1, | ||
| 1213 | h_blank); | ||
| 1214 | } | ||
| 1215 | |||
| 1216 | mutex_unlock(&ov08d10->mutex); | ||
| 1217 | |||
| 1218 | return 0; | ||
| 1219 | } | ||
| 1220 | |||
| 1221 | static int ov08d10_get_format(struct v4l2_subdev *sd, | ||
| 1222 | struct v4l2_subdev_state *sd_state, | ||
| 1223 | struct v4l2_subdev_format *fmt) | ||
| 1224 | { | ||
| 1225 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1226 | |||
| 1227 | mutex_lock(&ov08d10->mutex); | ||
| 1228 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) | ||
| 1229 | fmt->format = *v4l2_subdev_get_try_format(&ov08d10->sd, | ||
| 1230 | sd_state, | ||
| 1231 | fmt->pad); | ||
| 1232 | else | ||
| 1233 | ov08d10_update_pad_format(ov08d10, ov08d10->cur_mode, | ||
| 1234 | &fmt->format); | ||
| 1235 | |||
| 1236 | mutex_unlock(&ov08d10->mutex); | ||
| 1237 | |||
| 1238 | return 0; | ||
| 1239 | } | ||
| 1240 | |||
| 1241 | static int ov08d10_enum_mbus_code(struct v4l2_subdev *sd, | ||
| 1242 | struct v4l2_subdev_state *sd_state, | ||
| 1243 | struct v4l2_subdev_mbus_code_enum *code) | ||
| 1244 | { | ||
| 1245 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1246 | |||
| 1247 | if (code->index > 0) | ||
| 1248 | return -EINVAL; | ||
| 1249 | |||
| 1250 | mutex_lock(&ov08d10->mutex); | ||
| 1251 | code->code = ov08d10_get_format_code(ov08d10); | ||
| 1252 | mutex_unlock(&ov08d10->mutex); | ||
| 1253 | |||
| 1254 | return 0; | ||
| 1255 | } | ||
| 1256 | |||
| 1257 | static int ov08d10_enum_frame_size(struct v4l2_subdev *sd, | ||
| 1258 | struct v4l2_subdev_state *sd_state, | ||
| 1259 | struct v4l2_subdev_frame_size_enum *fse) | ||
| 1260 | { | ||
| 1261 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1262 | |||
| 1263 | if (fse->index >= ov08d10->modes_size) | ||
| 1264 | return -EINVAL; | ||
| 1265 | |||
| 1266 | mutex_lock(&ov08d10->mutex); | ||
| 1267 | if (fse->code != ov08d10_get_format_code(ov08d10)) { | ||
| 1268 | mutex_unlock(&ov08d10->mutex); | ||
| 1269 | return -EINVAL; | ||
| 1270 | } | ||
| 1271 | mutex_unlock(&ov08d10->mutex); | ||
| 1272 | |||
| 1273 | fse->min_width = ov08d10->priv_lane->sp_modes[fse->index].width; | ||
| 1274 | fse->max_width = fse->min_width; | ||
| 1275 | fse->min_height = ov08d10->priv_lane->sp_modes[fse->index].height; | ||
| 1276 | fse->max_height = fse->min_height; | ||
| 1277 | |||
| 1278 | return 0; | ||
| 1279 | } | ||
| 1280 | |||
| 1281 | static int ov08d10_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) | ||
| 1282 | { | ||
| 1283 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1284 | |||
| 1285 | mutex_lock(&ov08d10->mutex); | ||
| 1286 | ov08d10_update_pad_format(ov08d10, &ov08d10->priv_lane->sp_modes[0], | ||
| 1287 | v4l2_subdev_get_try_format(sd, fh->state, 0)); | ||
| 1288 | mutex_unlock(&ov08d10->mutex); | ||
| 1289 | |||
| 1290 | return 0; | ||
| 1291 | } | ||
| 1292 | |||
| 1293 | static const struct v4l2_subdev_video_ops ov08d10_video_ops = { | ||
| 1294 | .s_stream = ov08d10_set_stream, | ||
| 1295 | }; | ||
| 1296 | |||
| 1297 | static const struct v4l2_subdev_pad_ops ov08d10_pad_ops = { | ||
| 1298 | .set_fmt = ov08d10_set_format, | ||
| 1299 | .get_fmt = ov08d10_get_format, | ||
| 1300 | .enum_mbus_code = ov08d10_enum_mbus_code, | ||
| 1301 | .enum_frame_size = ov08d10_enum_frame_size, | ||
| 1302 | }; | ||
| 1303 | |||
| 1304 | static const struct v4l2_subdev_ops ov08d10_subdev_ops = { | ||
| 1305 | .video = &ov08d10_video_ops, | ||
| 1306 | .pad = &ov08d10_pad_ops, | ||
| 1307 | }; | ||
| 1308 | |||
| 1309 | static const struct v4l2_subdev_internal_ops ov08d10_internal_ops = { | ||
| 1310 | .open = ov08d10_open, | ||
| 1311 | }; | ||
| 1312 | |||
| 1313 | static int ov08d10_identify_module(struct ov08d10 *ov08d10) | ||
| 1314 | { | ||
| 1315 | struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd); | ||
| 1316 | u32 val; | ||
| 1317 | u16 chip_id; | ||
| 1318 | int ret; | ||
| 1319 | |||
| 1320 | /* System control registers */ | ||
| 1321 | ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x00); | ||
| 1322 | if (ret < 0) | ||
| 1323 | return ret; | ||
| 1324 | |||
| 1325 | /* Validate the chip ID */ | ||
| 1326 | ret = i2c_smbus_read_byte_data(client, OV08D10_REG_CHIP_ID_0); | ||
| 1327 | if (ret < 0) | ||
| 1328 | return ret; | ||
| 1329 | |||
| 1330 | val = ret << 8; | ||
| 1331 | |||
| 1332 | ret = i2c_smbus_read_byte_data(client, OV08D10_REG_CHIP_ID_1); | ||
| 1333 | if (ret < 0) | ||
| 1334 | return ret; | ||
| 1335 | |||
| 1336 | chip_id = val | ret; | ||
| 1337 | |||
| 1338 | if ((chip_id & OV08D10_ID_MASK) != OV08D10_CHIP_ID) { | ||
| 1339 | dev_err(&client->dev, "unexpected sensor id(0x%04x)\n", | ||
| 1340 | chip_id); | ||
| 1341 | return -EINVAL; | ||
| 1342 | } | ||
| 1343 | |||
| 1344 | return 0; | ||
| 1345 | } | ||
| 1346 | |||
| 1347 | static int ov08d10_get_hwcfg(struct ov08d10 *ov08d10, struct device *dev) | ||
| 1348 | { | ||
| 1349 | struct fwnode_handle *ep; | ||
| 1350 | struct fwnode_handle *fwnode = dev_fwnode(dev); | ||
| 1351 | struct v4l2_fwnode_endpoint bus_cfg = { | ||
| 1352 | .bus_type = V4L2_MBUS_CSI2_DPHY | ||
| 1353 | }; | ||
| 1354 | u32 xvclk_rate; | ||
| 1355 | unsigned int i, j; | ||
| 1356 | int ret; | ||
| 1357 | |||
| 1358 | if (!fwnode) | ||
| 1359 | return -ENXIO; | ||
| 1360 | |||
| 1361 | ret = fwnode_property_read_u32(fwnode, "clock-frequency", &xvclk_rate); | ||
| 1362 | if (ret) | ||
| 1363 | return ret; | ||
| 1364 | |||
| 1365 | if (xvclk_rate != OV08D10_XVCLK_19_2) | ||
| 1366 | dev_warn(dev, "external clock rate %u is unsupported", | ||
| 1367 | xvclk_rate); | ||
| 1368 | |||
| 1369 | ep = fwnode_graph_get_next_endpoint(fwnode, NULL); | ||
| 1370 | if (!ep) | ||
| 1371 | return -ENXIO; | ||
| 1372 | |||
| 1373 | ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); | ||
| 1374 | fwnode_handle_put(ep); | ||
| 1375 | if (ret) | ||
| 1376 | return ret; | ||
| 1377 | |||
| 1378 | /* Get number of data lanes */ | ||
| 1379 | if (bus_cfg.bus.mipi_csi2.num_data_lanes != 2) { | ||
| 1380 | dev_err(dev, "number of CSI2 data lanes %d is not supported", | ||
| 1381 | bus_cfg.bus.mipi_csi2.num_data_lanes); | ||
| 1382 | ret = -EINVAL; | ||
| 1383 | goto check_hwcfg_error; | ||
| 1384 | } | ||
| 1385 | |||
| 1386 | dev_dbg(dev, "Using %u data lanes\n", ov08d10->cur_mode->data_lanes); | ||
| 1387 | |||
| 1388 | ov08d10->priv_lane = &lane_cfg_2; | ||
| 1389 | ov08d10->modes_size = ov08d10_modes_num(ov08d10); | ||
| 1390 | |||
| 1391 | if (!bus_cfg.nr_of_link_frequencies) { | ||
| 1392 | dev_err(dev, "no link frequencies defined"); | ||
| 1393 | ret = -EINVAL; | ||
| 1394 | goto check_hwcfg_error; | ||
| 1395 | } | ||
| 1396 | |||
| 1397 | for (i = 0; i < ARRAY_SIZE(ov08d10->priv_lane->link_freq_menu); i++) { | ||
| 1398 | for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { | ||
| 1399 | if (ov08d10->priv_lane->link_freq_menu[i] == | ||
| 1400 | bus_cfg.link_frequencies[j]) | ||
| 1401 | break; | ||
| 1402 | } | ||
| 1403 | |||
| 1404 | if (j == bus_cfg.nr_of_link_frequencies) { | ||
| 1405 | dev_err(dev, "no link frequency %lld supported", | ||
| 1406 | ov08d10->priv_lane->link_freq_menu[i]); | ||
| 1407 | ret = -EINVAL; | ||
| 1408 | goto check_hwcfg_error; | ||
| 1409 | } | ||
| 1410 | } | ||
| 1411 | |||
| 1412 | check_hwcfg_error: | ||
| 1413 | v4l2_fwnode_endpoint_free(&bus_cfg); | ||
| 1414 | |||
| 1415 | return ret; | ||
| 1416 | } | ||
| 1417 | |||
| 1418 | static int ov08d10_remove(struct i2c_client *client) | ||
| 1419 | { | ||
| 1420 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | ||
| 1421 | struct ov08d10 *ov08d10 = to_ov08d10(sd); | ||
| 1422 | |||
| 1423 | v4l2_async_unregister_subdev(sd); | ||
| 1424 | media_entity_cleanup(&sd->entity); | ||
| 1425 | v4l2_ctrl_handler_free(sd->ctrl_handler); | ||
| 1426 | pm_runtime_disable(&client->dev); | ||
| 1427 | mutex_destroy(&ov08d10->mutex); | ||
| 1428 | |||
| 1429 | return 0; | ||
| 1430 | } | ||
| 1431 | |||
| 1432 | static int ov08d10_probe(struct i2c_client *client) | ||
| 1433 | { | ||
| 1434 | struct ov08d10 *ov08d10; | ||
| 1435 | int ret; | ||
| 1436 | |||
| 1437 | ov08d10 = devm_kzalloc(&client->dev, sizeof(*ov08d10), GFP_KERNEL); | ||
| 1438 | if (!ov08d10) | ||
| 1439 | return -ENOMEM; | ||
| 1440 | |||
| 1441 | ret = ov08d10_get_hwcfg(ov08d10, &client->dev); | ||
| 1442 | if (ret) { | ||
| 1443 | dev_err(&client->dev, "failed to get HW configuration: %d", | ||
| 1444 | ret); | ||
| 1445 | return ret; | ||
| 1446 | } | ||
| 1447 | |||
| 1448 | v4l2_i2c_subdev_init(&ov08d10->sd, client, &ov08d10_subdev_ops); | ||
| 1449 | |||
| 1450 | ret = ov08d10_identify_module(ov08d10); | ||
| 1451 | if (ret) { | ||
| 1452 | dev_err(&client->dev, "failed to find sensor: %d", ret); | ||
| 1453 | return ret; | ||
| 1454 | } | ||
| 1455 | |||
| 1456 | mutex_init(&ov08d10->mutex); | ||
| 1457 | ov08d10->cur_mode = &ov08d10->priv_lane->sp_modes[0]; | ||
| 1458 | ret = ov08d10_init_controls(ov08d10); | ||
| 1459 | if (ret) { | ||
| 1460 | dev_err(&client->dev, "failed to init controls: %d", ret); | ||
| 1461 | goto probe_error_v4l2_ctrl_handler_free; | ||
| 1462 | } | ||
| 1463 | |||
| 1464 | ov08d10->sd.internal_ops = &ov08d10_internal_ops; | ||
| 1465 | ov08d10->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; | ||
| 1466 | ov08d10->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; | ||
| 1467 | ov08d10->pad.flags = MEDIA_PAD_FL_SOURCE; | ||
| 1468 | ret = media_entity_pads_init(&ov08d10->sd.entity, 1, &ov08d10->pad); | ||
| 1469 | if (ret) { | ||
| 1470 | dev_err(&client->dev, "failed to init entity pads: %d", ret); | ||
| 1471 | goto probe_error_v4l2_ctrl_handler_free; | ||
| 1472 | } | ||
| 1473 | |||
| 1474 | ret = v4l2_async_register_subdev_sensor(&ov08d10->sd); | ||
| 1475 | if (ret < 0) { | ||
| 1476 | dev_err(&client->dev, "failed to register V4L2 subdev: %d", | ||
| 1477 | ret); | ||
| 1478 | goto probe_error_media_entity_cleanup; | ||
| 1479 | } | ||
| 1480 | |||
| 1481 | /* | ||
| 1482 | * Device is already turned on by i2c-core with ACPI domain PM. | ||
| 1483 | * Enable runtime PM and turn off the device. | ||
| 1484 | */ | ||
| 1485 | pm_runtime_set_active(&client->dev); | ||
| 1486 | pm_runtime_enable(&client->dev); | ||
| 1487 | pm_runtime_idle(&client->dev); | ||
| 1488 | |||
| 1489 | return 0; | ||
| 1490 | |||
| 1491 | probe_error_media_entity_cleanup: | ||
| 1492 | media_entity_cleanup(&ov08d10->sd.entity); | ||
| 1493 | |||
| 1494 | probe_error_v4l2_ctrl_handler_free: | ||
| 1495 | v4l2_ctrl_handler_free(ov08d10->sd.ctrl_handler); | ||
| 1496 | mutex_destroy(&ov08d10->mutex); | ||
| 1497 | |||
| 1498 | return ret; | ||
| 1499 | } | ||
| 1500 | |||
| 1501 | static const struct dev_pm_ops ov08d10_pm_ops = { | ||
| 1502 | SET_SYSTEM_SLEEP_PM_OPS(ov08d10_suspend, ov08d10_resume) | ||
| 1503 | }; | ||
| 1504 | |||
| 1505 | #ifdef CONFIG_ACPI | ||
| 1506 | static const struct acpi_device_id ov08d10_acpi_ids[] = { | ||
| 1507 | { "OVTI08D1" }, | ||
| 1508 | { /* sentinel */ } | ||
| 1509 | }; | ||
| 1510 | |||
| 1511 | MODULE_DEVICE_TABLE(acpi, ov08d10_acpi_ids); | ||
| 1512 | #endif | ||
| 1513 | |||
| 1514 | static struct i2c_driver ov08d10_i2c_driver = { | ||
| 1515 | .driver = { | ||
| 1516 | .name = "ov08d10", | ||
| 1517 | .pm = &ov08d10_pm_ops, | ||
| 1518 | .acpi_match_table = ACPI_PTR(ov08d10_acpi_ids), | ||
| 1519 | }, | ||
| 1520 | .probe_new = ov08d10_probe, | ||
| 1521 | .remove = ov08d10_remove, | ||
| 1522 | }; | ||
| 1523 | |||
| 1524 | module_i2c_driver(ov08d10_i2c_driver); | ||
| 1525 | |||
| 1526 | MODULE_AUTHOR("Su, Jimmy <jimmy.su@intel.com>"); | ||
| 1527 | MODULE_DESCRIPTION("OmniVision ov08d10 sensor driver"); | ||
| 1528 | MODULE_LICENSE("GPL v2"); | ||
| @@ -1162,6 +1162,7 @@ static int ov2740_probe(struct i2c_client *client) · 1161 unmodified lines | |||
| 1162 | if (!ov2740) | 1162 | if (!ov2740) |
| 1163 | return -ENOMEM; | 1163 | return -ENOMEM; |
| 1164 | 1164 | ||
| 1165 | v4l2_i2c_subdev_init(&ov2740->sd, client, &ov2740_subdev_ops); | ||
| 1165 | full_power = acpi_dev_state_d0(&client->dev); | 1166 | full_power = acpi_dev_state_d0(&client->dev); |
| 1166 | if (full_power) { | 1167 | if (full_power) { |
| 1167 | ret = ov2740_identify_module(ov2740); | 1168 | ret = ov2740_identify_module(ov2740); |
| @@ -1171,13 +1172,6 @@ static int ov2740_probe(struct i2c_client *client) · 3 unmodified lines | |||
| 1171 | } | 1172 | } |
| 1172 | } | 1173 | } |
| 1173 | 1174 | ||
| 1174 | v4l2_i2c_subdev_init(&ov2740->sd, client, &ov2740_subdev_ops); | ||
| 1175 | ret = ov2740_identify_module(ov2740); | ||
| 1176 | if (ret) { | ||
| 1177 | dev_err(&client->dev, "failed to find sensor: %d", ret); | ||
| 1178 | return ret; | ||
| 1179 | } | ||
| 1180 | |||
| 1181 | mutex_init(&ov2740->mutex); | 1175 | mutex_init(&ov2740->mutex); |
| 1182 | ov2740->cur_mode = &supported_modes[0]; | 1176 | ov2740->cur_mode = &supported_modes[0]; |
| 1183 | ret = ov2740_init_controls(ov2740); | 1177 | ret = ov2740_init_controls(ov2740); |
| @@ -2293,7 +2293,6 @@ static int ov5640_set_fmt(struct v4l2_subdev *sd, · 2292 unmodified lines | |||
| 2293 | struct ov5640_dev *sensor = to_ov5640_dev(sd); | 2293 | struct ov5640_dev *sensor = to_ov5640_dev(sd); |
| 2294 | const struct ov5640_mode_info *new_mode; | 2294 | const struct ov5640_mode_info *new_mode; |
| 2295 | struct v4l2_mbus_framefmt *mbus_fmt = &format->format; | 2295 | struct v4l2_mbus_framefmt *mbus_fmt = &format->format; |
| 2296 | struct v4l2_mbus_framefmt *fmt; | ||
| 2297 | int ret; | 2296 | int ret; |
| 2298 | 2297 | ||
| 2299 | if (format->pad != 0) | 2298 | if (format->pad != 0) |
| @@ -2311,12 +2310,10 @@ static int ov5640_set_fmt(struct v4l2_subdev *sd, · 11 unmodified lines | |||
| 2311 | if (ret) | 2310 | if (ret) |
| 2312 | goto out; | 2311 | goto out; |
| 2313 | 2312 | ||
| 2314 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) | 2313 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) { |
| 2315 | fmt = v4l2_subdev_get_try_format(sd, sd_state, 0); | 2314 | *v4l2_subdev_get_try_format(sd, sd_state, 0) = *mbus_fmt; |
| 2316 | else | 2315 | goto out; |
| 2317 | fmt = &sensor->fmt; | 2316 | } |
| 2318 | |||
| 2319 | *fmt = *mbus_fmt; | ||
| 2320 | 2317 | ||
| 2321 | if (new_mode != sensor->current_mode) { | 2318 | if (new_mode != sensor->current_mode) { |
| 2322 | sensor->current_mode = new_mode; | 2319 | sensor->current_mode = new_mode; |
| @@ -2325,6 +2322,9 @@ static int ov5640_set_fmt(struct v4l2_subdev *sd, · 2 unmodified lines | |||
| 2325 | if (mbus_fmt->code != sensor->fmt.code) | 2322 | if (mbus_fmt->code != sensor->fmt.code) |
| 2326 | sensor->pending_fmt_change = true; | 2323 | sensor->pending_fmt_change = true; |
| 2327 | 2324 | ||
| 2325 | /* update format even if code is unchanged, resolution might change */ | ||
| 2326 | sensor->fmt = *mbus_fmt; | ||
| 2327 | |||
| 2328 | __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, | 2328 | __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, |
| 2329 | ov5640_calc_pixel_rate(sensor)); | 2329 | ov5640_calc_pixel_rate(sensor)); |
| 2330 | out: | 2330 | out: |
| @@ -639,7 +639,7 @@ struct ov5648_ctrls { · 638 unmodified lines | |||
| 639 | struct v4l2_ctrl *pixel_rate; | 639 | struct v4l2_ctrl *pixel_rate; |
| 640 | 640 | ||
| 641 | struct v4l2_ctrl_handler handler; | 641 | struct v4l2_ctrl_handler handler; |
| 642 | } __packed; | 642 | }; |
| 643 | 643 | ||
| 644 | struct ov5648_sensor { | 644 | struct ov5648_sensor { |
| 645 | struct device *dev; | 645 | struct device *dev; |
| @@ -1112,7 +1112,7 @@ static int ov5648_pad_configure(struct ov5648_sensor *sensor) · 466 unmodified lines | |||
| 1112 | 1112 | ||
| 1113 | static int ov5648_mipi_configure(struct ov5648_sensor *sensor) | 1113 | static int ov5648_mipi_configure(struct ov5648_sensor *sensor) |
| 1114 | { | 1114 | { |
| 1115 | struct v4l2_fwnode_bus_mipi_csi2 *bus_mipi_csi2 = | 1115 | struct v4l2_mbus_config_mipi_csi2 *bus_mipi_csi2 = |
| 1116 | &sensor->endpoint.bus.mipi_csi2; | 1116 | &sensor->endpoint.bus.mipi_csi2; |
| 1117 | unsigned int lanes_count = bus_mipi_csi2->num_data_lanes; | 1117 | unsigned int lanes_count = bus_mipi_csi2->num_data_lanes; |
| 1118 | int ret; | 1118 | int ret; |
| @@ -1692,7 +1692,7 @@ static int ov5648_state_mipi_configure(struct ov5648_sensor *sensor, · 573 unmodified lines | |||
| 1692 | u32 mbus_code) | 1692 | u32 mbus_code) |
| 1693 | { | 1693 | { |
| 1694 | struct ov5648_ctrls *ctrls = &sensor->ctrls; | 1694 | struct ov5648_ctrls *ctrls = &sensor->ctrls; |
| 1695 | struct v4l2_fwnode_bus_mipi_csi2 *bus_mipi_csi2 = | 1695 | struct v4l2_mbus_config_mipi_csi2 *bus_mipi_csi2 = |
| 1696 | &sensor->endpoint.bus.mipi_csi2; | 1696 | &sensor->endpoint.bus.mipi_csi2; |
| 1697 | unsigned long mipi_clk_rate; | 1697 | unsigned long mipi_clk_rate; |
| 1698 | unsigned int bits_per_sample; | 1698 | unsigned int bits_per_sample; |
| @@ -1778,8 +1778,14 @@ static int ov5648_state_configure(struct ov5648_sensor *sensor, · 79 unmodified lines | |||
| 1778 | 1778 | ||
| 1779 | static int ov5648_state_init(struct ov5648_sensor *sensor) | 1779 | static int ov5648_state_init(struct ov5648_sensor *sensor) |
| 1780 | { | 1780 | { |
| 1781 | return ov5648_state_configure(sensor, &ov5648_modes[0], | 1781 | int ret; |
| 1782 | ov5648_mbus_codes[0]); | 1782 | |
| 1783 | mutex_lock(&sensor->mutex); | ||
| 1784 | ret = ov5648_state_configure(sensor, &ov5648_modes[0], | ||
| 1785 | ov5648_mbus_codes[0]); | ||
| 1786 | mutex_unlock(&sensor->mutex); | ||
| 1787 | |||
| 1788 | return ret; | ||
| 1783 | } | 1789 | } |
| 1784 | 1790 | ||
| 1785 | /* Sensor Base */ | 1791 | /* Sensor Base */ |
| @@ -50,14 +50,21 @@ · 49 unmodified lines | |||
| 50 | #define OV5675_ANAL_GAIN_STEP 1 | 50 | #define OV5675_ANAL_GAIN_STEP 1 |
| 51 | 51 | ||
| 52 | /* Digital gain controls from sensor */ | 52 | /* Digital gain controls from sensor */ |
| 53 | #define OV5675_REG_DIGITAL_GAIN 0x350a | ||
| 53 | #define OV5675_REG_MWB_R_GAIN 0x5019 | 54 | #define OV5675_REG_MWB_R_GAIN 0x5019 |
| 54 | #define OV5675_REG_MWB_G_GAIN 0x501b | 55 | #define OV5675_REG_MWB_G_GAIN 0x501b |
| 55 | #define OV5675_REG_MWB_B_GAIN 0x501d | 56 | #define OV5675_REG_MWB_B_GAIN 0x501d |
| 56 | #define OV5675_DGTL_GAIN_MIN 0 | 57 | #define OV5675_DGTL_GAIN_MIN 1024 |
| 57 | #define OV5675_DGTL_GAIN_MAX 4095 | 58 | #define OV5675_DGTL_GAIN_MAX 4095 |
| 58 | #define OV5675_DGTL_GAIN_STEP 1 | 59 | #define OV5675_DGTL_GAIN_STEP 1 |
| 59 | #define OV5675_DGTL_GAIN_DEFAULT 1024 | 60 | #define OV5675_DGTL_GAIN_DEFAULT 1024 |
| 60 | 61 | ||
| 62 | /* Group Access */ | ||
| 63 | #define OV5675_REG_GROUP_ACCESS 0x3208 | ||
| 64 | #define OV5675_GROUP_HOLD_START 0x0 | ||
| 65 | #define OV5675_GROUP_HOLD_END 0x10 | ||
| 66 | #define OV5675_GROUP_HOLD_LAUNCH 0xa0 | ||
| 67 | |||
| 61 | /* Test Pattern Control */ | 68 | /* Test Pattern Control */ |
| 62 | #define OV5675_REG_TEST_PATTERN 0x4503 | 69 | #define OV5675_REG_TEST_PATTERN 0x4503 |
| 63 | #define OV5675_TEST_PATTERN_ENABLE BIT(7) | 70 | #define OV5675_TEST_PATTERN_ENABLE BIT(7) |
| @@ -587,6 +594,12 @@ static int ov5675_update_digital_gain(struct ov5675 *ov5675, u32 d_gain) · 523 unmodified lines | |||
| 587 | { | 594 | { |
| 588 | int ret; | 595 | int ret; |
| 589 | 596 | ||
| 597 | ret = ov5675_write_reg(ov5675, OV5675_REG_GROUP_ACCESS, | ||
| 598 | OV5675_REG_VALUE_08BIT, | ||
| 599 | OV5675_GROUP_HOLD_START); | ||
| 600 | if (ret) | ||
| 601 | return ret; | ||
| 602 | |||
| 590 | ret = ov5675_write_reg(ov5675, OV5675_REG_MWB_R_GAIN, | 603 | ret = ov5675_write_reg(ov5675, OV5675_REG_MWB_R_GAIN, |
| 591 | OV5675_REG_VALUE_16BIT, d_gain); | 604 | OV5675_REG_VALUE_16BIT, d_gain); |
| 592 | if (ret) | 605 | if (ret) |
| @@ -597,8 +610,21 @@ static int ov5675_update_digital_gain(struct ov5675 *ov5675, u32 d_gain) · 4 unmodified lines | |||
| 597 | if (ret) | 610 | if (ret) |
| 598 | return ret; | 611 | return ret; |
| 599 | 612 | ||
| 600 | return ov5675_write_reg(ov5675, OV5675_REG_MWB_B_GAIN, | 613 | ret = ov5675_write_reg(ov5675, OV5675_REG_MWB_B_GAIN, |
| 601 | OV5675_REG_VALUE_16BIT, d_gain); | 614 | OV5675_REG_VALUE_16BIT, d_gain); |
| 615 | if (ret) | ||
| 616 | return ret; | ||
| 617 | |||
| 618 | ret = ov5675_write_reg(ov5675, OV5675_REG_GROUP_ACCESS, | ||
| 619 | OV5675_REG_VALUE_08BIT, | ||
| 620 | OV5675_GROUP_HOLD_END); | ||
| 621 | if (ret) | ||
| 622 | return ret; | ||
| 623 | |||
| 624 | ret = ov5675_write_reg(ov5675, OV5675_REG_GROUP_ACCESS, | ||
| 625 | OV5675_REG_VALUE_08BIT, | ||
| 626 | OV5675_GROUP_HOLD_LAUNCH); | ||
| 627 | return ret; | ||
| 602 | } | 628 | } |
| 603 | 629 | ||
| 604 | static int ov5675_test_pattern(struct ov5675 *ov5675, u32 pattern) | 630 | static int ov5675_test_pattern(struct ov5675 *ov5675, u32 pattern) |
| @@ -950,7 +950,6 @@ static int ov5693_set_fmt(struct v4l2_subdev *sd, · 949 unmodified lines | |||
| 950 | unsigned int width, height; | 950 | unsigned int width, height; |
| 951 | unsigned int hblank; | 951 | unsigned int hblank; |
| 952 | int exposure_max; | 952 | int exposure_max; |
| 953 | int ret = 0; | ||
| 954 | 953 | ||
| 955 | crop = __ov5693_get_pad_crop(ov5693, state, format->pad, format->which); | 954 | crop = __ov5693_get_pad_crop(ov5693, state, format->pad, format->which); |
| 956 | 955 | ||
| @@ -982,13 +981,13 @@ static int ov5693_set_fmt(struct v4l2_subdev *sd, · 25 unmodified lines | |||
| 982 | format->format = *fmt; | 981 | format->format = *fmt; |
| 983 | 982 | ||
| 984 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) | 983 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) |
| 985 | return ret; | 984 | return 0; |
| 986 | 985 | ||
| 987 | mutex_lock(&ov5693->lock); | 986 | mutex_lock(&ov5693->lock); |
| 988 | 987 | ||
| 989 | ov5693->mode.binning_x = hratio > 1 ? true : false; | 988 | ov5693->mode.binning_x = hratio > 1; |
| 990 | ov5693->mode.inc_x_odd = hratio > 1 ? 3 : 1; | 989 | ov5693->mode.inc_x_odd = hratio > 1 ? 3 : 1; |
| 991 | ov5693->mode.binning_y = vratio > 1 ? true : false; | 990 | ov5693->mode.binning_y = vratio > 1; |
| 992 | ov5693->mode.inc_y_odd = vratio > 1 ? 3 : 1; | 991 | ov5693->mode.inc_y_odd = vratio > 1 ? 3 : 1; |
| 993 | 992 | ||
| 994 | ov5693->mode.vts = __ov5693_calc_vts(fmt->height); | 993 | ov5693->mode.vts = __ov5693_calc_vts(fmt->height); |
| @@ -1012,7 +1011,7 @@ static int ov5693_set_fmt(struct v4l2_subdev *sd, · 17 unmodified lines | |||
| 1012 | exposure_max)); | 1011 | exposure_max)); |
| 1013 | 1012 | ||
| 1014 | mutex_unlock(&ov5693->lock); | 1013 | mutex_unlock(&ov5693->lock); |
| 1015 | return ret; | 1014 | return 0; |
| 1016 | } | 1015 | } |
| 1017 | 1016 | ||
| 1018 | static int ov5693_get_selection(struct v4l2_subdev *sd, | 1017 | static int ov5693_get_selection(struct v4l2_subdev *sd, |
| @@ -472,9 +472,16 @@ static int ov6650_get_selection(struct v4l2_subdev *sd, · 471 unmodified lines | |||
| 472 | { | 472 | { |
| 473 | struct i2c_client *client = v4l2_get_subdevdata(sd); | 473 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
| 474 | struct ov6650 *priv = to_ov6650(client); | 474 | struct ov6650 *priv = to_ov6650(client); |
| 475 | struct v4l2_rect *rect; | ||
| 475 | 476 | ||
| 476 | if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE) | 477 | if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { |
| 477 | return -EINVAL; | 478 | /* pre-select try crop rectangle */ |
| 479 | rect = &sd_state->pads->try_crop; | ||
| 480 | |||
| 481 | } else { | ||
| 482 | /* pre-select active crop rectangle */ | ||
| 483 | rect = &priv->rect; | ||
| 484 | } | ||
| 478 | 485 | ||
| 479 | switch (sel->target) { | 486 | switch (sel->target) { |
| 480 | case V4L2_SEL_TGT_CROP_BOUNDS: | 487 | case V4L2_SEL_TGT_CROP_BOUNDS: |
| @@ -483,14 +490,33 @@ static int ov6650_get_selection(struct v4l2_subdev *sd, · 2 unmodified lines | |||
| 483 | sel->r.width = W_CIF; | 490 | sel->r.width = W_CIF; |
| 484 | sel->r.height = H_CIF; | 491 | sel->r.height = H_CIF; |
| 485 | return 0; | 492 | return 0; |
| 493 | |||
| 486 | case V4L2_SEL_TGT_CROP: | 494 | case V4L2_SEL_TGT_CROP: |
| 487 | sel->r = priv->rect; | 495 | /* use selected crop rectangle */ |
| 496 | sel->r = *rect; | ||
| 488 | return 0; | 497 | return 0; |
| 498 | |||
| 489 | default: | 499 | default: |
| 490 | return -EINVAL; | 500 | return -EINVAL; |
| 491 | } | 501 | } |
| 492 | } | 502 | } |
| 493 | 503 | ||
| 504 | static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) | ||
| 505 | { | ||
| 506 | return width > rect->width >> 1 || height > rect->height >> 1; | ||
| 507 | } | ||
| 508 | |||
| 509 | static void ov6650_bind_align_crop_rectangle(struct v4l2_rect *rect) | ||
| 510 | { | ||
| 511 | v4l_bound_align_image(&rect->width, 2, W_CIF, 1, | ||
| 512 | &rect->height, 2, H_CIF, 1, 0); | ||
| 513 | v4l_bound_align_image(&rect->left, DEF_HSTRT << 1, | ||
| 514 | (DEF_HSTRT << 1) + W_CIF - (__s32)rect->width, 1, | ||
| 515 | &rect->top, DEF_VSTRT << 1, | ||
| 516 | (DEF_VSTRT << 1) + H_CIF - (__s32)rect->height, | ||
| 517 | 1, 0); | ||
| 518 | } | ||
| 519 | |||
| 494 | static int ov6650_set_selection(struct v4l2_subdev *sd, | 520 | static int ov6650_set_selection(struct v4l2_subdev *sd, |
| 495 | struct v4l2_subdev_state *sd_state, | 521 | struct v4l2_subdev_state *sd_state, |
| 496 | struct v4l2_subdev_selection *sel) | 522 | struct v4l2_subdev_selection *sel) |
| @@ -499,18 +525,30 @@ static int ov6650_set_selection(struct v4l2_subdev *sd, · 2 unmodified lines | |||
| 499 | struct ov6650 *priv = to_ov6650(client); | 525 | struct ov6650 *priv = to_ov6650(client); |
| 500 | int ret; | 526 | int ret; |
| 501 | 527 | ||
| 502 | if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE || | 528 | if (sel->target != V4L2_SEL_TGT_CROP) |
| 503 | sel->target != V4L2_SEL_TGT_CROP) | ||
| 504 | return -EINVAL; | 529 | return -EINVAL; |
| 505 | 530 | ||
| 506 | v4l_bound_align_image(&sel->r.width, 2, W_CIF, 1, | 531 | ov6650_bind_align_crop_rectangle(&sel->r); |
| 507 | &sel->r.height, 2, H_CIF, 1, 0); | 532 | |
| 508 | v4l_bound_align_image(&sel->r.left, DEF_HSTRT << 1, | 533 | if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { |
| 509 | (DEF_HSTRT << 1) + W_CIF - (__s32)sel->r.width, 1, | 534 | struct v4l2_rect *crop = &sd_state->pads->try_crop; |
| 510 | &sel->r.top, DEF_VSTRT << 1, | 535 | struct v4l2_mbus_framefmt *mf = &sd_state->pads->try_fmt; |
| 511 | (DEF_VSTRT << 1) + H_CIF - (__s32)sel->r.height, | 536 | /* detect current pad config scaling factor */ |
| 512 | 1, 0); | 537 | bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop); |
| 513 | 538 | ||
| 539 | /* store new crop rectangle */ | ||
| 540 | *crop = sel->r; | ||
| 541 | |||
| 542 | /* adjust frame size */ | ||
| 543 | mf->width = crop->width >> half_scale; | ||
| 544 | mf->height = crop->height >> half_scale; | ||
| 545 | |||
| 546 | return 0; | ||
| 547 | } | ||
| 548 | |||
| 549 | /* V4L2_SUBDEV_FORMAT_ACTIVE */ | ||
| 550 | |||
| 551 | /* apply new crop rectangle */ | ||
| 514 | ret = ov6650_reg_write(client, REG_HSTRT, sel->r.left >> 1); | 552 | ret = ov6650_reg_write(client, REG_HSTRT, sel->r.left >> 1); |
| 515 | if (!ret) { | 553 | if (!ret) { |
| 516 | priv->rect.width += priv->rect.left - sel->r.left; | 554 | priv->rect.width += priv->rect.left - sel->r.left; |
| @@ -562,30 +600,13 @@ static int ov6650_get_fmt(struct v4l2_subdev *sd, · 45 unmodified lines | |||
| 562 | return 0; | 600 | return 0; |
| 563 | } | 601 | } |
| 564 | 602 | ||
| 565 | static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) | ||
| 566 | { | ||
| 567 | return width > rect->width >> 1 || height > rect->height >> 1; | ||
| 568 | } | ||
| 569 | |||
| 570 | #define to_clkrc(div) ((div) - 1) | 603 | #define to_clkrc(div) ((div) - 1) |
| 571 | 604 | ||
| 572 | /* set the format we will capture in */ | 605 | /* set the format we will capture in */ |
| 573 | static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) | 606 | static int ov6650_s_fmt(struct v4l2_subdev *sd, u32 code, bool half_scale) |
| 574 | { | 607 | { |
| 575 | struct i2c_client *client = v4l2_get_subdevdata(sd); | 608 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
| 576 | struct ov6650 *priv = to_ov6650(client); | 609 | struct ov6650 *priv = to_ov6650(client); |
| 577 | bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); | ||
| 578 | struct v4l2_subdev_selection sel = { | ||
| 579 | .which = V4L2_SUBDEV_FORMAT_ACTIVE, | ||
| 580 | .target = V4L2_SEL_TGT_CROP, | ||
| 581 | .r.left = priv->rect.left + (priv->rect.width >> 1) - | ||
| 582 | (mf->width >> (1 - half_scale)), | ||
| 583 | .r.top = priv->rect.top + (priv->rect.height >> 1) - | ||
| 584 | (mf->height >> (1 - half_scale)), | ||
| 585 | .r.width = mf->width << half_scale, | ||
| 586 | .r.height = mf->height << half_scale, | ||
| 587 | }; | ||
| 588 | u32 code = mf->code; | ||
| 589 | u8 coma_set = 0, coma_mask = 0, coml_set, coml_mask; | 610 | u8 coma_set = 0, coma_mask = 0, coml_set, coml_mask; |
| 590 | int ret; | 611 | int ret; |
| 591 | 612 | ||
| @@ -653,9 +674,7 @@ static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) · 61 unmodified lines | |||
| 653 | coma_mask |= COMA_QCIF; | 674 | coma_mask |= COMA_QCIF; |
| 654 | } | 675 | } |
| 655 | 676 | ||
| 656 | ret = ov6650_set_selection(sd, NULL, &sel); | 677 | ret = ov6650_reg_rmw(client, REG_COMA, coma_set, coma_mask); |
| 657 | if (!ret) | ||
| 658 | ret = ov6650_reg_rmw(client, REG_COMA, coma_set, coma_mask); | ||
| 659 | if (!ret) { | 678 | if (!ret) { |
| 660 | priv->half_scale = half_scale; | 679 | priv->half_scale = half_scale; |
| 661 | 680 | ||
| @@ -674,14 +693,12 @@ static int ov6650_set_fmt(struct v4l2_subdev *sd, · 12 unmodified lines | |||
| 674 | struct v4l2_mbus_framefmt *mf = &format->format; | 693 | struct v4l2_mbus_framefmt *mf = &format->format; |
| 675 | struct i2c_client *client = v4l2_get_subdevdata(sd); | 694 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
| 676 | struct ov6650 *priv = to_ov6650(client); | 695 | struct ov6650 *priv = to_ov6650(client); |
| 696 | struct v4l2_rect *crop; | ||
| 697 | bool half_scale; | ||
| 677 | 698 | ||
| 678 | if (format->pad) | 699 | if (format->pad) |
| 679 | return -EINVAL; | 700 | return -EINVAL; |
| 680 | 701 | ||
| 681 | if (is_unscaled_ok(mf->width, mf->height, &priv->rect)) | ||
| 682 | v4l_bound_align_image(&mf->width, 2, W_CIF, 1, | ||
| 683 | &mf->height, 2, H_CIF, 1, 0); | ||
| 684 | |||
| 685 | switch (mf->code) { | 702 | switch (mf->code) { |
| 686 | case MEDIA_BUS_FMT_Y10_1X10: | 703 | case MEDIA_BUS_FMT_Y10_1X10: |
| 687 | mf->code = MEDIA_BUS_FMT_Y8_1X8; | 704 | mf->code = MEDIA_BUS_FMT_Y8_1X8; |
| @@ -699,10 +716,17 @@ static int ov6650_set_fmt(struct v4l2_subdev *sd, · 11 unmodified lines | |||
| 699 | break; | 716 | break; |
| 700 | } | 717 | } |
| 701 | 718 | ||
| 719 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) | ||
| 720 | crop = &sd_state->pads->try_crop; | ||
| 721 | else | ||
| 722 | crop = &priv->rect; | ||
| 723 | |||
| 724 | half_scale = !is_unscaled_ok(mf->width, mf->height, crop); | ||
| 725 | |||
| 702 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) { | 726 | if (format->which == V4L2_SUBDEV_FORMAT_TRY) { |
| 703 | /* store media bus format code and frame size in pad config */ | 727 | /* store new mbus frame format code and size in pad config */ |
| 704 | sd_state->pads->try_fmt.width = mf->width; | 728 | sd_state->pads->try_fmt.width = crop->width >> half_scale; |
| 705 | sd_state->pads->try_fmt.height = mf->height; | 729 | sd_state->pads->try_fmt.height = crop->height >> half_scale; |
| 706 | sd_state->pads->try_fmt.code = mf->code; | 730 | sd_state->pads->try_fmt.code = mf->code; |
| 707 | 731 | ||
| 708 | /* return default mbus frame format updated with pad config */ | 732 | /* return default mbus frame format updated with pad config */ |
| @@ -712,9 +736,11 @@ static int ov6650_set_fmt(struct v4l2_subdev *sd, · 3 unmodified lines | |||
| 712 | mf->code = sd_state->pads->try_fmt.code; | 736 | mf->code = sd_state->pads->try_fmt.code; |
| 713 | 737 | ||
| 714 | } else { | 738 | } else { |
| 715 | /* apply new media bus format code and frame size */ | 739 | int ret = 0; |
| 716 | int ret = ov6650_s_fmt(sd, mf); | ||
| 717 | 740 | ||
| 741 | /* apply new media bus frame format and scaling if changed */ | ||
| 742 | if (mf->code != priv->code || half_scale != priv->half_scale) | ||
| 743 | ret = ov6650_s_fmt(sd, mf->code, half_scale); | ||
| 718 | if (ret) | 744 | if (ret) |
| 719 | return ret; | 745 | return ret; |
| 720 | 746 | ||
| @@ -738,6 +764,33 @@ static int ov6650_enum_mbus_code(struct v4l2_subdev *sd, · 17 unmodified lines | |||
| 738 | return 0; | 764 | return 0; |
| 739 | } | 765 | } |
| 740 | 766 | ||
| 767 | static int ov6650_enum_frame_interval(struct v4l2_subdev *sd, | ||
| 768 | struct v4l2_subdev_state *sd_state, | ||
| 769 | struct v4l2_subdev_frame_interval_enum *fie) | ||
| 770 | { | ||
| 771 | int i; | ||
| 772 | |||
| 773 | /* enumerate supported frame intervals not exceeding 1 second */ | ||
| 774 | if (fie->index > CLKRC_DIV_MASK || | ||
| 775 | GET_CLKRC_DIV(fie->index) > FRAME_RATE_MAX) | ||
| 776 | return -EINVAL; | ||
| 777 | |||
| 778 | for (i = 0; i < ARRAY_SIZE(ov6650_codes); i++) | ||
| 779 | if (fie->code == ov6650_codes[i]) | ||
| 780 | break; | ||
| 781 | if (i == ARRAY_SIZE(ov6650_codes)) | ||
| 782 | return -EINVAL; | ||
| 783 | |||
| 784 | if (!fie->width || fie->width > W_CIF || | ||
| 785 | !fie->height || fie->height > H_CIF) | ||
| 786 | return -EINVAL; | ||
| 787 | |||
| 788 | fie->interval.numerator = GET_CLKRC_DIV(fie->index); | ||
| 789 | fie->interval.denominator = FRAME_RATE_MAX; | ||
| 790 | |||
| 791 | return 0; | ||
| 792 | } | ||
| 793 | |||
| 741 | static int ov6650_g_frame_interval(struct v4l2_subdev *sd, | 794 | static int ov6650_g_frame_interval(struct v4l2_subdev *sd, |
| 742 | struct v4l2_subdev_frame_interval *ival) | 795 | struct v4l2_subdev_frame_interval *ival) |
| 743 | { | 796 | { |
| @@ -890,9 +943,8 @@ static int ov6650_video_probe(struct v4l2_subdev *sd) · 146 unmodified lines | |||
| 890 | if (!ret) | 943 | if (!ret) |
| 891 | ret = ov6650_prog_dflt(client, xclk->clkrc); | 944 | ret = ov6650_prog_dflt(client, xclk->clkrc); |
| 892 | if (!ret) { | 945 | if (!ret) { |
| 893 | struct v4l2_mbus_framefmt mf = ov6650_def_fmt; | 946 | /* driver default frame format, no scaling */ |
| 894 | 947 | ret = ov6650_s_fmt(sd, ov6650_def_fmt.code, false); | |
| 895 | ret = ov6650_s_fmt(sd, &mf); | ||
| 896 | } | 948 | } |
| 897 | if (!ret) | 949 | if (!ret) |
| 898 | ret = v4l2_ctrl_handler_setup(&priv->hdl); | 950 | ret = v4l2_ctrl_handler_setup(&priv->hdl); |
| @@ -932,54 +984,18 @@ static int ov6650_get_mbus_config(struct v4l2_subdev *sd, · 33 unmodified lines | |||
| 932 | if (ret) | 984 | if (ret) |
| 933 | return ret; | 985 | return ret; |
| 934 | 986 | ||
| 935 | cfg->flags = V4L2_MBUS_MASTER | V4L2_MBUS_DATA_ACTIVE_HIGH | ||
| 936 | | ((comj & COMJ_VSYNC_HIGH) ? V4L2_MBUS_VSYNC_ACTIVE_HIGH | ||
| 937 | : V4L2_MBUS_VSYNC_ACTIVE_LOW) | ||
| 938 | | ((comf & COMF_HREF_LOW) ? V4L2_MBUS_HSYNC_ACTIVE_LOW | ||
| 939 | : V4L2_MBUS_HSYNC_ACTIVE_HIGH) | ||
| 940 | | ((comj & COMJ_PCLK_RISING) ? V4L2_MBUS_PCLK_SAMPLE_RISING | ||
| 941 | : V4L2_MBUS_PCLK_SAMPLE_FALLING); | ||
| 942 | cfg->type = V4L2_MBUS_PARALLEL; | 987 | cfg->type = V4L2_MBUS_PARALLEL; |
| 943 | 988 | ||
| 989 | cfg->bus.parallel.flags = V4L2_MBUS_MASTER | V4L2_MBUS_DATA_ACTIVE_HIGH | ||
| 990 | | ((comj & COMJ_VSYNC_HIGH) ? V4L2_MBUS_VSYNC_ACTIVE_HIGH | ||
| 991 | : V4L2_MBUS_VSYNC_ACTIVE_LOW) | ||
| 992 | | ((comf & COMF_HREF_LOW) ? V4L2_MBUS_HSYNC_ACTIVE_LOW | ||
| 993 | : V4L2_MBUS_HSYNC_ACTIVE_HIGH) | ||
| 994 | | ((comj & COMJ_PCLK_RISING) ? V4L2_MBUS_PCLK_SAMPLE_RISING | ||
| 995 | : V4L2_MBUS_PCLK_SAMPLE_FALLING); | ||
| 944 | return 0; | 996 | return 0; |
| 945 | } | 997 | } |
| 946 | 998 | ||
| 947 | /* Alter bus settings on camera side */ | ||
| 948 | static int ov6650_set_mbus_config(struct v4l2_subdev *sd, | ||
| 949 | unsigned int pad, | ||
| 950 | struct v4l2_mbus_config *cfg) | ||
| 951 | { | ||
| 952 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
| 953 | int ret = 0; | ||
| 954 | |||
| 955 | if (cfg->flags & V4L2_MBUS_PCLK_SAMPLE_RISING) | ||
| 956 | ret = ov6650_reg_rmw(client, REG_COMJ, COMJ_PCLK_RISING, 0); | ||
| 957 | else if (cfg->flags & V4L2_MBUS_PCLK_SAMPLE_FALLING) | ||
| 958 | ret = ov6650_reg_rmw(client, REG_COMJ, 0, COMJ_PCLK_RISING); | ||
| 959 | if (ret) | ||
| 960 | return ret; | ||
| 961 | |||
| 962 | if (cfg->flags & V4L2_MBUS_HSYNC_ACTIVE_LOW) | ||
| 963 | ret = ov6650_reg_rmw(client, REG_COMF, COMF_HREF_LOW, 0); | ||
| 964 | else if (cfg->flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) | ||
| 965 | ret = ov6650_reg_rmw(client, REG_COMF, 0, COMF_HREF_LOW); | ||
| 966 | if (ret) | ||
| 967 | return ret; | ||
| 968 | |||
| 969 | if (cfg->flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) | ||
| 970 | ret = ov6650_reg_rmw(client, REG_COMJ, COMJ_VSYNC_HIGH, 0); | ||
| 971 | else if (cfg->flags & V4L2_MBUS_VSYNC_ACTIVE_LOW) | ||
| 972 | ret = ov6650_reg_rmw(client, REG_COMJ, 0, COMJ_VSYNC_HIGH); | ||
| 973 | if (ret) | ||
| 974 | return ret; | ||
| 975 | |||
| 976 | /* | ||
| 977 | * Update the configuration to report what is actually applied to | ||
| 978 | * the hardware. | ||
| 979 | */ | ||
| 980 | return ov6650_get_mbus_config(sd, pad, cfg); | ||
| 981 | } | ||
| 982 | |||
| 983 | static const struct v4l2_subdev_video_ops ov6650_video_ops = { | 999 | static const struct v4l2_subdev_video_ops ov6650_video_ops = { |
| 984 | .s_stream = ov6650_s_stream, | 1000 | .s_stream = ov6650_s_stream, |
| 985 | .g_frame_interval = ov6650_g_frame_interval, | 1001 | .g_frame_interval = ov6650_g_frame_interval, |
| @@ -987,13 +1003,13 @@ static const struct v4l2_subdev_video_ops ov6650_video_ops = { · 1 unmodified line | |||
| 987 | }; | 1003 | }; |
| 988 | 1004 | ||
| 989 | static const struct v4l2_subdev_pad_ops ov6650_pad_ops = { | 1005 | static const struct v4l2_subdev_pad_ops ov6650_pad_ops = { |
| 990 | .enum_mbus_code = ov6650_enum_mbus_code, | 1006 | .enum_mbus_code = ov6650_enum_mbus_code, |
| 991 | .get_selection = ov6650_get_selection, | 1007 | .enum_frame_interval = ov6650_enum_frame_interval, |
| 992 | .set_selection = ov6650_set_selection, | 1008 | .get_selection = ov6650_get_selection, |
| 993 | .get_fmt = ov6650_get_fmt, | 1009 | .set_selection = ov6650_set_selection, |
| 994 | .set_fmt = ov6650_set_fmt, | 1010 | .get_fmt = ov6650_get_fmt, |
| 995 | .get_mbus_config = ov6650_get_mbus_config, | 1011 | .set_fmt = ov6650_set_fmt, |
| 996 | .set_mbus_config = ov6650_set_mbus_config, | 1012 | .get_mbus_config = ov6650_get_mbus_config, |
| 997 | }; | 1013 | }; |
| 998 | 1014 | ||
| 999 | static const struct v4l2_subdev_ops ov6650_subdev_ops = { | 1015 | static const struct v4l2_subdev_ops ov6650_subdev_ops = { |
| @@ -457,8 +457,8 @@ · 456 unmodified lines | |||
| 457 | 457 | ||
| 458 | #define OV8865_NATIVE_WIDTH 3296 | 458 | #define OV8865_NATIVE_WIDTH 3296 |
| 459 | #define OV8865_NATIVE_HEIGHT 2528 | 459 | #define OV8865_NATIVE_HEIGHT 2528 |
| 460 | #define OV8865_ACTIVE_START_TOP 32 | 460 | #define OV8865_ACTIVE_START_LEFT 16 |
| 461 | #define OV8865_ACTIVE_START_LEFT 80 | 461 | #define OV8865_ACTIVE_START_TOP 40 |
| 462 | #define OV8865_ACTIVE_WIDTH 3264 | 462 | #define OV8865_ACTIVE_WIDTH 3264 |
| 463 | #define OV8865_ACTIVE_HEIGHT 2448 | 463 | #define OV8865_ACTIVE_HEIGHT 2448 |
| 464 | 464 | ||
| @@ -1471,7 +1471,7 @@ static int ov8865_charge_pump_configure(struct ov8865_sensor *sensor) · 1006 unmodified lines | |||
| 1471 | 1471 | ||
| 1472 | static int ov8865_mipi_configure(struct ov8865_sensor *sensor) | 1472 | static int ov8865_mipi_configure(struct ov8865_sensor *sensor) |
| 1473 | { | 1473 | { |
| 1474 | struct v4l2_fwnode_bus_mipi_csi2 *bus_mipi_csi2 = | 1474 | struct v4l2_mbus_config_mipi_csi2 *bus_mipi_csi2 = |
| 1475 | &sensor->endpoint.bus.mipi_csi2; | 1475 | &sensor->endpoint.bus.mipi_csi2; |
| 1476 | unsigned int lanes_count = bus_mipi_csi2->num_data_lanes; | 1476 | unsigned int lanes_count = bus_mipi_csi2->num_data_lanes; |
| 1477 | int ret; | 1477 | int ret; |
| @@ -2241,7 +2241,7 @@ static int ov8865_state_mipi_configure(struct ov8865_sensor *sensor, · 763 unmodified lines | |||
| 2241 | u32 mbus_code) | 2241 | u32 mbus_code) |
| 2242 | { | 2242 | { |
| 2243 | struct ov8865_ctrls *ctrls = &sensor->ctrls; | 2243 | struct ov8865_ctrls *ctrls = &sensor->ctrls; |
| 2244 | struct v4l2_fwnode_bus_mipi_csi2 *bus_mipi_csi2 = | 2244 | struct v4l2_mbus_config_mipi_csi2 *bus_mipi_csi2 = |
| 2245 | &sensor->endpoint.bus.mipi_csi2; | 2245 | &sensor->endpoint.bus.mipi_csi2; |
| 2246 | unsigned long mipi_clk_rate; | 2246 | unsigned long mipi_clk_rate; |
| 2247 | unsigned int bits_per_sample; | 2247 | unsigned int bits_per_sample; |
| @@ -2838,8 +2838,8 @@ static int ov8865_get_selection(struct v4l2_subdev *subdev, · 590 unmodified lines | |||
| 2838 | switch (sel->target) { | 2838 | switch (sel->target) { |
| 2839 | case V4L2_SEL_TGT_CROP: | 2839 | case V4L2_SEL_TGT_CROP: |
| 2840 | mutex_lock(&sensor->mutex); | 2840 | mutex_lock(&sensor->mutex); |
| 2841 | __ov8865_get_pad_crop(sensor, state, sel->pad, | 2841 | __ov8865_get_pad_crop(sensor, state, sel->pad, |
| 2842 | sel->which, &sel->r); | 2842 | sel->which, &sel->r); |
| 2843 | mutex_unlock(&sensor->mutex); | 2843 | mutex_unlock(&sensor->mutex); |
| 2844 | break; | 2844 | break; |
| 2845 | case V4L2_SEL_TGT_NATIVE_SIZE: | 2845 | case V4L2_SEL_TGT_NATIVE_SIZE: |
| @@ -652,10 +652,12 @@ static int ov9640_get_mbus_config(struct v4l2_subdev *sd, · 651 unmodified lines | |||
| 652 | unsigned int pad, | 652 | unsigned int pad, |
| 653 | struct v4l2_mbus_config *cfg) | 653 | struct v4l2_mbus_config *cfg) |
| 654 | { | 654 | { |
| 655 | cfg->flags = V4L2_MBUS_PCLK_SAMPLE_RISING | V4L2_MBUS_MASTER | | ||
| 656 | V4L2_MBUS_VSYNC_ACTIVE_HIGH | V4L2_MBUS_HSYNC_ACTIVE_HIGH | | ||
| 657 | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 658 | cfg->type = V4L2_MBUS_PARALLEL; | 655 | cfg->type = V4L2_MBUS_PARALLEL; |
| 656 | cfg->bus.parallel.flags = V4L2_MBUS_PCLK_SAMPLE_RISING | | ||
| 657 | V4L2_MBUS_MASTER | | ||
| 658 | V4L2_MBUS_VSYNC_ACTIVE_HIGH | | ||
| 659 | V4L2_MBUS_HSYNC_ACTIVE_HIGH | | ||
| 660 | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 659 | 661 | ||
| 660 | return 0; | 662 | return 0; |
| 661 | } | 663 | } |
| @@ -1129,7 +1129,7 @@ static void saa711x_set_lcr(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_forma · 1128 unmodified lines | |||
| 1129 | 1129 | ||
| 1130 | static int saa711x_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *sliced) | 1130 | static int saa711x_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *sliced) |
| 1131 | { | 1131 | { |
| 1132 | static u16 lcr2vbi[] = { | 1132 | static const u16 lcr2vbi[] = { |
| 1133 | 0, V4L2_SLICED_TELETEXT_B, 0, /* 1 */ | 1133 | 0, V4L2_SLICED_TELETEXT_B, 0, /* 1 */ |
| 1134 | 0, V4L2_SLICED_CAPTION_525, /* 4 */ | 1134 | 0, V4L2_SLICED_CAPTION_525, /* 4 */ |
| 1135 | V4L2_SLICED_WSS_625, 0, /* 5 */ | 1135 | V4L2_SLICED_WSS_625, 0, /* 5 */ |
| @@ -69,7 +69,7 @@ static const struct v4l2_dv_timings_cap tc358743_timings_cap = { · 68 unmodified lines | |||
| 69 | 69 | ||
| 70 | struct tc358743_state { | 70 | struct tc358743_state { |
| 71 | struct tc358743_platform_data pdata; | 71 | struct tc358743_platform_data pdata; |
| 72 | struct v4l2_fwnode_bus_mipi_csi2 bus; | 72 | struct v4l2_mbus_config_mipi_csi2 bus; |
| 73 | struct v4l2_subdev sd; | 73 | struct v4l2_subdev sd; |
| 74 | struct media_pad pad; | 74 | struct media_pad pad; |
| 75 | struct v4l2_ctrl_handler hdl; | 75 | struct v4l2_ctrl_handler hdl; |
| @@ -717,7 +717,7 @@ static void tc358743_set_csi(struct v4l2_subdev *sd) · 641 unmodified lines | |||
| 717 | ((lanes > 3) ? MASK_D3M_HSTXVREGEN : 0x0)); | 717 | ((lanes > 3) ? MASK_D3M_HSTXVREGEN : 0x0)); |
| 718 | 718 | ||
| 719 | i2c_wr32(sd, TXOPTIONCNTRL, (state->bus.flags & | 719 | i2c_wr32(sd, TXOPTIONCNTRL, (state->bus.flags & |
| 720 | V4L2_MBUS_CSI2_CONTINUOUS_CLOCK) ? MASK_CONTCLKMODE : 0); | 720 | V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK) ? 0 : MASK_CONTCLKMODE); |
| 721 | i2c_wr32(sd, STARTCNTRL, MASK_START); | 721 | i2c_wr32(sd, STARTCNTRL, MASK_START); |
| 722 | i2c_wr32(sd, CSI_START, MASK_STRT); | 722 | i2c_wr32(sd, CSI_START, MASK_STRT); |
| 723 | 723 | ||
| @@ -1613,24 +1613,8 @@ static int tc358743_get_mbus_config(struct v4l2_subdev *sd, · 889 unmodified lines | |||
| 1613 | cfg->type = V4L2_MBUS_CSI2_DPHY; | 1613 | cfg->type = V4L2_MBUS_CSI2_DPHY; |
| 1614 | 1614 | ||
| 1615 | /* Support for non-continuous CSI-2 clock is missing in the driver */ | 1615 | /* Support for non-continuous CSI-2 clock is missing in the driver */ |
| 1616 | cfg->flags = V4L2_MBUS_CSI2_CONTINUOUS_CLOCK; | 1616 | cfg->bus.mipi_csi2.flags = 0; |
| 1617 | 1617 | cfg->bus.mipi_csi2.num_data_lanes = state->csi_lanes_in_use; | |
| 1618 | switch (state->csi_lanes_in_use) { | ||
| 1619 | case 1: | ||
| 1620 | cfg->flags |= V4L2_MBUS_CSI2_1_LANE; | ||
| 1621 | break; | ||
| 1622 | case 2: | ||
| 1623 | cfg->flags |= V4L2_MBUS_CSI2_2_LANE; | ||
| 1624 | break; | ||
| 1625 | case 3: | ||
| 1626 | cfg->flags |= V4L2_MBUS_CSI2_3_LANE; | ||
| 1627 | break; | ||
| 1628 | case 4: | ||
| 1629 | cfg->flags |= V4L2_MBUS_CSI2_4_LANE; | ||
| 1630 | break; | ||
| 1631 | default: | ||
| 1632 | return -EINVAL; | ||
| 1633 | } | ||
| 1634 | 1618 | ||
| 1635 | return 0; | 1619 | return 0; |
| 1636 | } | 1620 | } |
| @@ -2055,7 +2039,7 @@ static int tc358743_probe(struct i2c_client *client) · 418 unmodified lines | |||
| 2055 | /* platform data */ | 2039 | /* platform data */ |
| 2056 | if (pdata) { | 2040 | if (pdata) { |
| 2057 | state->pdata = *pdata; | 2041 | state->pdata = *pdata; |
| 2058 | state->bus.flags = V4L2_MBUS_CSI2_CONTINUOUS_CLOCK; | 2042 | state->bus.flags = 0; |
| 2059 | } else { | 2043 | } else { |
| 2060 | err = tc358743_probe_of(state); | 2044 | err = tc358743_probe_of(state); |
| 2061 | if (err == -ENODEV) | 2045 | if (err == -ENODEV) |
| @@ -1198,8 +1198,10 @@ static int tvp5150_get_mbus_config(struct v4l2_subdev *sd, · 1197 unmodified lines | |||
| 1198 | struct tvp5150 *decoder = to_tvp5150(sd); | 1198 | struct tvp5150 *decoder = to_tvp5150(sd); |
| 1199 | 1199 | ||
| 1200 | cfg->type = decoder->mbus_type; | 1200 | cfg->type = decoder->mbus_type; |
| 1201 | cfg->flags = V4L2_MBUS_MASTER | V4L2_MBUS_PCLK_SAMPLE_RISING | 1201 | cfg->bus.parallel.flags = V4L2_MBUS_MASTER |
| 1202 | | V4L2_MBUS_FIELD_EVEN_LOW | V4L2_MBUS_DATA_ACTIVE_HIGH; | 1202 | | V4L2_MBUS_PCLK_SAMPLE_RISING |
| 1203 | | V4L2_MBUS_FIELD_EVEN_LOW | ||
| 1204 | | V4L2_MBUS_DATA_ACTIVE_HIGH; | ||
| 1203 | 1205 | ||
| 1204 | return 0; | 1206 | return 0; |
| 1205 | } | 1207 | } |
| @@ -396,20 +396,21 @@ __must_check int __media_pipeline_start(struct media_entity *entity, · 395 unmodified lines | |||
| 396 | struct media_link *link; | 396 | struct media_link *link; |
| 397 | int ret; | 397 | int ret; |
| 398 | 398 | ||
| 399 | if (!pipe->streaming_count++) { | 399 | if (pipe->streaming_count) { |
| 400 | ret = media_graph_walk_init(&pipe->graph, mdev); | 400 | pipe->streaming_count++; |
| 401 | if (ret) | 401 | return 0; |
| 402 | goto error_graph_walk_start; | ||
| 403 | } | 402 | } |
| 404 | 403 | ||
| 404 | ret = media_graph_walk_init(&pipe->graph, mdev); | ||
| 405 | if (ret) | ||
| 406 | return ret; | ||
| 407 | |||
| 405 | media_graph_walk_start(&pipe->graph, entity); | 408 | media_graph_walk_start(&pipe->graph, entity); |
| 406 | 409 | ||
| 407 | while ((entity = media_graph_walk_next(graph))) { | 410 | while ((entity = media_graph_walk_next(graph))) { |
| 408 | DECLARE_BITMAP(active, MEDIA_ENTITY_MAX_PADS); | 411 | DECLARE_BITMAP(active, MEDIA_ENTITY_MAX_PADS); |
| 409 | DECLARE_BITMAP(has_no_links, MEDIA_ENTITY_MAX_PADS); | 412 | DECLARE_BITMAP(has_no_links, MEDIA_ENTITY_MAX_PADS); |
| 410 | 413 | ||
| 411 | entity->stream_count++; | ||
| 412 | |||
| 413 | if (entity->pipe && entity->pipe != pipe) { | 414 | if (entity->pipe && entity->pipe != pipe) { |
| 414 | pr_err("Pipe active for %s. Can't start for %s\n", | 415 | pr_err("Pipe active for %s. Can't start for %s\n", |
| 415 | entity->name, | 416 | entity->name, |
| @@ -418,12 +419,12 @@ __must_check int __media_pipeline_start(struct media_entity *entity, · 2 unmodified lines | |||
| 418 | goto error; | 419 | goto error; |
| 419 | } | 420 | } |
| 420 | 421 | ||
| 421 | entity->pipe = pipe; | ||
| 422 | |||
| 423 | /* Already streaming --- no need to check. */ | 422 | /* Already streaming --- no need to check. */ |
| 424 | if (entity->stream_count > 1) | 423 | if (entity->pipe) |
| 425 | continue; | 424 | continue; |
| 426 | 425 | ||
| 426 | entity->pipe = pipe; | ||
| 427 | |||
| 427 | if (!entity->ops || !entity->ops->link_validate) | 428 | if (!entity->ops || !entity->ops->link_validate) |
| 428 | continue; | 429 | continue; |
| 429 | 430 | ||
| @@ -479,6 +480,8 @@ __must_check int __media_pipeline_start(struct media_entity *entity, · 49 unmodified lines | |||
| 479 | } | 480 | } |
| 480 | } | 481 | } |
| 481 | 482 | ||
| 483 | pipe->streaming_count++; | ||
| 484 | |||
| 482 | return 0; | 485 | return 0; |
| 483 | 486 | ||
| 484 | error: | 487 | error: |
| @@ -489,24 +492,17 @@ error: · 4 unmodified lines | |||
| 489 | media_graph_walk_start(graph, entity_err); | 492 | media_graph_walk_start(graph, entity_err); |
| 490 | 493 | ||
| 491 | while ((entity_err = media_graph_walk_next(graph))) { | 494 | while ((entity_err = media_graph_walk_next(graph))) { |
| 492 | /* Sanity check for negative stream_count */ | 495 | entity_err->pipe = NULL; |
| 493 | if (!WARN_ON_ONCE(entity_err->stream_count <= 0)) { | ||
| 494 | entity_err->stream_count--; | ||
| 495 | if (entity_err->stream_count == 0) | ||
| 496 | entity_err->pipe = NULL; | ||
| 497 | } | ||
| 498 | 496 | ||
| 499 | /* | 497 | /* |
| 500 | * We haven't increased stream_count further than this | 498 | * We haven't started entities further than this so we quit |
| 501 | * so we quit here. | 499 | * here. |
| 502 | */ | 500 | */ |
| 503 | if (entity_err == entity) | 501 | if (entity_err == entity) |
| 504 | break; | 502 | break; |
| 505 | } | 503 | } |
| 506 | 504 | ||
| 507 | error_graph_walk_start: | 505 | media_graph_walk_cleanup(graph); |
| 508 | if (!--pipe->streaming_count) | ||
| 509 | media_graph_walk_cleanup(graph); | ||
| 510 | 506 | ||
| 511 | return ret; | 507 | return ret; |
| 512 | } | 508 | } |
| @@ -537,19 +533,15 @@ void __media_pipeline_stop(struct media_entity *entity) · 24 unmodified lines | |||
| 537 | if (WARN_ON(!pipe)) | 533 | if (WARN_ON(!pipe)) |
| 538 | return; | 534 | return; |
| 539 | 535 | ||
| 536 | if (--pipe->streaming_count) | ||
| 537 | return; | ||
| 538 | |||
| 540 | media_graph_walk_start(graph, entity); | 539 | media_graph_walk_start(graph, entity); |
| 541 | 540 | ||
| 542 | while ((entity = media_graph_walk_next(graph))) { | 541 | while ((entity = media_graph_walk_next(graph))) |
| 543 | /* Sanity check for negative stream_count */ | 542 | entity->pipe = NULL; |
| 544 | if (!WARN_ON_ONCE(entity->stream_count <= 0)) { | ||
| 545 | entity->stream_count--; | ||
| 546 | if (entity->stream_count == 0) | ||
| 547 | entity->pipe = NULL; | ||
| 548 | } | ||
| 549 | } | ||
| 550 | 543 | ||
| 551 | if (!--pipe->streaming_count) | 544 | media_graph_walk_cleanup(graph); |
| 552 | media_graph_walk_cleanup(graph); | ||
| 553 | 545 | ||
| 554 | } | 546 | } |
| 555 | EXPORT_SYMBOL_GPL(__media_pipeline_stop); | 547 | EXPORT_SYMBOL_GPL(__media_pipeline_stop); |
| @@ -834,7 +826,8 @@ int __media_entity_setup_link(struct media_link *link, u32 flags) · 278 unmodified lines | |||
| 834 | sink = link->sink->entity; | 826 | sink = link->sink->entity; |
| 835 | 827 | ||
| 836 | if (!(link->flags & MEDIA_LNK_FL_DYNAMIC) && | 828 | if (!(link->flags & MEDIA_LNK_FL_DYNAMIC) && |
| 837 | (source->stream_count || sink->stream_count)) | 829 | (media_entity_is_streaming(source) || |
| 830 | media_entity_is_streaming(sink))) | ||
| 838 | return -EBUSY; | 831 | return -EBUSY; |
| 839 | 832 | ||
| 840 | mdev = source->graph_obj.mdev; | 833 | mdev = source->graph_obj.mdev; |
| @@ -1,2 +1,3 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |||
| 2 | source "drivers/media/mmc/siano/Kconfig" | 3 | source "drivers/media/mmc/siano/Kconfig" |
| @@ -12,61 +12,68 @@ if MEDIA_PCI_SUPPORT · 11 unmodified lines | |||
| 12 | 12 | ||
| 13 | if MEDIA_CAMERA_SUPPORT | 13 | if MEDIA_CAMERA_SUPPORT |
| 14 | comment "Media capture support" | 14 | comment "Media capture support" |
| 15 | |||
| 15 | source "drivers/media/pci/meye/Kconfig" | 16 | source "drivers/media/pci/meye/Kconfig" |
| 16 | source "drivers/media/pci/solo6x10/Kconfig" | 17 | source "drivers/media/pci/solo6x10/Kconfig" |
| 17 | source "drivers/media/pci/sta2x11/Kconfig" | 18 | source "drivers/media/pci/sta2x11/Kconfig" |
| 18 | source "drivers/media/pci/tw5864/Kconfig" | 19 | source "drivers/media/pci/tw5864/Kconfig" |
| 19 | source "drivers/media/pci/tw68/Kconfig" | 20 | source "drivers/media/pci/tw68/Kconfig" |
| 20 | source "drivers/media/pci/tw686x/Kconfig" | 21 | source "drivers/media/pci/tw686x/Kconfig" |
| 22 | |||
| 21 | endif | 23 | endif |
| 22 | 24 | ||
| 23 | if MEDIA_ANALOG_TV_SUPPORT | 25 | if MEDIA_ANALOG_TV_SUPPORT |
| 24 | comment "Media capture/analog TV support" | 26 | comment "Media capture/analog TV support" |
| 27 | |||
| 28 | source "drivers/media/pci/dt3155/Kconfig" | ||
| 25 | source "drivers/media/pci/ivtv/Kconfig" | 29 | source "drivers/media/pci/ivtv/Kconfig" |
| 26 | source "drivers/media/pci/saa7146/Kconfig" | 30 | source "drivers/media/pci/saa7146/Kconfig" |
| 27 | source "drivers/media/pci/dt3155/Kconfig" | 31 | |
| 28 | endif | 32 | endif |
| 29 | 33 | ||
| 30 | if MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT | 34 | if MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT |
| 31 | comment "Media capture/analog/hybrid TV support" | 35 | comment "Media capture/analog/hybrid TV support" |
| 36 | |||
| 37 | source "drivers/media/pci/bt8xx/Kconfig" | ||
| 38 | source "drivers/media/pci/cobalt/Kconfig" | ||
| 32 | source "drivers/media/pci/cx18/Kconfig" | 39 | source "drivers/media/pci/cx18/Kconfig" |
| 33 | source "drivers/media/pci/cx23885/Kconfig" | 40 | source "drivers/media/pci/cx23885/Kconfig" |
| 34 | source "drivers/media/pci/cx25821/Kconfig" | 41 | source "drivers/media/pci/cx25821/Kconfig" |
| 35 | source "drivers/media/pci/cx88/Kconfig" | 42 | source "drivers/media/pci/cx88/Kconfig" |
| 36 | source "drivers/media/pci/bt8xx/Kconfig" | ||
| 37 | source "drivers/media/pci/saa7134/Kconfig" | 43 | source "drivers/media/pci/saa7134/Kconfig" |
| 38 | source "drivers/media/pci/saa7164/Kconfig" | 44 | source "drivers/media/pci/saa7164/Kconfig" |
| 39 | source "drivers/media/pci/cobalt/Kconfig" | ||
| 40 | 45 | ||
| 41 | endif | 46 | endif |
| 42 | 47 | ||
| 43 | if MEDIA_DIGITAL_TV_SUPPORT | 48 | if MEDIA_DIGITAL_TV_SUPPORT |
| 44 | comment "Media digital TV PCI Adapters" | 49 | comment "Media digital TV PCI Adapters" |
| 45 | source "drivers/media/pci/ttpci/Kconfig" | 50 | |
| 46 | source "drivers/media/pci/b2c2/Kconfig" | 51 | source "drivers/media/pci/b2c2/Kconfig" |
| 47 | source "drivers/media/pci/pluto2/Kconfig" | 52 | source "drivers/media/pci/ddbridge/Kconfig" |
| 48 | source "drivers/media/pci/dm1105/Kconfig" | 53 | source "drivers/media/pci/dm1105/Kconfig" |
| 49 | source "drivers/media/pci/pt1/Kconfig" | ||
| 50 | source "drivers/media/pci/pt3/Kconfig" | ||
| 51 | source "drivers/media/pci/mantis/Kconfig" | 54 | source "drivers/media/pci/mantis/Kconfig" |
| 55 | source "drivers/media/pci/netup_unidvb/Kconfig" | ||
| 52 | source "drivers/media/pci/ngene/Kconfig" | 56 | source "drivers/media/pci/ngene/Kconfig" |
| 53 | source "drivers/media/pci/ddbridge/Kconfig" | 57 | source "drivers/media/pci/pluto2/Kconfig" |
| 58 | source "drivers/media/pci/pt1/Kconfig" | ||
| 59 | source "drivers/media/pci/pt3/Kconfig" | ||
| 54 | source "drivers/media/pci/smipcie/Kconfig" | 60 | source "drivers/media/pci/smipcie/Kconfig" |
| 55 | source "drivers/media/pci/netup_unidvb/Kconfig" | 61 | source "drivers/media/pci/ttpci/Kconfig" |
| 56 | endif | ||
| 57 | 62 | ||
| 58 | source "drivers/media/pci/intel/ipu3/Kconfig" | 63 | endif |
| 59 | 64 | ||
| 60 | config VIDEO_PCI_SKELETON | 65 | config VIDEO_PCI_SKELETON |
| 61 | tristate "Skeleton PCI V4L2 driver" | 66 | tristate "Skeleton PCI V4L2 driver" |
| 62 | depends on SAMPLES | 67 | depends on SAMPLES |
| 63 | depends on MEDIA_TEST_SUPPORT | 68 | depends on MEDIA_TEST_SUPPORT |
| 64 | depends on PCI && VIDEO_V4L2 | 69 | depends on PCI && VIDEO_DEV |
| 65 | select VIDEOBUF2_MEMOPS | 70 | select VIDEOBUF2_MEMOPS |
| 66 | select VIDEOBUF2_DMA_CONTIG | 71 | select VIDEOBUF2_DMA_CONTIG |
| 67 | help | 72 | help |
| 68 | Enable build of the skeleton PCI driver, used as a reference | 73 | Enable build of the skeleton PCI driver, used as a reference |
| 69 | when developing new drivers. | 74 | when developing new drivers. |
| 70 | 75 | ||
| 76 | source "drivers/media/pci/intel/ipu3/Kconfig" | ||
| 77 | |||
| 71 | endif #MEDIA_PCI_SUPPORT | 78 | endif #MEDIA_PCI_SUPPORT |
| 72 | endif #PCI | 79 | endif #PCI |
| @@ -3,6 +3,8 @@ · 2 unmodified lines | |||
| 3 | # Makefile for the kernel multimedia device drivers. | 3 | # Makefile for the kernel multimedia device drivers. |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | # Please keep it alphabetically sorted by directory | ||
| 7 | # (e. g. LC_ALL=C sort Makefile) | ||
| 6 | obj-y += ttpci/ \ | 8 | obj-y += ttpci/ \ |
| 7 | b2c2/ \ | 9 | b2c2/ \ |
| 8 | pluto2/ \ | 10 | pluto2/ \ |
| @@ -17,19 +19,23 @@ obj-y += ttpci/ \ · 8 unmodified lines | |||
| 17 | netup_unidvb/ \ | 19 | netup_unidvb/ \ |
| 18 | intel/ | 20 | intel/ |
| 19 | 21 | ||
| 20 | obj-$(CONFIG_VIDEO_IVTV) += ivtv/ | 22 | # Please keep it alphabetically sorted by Kconfig name |
| 23 | # (e. g. LC_ALL=C sort Makefile) | ||
| 24 | |||
| 25 | obj-$(CONFIG_STA2X11_VIP) += sta2x11/ | ||
| 26 | |||
| 27 | obj-$(CONFIG_VIDEO_BT848) += bt8xx/ | ||
| 28 | obj-$(CONFIG_VIDEO_COBALT) += cobalt/ | ||
| 21 | obj-$(CONFIG_VIDEO_CX18) += cx18/ | 29 | obj-$(CONFIG_VIDEO_CX18) += cx18/ |
| 22 | obj-$(CONFIG_VIDEO_CX23885) += cx23885/ | 30 | obj-$(CONFIG_VIDEO_CX23885) += cx23885/ |
| 23 | obj-$(CONFIG_VIDEO_CX25821) += cx25821/ | 31 | obj-$(CONFIG_VIDEO_CX25821) += cx25821/ |
| 24 | obj-$(CONFIG_VIDEO_CX88) += cx88/ | 32 | obj-$(CONFIG_VIDEO_CX88) += cx88/ |
| 25 | obj-$(CONFIG_VIDEO_BT848) += bt8xx/ | ||
| 26 | obj-$(CONFIG_VIDEO_SAA7134) += saa7134/ | ||
| 27 | obj-$(CONFIG_VIDEO_SAA7164) += saa7164/ | ||
| 28 | obj-$(CONFIG_VIDEO_TW68) += tw68/ | ||
| 29 | obj-$(CONFIG_VIDEO_TW686X) += tw686x/ | ||
| 30 | obj-$(CONFIG_VIDEO_DT3155) += dt3155/ | 33 | obj-$(CONFIG_VIDEO_DT3155) += dt3155/ |
| 34 | obj-$(CONFIG_VIDEO_IVTV) += ivtv/ | ||
| 31 | obj-$(CONFIG_VIDEO_MEYE) += meye/ | 35 | obj-$(CONFIG_VIDEO_MEYE) += meye/ |
| 32 | obj-$(CONFIG_STA2X11_VIP) += sta2x11/ | 36 | obj-$(CONFIG_VIDEO_SAA7134) += saa7134/ |
| 37 | obj-$(CONFIG_VIDEO_SAA7164) += saa7164/ | ||
| 33 | obj-$(CONFIG_VIDEO_SOLO6X10) += solo6x10/ | 38 | obj-$(CONFIG_VIDEO_SOLO6X10) += solo6x10/ |
| 34 | obj-$(CONFIG_VIDEO_COBALT) += cobalt/ | ||
| 35 | obj-$(CONFIG_VIDEO_TW5864) += tw5864/ | 39 | obj-$(CONFIG_VIDEO_TW5864) += tw5864/ |
| 40 | obj-$(CONFIG_VIDEO_TW686X) += tw686x/ | ||
| 41 | obj-$(CONFIG_VIDEO_TW68) += tw68/ | ||
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_BT848 | 2 | config VIDEO_BT848 |
| 3 | tristate "BT848 Video For Linux" | 3 | tristate "BT848 Video For Linux" |
| 4 | depends on VIDEO_DEV && PCI && I2C && VIDEO_V4L2 | 4 | depends on PCI && I2C && VIDEO_DEV |
| 5 | select I2C_ALGOBIT | 5 | select I2C_ALGOBIT |
| 6 | select VIDEOBUF_DMA_SG | 6 | select VIDEOBUF_DMA_SG |
| 7 | depends on RC_CORE | 7 | depends on RC_CORE |
| @@ -3890,7 +3890,7 @@ static int bttv_register_video(struct bttv *btv) · 3889 unmodified lines | |||
| 3890 | 3890 | ||
| 3891 | /* video */ | 3891 | /* video */ |
| 3892 | vdev_init(btv, &btv->video_dev, &bttv_video_template, "video"); | 3892 | vdev_init(btv, &btv->video_dev, &bttv_video_template, "video"); |
| 3893 | btv->video_dev.device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_TUNER | | 3893 | btv->video_dev.device_caps = V4L2_CAP_VIDEO_CAPTURE | |
| 3894 | V4L2_CAP_READWRITE | V4L2_CAP_STREAMING; | 3894 | V4L2_CAP_READWRITE | V4L2_CAP_STREAMING; |
| 3895 | if (btv->tuner_type != TUNER_ABSENT) | 3895 | if (btv->tuner_type != TUNER_ABSENT) |
| 3896 | btv->video_dev.device_caps |= V4L2_CAP_TUNER; | 3896 | btv->video_dev.device_caps |= V4L2_CAP_TUNER; |
| @@ -3911,7 +3911,7 @@ static int bttv_register_video(struct bttv *btv) · 14 unmodified lines | |||
| 3911 | /* vbi */ | 3911 | /* vbi */ |
| 3912 | vdev_init(btv, &btv->vbi_dev, &bttv_video_template, "vbi"); | 3912 | vdev_init(btv, &btv->vbi_dev, &bttv_video_template, "vbi"); |
| 3913 | btv->vbi_dev.device_caps = V4L2_CAP_VBI_CAPTURE | V4L2_CAP_READWRITE | | 3913 | btv->vbi_dev.device_caps = V4L2_CAP_VBI_CAPTURE | V4L2_CAP_READWRITE | |
| 3914 | V4L2_CAP_STREAMING | V4L2_CAP_TUNER; | 3914 | V4L2_CAP_STREAMING; |
| 3915 | if (btv->tuner_type != TUNER_ABSENT) | 3915 | if (btv->tuner_type != TUNER_ABSENT) |
| 3916 | btv->vbi_dev.device_caps |= V4L2_CAP_TUNER; | 3916 | btv->vbi_dev.device_caps |= V4L2_CAP_TUNER; |
| 3917 | 3917 | ||
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_COBALT | 2 | config VIDEO_COBALT |
| 3 | tristate "Cisco Cobalt support" | 3 | tristate "Cisco Cobalt support" |
| 4 | depends on VIDEO_V4L2 && I2C | 4 | depends on VIDEO_DEV && I2C |
| 5 | depends on PCI_MSI && MTD_COMPLEX_MAPPINGS | 5 | depends on PCI_MSI && MTD_COMPLEX_MAPPINGS |
| 6 | depends on (GPIOLIB && DRM_I2C_ADV7511=n) || COMPILE_TEST | 6 | depends on (GPIOLIB && DRM_I2C_ADV7511=n) || COMPILE_TEST |
| 7 | depends on SND | 7 | depends on SND |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_CX18 | 2 | config VIDEO_CX18 |
| 3 | tristate "Conexant cx23418 MPEG encoder support" | 3 | tristate "Conexant cx23418 MPEG encoder support" |
| 4 | depends on VIDEO_V4L2 && DVB_CORE && PCI && I2C | 4 | depends on VIDEO_DEV && DVB_CORE && PCI && I2C |
| 5 | select I2C_ALGOBIT | 5 | select I2C_ALGOBIT |
| 6 | select VIDEOBUF_VMALLOC | 6 | select VIDEOBUF_VMALLOC |
| 7 | depends on RC_CORE | 7 | depends on RC_CORE |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include "cx18-mailbox.h" | 23 | #include "cx18-mailbox.h" |
| 24 | #include "cx18-ioctl.h" | 24 | #include "cx18-ioctl.h" |
| 25 | #include "cx18-controls.h" | 25 | #include "cx18-controls.h" |
| 26 | #include "tuner-xc2028.h" | 26 | #include "xc2028.h" |
| 27 | #include <linux/dma-mapping.h> | 27 | #include <linux/dma-mapping.h> |
| 28 | #include <media/tveeprom.h> | 28 | #include <media/tveeprom.h> |
| 29 | 29 | ||
| @@ -899,7 +899,7 @@ static int cx18_probe(struct pci_dev *pci_dev, · 869 unmodified lines | |||
| 899 | return -ENOMEM; | 899 | return -ENOMEM; |
| 900 | } | 900 | } |
| 901 | 901 | ||
| 902 | cx = kzalloc(sizeof(*cx), GFP_ATOMIC); | 902 | cx = kzalloc(sizeof(*cx), GFP_KERNEL); |
| 903 | if (!cx) | 903 | if (!cx) |
| 904 | return -ENOMEM; | 904 | return -ENOMEM; |
| 905 | 905 | ||
| @@ -22,7 +22,7 @@ · 21 unmodified lines | |||
| 22 | #include <linux/firmware.h> | 22 | #include <linux/firmware.h> |
| 23 | #include "mt352.h" | 23 | #include "mt352.h" |
| 24 | #include "mt352_priv.h" | 24 | #include "mt352_priv.h" |
| 25 | #include "tuner-xc2028.h" | 25 | #include "xc2028.h" |
| 26 | 26 | ||
| 27 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 27 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
| 28 | 28 | ||
| @@ -12,7 +12,7 @@ · 11 unmodified lines | |||
| 12 | #include "cx18-io.h" | 12 | #include "cx18-io.h" |
| 13 | #include "cx18-cards.h" | 13 | #include "cx18-cards.h" |
| 14 | #include "cx18-gpio.h" | 14 | #include "cx18-gpio.h" |
| 15 | #include "tuner-xc2028.h" | 15 | #include "xc2028.h" |
| 16 | 16 | ||
| 17 | /********************* GPIO stuffs *********************/ | 17 | /********************* GPIO stuffs *********************/ |
| 18 | 18 | ||
| @@ -15,15 +15,15 @@ · 14 unmodified lines | |||
| 15 | static inline void cx18_buf_sync_for_cpu(struct cx18_stream *s, | 15 | static inline void cx18_buf_sync_for_cpu(struct cx18_stream *s, |
| 16 | struct cx18_buffer *buf) | 16 | struct cx18_buffer *buf) |
| 17 | { | 17 | { |
| 18 | pci_dma_sync_single_for_cpu(s->cx->pci_dev, buf->dma_handle, | 18 | dma_sync_single_for_cpu(&s->cx->pci_dev->dev, buf->dma_handle, |
| 19 | s->buf_size, s->dma); | 19 | s->buf_size, s->dma); |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | static inline void cx18_buf_sync_for_device(struct cx18_stream *s, | 22 | static inline void cx18_buf_sync_for_device(struct cx18_stream *s, |
| 23 | struct cx18_buffer *buf) | 23 | struct cx18_buffer *buf) |
| 24 | { | 24 | { |
| 25 | pci_dma_sync_single_for_device(s->cx->pci_dev, buf->dma_handle, | 25 | dma_sync_single_for_device(&s->cx->pci_dev->dev, buf->dma_handle, |
| 26 | s->buf_size, s->dma); | 26 | s->buf_size, s->dma); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | void _cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl); | 29 | void _cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl); |
| @@ -15,7 +15,7 @@ · 14 unmodified lines | |||
| 15 | #include <linux/firmware.h> | 15 | #include <linux/firmware.h> |
| 16 | #include <misc/altera.h> | 16 | #include <misc/altera.h> |
| 17 | 17 | ||
| 18 | #include "tuner-xc2028.h" | 18 | #include "xc2028.h" |
| 19 | #include "netup-eeprom.h" | 19 | #include "netup-eeprom.h" |
| 20 | #include "netup-init.h" | 20 | #include "netup-init.h" |
| 21 | #include "altera-ci.h" | 21 | #include "altera-ci.h" |
| @@ -28,7 +28,7 @@ · 27 unmodified lines | |||
| 28 | #include "xc5000.h" | 28 | #include "xc5000.h" |
| 29 | #include "max2165.h" | 29 | #include "max2165.h" |
| 30 | #include "tda10048.h" | 30 | #include "tda10048.h" |
| 31 | #include "tuner-xc2028.h" | 31 | #include "xc2028.h" |
| 32 | #include "tuner-simple.h" | 32 | #include "tuner-simple.h" |
| 33 | #include "dib7000p.h" | 33 | #include "dib7000p.h" |
| 34 | #include "dib0070.h" | 34 | #include "dib0070.h" |
| @@ -55,7 +55,7 @@ static void cx23885_input_process_measurements(struct cx23885_dev *dev, · 54 unmodified lines | |||
| 55 | } while (num != 0); | 55 | } while (num != 0); |
| 56 | 56 | ||
| 57 | if (overrun) | 57 | if (overrun) |
| 58 | ir_raw_event_reset(kernel_ir->rc); | 58 | ir_raw_event_overflow(kernel_ir->rc); |
| 59 | else if (handle) | 59 | else if (handle) |
| 60 | ir_raw_event_handle(kernel_ir->rc); | 60 | ir_raw_event_handle(kernel_ir->rc); |
| 61 | } | 61 | } |
| @@ -24,7 +24,7 @@ · 23 unmodified lines | |||
| 24 | #include <media/v4l2-ioctl.h> | 24 | #include <media/v4l2-ioctl.h> |
| 25 | #include <media/v4l2-event.h> | 25 | #include <media/v4l2-event.h> |
| 26 | #include "cx23885-ioctl.h" | 26 | #include "cx23885-ioctl.h" |
| 27 | #include "tuner-xc2028.h" | 27 | #include "xc2028.h" |
| 28 | 28 | ||
| 29 | #include <media/drv-intf/cx25840.h> | 29 | #include <media/drv-intf/cx25840.h> |
| 30 | 30 | ||
| @@ -162,6 +162,9 @@ int cx8802_start_dma(struct cx8802_dev *dev, · 161 unmodified lines | |||
| 162 | cx_write(MO_TS_GPCNTRL, GP_COUNT_CONTROL_RESET); | 162 | cx_write(MO_TS_GPCNTRL, GP_COUNT_CONTROL_RESET); |
| 163 | q->count = 0; | 163 | q->count = 0; |
| 164 | 164 | ||
| 165 | /* clear interrupt status register */ | ||
| 166 | cx_write(MO_TS_INTSTAT, 0x1f1111); | ||
| 167 | |||
| 165 | /* enable irqs */ | 168 | /* enable irqs */ |
| 166 | dprintk(1, "setting the interrupt mask\n"); | 169 | dprintk(1, "setting the interrupt mask\n"); |
| 167 | cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_TSINT); | 170 | cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_TSINT); |
| @@ -28,7 +28,7 @@ · 27 unmodified lines | |||
| 28 | #include <media/i2c/wm8775.h> | 28 | #include <media/i2c/wm8775.h> |
| 29 | 29 | ||
| 30 | #include "cx88-reg.h" | 30 | #include "cx88-reg.h" |
| 31 | #include "tuner-xc2028.h" | 31 | #include "xc2028.h" |
| 32 | 32 | ||
| 33 | #include <linux/mutex.h> | 33 | #include <linux/mutex.h> |
| 34 | 34 | ||
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_DT3155 | 2 | config VIDEO_DT3155 |
| 3 | tristate "DT3155 frame grabber" | 3 | tristate "DT3155 frame grabber" |
| 4 | depends on PCI && VIDEO_DEV && VIDEO_V4L2 | 4 | depends on PCI && VIDEO_DEV |
| 5 | select VIDEOBUF2_DMA_CONTIG | 5 | select VIDEOBUF2_DMA_CONTIG |
| 6 | help | 6 | help |
| 7 | Enables dt3155 device driver for the DataTranslation DT3155 frame grabber. | 7 | Enables dt3155 device driver for the DataTranslation DT3155 frame grabber. |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_IPU3_CIO2 | 2 | config VIDEO_IPU3_CIO2 |
| 3 | tristate "Intel ipu3-cio2 driver" | 3 | tristate "Intel ipu3-cio2 driver" |
| 4 | depends on VIDEO_V4L2 && PCI | 4 | depends on VIDEO_DEV && PCI |
| 5 | depends on ACPI || COMPILE_TEST | 5 | depends on ACPI || COMPILE_TEST |
| 6 | depends on X86 | 6 | depends on X86 |
| 7 | select MEDIA_CONTROLLER | 7 | select MEDIA_CONTROLLER |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_IVTV | 2 | config VIDEO_IVTV |
| 3 | tristate "Conexant cx23416/cx23415 MPEG encoder/decoder support" | 3 | tristate "Conexant cx23416/cx23415 MPEG encoder/decoder support" |
| 4 | depends on VIDEO_V4L2 && PCI && I2C | 4 | depends on VIDEO_DEV && PCI && I2C |
| 5 | select I2C_ALGOBIT | 5 | select I2C_ALGOBIT |
| 6 | depends on RC_CORE | 6 | depends on RC_CORE |
| 7 | select VIDEO_TUNER | 7 | select VIDEO_TUNER |
| @@ -57,7 +57,7 @@ · 56 unmodified lines | |||
| 57 | #include <linux/dma-mapping.h> | 57 | #include <linux/dma-mapping.h> |
| 58 | #include <media/tveeprom.h> | 58 | #include <media/tveeprom.h> |
| 59 | #include <media/i2c/saa7115.h> | 59 | #include <media/i2c/saa7115.h> |
| 60 | #include "tuner-xc2028.h" | 60 | #include "xc2028.h" |
| 61 | #include <uapi/linux/sched/types.h> | 61 | #include <uapi/linux/sched/types.h> |
| 62 | 62 | ||
| 63 | /* If you have already X v4l cards, then set this to X. This way | 63 | /* If you have already X v4l cards, then set this to X. This way |
| @@ -330,7 +330,6 @@ struct ivtv_stream { · 329 unmodified lines | |||
| 330 | struct ivtv *itv; /* for ease of use */ | 330 | struct ivtv *itv; /* for ease of use */ |
| 331 | const char *name; /* name of the stream */ | 331 | const char *name; /* name of the stream */ |
| 332 | int type; /* stream type */ | 332 | int type; /* stream type */ |
| 333 | u32 caps; /* V4L2 capabilities */ | ||
| 334 | 333 | ||
| 335 | struct v4l2_fh *fh; /* pointer to the streaming filehandle */ | 334 | struct v4l2_fh *fh; /* pointer to the streaming filehandle */ |
| 336 | spinlock_t qlock; /* locks access to the queues */ | 335 | spinlock_t qlock; /* locks access to the queues */ |
| @@ -10,7 +10,7 @@ · 9 unmodified lines | |||
| 10 | #include "ivtv-driver.h" | 10 | #include "ivtv-driver.h" |
| 11 | #include "ivtv-cards.h" | 11 | #include "ivtv-cards.h" |
| 12 | #include "ivtv-gpio.h" | 12 | #include "ivtv-gpio.h" |
| 13 | #include "tuner-xc2028.h" | 13 | #include "xc2028.h" |
| 14 | #include <media/tuner.h> | 14 | #include <media/tuner.h> |
| 15 | #include <media/v4l2-ctrls.h> | 15 | #include <media/v4l2-ctrls.h> |
| 16 | 16 | ||
| @@ -438,7 +438,7 @@ static int ivtv_g_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_f · 437 unmodified lines | |||
| 438 | struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; | 438 | struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; |
| 439 | struct v4l2_window *winfmt = &fmt->fmt.win; | 439 | struct v4l2_window *winfmt = &fmt->fmt.win; |
| 440 | 440 | ||
| 441 | if (!(s->caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) | 441 | if (!(s->vdev.device_caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) |
| 442 | return -EINVAL; | 442 | return -EINVAL; |
| 443 | if (!itv->osd_video_pbase) | 443 | if (!itv->osd_video_pbase) |
| 444 | return -EINVAL; | 444 | return -EINVAL; |
| @@ -549,7 +549,7 @@ static int ivtv_try_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2 · 104 unmodified lines | |||
| 549 | u32 chromakey = fmt->fmt.win.chromakey; | 549 | u32 chromakey = fmt->fmt.win.chromakey; |
| 550 | u8 global_alpha = fmt->fmt.win.global_alpha; | 550 | u8 global_alpha = fmt->fmt.win.global_alpha; |
| 551 | 551 | ||
| 552 | if (!(s->caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) | 552 | if (!(s->vdev.device_caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) |
| 553 | return -EINVAL; | 553 | return -EINVAL; |
| 554 | if (!itv->osd_video_pbase) | 554 | if (!itv->osd_video_pbase) |
| 555 | return -EINVAL; | 555 | return -EINVAL; |
| @@ -1383,7 +1383,7 @@ static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) · 827 unmodified lines | |||
| 1383 | 0, | 1383 | 0, |
| 1384 | }; | 1384 | }; |
| 1385 | 1385 | ||
| 1386 | if (!(s->caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) | 1386 | if (!(s->vdev.device_caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) |
| 1387 | return -ENOTTY; | 1387 | return -ENOTTY; |
| 1388 | if (!itv->osd_video_pbase) | 1388 | if (!itv->osd_video_pbase) |
| 1389 | return -ENOTTY; | 1389 | return -ENOTTY; |
| @@ -1450,7 +1450,7 @@ static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffe · 60 unmodified lines | |||
| 1450 | struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; | 1450 | struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; |
| 1451 | struct yuv_playback_info *yi = &itv->yuv_info; | 1451 | struct yuv_playback_info *yi = &itv->yuv_info; |
| 1452 | 1452 | ||
| 1453 | if (!(s->caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) | 1453 | if (!(s->vdev.device_caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) |
| 1454 | return -ENOTTY; | 1454 | return -ENOTTY; |
| 1455 | if (!itv->osd_video_pbase) | 1455 | if (!itv->osd_video_pbase) |
| 1456 | return -ENOTTY; | 1456 | return -ENOTTY; |
| @@ -1470,7 +1470,7 @@ static int ivtv_overlay(struct file *file, void *fh, unsigned int on) · 13 unmodified lines | |||
| 1470 | struct ivtv *itv = id->itv; | 1470 | struct ivtv *itv = id->itv; |
| 1471 | struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; | 1471 | struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; |
| 1472 | 1472 | ||
| 1473 | if (!(s->caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) | 1473 | if (!(s->vdev.device_caps & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)) |
| 1474 | return -ENOTTY; | 1474 | return -ENOTTY; |
| 1475 | if (!itv->osd_video_pbase) | 1475 | if (!itv->osd_video_pbase) |
| 1476 | return -ENOTTY; | 1476 | return -ENOTTY; |
| @@ -17,20 +17,20 @@ · 16 unmodified lines | |||
| 17 | 17 | ||
| 18 | static inline int ivtv_might_use_pio(struct ivtv_stream *s) | 18 | static inline int ivtv_might_use_pio(struct ivtv_stream *s) |
| 19 | { | 19 | { |
| 20 | return s->dma == PCI_DMA_NONE || (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI); | 20 | return s->dma == DMA_NONE || (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI); |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | static inline int ivtv_use_pio(struct ivtv_stream *s) | 23 | static inline int ivtv_use_pio(struct ivtv_stream *s) |
| 24 | { | 24 | { |
| 25 | struct ivtv *itv = s->itv; | 25 | struct ivtv *itv = s->itv; |
| 26 | 26 | ||
| 27 | return s->dma == PCI_DMA_NONE || | 27 | return s->dma == DMA_NONE || |
| 28 | (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI && itv->vbi.sliced_in->service_set); | 28 | (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI && itv->vbi.sliced_in->service_set); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | static inline int ivtv_might_use_dma(struct ivtv_stream *s) | 31 | static inline int ivtv_might_use_dma(struct ivtv_stream *s) |
| 32 | { | 32 | { |
| 33 | return s->dma != PCI_DMA_NONE; | 33 | return s->dma != DMA_NONE; |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | static inline int ivtv_use_dma(struct ivtv_stream *s) | 36 | static inline int ivtv_use_dma(struct ivtv_stream *s) |
| @@ -41,15 +41,16 @@ static inline int ivtv_use_dma(struct ivtv_stream *s) · 4 unmodified lines | |||
| 41 | static inline void ivtv_buf_sync_for_cpu(struct ivtv_stream *s, struct ivtv_buffer *buf) | 41 | static inline void ivtv_buf_sync_for_cpu(struct ivtv_stream *s, struct ivtv_buffer *buf) |
| 42 | { | 42 | { |
| 43 | if (ivtv_use_dma(s)) | 43 | if (ivtv_use_dma(s)) |
| 44 | pci_dma_sync_single_for_cpu(s->itv->pdev, buf->dma_handle, | 44 | dma_sync_single_for_cpu(&s->itv->pdev->dev, buf->dma_handle, |
| 45 | s->buf_size + 256, s->dma); | 45 | s->buf_size + 256, s->dma); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | static inline void ivtv_buf_sync_for_device(struct ivtv_stream *s, struct ivtv_buffer *buf) | 48 | static inline void ivtv_buf_sync_for_device(struct ivtv_stream *s, struct ivtv_buffer *buf) |
| 49 | { | 49 | { |
| 50 | if (ivtv_use_dma(s)) | 50 | if (ivtv_use_dma(s)) |
| 51 | pci_dma_sync_single_for_device(s->itv->pdev, buf->dma_handle, | 51 | dma_sync_single_for_device(&s->itv->pdev->dev, |
| 52 | s->buf_size + 256, s->dma); | 52 | buf->dma_handle, s->buf_size + 256, |
| 53 | s->dma); | ||
| 53 | } | 54 | } |
| 54 | 55 | ||
| 55 | int ivtv_buf_copy_from_user(struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src, int copybytes); | 56 | int ivtv_buf_copy_from_user(struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src, int copybytes); |
| @@ -70,15 +71,17 @@ void ivtv_stream_free(struct ivtv_stream *s); · 14 unmodified lines | |||
| 70 | static inline void ivtv_stream_sync_for_cpu(struct ivtv_stream *s) | 71 | static inline void ivtv_stream_sync_for_cpu(struct ivtv_stream *s) |
| 71 | { | 72 | { |
| 72 | if (ivtv_use_dma(s)) | 73 | if (ivtv_use_dma(s)) |
| 73 | pci_dma_sync_single_for_cpu(s->itv->pdev, s->sg_handle, | 74 | dma_sync_single_for_cpu(&s->itv->pdev->dev, s->sg_handle, |
| 74 | sizeof(struct ivtv_sg_element), PCI_DMA_TODEVICE); | 75 | sizeof(struct ivtv_sg_element), |
| 76 | DMA_TO_DEVICE); | ||
| 75 | } | 77 | } |
| 76 | 78 | ||
| 77 | static inline void ivtv_stream_sync_for_device(struct ivtv_stream *s) | 79 | static inline void ivtv_stream_sync_for_device(struct ivtv_stream *s) |
| 78 | { | 80 | { |
| 79 | if (ivtv_use_dma(s)) | 81 | if (ivtv_use_dma(s)) |
| 80 | pci_dma_sync_single_for_device(s->itv->pdev, s->sg_handle, | 82 | dma_sync_single_for_device(&s->itv->pdev->dev, s->sg_handle, |
| 81 | sizeof(struct ivtv_sg_element), PCI_DMA_TODEVICE); | 83 | sizeof(struct ivtv_sg_element), |
| 84 | DMA_TO_DEVICE); | ||
| 82 | } | 85 | } |
| 83 | 86 | ||
| 84 | #endif | 87 | #endif |
| @@ -176,7 +176,7 @@ static void ivtv_stream_init(struct ivtv *itv, int type) · 175 unmodified lines | |||
| 176 | s->itv = itv; | 176 | s->itv = itv; |
| 177 | s->type = type; | 177 | s->type = type; |
| 178 | s->name = ivtv_stream_info[type].name; | 178 | s->name = ivtv_stream_info[type].name; |
| 179 | s->caps = ivtv_stream_info[type].v4l2_caps; | 179 | s->vdev.device_caps = ivtv_stream_info[type].v4l2_caps; |
| 180 | 180 | ||
| 181 | if (ivtv_stream_info[type].pio) | 181 | if (ivtv_stream_info[type].pio) |
| 182 | s->dma = DMA_NONE; | 182 | s->dma = DMA_NONE; |
| @@ -299,12 +299,9 @@ static int ivtv_reg_dev(struct ivtv *itv, int type) · 116 unmodified lines | |||
| 299 | if (s_mpg->vdev.v4l2_dev) | 299 | if (s_mpg->vdev.v4l2_dev) |
| 300 | num = s_mpg->vdev.num + ivtv_stream_info[type].num_offset; | 300 | num = s_mpg->vdev.num + ivtv_stream_info[type].num_offset; |
| 301 | } | 301 | } |
| 302 | s->vdev.device_caps = s->caps; | 302 | if (itv->osd_video_pbase && (type == IVTV_DEC_STREAM_TYPE_YUV || |
| 303 | if (itv->osd_video_pbase) { | 303 | type == IVTV_DEC_STREAM_TYPE_MPG)) { |
| 304 | itv->streams[IVTV_DEC_STREAM_TYPE_YUV].vdev.device_caps |= | 304 | s->vdev.device_caps |= V4L2_CAP_VIDEO_OUTPUT_OVERLAY; |
| 305 | V4L2_CAP_VIDEO_OUTPUT_OVERLAY; | ||
| 306 | itv->streams[IVTV_DEC_STREAM_TYPE_MPG].vdev.device_caps |= | ||
| 307 | V4L2_CAP_VIDEO_OUTPUT_OVERLAY; | ||
| 308 | itv->v4l2_cap |= V4L2_CAP_VIDEO_OUTPUT_OVERLAY; | 305 | itv->v4l2_cap |= V4L2_CAP_VIDEO_OUTPUT_OVERLAY; |
| 309 | } | 306 | } |
| 310 | video_set_drvdata(&s->vdev, s); | 307 | video_set_drvdata(&s->vdev, s); |
| @@ -23,14 +23,14 @@ void ivtv_udma_start(struct ivtv *itv); · 22 unmodified lines | |||
| 23 | 23 | ||
| 24 | static inline void ivtv_udma_sync_for_device(struct ivtv *itv) | 24 | static inline void ivtv_udma_sync_for_device(struct ivtv *itv) |
| 25 | { | 25 | { |
| 26 | pci_dma_sync_single_for_device(itv->pdev, itv->udma.SG_handle, | 26 | dma_sync_single_for_device(&itv->pdev->dev, itv->udma.SG_handle, |
| 27 | sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); | 27 | sizeof(itv->udma.SGarray), DMA_TO_DEVICE); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | static inline void ivtv_udma_sync_for_cpu(struct ivtv *itv) | 30 | static inline void ivtv_udma_sync_for_cpu(struct ivtv *itv) |
| 31 | { | 31 | { |
| 32 | pci_dma_sync_single_for_cpu(itv->pdev, itv->udma.SG_handle, | 32 | dma_sync_single_for_cpu(&itv->pdev->dev, itv->udma.SG_handle, |
| 33 | sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); | 33 | sizeof(itv->udma.SGarray), DMA_TO_DEVICE); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | #endif | 36 | #endif |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_MEYE | 2 | config VIDEO_MEYE |
| 3 | tristate "Sony Vaio Picturebook Motion Eye Video For Linux" | 3 | tristate "Sony Vaio Picturebook Motion Eye Video For Linux" |
| 4 | depends on PCI && VIDEO_V4L2 | 4 | depends on PCI && VIDEO_DEV |
| 5 | depends on SONY_LAPTOP | 5 | depends on SONY_LAPTOP |
| 6 | depends on X86 || COMPILE_TEST | 6 | depends on X86 || COMPILE_TEST |
| 7 | help | 7 | help |
| @@ -1214,7 +1214,7 @@ static int alsa_device_exit(struct saa7134_dev *dev) · 1213 unmodified lines | |||
| 1214 | 1214 | ||
| 1215 | static int saa7134_alsa_init(void) | 1215 | static int saa7134_alsa_init(void) |
| 1216 | { | 1216 | { |
| 1217 | struct saa7134_dev *dev = NULL; | 1217 | struct saa7134_dev *dev; |
| 1218 | 1218 | ||
| 1219 | saa7134_dmasound_init = alsa_device_init; | 1219 | saa7134_dmasound_init = alsa_device_init; |
| 1220 | saa7134_dmasound_exit = alsa_device_exit; | 1220 | saa7134_dmasound_exit = alsa_device_exit; |
| @@ -1229,7 +1229,7 @@ static int saa7134_alsa_init(void) · 8 unmodified lines | |||
| 1229 | alsa_device_init(dev); | 1229 | alsa_device_init(dev); |
| 1230 | } | 1230 | } |
| 1231 | 1231 | ||
| 1232 | if (dev == NULL) | 1232 | if (list_empty(&saa7134_devlist)) |
| 1233 | pr_info("saa7134 ALSA: no saa7134 cards found\n"); | 1233 | pr_info("saa7134 ALSA: no saa7134 cards found\n"); |
| 1234 | 1234 | ||
| 1235 | return 0; | 1235 | return 0; |
| @@ -15,7 +15,7 @@ · 14 unmodified lines | |||
| 15 | #include <linux/i2c.h> | 15 | #include <linux/i2c.h> |
| 16 | #include <linux/i2c-algo-bit.h> | 16 | #include <linux/i2c-algo-bit.h> |
| 17 | 17 | ||
| 18 | #include "tuner-xc2028.h" | 18 | #include "xc2028.h" |
| 19 | #include <media/v4l2-common.h> | 19 | #include <media/v4l2-common.h> |
| 20 | #include <media/tveeprom.h> | 20 | #include <media/tveeprom.h> |
| 21 | #include "tea5767.h" | 21 | #include "tea5767.h" |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "mt352_priv.h" /* FIXME */ | 26 | #include "mt352_priv.h" /* FIXME */ |
| 27 | #include "tda1004x.h" | 27 | #include "tda1004x.h" |
| 28 | #include "nxt200x.h" | 28 | #include "nxt200x.h" |
| 29 | #include "tuner-xc2028.h" | 29 | #include "xc2028.h" |
| 30 | #include "xc5000.h" | 30 | #include "xc5000.h" |
| 31 | 31 | ||
| 32 | #include "tda10086.h" | 32 | #include "tda10086.h" |
| @@ -823,7 +823,7 @@ static int buffer_activate(struct saa7134_dev *dev, · 822 unmodified lines | |||
| 823 | { | 823 | { |
| 824 | struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; | 824 | struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; |
| 825 | unsigned long base,control,bpl; | 825 | unsigned long base,control,bpl; |
| 826 | unsigned long bpl_uv,lines_uv,base2,base3,tmp; /* planar */ | 826 | unsigned long bpl_uv, lines_uv, base2, base3; /* planar */ |
| 827 | 827 | ||
| 828 | video_dbg("buffer_activate buf=%p\n", buf); | 828 | video_dbg("buffer_activate buf=%p\n", buf); |
| 829 | buf->top_seen = 0; | 829 | buf->top_seen = 0; |
| @@ -868,11 +868,8 @@ static int buffer_activate(struct saa7134_dev *dev, · 38 unmodified lines | |||
| 868 | lines_uv = dev->height >> dev->fmt->vshift; | 868 | lines_uv = dev->height >> dev->fmt->vshift; |
| 869 | base2 = base + bpl * dev->height; | 869 | base2 = base + bpl * dev->height; |
| 870 | base3 = base2 + bpl_uv * lines_uv; | 870 | base3 = base2 + bpl_uv * lines_uv; |
| 871 | if (dev->fmt->uvswap) { | 871 | if (dev->fmt->uvswap) |
| 872 | tmp = base2; | 872 | swap(base2, base3); |
| 873 | base2 = base3; | ||
| 874 | base3 = tmp; | ||
| 875 | } | ||
| 876 | video_dbg("uv: bpl=%ld lines=%ld base2/3=%ld/%ld\n", | 873 | video_dbg("uv: bpl=%ld lines=%ld base2/3=%ld/%ld\n", |
| 877 | bpl_uv,lines_uv,base2,base3); | 874 | bpl_uv,lines_uv,base2,base3); |
| 878 | if (V4L2_FIELD_HAS_BOTH(dev->field)) { | 875 | if (V4L2_FIELD_HAS_BOTH(dev->field)) { |
| @@ -1538,8 +1535,6 @@ int saa7134_s_std(struct file *file, void *priv, v4l2_std_id id) · 659 unmodified lines | |||
| 1538 | return -EINVAL; | 1535 | return -EINVAL; |
| 1539 | } | 1536 | } |
| 1540 | 1537 | ||
| 1541 | id = tvnorms[i].id; | ||
| 1542 | |||
| 1543 | if (!is_empress(file) && fh == dev->overlay_owner) { | 1538 | if (!is_empress(file) && fh == dev->overlay_owner) { |
| 1544 | spin_lock_irqsave(&dev->slock, flags); | 1539 | spin_lock_irqsave(&dev->slock, flags); |
| 1545 | stop_preview(dev); | 1540 | stop_preview(dev); |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_HEXIUM_GEMINI | 2 | config VIDEO_HEXIUM_GEMINI |
| 3 | tristate "Hexium Gemini frame grabber" | 3 | tristate "Hexium Gemini frame grabber" |
| 4 | depends on PCI && VIDEO_V4L2 && I2C | 4 | depends on PCI && VIDEO_DEV && I2C |
| 5 | select VIDEO_SAA7146_VV | 5 | select VIDEO_SAA7146_VV |
| 6 | help | 6 | help |
| 7 | This is a video4linux driver for the Hexium Gemini frame | 7 | This is a video4linux driver for the Hexium Gemini frame |
| @@ -13,7 +13,7 @@ config VIDEO_HEXIUM_GEMINI · 5 unmodified lines | |||
| 13 | 13 | ||
| 14 | config VIDEO_HEXIUM_ORION | 14 | config VIDEO_HEXIUM_ORION |
| 15 | tristate "Hexium HV-PCI6 and Orion frame grabber" | 15 | tristate "Hexium HV-PCI6 and Orion frame grabber" |
| 16 | depends on PCI && VIDEO_V4L2 && I2C | 16 | depends on PCI && VIDEO_DEV && I2C |
| 17 | select VIDEO_SAA7146_VV | 17 | select VIDEO_SAA7146_VV |
| 18 | help | 18 | help |
| 19 | This is a video4linux driver for the Hexium HV-PCI6 and | 19 | This is a video4linux driver for the Hexium HV-PCI6 and |
| @@ -24,7 +24,7 @@ config VIDEO_HEXIUM_ORION · 4 unmodified lines | |||
| 24 | 24 | ||
| 25 | config VIDEO_MXB | 25 | config VIDEO_MXB |
| 26 | tristate "Siemens-Nixdorf 'Multimedia eXtension Board'" | 26 | tristate "Siemens-Nixdorf 'Multimedia eXtension Board'" |
| 27 | depends on PCI && VIDEO_V4L2 && I2C | 27 | depends on PCI && VIDEO_DEV && I2C |
| 28 | select VIDEO_SAA7146_VV | 28 | select VIDEO_SAA7146_VV |
| 29 | select VIDEO_TUNER | 29 | select VIDEO_TUNER |
| 30 | select VIDEO_SAA711X if MEDIA_SUBDRV_AUTOSELECT | 30 | select VIDEO_SAA711X if MEDIA_SUBDRV_AUTOSELECT |
| @@ -187,7 +187,6 @@ static int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg, · 186 unmodified lines | |||
| 187 | mutex_lock(&dev->cmds[msg->id].lock); | 187 | mutex_lock(&dev->cmds[msg->id].lock); |
| 188 | 188 | ||
| 189 | size = msg->size; | 189 | size = msg->size; |
| 190 | idx = 0; | ||
| 191 | cmds = size / bus->m_wMaxReqSize; | 190 | cmds = size / bus->m_wMaxReqSize; |
| 192 | if (size % bus->m_wMaxReqSize == 0) | 191 | if (size % bus->m_wMaxReqSize == 0) |
| 193 | cmds -= 1; | 192 | cmds -= 1; |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config STA2X11_VIP | 2 | config STA2X11_VIP |
| 3 | tristate "STA2X11 VIP Video For Linux" | 3 | tristate "STA2X11 VIP Video For Linux" |
| 4 | depends on PCI && VIDEO_V4L2 && VIRT_TO_BUS && I2C | 4 | depends on PCI && VIDEO_DEV && VIRT_TO_BUS && I2C |
| 5 | depends on STA2X11 || COMPILE_TEST | 5 | depends on STA2X11 || COMPILE_TEST |
| 6 | select GPIOLIB if MEDIA_SUBDRV_AUTOSELECT | 6 | select GPIOLIB if MEDIA_SUBDRV_AUTOSELECT |
| 7 | select VIDEO_ADV7180 if MEDIA_SUBDRV_AUTOSELECT | 7 | select VIDEO_ADV7180 if MEDIA_SUBDRV_AUTOSELECT |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_TW5864 | 2 | config VIDEO_TW5864 |
| 3 | tristate "Techwell TW5864 video/audio grabber and encoder" | 3 | tristate "Techwell TW5864 video/audio grabber and encoder" |
| 4 | depends on VIDEO_DEV && PCI && VIDEO_V4L2 | 4 | depends on VIDEO_DEV && PCI |
| 5 | select VIDEOBUF2_DMA_CONTIG | 5 | select VIDEOBUF2_DMA_CONTIG |
| 6 | help | 6 | help |
| 7 | Support for boards based on Techwell TW5864 chip which provides | 7 | Support for boards based on Techwell TW5864 chip which provides |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_TW68 | 2 | config VIDEO_TW68 |
| 3 | tristate "Techwell tw68x Video For Linux" | 3 | tristate "Techwell tw68x Video For Linux" |
| 4 | depends on VIDEO_DEV && PCI && VIDEO_V4L2 | 4 | depends on VIDEO_DEV && PCI |
| 5 | select VIDEOBUF2_DMA_SG | 5 | select VIDEOBUF2_DMA_SG |
| 6 | help | 6 | help |
| 7 | Support for Techwell tw68xx based frame grabber boards. | 7 | Support for Techwell tw68xx based frame grabber boards. |
| @@ -1,7 +1,7 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config VIDEO_TW686X | 2 | config VIDEO_TW686X |
| 3 | tristate "Intersil/Techwell TW686x video capture cards" | 3 | tristate "Intersil/Techwell TW686x video capture cards" |
| 4 | depends on PCI && VIDEO_DEV && VIDEO_V4L2 && SND | 4 | depends on PCI && VIDEO_DEV && SND |
| 5 | select VIDEOBUF2_VMALLOC | 5 | select VIDEOBUF2_VMALLOC |
| 6 | select VIDEOBUF2_DMA_CONTIG | 6 | select VIDEOBUF2_DMA_CONTIG |
| 7 | select VIDEOBUF2_DMA_SG | 7 | select VIDEOBUF2_DMA_SG |
| @@ -3,677 +3,85 @@ · 2 unmodified lines | |||
| 3 | # Platform drivers | 3 | # Platform drivers |
| 4 | # Most drivers here are currently for webcam support | 4 | # Most drivers here are currently for webcam support |
| 5 | 5 | ||
| 6 | menuconfig V4L_PLATFORM_DRIVERS | 6 | menuconfig MEDIA_PLATFORM_DRIVERS |
| 7 | bool "V4L platform devices" | 7 | bool "Media platform devices" |
| 8 | help | 8 | default "y" |
| 9 | Say Y here to enable support for platform-specific V4L drivers. | ||
| 10 | |||
| 11 | if V4L_PLATFORM_DRIVERS | ||
| 12 | |||
| 13 | source "drivers/media/platform/marvell-ccic/Kconfig" | ||
| 14 | |||
| 15 | config VIDEO_VIA_CAMERA | ||
| 16 | tristate "VIAFB camera controller support" | ||
| 17 | depends on FB_VIA && VIDEO_V4L2 | ||
| 18 | select VIDEOBUF2_DMA_SG | ||
| 19 | select VIDEO_OV7670 | ||
| 20 | help | ||
| 21 | Driver support for the integrated camera controller in VIA | ||
| 22 | Chrome9 chipsets. Currently only tested on OLPC xo-1.5 systems | ||
| 23 | with ov7670 sensors. | ||
| 24 | |||
| 25 | # | ||
| 26 | # Platform multimedia device configuration | ||
| 27 | # | ||
| 28 | source "drivers/media/platform/cadence/Kconfig" | ||
| 29 | |||
| 30 | source "drivers/media/platform/davinci/Kconfig" | ||
| 31 | |||
| 32 | source "drivers/media/platform/omap/Kconfig" | ||
| 33 | |||
| 34 | config VIDEO_ASPEED | ||
| 35 | tristate "Aspeed AST2400 and AST2500 Video Engine driver" | ||
| 36 | depends on VIDEO_V4L2 | ||
| 37 | select VIDEOBUF2_DMA_CONTIG | ||
| 38 | help | ||
| 39 | Support for the Aspeed Video Engine (VE) embedded in the Aspeed | ||
| 40 | AST2400 and AST2500 SOCs. The VE can capture and compress video data | ||
| 41 | from digital or analog sources. | ||
| 42 | |||
| 43 | config VIDEO_SH_VOU | ||
| 44 | tristate "SuperH VOU video output driver" | ||
| 45 | depends on VIDEO_DEV && I2C | ||
| 46 | depends on ARCH_SHMOBILE || COMPILE_TEST | ||
| 47 | select VIDEOBUF2_DMA_CONTIG | ||
| 48 | help | ||
| 49 | Support for the Video Output Unit (VOU) on SuperH SoCs. | ||
| 50 | |||
| 51 | config VIDEO_VIU | ||
| 52 | tristate "Freescale VIU Video Driver" | ||
| 53 | depends on VIDEO_V4L2 && (PPC_MPC512x || COMPILE_TEST) && I2C | ||
| 54 | select VIDEOBUF_DMA_CONTIG | ||
| 55 | default y | ||
| 56 | help | ||
| 57 | Support for Freescale VIU video driver. This device captures | ||
| 58 | video data, or overlays video on DIU frame buffer. | ||
| 59 | |||
| 60 | Say Y here if you want to enable VIU device on MPC5121e Rev2+. | ||
| 61 | In doubt, say N. | ||
| 62 | |||
| 63 | config VIDEO_MUX | ||
| 64 | tristate "Video Multiplexer" | ||
| 65 | select MULTIPLEXER | ||
| 66 | depends on VIDEO_V4L2 && OF | ||
| 67 | select MEDIA_CONTROLLER | ||
| 68 | select VIDEO_V4L2_SUBDEV_API | ||
| 69 | select REGMAP | ||
| 70 | select V4L2_FWNODE | ||
| 71 | help | ||
| 72 | This driver provides support for N:1 video bus multiplexers. | ||
| 73 | |||
| 74 | config VIDEO_OMAP3 | ||
| 75 | tristate "OMAP 3 Camera support" | ||
| 76 | depends on VIDEO_V4L2 && I2C | ||
| 77 | depends on (ARCH_OMAP3 && OMAP_IOMMU) || COMPILE_TEST | ||
| 78 | depends on COMMON_CLK && OF | ||
| 79 | select ARM_DMA_USE_IOMMU if OMAP_IOMMU | ||
| 80 | select MEDIA_CONTROLLER | ||
| 81 | select VIDEO_V4L2_SUBDEV_API | ||
| 82 | select VIDEOBUF2_DMA_CONTIG | ||
| 83 | select MFD_SYSCON | ||
| 84 | select V4L2_FWNODE | ||
| 85 | help | ||
| 86 | Driver for an OMAP 3 camera controller. | ||
| 87 | |||
| 88 | config VIDEO_OMAP3_DEBUG | ||
| 89 | bool "OMAP 3 Camera debug messages" | ||
| 90 | depends on VIDEO_OMAP3 | ||
| 91 | help | ||
| 92 | Enable debug messages on OMAP 3 camera controller driver. | ||
| 93 | |||
| 94 | config VIDEO_PXA27x | ||
| 95 | tristate "PXA27x Quick Capture Interface driver" | ||
| 96 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 97 | depends on PXA27x || COMPILE_TEST | ||
| 98 | select VIDEOBUF2_DMA_SG | ||
| 99 | select SG_SPLIT | ||
| 100 | select V4L2_FWNODE | ||
| 101 | help | ||
| 102 | This is a v4l2 driver for the PXA27x Quick Capture Interface | ||
| 103 | |||
| 104 | config VIDEO_QCOM_CAMSS | ||
| 105 | tristate "Qualcomm V4L2 Camera Subsystem driver" | ||
| 106 | depends on VIDEO_V4L2 | ||
| 107 | depends on (ARCH_QCOM && IOMMU_DMA) || COMPILE_TEST | ||
| 108 | select MEDIA_CONTROLLER | ||
| 109 | select VIDEO_V4L2_SUBDEV_API | ||
| 110 | select VIDEOBUF2_DMA_SG | ||
| 111 | select V4L2_FWNODE | ||
| 112 | |||
| 113 | config VIDEO_S3C_CAMIF | ||
| 114 | tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver" | ||
| 115 | depends on VIDEO_V4L2 && I2C && PM | ||
| 116 | depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST | ||
| 117 | select MEDIA_CONTROLLER | ||
| 118 | select VIDEO_V4L2_SUBDEV_API | ||
| 119 | select VIDEOBUF2_DMA_CONTIG | ||
| 120 | help | ||
| 121 | This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera | ||
| 122 | host interface (CAMIF). | ||
| 123 | |||
| 124 | To compile this driver as a module, choose M here: the module | ||
| 125 | will be called s3c-camif. | ||
| 126 | |||
| 127 | config VIDEO_STM32_DCMI | ||
| 128 | tristate "STM32 Digital Camera Memory Interface (DCMI) support" | ||
| 129 | depends on VIDEO_V4L2 && OF | ||
| 130 | depends on ARCH_STM32 || COMPILE_TEST | ||
| 131 | select VIDEOBUF2_DMA_CONTIG | ||
| 132 | select MEDIA_CONTROLLER | ||
| 133 | select V4L2_FWNODE | ||
| 134 | help | ||
| 135 | This module makes the STM32 Digital Camera Memory Interface (DCMI) | ||
| 136 | available as a v4l2 device. | ||
| 137 | |||
| 138 | To compile this driver as a module, choose M here: the module | ||
| 139 | will be called stm32-dcmi. | ||
| 140 | |||
| 141 | config VIDEO_RENESAS_CEU | ||
| 142 | tristate "Renesas Capture Engine Unit (CEU) driver" | ||
| 143 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 144 | depends on ARCH_SHMOBILE || ARCH_R7S72100 || COMPILE_TEST | ||
| 145 | select VIDEOBUF2_DMA_CONTIG | ||
| 146 | select V4L2_FWNODE | ||
| 147 | help | 9 | help |
| 148 | This is a v4l2 driver for the Renesas CEU Interface | 10 | Say Y here to enable support for platform-specific media drivers. |
| 149 | 11 | ||
| 150 | config VIDEO_ROCKCHIP_ISP1 | 12 | if MEDIA_PLATFORM_DRIVERS |
| 151 | tristate "Rockchip Image Signal Processing v1 Unit driver" | ||
| 152 | depends on VIDEO_V4L2 && OF | ||
| 153 | depends on ARCH_ROCKCHIP || COMPILE_TEST | ||
| 154 | select MEDIA_CONTROLLER | ||
| 155 | select VIDEO_V4L2_SUBDEV_API | ||
| 156 | select VIDEOBUF2_DMA_CONTIG | ||
| 157 | select VIDEOBUF2_VMALLOC | ||
| 158 | select V4L2_FWNODE | ||
| 159 | select GENERIC_PHY_MIPI_DPHY | ||
| 160 | default n | ||
| 161 | help | ||
| 162 | Enable this to support the Image Signal Processing (ISP) module | ||
| 163 | present in RK3399 SoCs. | ||
| 164 | |||
| 165 | To compile this driver as a module, choose M here: the module | ||
| 166 | will be called rockchip-isp1. | ||
| 167 | |||
| 168 | source "drivers/media/platform/exynos4-is/Kconfig" | ||
| 169 | source "drivers/media/platform/am437x/Kconfig" | ||
| 170 | source "drivers/media/platform/xilinx/Kconfig" | ||
| 171 | source "drivers/media/platform/rcar-vin/Kconfig" | ||
| 172 | source "drivers/media/platform/atmel/Kconfig" | ||
| 173 | source "drivers/media/platform/sunxi/Kconfig" | ||
| 174 | 13 | ||
| 175 | config VIDEO_TI_CAL | 14 | config V4L_PLATFORM_DRIVERS |
| 176 | tristate "TI CAL (Camera Adaptation Layer) driver" | 15 | bool "V4L platform devices" |
| 177 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 178 | select MEDIA_CONTROLLER | ||
| 179 | select VIDEO_V4L2_SUBDEV_API | ||
| 180 | depends on SOC_DRA7XX || ARCH_K3 || COMPILE_TEST | ||
| 181 | select VIDEOBUF2_DMA_CONTIG | ||
| 182 | select V4L2_FWNODE | ||
| 183 | help | 16 | help |
| 184 | Support for the TI CAL (Camera Adaptation Layer) block | 17 | Say Y here to enable support for platform-specific V4L drivers. |
| 185 | found on DRA72X SoC. | ||
| 186 | In TI Technical Reference Manual this module is referred as | ||
| 187 | Camera Interface Subsystem (CAMSS). | ||
| 188 | |||
| 189 | if VIDEO_TI_CAL | ||
| 190 | 18 | ||
| 191 | config VIDEO_TI_CAL_MC | 19 | config SDR_PLATFORM_DRIVERS |
| 192 | bool "Media Controller centric mode by default" | 20 | bool "SDR platform devices" |
| 193 | default n | 21 | depends on MEDIA_SDR_SUPPORT |
| 194 | help | 22 | help |
| 195 | Enables Media Controller centric mode by default. | 23 | Say Y here to enable support for platform-specific SDR Drivers. |
| 196 | |||
| 197 | If set, CAL driver will start in Media Controller mode by | ||
| 198 | default. Note that this behavior can be overridden via | ||
| 199 | module parameter 'mc_api'. | ||
| 200 | |||
| 201 | endif # VIDEO_TI_CAL | ||
| 202 | 24 | ||
| 203 | config VIDEO_RCAR_ISP | 25 | config DVB_PLATFORM_DRIVERS |
| 204 | tristate "R-Car Image Signal Processor (ISP)" | 26 | bool "DVB platform devices" |
| 205 | depends on VIDEO_V4L2 && OF | 27 | depends on MEDIA_DIGITAL_TV_SUPPORT |
| 206 | depends on ARCH_RENESAS || COMPILE_TEST | ||
| 207 | select MEDIA_CONTROLLER | ||
| 208 | select VIDEO_V4L2_SUBDEV_API | ||
| 209 | select RESET_CONTROLLER | ||
| 210 | select V4L2_FWNODE | ||
| 211 | help | 28 | help |
| 212 | Support for Renesas R-Car Image Signal Processor (ISP). | 29 | Say Y here to enable support for platform-specific Digital TV drivers. |
| 213 | Enable this to support the Renesas R-Car Image Signal | ||
| 214 | Processor (ISP). | ||
| 215 | |||
| 216 | To compile this driver as a module, choose M here: the | ||
| 217 | module will be called rcar-isp. | ||
| 218 | |||
| 219 | endif # V4L_PLATFORM_DRIVERS | ||
| 220 | 30 | ||
| 221 | menuconfig V4L_MEM2MEM_DRIVERS | 31 | config V4L_MEM2MEM_DRIVERS |
| 222 | bool "Memory-to-memory multimedia devices" | 32 | bool "Memory-to-memory multimedia devices" |
| 223 | depends on VIDEO_V4L2 | 33 | depends on VIDEO_DEV |
| 224 | help | 34 | help |
| 225 | Say Y here to enable selecting drivers for V4L devices that | 35 | Say Y here to enable selecting drivers for V4L devices that |
| 226 | use system memory for both source and destination buffers, as opposed | 36 | use system memory for both source and destination buffers, as opposed |
| 227 | to capture and output drivers, which use memory buffers for just | 37 | to capture and output drivers, which use memory buffers for just |
| 228 | one of those. | 38 | one of those. |
| 229 | 39 | ||
| 230 | if V4L_MEM2MEM_DRIVERS | 40 | # Ancillary drivers |
| 231 | |||
| 232 | config VIDEO_ALLEGRO_DVT | ||
| 233 | tristate "Allegro DVT Video IP Core" | ||
| 234 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 235 | depends on ARCH_ZYNQMP || COMPILE_TEST | ||
| 236 | select V4L2_MEM2MEM_DEV | ||
| 237 | select VIDEOBUF2_DMA_CONTIG | ||
| 238 | select REGMAP_MMIO | ||
| 239 | help | ||
| 240 | Support for the encoder video IP core by Allegro DVT. This core is | ||
| 241 | found for example on the Xilinx ZynqMP SoC in the EV family and is | ||
| 242 | called VCU in the reference manual. | ||
| 243 | |||
| 244 | To compile this driver as a module, choose M here: the module | ||
| 245 | will be called allegro. | ||
| 246 | |||
| 247 | config VIDEO_CODA | ||
| 248 | tristate "Chips&Media Coda multi-standard codec IP" | ||
| 249 | depends on VIDEO_DEV && VIDEO_V4L2 && OF && (ARCH_MXC || COMPILE_TEST) | ||
| 250 | select SRAM | ||
| 251 | select VIDEOBUF2_DMA_CONTIG | ||
| 252 | select VIDEOBUF2_VMALLOC | ||
| 253 | select V4L2_JPEG_HELPER | ||
| 254 | select V4L2_MEM2MEM_DEV | ||
| 255 | select GENERIC_ALLOCATOR | ||
| 256 | help | ||
| 257 | Coda is a range of video codec IPs that supports | ||
| 258 | H.264, MPEG-4, and other video formats. | ||
| 259 | |||
| 260 | config VIDEO_IMX_VDOA | ||
| 261 | def_tristate VIDEO_CODA if SOC_IMX6Q || COMPILE_TEST | ||
| 262 | |||
| 263 | config VIDEO_IMX_PXP | ||
| 264 | tristate "i.MX Pixel Pipeline (PXP)" | ||
| 265 | depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST) | ||
| 266 | select VIDEOBUF2_DMA_CONTIG | ||
| 267 | select V4L2_MEM2MEM_DEV | ||
| 268 | help | ||
| 269 | The i.MX Pixel Pipeline is a memory-to-memory engine for scaling, | ||
| 270 | color space conversion, and rotation. | ||
| 271 | |||
| 272 | source "drivers/media/platform/imx-jpeg/Kconfig" | ||
| 273 | |||
| 274 | config VIDEO_MEDIATEK_JPEG | ||
| 275 | tristate "Mediatek JPEG Codec driver" | ||
| 276 | depends on MTK_IOMMU_V1 || MTK_IOMMU || COMPILE_TEST | ||
| 277 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 278 | depends on ARCH_MEDIATEK || COMPILE_TEST | ||
| 279 | depends on MTK_SMI || (COMPILE_TEST && MTK_SMI=n) | ||
| 280 | select VIDEOBUF2_DMA_CONTIG | ||
| 281 | select V4L2_MEM2MEM_DEV | ||
| 282 | help | ||
| 283 | Mediatek jpeg codec driver provides HW capability to decode | ||
| 284 | JPEG format | ||
| 285 | |||
| 286 | To compile this driver as a module, choose M here: the | ||
| 287 | module will be called mtk-jpeg | ||
| 288 | |||
| 289 | config VIDEO_MEDIATEK_VPU | ||
| 290 | tristate "Mediatek Video Processor Unit" | ||
| 291 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 292 | depends on ARCH_MEDIATEK || COMPILE_TEST | ||
| 293 | help | ||
| 294 | This driver provides downloading VPU firmware and | ||
| 295 | communicating with VPU. This driver for hw video | ||
| 296 | codec embedded in Mediatek's MT8173 SOCs. It is able | ||
| 297 | to handle video decoding/encoding in a range of formats. | ||
| 298 | |||
| 299 | To compile this driver as a module, choose M here: the | ||
| 300 | module will be called mtk-vpu. | ||
| 301 | |||
| 302 | config VIDEO_MEDIATEK_MDP | ||
| 303 | tristate "Mediatek MDP driver" | ||
| 304 | depends on MTK_IOMMU || COMPILE_TEST | ||
| 305 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 306 | depends on ARCH_MEDIATEK || COMPILE_TEST | ||
| 307 | depends on MTK_SMI || (COMPILE_TEST && MTK_SMI=n) | ||
| 308 | select VIDEOBUF2_DMA_CONTIG | ||
| 309 | select V4L2_MEM2MEM_DEV | ||
| 310 | select VIDEO_MEDIATEK_VPU | ||
| 311 | help | ||
| 312 | It is a v4l2 driver and present in Mediatek MT8173 SoCs. | ||
| 313 | The driver supports for scaling and color space conversion. | ||
| 314 | |||
| 315 | To compile this driver as a module, choose M here: the | ||
| 316 | module will be called mtk-mdp. | ||
| 317 | |||
| 318 | config VIDEO_MEDIATEK_VCODEC | ||
| 319 | tristate "Mediatek Video Codec driver" | ||
| 320 | depends on MTK_IOMMU || COMPILE_TEST | ||
| 321 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 322 | depends on ARCH_MEDIATEK || COMPILE_TEST | ||
| 323 | depends on VIDEO_MEDIATEK_VPU || MTK_SCP | ||
| 324 | # The two following lines ensure we have the same state ("m" or "y") as | ||
| 325 | # our dependencies, to avoid missing symbols during link. | ||
| 326 | depends on VIDEO_MEDIATEK_VPU || !VIDEO_MEDIATEK_VPU | ||
| 327 | depends on MTK_SCP || !MTK_SCP | ||
| 328 | depends on MTK_SMI || (COMPILE_TEST && MTK_SMI=n) | ||
| 329 | select VIDEOBUF2_DMA_CONTIG | ||
| 330 | select V4L2_MEM2MEM_DEV | ||
| 331 | select VIDEO_MEDIATEK_VCODEC_VPU if VIDEO_MEDIATEK_VPU | ||
| 332 | select VIDEO_MEDIATEK_VCODEC_SCP if MTK_SCP | ||
| 333 | select V4L2_H264 | ||
| 334 | select MEDIA_CONTROLLER | ||
| 335 | select MEDIA_CONTROLLER_REQUEST_API | ||
| 336 | help | ||
| 337 | Mediatek video codec driver provides HW capability to | ||
| 338 | encode and decode in a range of video formats on MT8173 | ||
| 339 | and MT8183. | ||
| 340 | |||
| 341 | Note that support for MT8173 requires VIDEO_MEDIATEK_VPU to | ||
| 342 | also be selected. Support for MT8183 depends on MTK_SCP. | ||
| 343 | |||
| 344 | To compile this driver as modules, choose M here: the | ||
| 345 | modules will be called mtk-vcodec-dec and mtk-vcodec-enc. | ||
| 346 | |||
| 347 | config VIDEO_MEDIATEK_VCODEC_VPU | ||
| 348 | bool | ||
| 349 | |||
| 350 | config VIDEO_MEDIATEK_VCODEC_SCP | ||
| 351 | bool | ||
| 352 | 41 | ||
| 353 | config VIDEO_MEM2MEM_DEINTERLACE | 42 | config VIDEO_MEM2MEM_DEINTERLACE |
| 354 | tristate "Deinterlace support" | 43 | tristate "Deinterlace support" |
| 355 | depends on VIDEO_DEV && VIDEO_V4L2 | 44 | depends on V4L_MEM2MEM_DRIVERS |
| 45 | depends on VIDEO_DEV | ||
| 356 | depends on HAS_DMA | 46 | depends on HAS_DMA |
| 357 | select VIDEOBUF2_DMA_CONTIG | 47 | select VIDEOBUF2_DMA_CONTIG |
| 358 | select V4L2_MEM2MEM_DEV | 48 | select V4L2_MEM2MEM_DEV |
| 359 | help | 49 | help |
| 360 | Generic deinterlacing V4L2 driver. | 50 | Generic deinterlacing V4L2 driver. |
| 361 | 51 | ||
| 362 | config VIDEO_MESON_GE2D | 52 | config VIDEO_MUX |
| 363 | tristate "Amlogic 2D Graphic Acceleration Unit" | 53 | tristate "Video Multiplexer" |
| 364 | depends on VIDEO_DEV && VIDEO_V4L2 | 54 | depends on V4L_PLATFORM_DRIVERS |
| 365 | depends on ARCH_MESON || COMPILE_TEST | 55 | select MULTIPLEXER |
| 366 | select VIDEOBUF2_DMA_CONTIG | 56 | depends on VIDEO_DEV && OF |
| 367 | select V4L2_MEM2MEM_DEV | ||
| 368 | help | ||
| 369 | This is a v4l2 driver for Amlogic GE2D 2D graphics accelerator. | ||
| 370 | GE2D is a standalone 2D graphic acceleration unit, with color converter, | ||
| 371 | image scaling, BitBLT & alpha blending operations. | ||
| 372 | |||
| 373 | To compile this driver as a module choose m here. | ||
| 374 | |||
| 375 | config VIDEO_SAMSUNG_S5P_G2D | ||
| 376 | tristate "Samsung S5P and EXYNOS4 G2D 2d graphics accelerator driver" | ||
| 377 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 378 | depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST | ||
| 379 | select VIDEOBUF2_DMA_CONTIG | ||
| 380 | select V4L2_MEM2MEM_DEV | ||
| 381 | help | ||
| 382 | This is a v4l2 driver for Samsung S5P and EXYNOS4 G2D | ||
| 383 | 2d graphics accelerator. | ||
| 384 | |||
| 385 | config VIDEO_SAMSUNG_S5P_JPEG | ||
| 386 | tristate "Samsung S5P/Exynos3250/Exynos4 JPEG codec driver" | ||
| 387 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 388 | depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST | ||
| 389 | select VIDEOBUF2_DMA_CONTIG | ||
| 390 | select V4L2_MEM2MEM_DEV | ||
| 391 | help | ||
| 392 | This is a v4l2 driver for Samsung S5P, EXYNOS3250 | ||
| 393 | and EXYNOS4 JPEG codec | ||
| 394 | |||
| 395 | config VIDEO_SAMSUNG_S5P_MFC | ||
| 396 | tristate "Samsung S5P MFC Video Codec" | ||
| 397 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 398 | depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST | ||
| 399 | select VIDEOBUF2_DMA_CONTIG | ||
| 400 | help | ||
| 401 | MFC 5.1 and 6.x driver for V4L2 | ||
| 402 | |||
| 403 | config VIDEO_MX2_EMMAPRP | ||
| 404 | tristate "MX2 eMMa-PrP support" | ||
| 405 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 406 | depends on SOC_IMX27 || COMPILE_TEST | ||
| 407 | select VIDEOBUF2_DMA_CONTIG | ||
| 408 | select V4L2_MEM2MEM_DEV | ||
| 409 | help | ||
| 410 | MX2X chips have a PrP that can be used to process buffers from | ||
| 411 | memory to memory. Operations include resizing and format | ||
| 412 | conversion. | ||
| 413 | |||
| 414 | config VIDEO_SAMSUNG_EXYNOS_GSC | ||
| 415 | tristate "Samsung Exynos G-Scaler driver" | ||
| 416 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 417 | depends on ARCH_EXYNOS || COMPILE_TEST | ||
| 418 | select VIDEOBUF2_DMA_CONTIG | ||
| 419 | select V4L2_MEM2MEM_DEV | ||
| 420 | help | ||
| 421 | This is a v4l2 driver for Samsung EXYNOS5 SoC G-Scaler. | ||
| 422 | |||
| 423 | config VIDEO_STI_BDISP | ||
| 424 | tristate "STMicroelectronics BDISP 2D blitter driver" | ||
| 425 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 426 | depends on ARCH_STI || COMPILE_TEST | ||
| 427 | select VIDEOBUF2_DMA_CONTIG | ||
| 428 | select V4L2_MEM2MEM_DEV | ||
| 429 | help | ||
| 430 | This v4l2 mem2mem driver is a 2D blitter for STMicroelectronics SoC. | ||
| 431 | |||
| 432 | config VIDEO_STI_HVA | ||
| 433 | tristate "STMicroelectronics HVA multi-format video encoder V4L2 driver" | ||
| 434 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 435 | depends on ARCH_STI || COMPILE_TEST | ||
| 436 | select VIDEOBUF2_DMA_CONTIG | ||
| 437 | select V4L2_MEM2MEM_DEV | ||
| 438 | help | ||
| 439 | This V4L2 driver enables HVA (Hardware Video Accelerator) multi-format | ||
| 440 | video encoder of STMicroelectronics SoC, allowing hardware encoding of | ||
| 441 | raw uncompressed formats in various compressed video bitstreams format. | ||
| 442 | |||
| 443 | To compile this driver as a module, choose M here: | ||
| 444 | the module will be called st-hva. | ||
| 445 | |||
| 446 | config VIDEO_STI_HVA_DEBUGFS | ||
| 447 | bool "Export STMicroelectronics HVA internals in debugfs" | ||
| 448 | depends on VIDEO_STI_HVA | ||
| 449 | depends on DEBUG_FS | ||
| 450 | help | ||
| 451 | Select this to see information about the internal state and the last | ||
| 452 | operation of STMicroelectronics HVA multi-format video encoder in | ||
| 453 | debugfs. | ||
| 454 | |||
| 455 | Choose N unless you know you need this. | ||
| 456 | |||
| 457 | config VIDEO_STI_DELTA | ||
| 458 | tristate "STMicroelectronics DELTA multi-format video decoder V4L2 driver" | ||
| 459 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 460 | depends on ARCH_STI || COMPILE_TEST | ||
| 461 | help | ||
| 462 | This V4L2 driver enables DELTA multi-format video decoder | ||
| 463 | of STMicroelectronics STiH4xx SoC series allowing hardware | ||
| 464 | decoding of various compressed video bitstream format in | ||
| 465 | raw uncompressed format. | ||
| 466 | |||
| 467 | Use this option to see the decoders available for such | ||
| 468 | hardware. | ||
| 469 | |||
| 470 | Please notice that the driver will only be built if | ||
| 471 | at least one of the DELTA decoder below is selected. | ||
| 472 | |||
| 473 | if VIDEO_STI_DELTA | ||
| 474 | |||
| 475 | config VIDEO_STI_DELTA_MJPEG | ||
| 476 | bool "STMicroelectronics DELTA MJPEG support" | ||
| 477 | default y | ||
| 478 | help | ||
| 479 | Enables DELTA MJPEG hardware support. | ||
| 480 | |||
| 481 | To compile this driver as a module, choose M here: | ||
| 482 | the module will be called st-delta. | ||
| 483 | |||
| 484 | config VIDEO_STI_DELTA_DRIVER | ||
| 485 | tristate | ||
| 486 | depends on VIDEO_STI_DELTA | ||
| 487 | depends on VIDEO_STI_DELTA_MJPEG | ||
| 488 | default VIDEO_STI_DELTA_MJPEG | ||
| 489 | select VIDEOBUF2_DMA_CONTIG | ||
| 490 | select V4L2_MEM2MEM_DEV | ||
| 491 | select RPMSG | ||
| 492 | |||
| 493 | endif # VIDEO_STI_DELTA | ||
| 494 | |||
| 495 | config VIDEO_STM32_DMA2D | ||
| 496 | tristate "STM32 Chrom-Art Accelerator (DMA2D)" | ||
| 497 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 498 | depends on ARCH_STM32 || COMPILE_TEST | ||
| 499 | select VIDEOBUF2_DMA_CONTIG | ||
| 500 | select V4L2_MEM2MEM_DEV | ||
| 501 | help | ||
| 502 | Enables DMA2D hardware support on stm32. | ||
| 503 | |||
| 504 | The STM32 DMA2D is a memory-to-memory engine for pixel conversion | ||
| 505 | and specialized DMA dedicated to image manipulation. | ||
| 506 | |||
| 507 | config VIDEO_RENESAS_FDP1 | ||
| 508 | tristate "Renesas Fine Display Processor" | ||
| 509 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 510 | depends on ARCH_RENESAS || COMPILE_TEST | ||
| 511 | depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP | ||
| 512 | select VIDEOBUF2_DMA_CONTIG | ||
| 513 | select V4L2_MEM2MEM_DEV | ||
| 514 | help | ||
| 515 | This is a V4L2 driver for the Renesas Fine Display Processor | ||
| 516 | providing colour space conversion, and de-interlacing features. | ||
| 517 | |||
| 518 | To compile this driver as a module, choose M here: the module | ||
| 519 | will be called rcar_fdp1. | ||
| 520 | |||
| 521 | config VIDEO_RENESAS_JPU | ||
| 522 | tristate "Renesas JPEG Processing Unit" | ||
| 523 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 524 | depends on ARCH_RENESAS || COMPILE_TEST | ||
| 525 | select VIDEOBUF2_DMA_CONTIG | ||
| 526 | select V4L2_MEM2MEM_DEV | ||
| 527 | help | ||
| 528 | This is a V4L2 driver for the Renesas JPEG Processing Unit. | ||
| 529 | |||
| 530 | To compile this driver as a module, choose M here: the module | ||
| 531 | will be called rcar_jpu. | ||
| 532 | |||
| 533 | config VIDEO_RENESAS_FCP | ||
| 534 | tristate "Renesas Frame Compression Processor" | ||
| 535 | depends on ARCH_RENESAS || COMPILE_TEST | ||
| 536 | depends on OF | ||
| 537 | help | ||
| 538 | This is a driver for the Renesas Frame Compression Processor (FCP). | ||
| 539 | The FCP is a companion module of video processing modules in the | ||
| 540 | Renesas R-Car Gen3 and RZ/G2 SoCs. It handles memory access for | ||
| 541 | the codec, VSP and FDP modules. | ||
| 542 | |||
| 543 | To compile this driver as a module, choose M here: the module | ||
| 544 | will be called rcar-fcp. | ||
| 545 | |||
| 546 | config VIDEO_RENESAS_VSP1 | ||
| 547 | tristate "Renesas VSP1 Video Processing Engine" | ||
| 548 | depends on VIDEO_V4L2 | ||
| 549 | depends on ARCH_RENESAS || COMPILE_TEST | ||
| 550 | depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP | ||
| 551 | select MEDIA_CONTROLLER | 57 | select MEDIA_CONTROLLER |
| 552 | select VIDEO_V4L2_SUBDEV_API | 58 | select VIDEO_V4L2_SUBDEV_API |
| 553 | select VIDEOBUF2_DMA_CONTIG | 59 | select REGMAP |
| 554 | select VIDEOBUF2_VMALLOC | 60 | select V4L2_FWNODE |
| 555 | help | ||
| 556 | This is a V4L2 driver for the Renesas VSP1 video processing engine. | ||
| 557 | |||
| 558 | To compile this driver as a module, choose M here: the module | ||
| 559 | will be called vsp1. | ||
| 560 | |||
| 561 | config VIDEO_ROCKCHIP_RGA | ||
| 562 | tristate "Rockchip Raster 2d Graphic Acceleration Unit" | ||
| 563 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 564 | depends on ARCH_ROCKCHIP || COMPILE_TEST | ||
| 565 | select VIDEOBUF2_DMA_SG | ||
| 566 | select V4L2_MEM2MEM_DEV | ||
| 567 | help | ||
| 568 | This is a v4l2 driver for Rockchip SOC RGA 2d graphics accelerator. | ||
| 569 | Rockchip RGA is a separate 2D raster graphic acceleration unit. | ||
| 570 | It accelerates 2D graphics operations, such as point/line drawing, | ||
| 571 | image scaling, rotation, BitBLT, alpha blending and image blur/sharpness. | ||
| 572 | |||
| 573 | To compile this driver as a module choose m here. | ||
| 574 | |||
| 575 | config VIDEO_TI_VPE | ||
| 576 | tristate "TI VPE (Video Processing Engine) driver" | ||
| 577 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 578 | depends on SOC_DRA7XX || COMPILE_TEST | ||
| 579 | select VIDEOBUF2_DMA_CONTIG | ||
| 580 | select V4L2_MEM2MEM_DEV | ||
| 581 | select VIDEO_TI_VPDMA | ||
| 582 | select VIDEO_TI_SC | ||
| 583 | select VIDEO_TI_CSC | ||
| 584 | help | ||
| 585 | Support for the TI VPE(Video Processing Engine) block | ||
| 586 | found on DRA7XX SoC. | ||
| 587 | |||
| 588 | config VIDEO_TI_VPE_DEBUG | ||
| 589 | bool "VPE debug messages" | ||
| 590 | depends on VIDEO_TI_VPE | ||
| 591 | help | ||
| 592 | Enable debug messages on VPE driver. | ||
| 593 | |||
| 594 | config VIDEO_QCOM_VENUS | ||
| 595 | tristate "Qualcomm Venus V4L2 encoder/decoder driver" | ||
| 596 | depends on VIDEO_DEV && VIDEO_V4L2 && QCOM_SMEM | ||
| 597 | depends on (ARCH_QCOM && IOMMU_DMA) || COMPILE_TEST | ||
| 598 | select QCOM_MDT_LOADER if ARCH_QCOM | ||
| 599 | select QCOM_SCM | ||
| 600 | select VIDEOBUF2_DMA_CONTIG | ||
| 601 | select V4L2_MEM2MEM_DEV | ||
| 602 | help | ||
| 603 | This is a V4L2 driver for Qualcomm Venus video accelerator | ||
| 604 | hardware. It accelerates encoding and decoding operations | ||
| 605 | on various Qualcomm SoCs. | ||
| 606 | To compile this driver as a module choose m here. | ||
| 607 | |||
| 608 | config VIDEO_SUN8I_DEINTERLACE | ||
| 609 | tristate "Allwinner Deinterlace driver" | ||
| 610 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 611 | depends on ARCH_SUNXI || COMPILE_TEST | ||
| 612 | depends on COMMON_CLK && OF | ||
| 613 | depends on PM | ||
| 614 | select VIDEOBUF2_DMA_CONTIG | ||
| 615 | select V4L2_MEM2MEM_DEV | ||
| 616 | help | ||
| 617 | Support for the Allwinner deinterlace unit with scaling | ||
| 618 | capability found on some SoCs, like H3. | ||
| 619 | To compile this driver as a module choose m here. | ||
| 620 | |||
| 621 | config VIDEO_SUN8I_ROTATE | ||
| 622 | tristate "Allwinner DE2 rotation driver" | ||
| 623 | depends on VIDEO_DEV && VIDEO_V4L2 | ||
| 624 | depends on ARCH_SUNXI || COMPILE_TEST | ||
| 625 | depends on COMMON_CLK && OF | ||
| 626 | depends on PM | ||
| 627 | select VIDEOBUF2_DMA_CONTIG | ||
| 628 | select V4L2_MEM2MEM_DEV | ||
| 629 | help | ||
| 630 | Support for the Allwinner DE2 rotation unit. | ||
| 631 | To compile this driver as a module choose m here. | ||
| 632 | |||
| 633 | endif # V4L_MEM2MEM_DRIVERS | ||
| 634 | |||
| 635 | # TI VIDEO PORT Helper Modules | ||
| 636 | # These will be selected by VPE and VIP | ||
| 637 | config VIDEO_TI_VPDMA | ||
| 638 | tristate | ||
| 639 | |||
| 640 | config VIDEO_TI_SC | ||
| 641 | tristate | ||
| 642 | |||
| 643 | config VIDEO_TI_CSC | ||
| 644 | tristate | ||
| 645 | |||
| 646 | menuconfig DVB_PLATFORM_DRIVERS | ||
| 647 | bool "DVB platform devices" | ||
| 648 | depends on MEDIA_DIGITAL_TV_SUPPORT | ||
| 649 | help | ||
| 650 | Say Y here to enable support for platform-specific Digital TV drivers. | ||
| 651 | |||
| 652 | if DVB_PLATFORM_DRIVERS | ||
| 653 | source "drivers/media/platform/sti/c8sectpfe/Kconfig" | ||
| 654 | endif #DVB_PLATFORM_DRIVERS | ||
| 655 | |||
| 656 | menuconfig SDR_PLATFORM_DRIVERS | ||
| 657 | bool "SDR platform devices" | ||
| 658 | depends on MEDIA_SDR_SUPPORT | ||
| 659 | help | ||
| 660 | Say Y here to enable support for platform-specific SDR Drivers. | ||
| 661 | |||
| 662 | if SDR_PLATFORM_DRIVERS | ||
| 663 | |||
| 664 | config VIDEO_RCAR_DRIF | ||
| 665 | tristate "Renesas Digital Radio Interface (DRIF)" | ||
| 666 | depends on VIDEO_V4L2 | ||
| 667 | depends on ARCH_RENESAS || COMPILE_TEST | ||
| 668 | select VIDEOBUF2_VMALLOC | ||
| 669 | select V4L2_ASYNC | ||
| 670 | help | 61 | help |
| 671 | Say Y if you want to enable R-Car Gen3 DRIF support. DRIF is Digital | 62 | This driver provides support for N:1 video bus multiplexers. |
| 672 | Radio Interface that interfaces with an RF front end chip. It is a | ||
| 673 | receiver of digital data which uses DMA to transfer received data to | ||
| 674 | a configured location for an application to use. | ||
| 675 | 63 | ||
| 676 | To compile this driver as a module, choose M here; the module | 64 | # Platform drivers - Please keep it alphabetically sorted |
| 677 | will be called rcar_drif. | 65 | source "drivers/media/platform/allegro-dvt/Kconfig" |
| 66 | source "drivers/media/platform/amlogic/Kconfig" | ||
| 67 | source "drivers/media/platform/amphion/Kconfig" | ||
| 68 | source "drivers/media/platform/aspeed/Kconfig" | ||
| 69 | source "drivers/media/platform/atmel/Kconfig" | ||
| 70 | source "drivers/media/platform/cadence/Kconfig" | ||
| 71 | source "drivers/media/platform/chips-media/Kconfig" | ||
| 72 | source "drivers/media/platform/intel/Kconfig" | ||
| 73 | source "drivers/media/platform/marvell/Kconfig" | ||
| 74 | source "drivers/media/platform/mediatek/Kconfig" | ||
| 75 | source "drivers/media/platform/nvidia/Kconfig" | ||
| 76 | source "drivers/media/platform/nxp/Kconfig" | ||
| 77 | source "drivers/media/platform/qcom/Kconfig" | ||
| 78 | source "drivers/media/platform/renesas/Kconfig" | ||
| 79 | source "drivers/media/platform/rockchip/Kconfig" | ||
| 80 | source "drivers/media/platform/samsung/Kconfig" | ||
| 81 | source "drivers/media/platform/st/Kconfig" | ||
| 82 | source "drivers/media/platform/sunxi/Kconfig" | ||
| 83 | source "drivers/media/platform/ti/Kconfig" | ||
| 84 | source "drivers/media/platform/via/Kconfig" | ||
| 85 | source "drivers/media/platform/xilinx/Kconfig" | ||
| 678 | 86 | ||
| 679 | endif # SDR_PLATFORM_DRIVERS | 87 | endif # MEDIA_PLATFORM_DRIVERS |
| @@ -3,88 +3,32 @@ · 2 unmodified lines | |||
| 3 | # Makefile for the video capture/playback device drivers. | 3 | # Makefile for the video capture/playback device drivers. |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | obj-$(CONFIG_VIDEO_ALLEGRO_DVT) += allegro-dvt/ | 6 | # Place here, alphabetically sorted by directory |
| 7 | obj-$(CONFIG_VIDEO_ASPEED) += aspeed-video.o | 7 | # (e. g. LC_ALL=C sort Makefile) |
| 8 | obj-$(CONFIG_VIDEO_CADENCE) += cadence/ | 8 | obj-y += allegro-dvt/ |
| 9 | obj-$(CONFIG_VIDEO_VIA_CAMERA) += via-camera.o | 9 | obj-y += amlogic/ |
| 10 | obj-$(CONFIG_VIDEO_CAFE_CCIC) += marvell-ccic/ | 10 | obj-y += amphion/ |
| 11 | obj-$(CONFIG_VIDEO_MMP_CAMERA) += marvell-ccic/ | 11 | obj-y += aspeed/ |
| 12 | 12 | obj-y += atmel/ | |
| 13 | obj-$(CONFIG_VIDEO_OMAP3) += omap3isp/ | 13 | obj-y += cadence/ |
| 14 | obj-$(CONFIG_VIDEO_PXA27x) += pxa_camera.o | 14 | obj-y += chips-media/ |
| 15 | 15 | obj-y += intel/ | |
| 16 | obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o | 16 | obj-y += marvell/ |
| 17 | 17 | obj-y += mediatek/ | |
| 18 | obj-y += ti-vpe/ | 18 | obj-y += nvidia/ |
| 19 | 19 | obj-y += nxp/ | |
| 20 | obj-$(CONFIG_VIDEO_MX2_EMMAPRP) += mx2_emmaprp.o | 20 | obj-y += qcom/ |
| 21 | obj-$(CONFIG_VIDEO_CODA) += coda/ | 21 | obj-y += renesas/ |
| 22 | 22 | obj-y += rockchip/ | |
| 23 | obj-$(CONFIG_VIDEO_IMX_PXP) += imx-pxp.o | 23 | obj-y += samsung/ |
| 24 | obj-$(CONFIG_VIDEO_IMX8_JPEG) += imx-jpeg/ | 24 | obj-y += st/ |
| 25 | 25 | obj-y += sunxi/ | |
| 26 | obj-y += ti/ | ||
| 27 | obj-y += via/ | ||
| 28 | obj-y += xilinx/ | ||
| 29 | |||
| 30 | # Please place here only ancillary drivers that aren't SoC-specific | ||
| 31 | # Please keep it alphabetically sorted by Kconfig name | ||
| 32 | # (e. g. LC_ALL=C sort Makefile) | ||
| 26 | obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE) += m2m-deinterlace.o | 33 | obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE) += m2m-deinterlace.o |
| 27 | |||
| 28 | obj-$(CONFIG_VIDEO_MUX) += video-mux.o | 34 | obj-$(CONFIG_VIDEO_MUX) += video-mux.o |
| 29 | |||
| 30 | obj-$(CONFIG_VIDEO_S3C_CAMIF) += s3c-camif/ | ||
| 31 | obj-$(CONFIG_VIDEO_SAMSUNG_EXYNOS4_IS) += exynos4-is/ | ||
| 32 | obj-$(CONFIG_VIDEO_SAMSUNG_S5P_JPEG) += s5p-jpeg/ | ||
| 33 | obj-$(CONFIG_VIDEO_SAMSUNG_S5P_MFC) += s5p-mfc/ | ||
| 34 | |||
| 35 | obj-$(CONFIG_VIDEO_SAMSUNG_S5P_G2D) += s5p-g2d/ | ||
| 36 | obj-$(CONFIG_VIDEO_SAMSUNG_EXYNOS_GSC) += exynos-gsc/ | ||
| 37 | |||
| 38 | obj-$(CONFIG_VIDEO_STI_BDISP) += sti/bdisp/ | ||
| 39 | obj-$(CONFIG_VIDEO_STI_HVA) += sti/hva/ | ||
| 40 | obj-$(CONFIG_DVB_C8SECTPFE) += sti/c8sectpfe/ | ||
| 41 | |||
| 42 | obj-$(CONFIG_VIDEO_STI_DELTA) += sti/delta/ | ||
| 43 | |||
| 44 | obj-y += stm32/ | ||
| 45 | |||
| 46 | obj-y += davinci/ | ||
| 47 | |||
| 48 | obj-$(CONFIG_VIDEO_SH_VOU) += sh_vou.o | ||
| 49 | |||
| 50 | obj-$(CONFIG_VIDEO_RCAR_DRIF) += rcar_drif.o | ||
| 51 | obj-$(CONFIG_VIDEO_RENESAS_CEU) += renesas-ceu.o | ||
| 52 | obj-$(CONFIG_VIDEO_RENESAS_FCP) += rcar-fcp.o | ||
| 53 | obj-$(CONFIG_VIDEO_RENESAS_FDP1) += rcar_fdp1.o | ||
| 54 | obj-$(CONFIG_VIDEO_RENESAS_JPU) += rcar_jpu.o | ||
| 55 | obj-$(CONFIG_VIDEO_RENESAS_VSP1) += vsp1/ | ||
| 56 | |||
| 57 | obj-$(CONFIG_VIDEO_ROCKCHIP_ISP1) += rockchip/rkisp1/ | ||
| 58 | obj-$(CONFIG_VIDEO_ROCKCHIP_RGA) += rockchip/rga/ | ||
| 59 | |||
| 60 | obj-y += omap/ | ||
| 61 | |||
| 62 | obj-$(CONFIG_VIDEO_AM437X_VPFE) += am437x/ | ||
| 63 | |||
| 64 | obj-$(CONFIG_VIDEO_XILINX) += xilinx/ | ||
| 65 | |||
| 66 | obj-$(CONFIG_VIDEO_RCAR_ISP) += rcar-isp.o | ||
| 67 | obj-$(CONFIG_VIDEO_RCAR_VIN) += rcar-vin/ | ||
| 68 | |||
| 69 | obj-$(CONFIG_VIDEO_ATMEL_ISC) += atmel/ | ||
| 70 | obj-$(CONFIG_VIDEO_ATMEL_ISI) += atmel/ | ||
| 71 | obj-$(CONFIG_VIDEO_ATMEL_XISC) += atmel/ | ||
| 72 | |||
| 73 | obj-$(CONFIG_VIDEO_STM32_DCMI) += stm32/ | ||
| 74 | obj-$(CONFIG_VIDEO_STM32_DMA2D) += stm32/ | ||
| 75 | |||
| 76 | obj-$(CONFIG_VIDEO_MEDIATEK_VPU) += mtk-vpu/ | ||
| 77 | |||
| 78 | obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec/ | ||
| 79 | |||
| 80 | obj-$(CONFIG_VIDEO_MEDIATEK_MDP) += mtk-mdp/ | ||
| 81 | |||
| 82 | obj-$(CONFIG_VIDEO_MEDIATEK_JPEG) += mtk-jpeg/ | ||
| 83 | |||
| 84 | obj-$(CONFIG_VIDEO_QCOM_CAMSS) += qcom/camss/ | ||
| 85 | |||
| 86 | obj-$(CONFIG_VIDEO_QCOM_VENUS) += qcom/venus/ | ||
| 87 | |||
| 88 | obj-y += sunxi/ | ||
| 89 | |||
| 90 | obj-$(CONFIG_VIDEO_MESON_GE2D) += meson/ge2d/ | ||
| @@ -0,0 +1,19 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | |||
| 3 | comment "Allegro DVT media platform drivers" | ||
| 4 | |||
| 5 | config VIDEO_ALLEGRO_DVT | ||
| 6 | tristate "Allegro DVT Video IP Core" | ||
| 7 | depends on V4L_MEM2MEM_DRIVERS | ||
| 8 | depends on VIDEO_DEV | ||
| 9 | depends on ARCH_ZYNQMP || COMPILE_TEST | ||
| 10 | select V4L2_MEM2MEM_DEV | ||
| 11 | select VIDEOBUF2_DMA_CONTIG | ||
| 12 | select REGMAP_MMIO | ||
| 13 | help | ||
| 14 | Support for the encoder video IP core by Allegro DVT. This core is | ||
| 15 | found for example on the Xilinx ZynqMP SoC in the EV family and is | ||
| 16 | called VCU in the reference manual. | ||
| 17 | |||
| 18 | To compile this driver as a module, choose M here: the module | ||
| 19 | will be called allegro. | ||
| @@ -0,0 +1,5 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | |||
| 3 | comment "Amlogic media platform drivers" | ||
| 4 | |||
| 5 | source "drivers/media/platform/amlogic/meson-ge2d/Kconfig" | ||
| @@ -0,0 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | obj-y += meson-ge2d/ | ||
| @@ -0,0 +1,14 @@ | |||
| 1 | config VIDEO_MESON_GE2D | ||
| 2 | tristate "Amlogic 2D Graphic Acceleration Unit" | ||
| 3 | depends on V4L_MEM2MEM_DRIVERS | ||
| 4 | depends on VIDEO_DEV | ||
| 5 | depends on ARCH_MESON || COMPILE_TEST | ||
| 6 | select VIDEOBUF2_DMA_CONTIG | ||
| 7 | select V4L2_MEM2MEM_DEV | ||
| 8 | help | ||
| 9 | This is a v4l2 driver for Amlogic GE2D 2D graphics accelerator. | ||
| 10 | GE2D is a standalone 2D graphic acceleration unit, with color converter, | ||
| 11 | image scaling, BitBLT & alpha blending operations. | ||
| 12 | |||
| 13 | To compile this driver as a module choose m here. | ||
| 14 | |||
File renamed without changes.
File renamed without changes.
| @@ -215,35 +215,35 @@ static void ge2d_hw_start(struct meson_ge2d *ge2d) · 214 unmodified lines | |||
| 215 | 215 | ||
| 216 | regmap_write(ge2d->map, GE2D_SRC1_CLIPY_START_END, | 216 | regmap_write(ge2d->map, GE2D_SRC1_CLIPY_START_END, |
| 217 | FIELD_PREP(GE2D_START, ctx->in.crop.top) | | 217 | FIELD_PREP(GE2D_START, ctx->in.crop.top) | |
| 218 | FIELD_PREP(GE2D_END, ctx->in.crop.top + ctx->in.crop.height)); | 218 | FIELD_PREP(GE2D_END, ctx->in.crop.top + ctx->in.crop.height - 1)); |
| 219 | regmap_write(ge2d->map, GE2D_SRC1_CLIPX_START_END, | 219 | regmap_write(ge2d->map, GE2D_SRC1_CLIPX_START_END, |
| 220 | FIELD_PREP(GE2D_START, ctx->in.crop.left) | | 220 | FIELD_PREP(GE2D_START, ctx->in.crop.left) | |
| 221 | FIELD_PREP(GE2D_END, ctx->in.crop.left + ctx->in.crop.width)); | 221 | FIELD_PREP(GE2D_END, ctx->in.crop.left + ctx->in.crop.width - 1)); |
| 222 | regmap_write(ge2d->map, GE2D_SRC2_CLIPY_START_END, | 222 | regmap_write(ge2d->map, GE2D_SRC2_CLIPY_START_END, |
| 223 | FIELD_PREP(GE2D_START, ctx->out.crop.top) | | 223 | FIELD_PREP(GE2D_START, ctx->out.crop.top) | |
| 224 | FIELD_PREP(GE2D_END, ctx->out.crop.top + ctx->out.crop.height)); | 224 | FIELD_PREP(GE2D_END, ctx->out.crop.top + ctx->out.crop.height - 1)); |
| 225 | regmap_write(ge2d->map, GE2D_SRC2_CLIPX_START_END, | 225 | regmap_write(ge2d->map, GE2D_SRC2_CLIPX_START_END, |
| 226 | FIELD_PREP(GE2D_START, ctx->out.crop.left) | | 226 | FIELD_PREP(GE2D_START, ctx->out.crop.left) | |
| 227 | FIELD_PREP(GE2D_END, ctx->out.crop.left + ctx->out.crop.width)); | 227 | FIELD_PREP(GE2D_END, ctx->out.crop.left + ctx->out.crop.width - 1)); |
| 228 | regmap_write(ge2d->map, GE2D_DST_CLIPY_START_END, | 228 | regmap_write(ge2d->map, GE2D_DST_CLIPY_START_END, |
| 229 | FIELD_PREP(GE2D_START, ctx->out.crop.top) | | 229 | FIELD_PREP(GE2D_START, ctx->out.crop.top) | |
| 230 | FIELD_PREP(GE2D_END, ctx->out.crop.top + ctx->out.crop.height)); | 230 | FIELD_PREP(GE2D_END, ctx->out.crop.top + ctx->out.crop.height - 1)); |
| 231 | regmap_write(ge2d->map, GE2D_DST_CLIPX_START_END, | 231 | regmap_write(ge2d->map, GE2D_DST_CLIPX_START_END, |
| 232 | FIELD_PREP(GE2D_START, ctx->out.crop.left) | | 232 | FIELD_PREP(GE2D_START, ctx->out.crop.left) | |
| 233 | FIELD_PREP(GE2D_END, ctx->out.crop.left + ctx->out.crop.width)); | 233 | FIELD_PREP(GE2D_END, ctx->out.crop.left + ctx->out.crop.width - 1)); |
| 234 | 234 | ||
| 235 | regmap_write(ge2d->map, GE2D_SRC1_Y_START_END, | 235 | regmap_write(ge2d->map, GE2D_SRC1_Y_START_END, |
| 236 | FIELD_PREP(GE2D_END, ctx->in.pix_fmt.height)); | 236 | FIELD_PREP(GE2D_END, ctx->in.pix_fmt.height - 1)); |
| 237 | regmap_write(ge2d->map, GE2D_SRC1_X_START_END, | 237 | regmap_write(ge2d->map, GE2D_SRC1_X_START_END, |
| 238 | FIELD_PREP(GE2D_END, ctx->in.pix_fmt.width)); | 238 | FIELD_PREP(GE2D_END, ctx->in.pix_fmt.width - 1)); |
| 239 | regmap_write(ge2d->map, GE2D_SRC2_Y_START_END, | 239 | regmap_write(ge2d->map, GE2D_SRC2_Y_START_END, |
| 240 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.height)); | 240 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.height - 1)); |
| 241 | regmap_write(ge2d->map, GE2D_SRC2_X_START_END, | 241 | regmap_write(ge2d->map, GE2D_SRC2_X_START_END, |
| 242 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.width)); | 242 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.width - 1)); |
| 243 | regmap_write(ge2d->map, GE2D_DST_Y_START_END, | 243 | regmap_write(ge2d->map, GE2D_DST_Y_START_END, |
| 244 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.height)); | 244 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.height - 1)); |
| 245 | regmap_write(ge2d->map, GE2D_DST_X_START_END, | 245 | regmap_write(ge2d->map, GE2D_DST_X_START_END, |
| 246 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.width)); | 246 | FIELD_PREP(GE2D_END, ctx->out.pix_fmt.width - 1)); |
| 247 | 247 | ||
| 248 | /* Color, no blend, use source color */ | 248 | /* Color, no blend, use source color */ |
| 249 | reg = GE2D_ALU_DO_COLOR_OPERATION_LOGIC(LOGIC_OPERATION_COPY, | 249 | reg = GE2D_ALU_DO_COLOR_OPERATION_LOGIC(LOGIC_OPERATION_COPY, |
| @@ -0,0 +1,22 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | |||
| 3 | comment "Amphion drivers" | ||
| 4 | |||
| 5 | config VIDEO_AMPHION_VPU | ||
| 6 | tristate "Amphion VPU (Video Processing Unit) Codec IP" | ||
| 7 | depends on V4L_MEM2MEM_DRIVERS | ||
| 8 | depends on ARCH_MXC || COMPILE_TEST | ||
| 9 | depends on MEDIA_SUPPORT | ||
| 10 | depends on VIDEO_DEV && MAILBOX | ||
| 11 | select MEDIA_CONTROLLER | ||
| 12 | select V4L2_MEM2MEM_DEV | ||
| 13 | select VIDEOBUF2_DMA_CONTIG | ||
| 14 | select VIDEOBUF2_VMALLOC | ||
| 15 | help | ||
| 16 | Amphion VPU Codec IP contains two parts: Windsor and Malone. | ||
| 17 | Windsor is encoder that supports H.264, and Malone is decoder | ||
| 18 | that supports H.264, HEVC, and other video formats. | ||
| 19 | This is a V4L2 driver for NXP MXC 8Q video accelerator hardware. | ||
| 20 | It accelerates encoding and decoding operations on | ||
| 21 | various NXP SoCs. | ||
| 22 | To compile this driver as a module choose m here. | ||
| @@ -0,0 +1,20 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Makefile for NXP VPU driver | ||
| 3 | |||
| 4 | amphion-vpu-objs += vpu_drv.o \ | ||
| 5 | vpu_core.o \ | ||
| 6 | vpu_mbox.o \ | ||
| 7 | vpu_v4l2.o \ | ||
| 8 | vpu_helpers.o \ | ||
| 9 | vpu_cmds.o \ | ||
| 10 | vpu_msgs.o \ | ||
| 11 | vpu_rpc.o \ | ||
| 12 | vpu_imx8q.o \ | ||
| 13 | vpu_windsor.o \ | ||
| 14 | vpu_malone.o \ | ||
| 15 | vpu_color.o \ | ||
| 16 | vdec.o \ | ||
| 17 | venc.o \ | ||
| 18 | vpu_dbg.o | ||
| 19 | |||
| 20 | obj-$(CONFIG_VIDEO_AMPHION_VPU) += amphion-vpu.o | ||
| @@ -0,0 +1,1656 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 2 | /* | ||
| 3 | * Copyright 2020-2021 NXP | ||
| 4 | */ | ||
| 5 | |||
| 6 | #include <linux/init.h> | ||
| 7 | #include <linux/interconnect.h> | ||
| 8 | #include <linux/ioctl.h> | ||
| 9 | #include <linux/list.h> | ||
| 10 | #include <linux/kernel.h> | ||
| 11 | #include <linux/module.h> | ||
| 12 | #include <linux/vmalloc.h> | ||
| 13 | #include <linux/videodev2.h> | ||
| 14 | #include <media/v4l2-device.h> | ||
| 15 | #include <media/v4l2-event.h> | ||
| 16 | #include <media/v4l2-mem2mem.h> | ||
| 17 | #include <media/v4l2-ioctl.h> | ||
| 18 | #include <media/videobuf2-v4l2.h> | ||
| 19 | #include <media/videobuf2-dma-contig.h> | ||
| 20 | #include <media/videobuf2-vmalloc.h> | ||
| 21 | #include "vpu.h" | ||
| 22 | #include "vpu_defs.h" | ||
| 23 | #include "vpu_core.h" | ||
| 24 | #include "vpu_helpers.h" | ||
| 25 | #include "vpu_v4l2.h" | ||
| 26 | #include "vpu_cmds.h" | ||
| 27 | #include "vpu_rpc.h" | ||
| 28 | |||
| 29 | #define VDEC_FRAME_DEPTH 256 | ||
| 30 | #define VDEC_MIN_BUFFER_CAP 8 | ||
| 31 | |||
| 32 | struct vdec_fs_info { | ||
| 33 | char name[8]; | ||
| 34 | u32 type; | ||
| 35 | u32 max_count; | ||
| 36 | u32 req_count; | ||
| 37 | u32 count; | ||
| 38 | u32 index; | ||
| 39 | u32 size; | ||
| 40 | struct vpu_buffer buffer[32]; | ||
| 41 | u32 tag; | ||
| 42 | }; | ||
| 43 | |||
| 44 | struct vdec_t { | ||
| 45 | u32 seq_hdr_found; | ||
| 46 | struct vpu_buffer udata; | ||
| 47 | struct vpu_decode_params params; | ||
| 48 | struct vpu_dec_codec_info codec_info; | ||
| 49 | enum vpu_codec_state state; | ||
| 50 | |||
| 51 | struct vpu_vb2_buffer *slots[VB2_MAX_FRAME]; | ||
| 52 | u32 req_frame_count; | ||
| 53 | struct vdec_fs_info mbi; | ||
| 54 | struct vdec_fs_info dcp; | ||
| 55 | u32 seq_tag; | ||
| 56 | |||
| 57 | bool reset_codec; | ||
| 58 | bool fixed_fmt; | ||
| 59 | u32 decoded_frame_count; | ||
| 60 | u32 display_frame_count; | ||
| 61 | u32 sequence; | ||
| 62 | u32 eos_received; | ||
| 63 | bool is_source_changed; | ||
| 64 | u32 source_change; | ||
| 65 | u32 drain; | ||
| 66 | u32 ts_pre_count; | ||
| 67 | u32 frame_depth; | ||
| 68 | }; | ||
| 69 | |||
| 70 | static const struct vpu_format vdec_formats[] = { | ||
| 71 | { | ||
| 72 | .pixfmt = V4L2_PIX_FMT_NV12M_8L128, | ||
| 73 | .num_planes = 2, | ||
| 74 | .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, | ||
| 75 | }, | ||
| 76 | { | ||
| 77 | .pixfmt = V4L2_PIX_FMT_NV12M_10BE_8L128, | ||
| 78 | .num_planes = 2, | ||
| 79 | .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, | ||
| 80 | }, | ||
| 81 | { | ||
| 82 | .pixfmt = V4L2_PIX_FMT_H264, | ||
| 83 | .num_planes = 1, | ||
| 84 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 85 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 86 | }, | ||
| 87 | { | ||
| 88 | .pixfmt = V4L2_PIX_FMT_H264_MVC, | ||
| 89 | .num_planes = 1, | ||
| 90 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 91 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 92 | }, | ||
| 93 | { | ||
| 94 | .pixfmt = V4L2_PIX_FMT_HEVC, | ||
| 95 | .num_planes = 1, | ||
| 96 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 97 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 98 | }, | ||
| 99 | { | ||
| 100 | .pixfmt = V4L2_PIX_FMT_VC1_ANNEX_G, | ||
| 101 | .num_planes = 1, | ||
| 102 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 103 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 104 | }, | ||
| 105 | { | ||
| 106 | .pixfmt = V4L2_PIX_FMT_VC1_ANNEX_L, | ||
| 107 | .num_planes = 1, | ||
| 108 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 109 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 110 | }, | ||
| 111 | { | ||
| 112 | .pixfmt = V4L2_PIX_FMT_MPEG2, | ||
| 113 | .num_planes = 1, | ||
| 114 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 115 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 116 | }, | ||
| 117 | { | ||
| 118 | .pixfmt = V4L2_PIX_FMT_MPEG4, | ||
| 119 | .num_planes = 1, | ||
| 120 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 121 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 122 | }, | ||
| 123 | { | ||
| 124 | .pixfmt = V4L2_PIX_FMT_XVID, | ||
| 125 | .num_planes = 1, | ||
| 126 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 127 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 128 | }, | ||
| 129 | { | ||
| 130 | .pixfmt = V4L2_PIX_FMT_VP8, | ||
| 131 | .num_planes = 1, | ||
| 132 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 133 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 134 | }, | ||
| 135 | { | ||
| 136 | .pixfmt = V4L2_PIX_FMT_H263, | ||
| 137 | .num_planes = 1, | ||
| 138 | .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, | ||
| 139 | .flags = V4L2_FMT_FLAG_DYN_RESOLUTION | ||
| 140 | }, | ||
| 141 | {0, 0, 0, 0}, | ||
| 142 | }; | ||
| 143 | |||
| 144 | static const struct v4l2_ctrl_ops vdec_ctrl_ops = { | ||
| 145 | .g_volatile_ctrl = vpu_helper_g_volatile_ctrl, | ||
| 146 | }; | ||
| 147 | |||
| 148 | static int vdec_ctrl_init(struct vpu_inst *inst) | ||
| 149 | { | ||
| 150 | struct v4l2_ctrl *ctrl; | ||
| 151 | int ret; | ||
| 152 | |||
| 153 | ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 20); | ||
| 154 | if (ret) | ||
| 155 | return ret; | ||
| 156 | |||
| 157 | ctrl = v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, | ||
| 158 | V4L2_CID_MIN_BUFFERS_FOR_CAPTURE, 1, 32, 1, 2); | ||
| 159 | if (ctrl) | ||
| 160 | ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; | ||
| 161 | |||
| 162 | ctrl = v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, | ||
| 163 | V4L2_CID_MIN_BUFFERS_FOR_OUTPUT, 1, 32, 1, 2); | ||
| 164 | if (ctrl) | ||
| 165 | ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; | ||
| 166 | |||
| 167 | ret = v4l2_ctrl_handler_setup(&inst->ctrl_handler); | ||
| 168 | if (ret) { | ||
| 169 | dev_err(inst->dev, "[%d] setup ctrls fail, ret = %d\n", inst->id, ret); | ||
| 170 | v4l2_ctrl_handler_free(&inst->ctrl_handler); | ||
| 171 | return ret; | ||
| 172 | } | ||
| 173 | |||
| 174 | return 0; | ||
| 175 | } | ||
| 176 | |||
| 177 | static void vdec_set_last_buffer_dequeued(struct vpu_inst *inst) | ||
| 178 | { | ||
| 179 | struct vdec_t *vdec = inst->priv; | ||
| 180 | |||
| 181 | if (vdec->eos_received) { | ||
| 182 | if (!vpu_set_last_buffer_dequeued(inst)) | ||
| 183 | vdec->eos_received--; | ||
| 184 | } | ||
| 185 | } | ||
| 186 | |||
| 187 | static void vdec_handle_resolution_change(struct vpu_inst *inst) | ||
| 188 | { | ||
| 189 | struct vdec_t *vdec = inst->priv; | ||
| 190 | struct vb2_queue *q; | ||
| 191 | |||
| 192 | if (!inst->fh.m2m_ctx) | ||
| 193 | return; | ||
| 194 | |||
| 195 | if (inst->state != VPU_CODEC_STATE_DYAMIC_RESOLUTION_CHANGE) | ||
| 196 | return; | ||
| 197 | if (!vdec->source_change) | ||
| 198 | return; | ||
| 199 | |||
| 200 | q = v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx); | ||
| 201 | if (!list_empty(&q->done_list)) | ||
| 202 | return; | ||
| 203 | |||
| 204 | vdec->source_change--; | ||
| 205 | vpu_notify_source_change(inst); | ||
| 206 | } | ||
| 207 | |||
| 208 | static int vdec_update_state(struct vpu_inst *inst, enum vpu_codec_state state, u32 force) | ||
| 209 | { | ||
| 210 | struct vdec_t *vdec = inst->priv; | ||
| 211 | enum vpu_codec_state pre_state = inst->state; | ||
| 212 | |||
| 213 | if (state == VPU_CODEC_STATE_SEEK) { | ||
| 214 | if (inst->state == VPU_CODEC_STATE_DYAMIC_RESOLUTION_CHANGE) | ||
| 215 | vdec->state = inst->state; | ||
| 216 | else | ||
| 217 | vdec->state = VPU_CODEC_STATE_ACTIVE; | ||
| 218 | } | ||
| 219 | if (inst->state != VPU_CODEC_STATE_SEEK || force) | ||
| 220 | inst->state = state; | ||
| 221 | else if (state == VPU_CODEC_STATE_DYAMIC_RESOLUTION_CHANGE) | ||
| 222 | vdec->state = VPU_CODEC_STATE_DYAMIC_RESOLUTION_CHANGE; | ||
| 223 | |||
| 224 | if (inst->state != pre_state) | ||
| 225 | vpu_trace(inst->dev, "[%d] %d -> %d\n", inst->id, pre_state, inst->state); | ||
| 226 | |||
| 227 | if (inst->state == VPU_CODEC_STATE_DYAMIC_RESOLUTION_CHANGE) | ||
| 228 | vdec_handle_resolution_change(inst); | ||
| 229 | |||
| 230 | return 0; | ||
| 231 | } | ||
| 232 | |||
| 233 | static int vdec_querycap(struct file *file, void *fh, struct v4l2_capability *cap) | ||
| 234 | { | ||
| 235 | strscpy(cap->driver, "amphion-vpu", sizeof(cap->driver)); | ||
| 236 | strscpy(cap->card, "amphion vpu decoder", sizeof(cap->card)); | ||
| 237 | strscpy(cap->bus_info, "platform: amphion-vpu", sizeof(cap->bus_info)); | ||
| 238 | |||
| 239 | return 0; | ||
| 240 | } | ||
| 241 | |||
| 242 | static int vdec_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) | ||
| 243 | { | ||
| 244 | struct vpu_inst *inst = to_inst(file); | ||
| 245 | struct vdec_t *vdec = inst->priv; | ||
| 246 | const struct vpu_format *fmt; | ||
| 247 | int ret = -EINVAL; | ||
| 248 | |||
| 249 | vpu_inst_lock(inst); | ||
| 250 | if (!V4L2_TYPE_IS_OUTPUT(f->type) && vdec->fixed_fmt) { | ||
| 251 | if (f->index == 0) { | ||
| 252 | f->pixelformat = inst->cap_format.pixfmt; | ||
| 253 | f->flags = inst->cap_format.flags; | ||
| 254 | ret = 0; | ||
| 255 | } | ||
| 256 | } else { | ||
| 257 | fmt = vpu_helper_enum_format(inst, f->type, f->index); | ||
| 258 | memset(f->reserved, 0, sizeof(f->reserved)); | ||
| 259 | if (!fmt) | ||
| 260 | goto exit; | ||
| 261 | |||
| 262 | f->pixelformat = fmt->pixfmt; | ||
| 263 | f->flags = fmt->flags; | ||
| 264 | ret = 0; | ||
| 265 | } | ||
| 266 | |||
| 267 | exit: | ||
| 268 | vpu_inst_unlock(inst); | ||
| 269 | return ret; | ||
| 270 | } | ||
| 271 | |||
| 272 | static int vdec_g_fmt(struct file *file, void *fh, struct v4l2_format *f) | ||
| 273 | { | ||
| 274 | struct vpu_inst *inst = to_inst(file); | ||
| 275 | struct vdec_t *vdec = inst->priv; | ||
| 276 | struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; | ||
| 277 | struct vpu_format *cur_fmt; | ||
| 278 | int i; | ||
| 279 | |||
| 280 | cur_fmt = vpu_get_format(inst, f->type); | ||
| 281 | |||
| 282 | pixmp->pixelformat = cur_fmt->pixfmt; | ||
| 283 | pixmp->num_planes = cur_fmt->num_planes; | ||
| 284 | pixmp->width = cur_fmt->width; | ||
| 285 | pixmp->height = cur_fmt->height; | ||
| 286 | pixmp->field = cur_fmt->field; | ||
| 287 | pixmp->flags = cur_fmt->flags; | ||
| 288 | for (i = 0; i < pixmp->num_planes; i++) { | ||
| 289 | pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; | ||
| 290 | pixmp->plane_fmt[i].sizeimage = cur_fmt->sizeimage[i]; | ||
| 291 | } | ||
| 292 | |||
| 293 | f->fmt.pix_mp.colorspace = vdec->codec_info.color_primaries; | ||
| 294 | f->fmt.pix_mp.xfer_func = vdec->codec_info.transfer_chars; | ||
| 295 | f->fmt.pix_mp.ycbcr_enc = vdec->codec_info.matrix_coeffs; | ||
| 296 | f->fmt.pix_mp.quantization = vdec->codec_info.full_range; | ||
| 297 | |||
| 298 | return 0; | ||
| 299 | } | ||
| 300 | |||
| 301 | static int vdec_try_fmt(struct file *file, void *fh, struct v4l2_format *f) | ||
| 302 | { | ||
| 303 | struct vpu_inst *inst = to_inst(file); | ||
| 304 | struct vdec_t *vdec = inst->priv; | ||
| 305 | |||
| 306 | vpu_try_fmt_common(inst, f); | ||
| 307 | |||
| 308 | vpu_inst_lock(inst); | ||
| 309 | if (vdec->fixed_fmt) { | ||
| 310 | f->fmt.pix_mp.colorspace = vdec->codec_info.color_primaries; | ||
| 311 | f->fmt.pix_mp.xfer_func = vdec->codec_info.transfer_chars; | ||
| 312 | f->fmt.pix_mp.ycbcr_enc = vdec->codec_info.matrix_coeffs; | ||
| 313 | f->fmt.pix_mp.quantization = vdec->codec_info.full_range; | ||
| 314 | } else { | ||
| 315 | f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_DEFAULT; | ||
| 316 | f->fmt.pix_mp.xfer_func = V4L2_XFER_FUNC_DEFAULT; | ||
| 317 | f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; | ||
| 318 | f->fmt.pix_mp.quantization = V4L2_QUANTIZATION_DEFAULT; | ||
| 319 | } | ||
| 320 | vpu_inst_unlock(inst); | ||
| 321 | |||
| 322 | return 0; | ||
| 323 | } | ||
| 324 | |||
| 325 | static int vdec_s_fmt_common(struct vpu_inst *inst, struct v4l2_format *f) | ||
| 326 | { | ||
| 327 | struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; | ||
| 328 | const struct vpu_format *fmt; | ||
| 329 | struct vpu_format *cur_fmt; | ||
| 330 | struct vb2_queue *q; | ||
| 331 | struct vdec_t *vdec = inst->priv; | ||
| 332 | int i; | ||
| 333 | |||
| 334 | if (!inst->fh.m2m_ctx) | ||
| 335 | return -EINVAL; | ||
| 336 | |||
| 337 | q = v4l2_m2m_get_vq(inst->fh.m2m_ctx, f->type); | ||
| 338 | if (!q) | ||
| 339 | return -EINVAL; | ||
| 340 | if (vb2_is_busy(q)) | ||
| 341 | return -EBUSY; | ||
| 342 | |||
| 343 | fmt = vpu_try_fmt_common(inst, f); | ||
| 344 | if (!fmt) | ||
| 345 | return -EINVAL; | ||
| 346 | |||
| 347 | cur_fmt = vpu_get_format(inst, f->type); | ||
| 348 | if (V4L2_TYPE_IS_OUTPUT(f->type) && inst->state != VPU_CODEC_STATE_DEINIT) { | ||
| 349 | if (cur_fmt->pixfmt != fmt->pixfmt) { | ||
| 350 | vdec->reset_codec = true; | ||
| 351 | vdec->fixed_fmt = false; | ||
| 352 | } | ||
| 353 | } | ||
| 354 | cur_fmt->pixfmt = fmt->pixfmt; | ||
| 355 | if (V4L2_TYPE_IS_OUTPUT(f->type) || !vdec->fixed_fmt) { | ||
| 356 | cur_fmt->num_planes = fmt->num_planes; | ||
| 357 | cur_fmt->flags = fmt->flags; | ||
| 358 | cur_fmt->width = pixmp->width; | ||
| 359 | cur_fmt->height = pixmp->height; | ||
| 360 | for (i = 0; i < fmt->num_planes; i++) { | ||
| 361 | cur_fmt->sizeimage[i] = pixmp->plane_fmt[i].sizeimage; | ||
| 362 | cur_fmt->bytesperline[i] = pixmp->plane_fmt[i].bytesperline; | ||
| 363 | } | ||
| 364 | if (pixmp->field != V4L2_FIELD_ANY) | ||
| 365 | cur_fmt->field = pixmp->field; | ||
| 366 | } else { | ||
| 367 | pixmp->num_planes = cur_fmt->num_planes; | ||
| 368 | pixmp->width = cur_fmt->width; | ||
| 369 | pixmp->height = cur_fmt->height; | ||
| 370 | for (i = 0; i < pixmp->num_planes; i++) { | ||
| 371 | pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; | ||
| 372 | pixmp->plane_fmt[i].sizeimage = cur_fmt->sizeimage[i]; | ||
| 373 | } | ||
| 374 | pixmp->field = cur_fmt->field; | ||
| 375 | } | ||
| 376 | |||
| 377 | if (!vdec->fixed_fmt) { | ||
| 378 | if (V4L2_TYPE_IS_OUTPUT(f->type)) { | ||
| 379 | vdec->params.codec_format = cur_fmt->pixfmt; | ||
| 380 | vdec->codec_info.color_primaries = f->fmt.pix_mp.colorspace; | ||
| 381 | vdec->codec_info.transfer_chars = f->fmt.pix_mp.xfer_func; | ||
| 382 | vdec->codec_info.matrix_coeffs = f->fmt.pix_mp.ycbcr_enc; | ||
| 383 | vdec->codec_info.full_range = f->fmt.pix_mp.quantization; | ||
| 384 | } else { | ||
| 385 | vdec->params.output_format = cur_fmt->pixfmt; | ||
| 386 | inst->crop.left = 0; | ||
| 387 | inst->crop.top = 0; | ||
| 388 | inst->crop.width = cur_fmt->width; | ||
| 389 | inst->crop.height = cur_fmt->height; | ||
| 390 | } | ||
| 391 | } | ||
| 392 | |||
| 393 | vpu_trace(inst->dev, "[%d] %c%c%c%c %dx%d\n", inst->id, | ||
| 394 | f->fmt.pix_mp.pixelformat, | ||
| 395 | f->fmt.pix_mp.pixelformat >> 8, | ||
| 396 | f->fmt.pix_mp.pixelformat >> 16, | ||
| 397 | f->fmt.pix_mp.pixelformat >> 24, | ||
| 398 | f->fmt.pix_mp.width, | ||
| 399 | f->fmt.pix_mp.height); | ||
| 400 | |||
| 401 | return 0; | ||
| 402 | } | ||
| 403 | |||
| 404 | static int vdec_s_fmt(struct file *file, void *fh, struct v4l2_format *f) | ||
| 405 | { | ||
| 406 | struct vpu_inst *inst = to_inst(file); | ||
| 407 | struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; | ||
| 408 | struct vdec_t *vdec = inst->priv; | ||
| 409 | int ret = 0; | ||
| 410 | |||
| 411 | vpu_inst_lock(inst); | ||
| 412 | ret = vdec_s_fmt_common(inst, f); | ||
| 413 | if (ret) | ||
| 414 | goto exit; | ||
| 415 | |||
| 416 | if (V4L2_TYPE_IS_OUTPUT(f->type) && !vdec->fixed_fmt) { | ||
| 417 | struct v4l2_format fc; | ||
| 418 | |||
| 419 | memset(&fc, 0, sizeof(fc)); | ||
| 420 | fc.type = inst->cap_format.type; | ||
| 421 | fc.fmt.pix_mp.pixelformat = inst->cap_format.pixfmt; | ||
| 422 | fc.fmt.pix_mp.width = pixmp->width; | ||
| 423 | fc.fmt.pix_mp.height = pixmp->height; | ||
| 424 | vdec_s_fmt_common(inst, &fc); | ||
| 425 | } | ||
| 426 | |||
| 427 | f->fmt.pix_mp.colorspace = vdec->codec_info.color_primaries; | ||
| 428 | f->fmt.pix_mp.xfer_func = vdec->codec_info.transfer_chars; | ||
| 429 | f->fmt.pix_mp.ycbcr_enc = vdec->codec_info.matrix_coeffs; | ||
| 430 | f->fmt.pix_mp.quantization = vdec->codec_info.full_range; | ||
| 431 | |||
| 432 | exit: | ||
| 433 | vpu_inst_unlock(inst); | ||
| 434 | return ret; | ||
| 435 | } | ||
| 436 | |||
| 437 | static int vdec_g_selection(struct file *file, void *fh, struct v4l2_selection *s) | ||
| 438 | { | ||
| 439 | struct vpu_inst *inst = to_inst(file); | ||
| 440 | |||
| 441 | if (s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE && s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) | ||
| 442 | return -EINVAL; | ||
| 443 | |||
| 444 | switch (s->target) { | ||
| 445 | case V4L2_SEL_TGT_COMPOSE: | ||
| 446 | case V4L2_SEL_TGT_COMPOSE_DEFAULT: | ||
| 447 | case V4L2_SEL_TGT_COMPOSE_PADDED: | ||
| 448 | s->r = inst->crop; | ||
| 449 | break; | ||
| 450 | case V4L2_SEL_TGT_COMPOSE_BOUNDS: | ||
| 451 | s->r.left = 0; | ||
| 452 | s->r.top = 0; | ||
| 453 | s->r.width = inst->cap_format.width; | ||
| 454 | s->r.height = inst->cap_format.height; | ||
| 455 | break; | ||
| 456 | default: | ||
| 457 | return -EINVAL; | ||
| 458 | } | ||
| 459 | |||
| 460 | return 0; | ||
| 461 | } | ||
| 462 | |||
| 463 | static int vdec_drain(struct vpu_inst *inst) | ||
| 464 | { | ||
| 465 | struct vdec_t *vdec = inst->priv; | ||
| 466 | |||
| 467 | if (!inst->fh.m2m_ctx) | ||
| 468 | return 0; | ||
| 469 | |||
| 470 | if (!vdec->drain) | ||
| 471 | return 0; | ||
| 472 | |||
| 473 | if (v4l2_m2m_num_src_bufs_ready(inst->fh.m2m_ctx)) | ||
| 474 | return 0; | ||
| 475 | |||
| 476 | if (!vdec->params.frame_count) { | ||
| 477 | vpu_set_last_buffer_dequeued(inst); | ||
| 478 | return 0; | ||
| 479 | } | ||
| 480 | |||
| 481 | vpu_iface_add_scode(inst, SCODE_PADDING_EOS); | ||
| 482 | vdec->params.end_flag = 1; | ||
| 483 | vpu_iface_set_decode_params(inst, &vdec->params, 1); | ||
| 484 | vdec->drain = 0; | ||
| 485 | vpu_trace(inst->dev, "[%d] frame_count = %d\n", inst->id, vdec->params.frame_count); | ||
| 486 | |||
| 487 | return 0; | ||
| 488 | } | ||
| 489 | |||
| 490 | static int vdec_cmd_start(struct vpu_inst *inst) | ||
| 491 | { | ||
| 492 | switch (inst->state) { | ||
| 493 | case VPU_CODEC_STATE_STARTED: | ||
| 494 | case VPU_CODEC_STATE_DRAIN: | ||
| 495 | case VPU_CODEC_STATE_DYAMIC_RESOLUTION_CHANGE: | ||
| 496 | vdec_update_state(inst, VPU_CODEC_STATE_ACTIVE, 0); | ||
| 497 | break; | ||
| 498 | default: | ||
| 499 | break; | ||
| 500 | } | ||
| 501 | vpu_process_capture_buffer(inst); | ||
| 502 | return 0; | ||
| 503 | } | ||
| 504 | |||
| 505 | static int vdec_cmd_stop(struct vpu_inst *inst) | ||
| 506 | { | ||
| 507 | struct vdec_t *vdec = inst->priv; | ||
| 508 | |||
| 509 | vpu_trace(inst->dev, "[%d]\n", inst->id); | ||
| 510 | |||
| 511 | if (inst->state == VPU_CODEC_STATE_DEINIT) { | ||
| 512 | vpu_set_last_buffer_dequeued(inst); | ||
| 513 | } else { | ||
| 514 | vdec->drain = 1; | ||
| 515 | vdec_drain(inst); | ||
| 516 | } | ||
| 517 | |||
| 518 | return 0; | ||
| 519 | } | ||
| 520 | |||
| 521 | static int vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd) | ||
| 522 | { | ||
| 523 | struct vpu_inst *inst = to_inst(file); | ||
| 524 | int ret; | ||
| 525 | |||
| 526 | ret = v4l2_m2m_ioctl_try_decoder_cmd(file, fh, cmd); | ||
| 527 | if (ret) | ||
| 528 | return ret; | ||
| 529 | |||
| 530 | vpu_inst_lock(inst); | ||
| 531 | switch (cmd->cmd) { | ||
| 532 | case V4L2_DEC_CMD_START: | ||
| 533 | vdec_cmd_start(inst); | ||
| 534 | break; | ||
| 535 | case V4L2_DEC_CMD_STOP: | ||
| 536 | vdec_cmd_stop(inst); | ||
| 537 | break; | ||
| 538 | default: | ||
| 539 | break; | ||
| 540 | } | ||
| 541 | vpu_inst_unlock(inst); | ||
| 542 | |||
| 543 | return 0; | ||
| 544 | } | ||
| 545 | |||
| 546 | static int vdec_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub) | ||
| 547 | { | ||
| 548 | switch (sub->type) { | ||
| 549 | case V4L2_EVENT_EOS: | ||
| 550 | return v4l2_event_subscribe(fh, sub, 0, NULL); | ||
| 551 | case V4L2_EVENT_SOURCE_CHANGE: | ||
| 552 | return v4l2_src_change_event_subscribe(fh, sub); | ||
| 553 | case V4L2_EVENT_CTRL: | ||
| 554 | return v4l2_ctrl_subscribe_event(fh, sub); | ||
| 555 | default: | ||
| 556 | return -EINVAL; | ||
| 557 | } | ||
| 558 | |||
| 559 | return 0; | ||
| 560 | } | ||
| 561 | |||
| 562 | static const struct v4l2_ioctl_ops vdec_ioctl_ops = { | ||
| 563 | .vidioc_querycap = vdec_querycap, | ||
| 564 | .vidioc_enum_fmt_vid_cap = vdec_enum_fmt, | ||
| 565 | .vidioc_enum_fmt_vid_out = vdec_enum_fmt, | ||
| 566 | .vidioc_g_fmt_vid_cap_mplane = vdec_g_fmt, | ||
| 567 | .vidioc_g_fmt_vid_out_mplane = vdec_g_fmt, | ||
| 568 | .vidioc_try_fmt_vid_cap_mplane = vdec_try_fmt, | ||
| 569 | .vidioc_try_fmt_vid_out_mplane = vdec_try_fmt, | ||
| 570 | .vidioc_s_fmt_vid_cap_mplane = vdec_s_fmt, | ||
| 571 | .vidioc_s_fmt_vid_out_mplane = vdec_s_fmt, | ||
| 572 | .vidioc_g_selection = vdec_g_selection, | ||
| 573 | .vidioc_try_decoder_cmd = v4l2_m2m_ioctl_try_decoder_cmd, | ||
| 574 | .vidioc_decoder_cmd = vdec_decoder_cmd, | ||
| 575 | .vidioc_subscribe_event = vdec_subscribe_event, | ||
| 576 | .vidioc_unsubscribe_event = v4l2_event_unsubscribe, | ||
| 577 | .vidioc_reqbufs = v4l2_m2m_ioctl_reqbufs, | ||
| 578 | .vidioc_create_bufs = v4l2_m2m_ioctl_create_bufs, | ||
| 579 | .vidioc_prepare_buf = v4l2_m2m_ioctl_prepare_buf, | ||
| 580 | .vidioc_querybuf = v4l2_m2m_ioctl_querybuf, | ||
| 581 | .vidioc_qbuf = v4l2_m2m_ioctl_qbuf, | ||
| 582 | .vidioc_expbuf = v4l2_m2m_ioctl_expbuf, | ||
| 583 | .vidioc_dqbuf = v4l2_m2m_ioctl_dqbuf, | ||
| 584 | .vidioc_streamon = v4l2_m2m_ioctl_streamon, | ||
| 585 | .vidioc_streamoff = v4l2_m2m_ioctl_streamoff, | ||
| 586 | }; | ||
| 587 | |||
| 588 | static bool vdec_check_ready(struct vpu_inst *inst, unsigned int type) | ||
| 589 | { | ||
| 590 | struct vdec_t *vdec = inst->priv; | ||
| 591 | |||
| 592 | if (V4L2_TYPE_IS_OUTPUT(type)) { | ||
| 593 | if (vdec->ts_pre_count >= vdec->frame_depth) | ||
| 594 | return false; | ||
| 595 | return true; | ||
| 596 | } | ||
| 597 | |||
| 598 | if (vdec->req_frame_count) | ||
| 599 | return true; | ||
| 600 | |||
| 601 | return false; | ||
| 602 | } | ||
| 603 | |||
| 604 | static int vdec_frame_decoded(struct vpu_inst *inst, void *arg) | ||
| 605 | { | ||
| 606 | struct vdec_t *vdec = inst->priv; | ||
| 607 | struct vpu_dec_pic_info *info = arg; | ||
| 608 | struct vpu_vb2_buffer *vpu_buf; | ||
| 609 | struct vb2_v4l2_buffer *vbuf; | ||
| 610 | int ret = 0; | ||
| 611 | |||
| 612 | if (!info || info->id >= ARRAY_SIZE(vdec->slots)) | ||
| 613 | return -EINVAL; | ||
| 614 | |||
| 615 | vpu_inst_lock(inst); | ||
| 616 | vpu_buf = vdec->slots[info->id]; | ||
| 617 | if (!vpu_buf) { | ||
| 618 | dev_err(inst->dev, "[%d] decoded invalid frame[%d]\n", inst->id, info->id); | ||
| 619 | ret = -EINVAL; | ||
| 620 | goto exit; | ||
| 621 | } | ||
| 622 | vbuf = &vpu_buf->m2m_buf.vb; | ||
| 623 | if (vpu_get_buffer_state(vbuf) == VPU_BUF_STATE_DECODED) | ||
| 624 | dev_info(inst->dev, "[%d] buf[%d] has been decoded\n", inst->id, info->id); | ||
| 625 | vpu_set_buffer_state(vbuf, VPU_BUF_STATE_DECODED); | ||
| 626 | vdec->decoded_frame_count++; | ||
| 627 | if (vdec->ts_pre_count >= info->consumed_count) | ||
| 628 | vdec->ts_pre_count -= info->consumed_count; | ||
| 629 | else | ||
| 630 | vdec->ts_pre_count = 0; | ||
| 631 | exit: | ||
| 632 | vpu_inst_unlock(inst); | ||
| 633 | |||
| 634 | return ret; | ||
| 635 | } | ||
| 636 | |||
| 637 | static struct vpu_vb2_buffer *vdec_find_buffer(struct vpu_inst *inst, u32 luma) | ||
| 638 | { | ||
| 639 | struct vdec_t *vdec = inst->priv; | ||
| 640 | int i; | ||
| 641 | |||
| 642 | for (i = 0; i < ARRAY_SIZE(vdec->slots); i++) { | ||
| 643 | if (!vdec->slots[i]) | ||
| 644 | continue; | ||
| 645 | if (luma == vdec->slots[i]->luma) | ||
| 646 | return vdec->slots[i]; | ||
| 647 | } | ||
| 648 | |||
| 649 | return NULL; | ||
| 650 | } | ||
| 651 | |||
| 652 | static void vdec_buf_done(struct vpu_inst *inst, struct vpu_frame_info *frame) | ||
| 653 | { | ||
| 654 | struct vdec_t *vdec = inst->priv; | ||
| 655 | struct vpu_vb2_buffer *vpu_buf; | ||
| 656 | struct vb2_v4l2_buffer *vbuf; | ||
| 657 | u32 sequence; | ||
| 658 | |||
| 659 | if (!frame) | ||
| 660 | return; | ||
| 661 | |||
| 662 | vpu_inst_lock(inst); | ||
| 663 | sequence = vdec->sequence++; | ||
| 664 | vpu_buf = vdec_find_buffer(inst, frame->luma); | ||
| 665 | vpu_inst_unlock(inst); | ||
| 666 | if (!vpu_buf) { | ||
| 667 | dev_err(inst->dev, "[%d] can't find buffer, id = %d, addr = 0x%x\n", | ||
| 668 | inst->id, frame->id, frame->luma); | ||
| 669 | return; | ||
| 670 | } | ||
| 671 | if (frame->skipped) { | ||
| 672 | dev_dbg(inst->dev, "[%d] frame skip\n", inst->id); | ||
| 673 | return; | ||
| 674 | } | ||
| 675 | |||
| 676 | vbuf = &vpu_buf->m2m_buf.vb; | ||
| 677 | if (vbuf->vb2_buf.index != frame->id) | ||
| 678 | dev_err(inst->dev, "[%d] buffer id(%d, %d) dismatch\n", | ||
| 679 | inst->id, vbuf->vb2_buf.index, frame->id); | ||
| 680 | |||
| 681 | if (vpu_get_buffer_state(vbuf) != VPU_BUF_STATE_DECODED) | ||
| 682 | dev_err(inst->dev, "[%d] buffer(%d) ready without decoded\n", inst->id, frame->id); | ||
| 683 | vpu_set_buffer_state(vbuf, VPU_BUF_STATE_READY); | ||
| 684 | vb2_set_plane_payload(&vbuf->vb2_buf, 0, inst->cap_format.sizeimage[0]); | ||
| 685 | vb2_set_plane_payload(&vbuf->vb2_buf, 1, inst->cap_format.sizeimage[1]); | ||
| 686 | vbuf->vb2_buf.timestamp = frame->timestamp; | ||
| 687 | vbuf->field = inst->cap_format.field; | ||
| 688 | vbuf->sequence = sequence; | ||
| 689 | dev_dbg(inst->dev, "[%d][OUTPUT TS]%32lld\n", inst->id, frame->timestamp); | ||
| 690 | |||
| 691 | v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_DONE); | ||
| 692 | vpu_inst_lock(inst); | ||
| 693 | vdec->display_frame_count++; | ||
| 694 | vpu_inst_unlock(inst); | ||
| 695 | dev_dbg(inst->dev, "[%d] decoded : %d, display : %d, sequence : %d\n", | ||
| 696 | inst->id, vdec->decoded_frame_count, vdec->display_frame_count, vdec->sequence); | ||
| 697 | } | ||
| 698 | |||
| 699 | static void vdec_stop_done(struct vpu_inst *inst) | ||
| 700 | { | ||
| 701 | struct vdec_t *vdec = inst->priv; | ||
| 702 | |||
| 703 | vpu_inst_lock(inst); | ||
| 704 | vdec_update_state(inst, VPU_CODEC_STATE_DEINIT, 0); | ||
| 705 | vdec->seq_hdr_found = 0; | ||
| 706 | vdec->req_frame_count = 0; | ||
| 707 | vdec->reset_codec = false; | ||
| 708 | vdec->fixed_fmt = false; | ||
| 709 | vdec->params.end_flag = 0; | ||
| 710 | vdec->drain = 0; | ||
| 711 | vdec->ts_pre_count = 0; | ||
| 712 | vdec->params.frame_count = 0; | ||
| 713 | vdec->decoded_frame_count = 0; | ||
| 714 | vdec->display_frame_count = 0; | ||
| 715 | vdec->sequence = 0; | ||
| 716 | vdec->eos_received = 0; | ||
| 717 | vdec->is_source_changed = false; | ||
| 718 | vdec->source_change = 0; | ||
| 719 | vpu_inst_unlock(inst); | ||
| 720 | } | ||
| 721 | |||
| 722 | static bool vdec_check_source_change(struct vpu_inst *inst) | ||
| 723 | { | ||
| 724 | struct vdec_t *vdec = inst->priv; | ||
| 725 | const struct vpu_format *fmt; | ||
| 726 | int i; | ||
| 727 | |||
| 728 | if (!inst->fh.m2m_ctx) | ||
| 729 | return false; | ||
| 730 | |||
| 731 | if (!vb2_is_streaming(v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx))) | ||
| 732 | return true; | ||
| 733 | fmt = vpu_helper_find_format(inst, inst->cap_format.type, vdec->codec_info.pixfmt); | ||
| 734 | if (inst->cap_format.pixfmt != vdec->codec_info.pixfmt) | ||
| 735 | return true; | ||
| 736 | if (inst->cap_format.width != vdec->codec_info.decoded_width) | ||
| 737 | return true; | ||
| 738 | if (inst->cap_format.height != vdec->codec_info.decoded_height) | ||
| 739 | return true; | ||
| 740 | if (vpu_get_num_buffers(inst, inst->cap_format.type) < inst->min_buffer_cap) | ||
| 741 | return true; | ||
| 742 | if (inst->crop.left != vdec->codec_info.offset_x) | ||
| 743 | return true; | ||
| 744 | if (inst->crop.top != vdec->codec_info.offset_y) | ||
| 745 | return true; | ||
| 746 | if (inst->crop.width != vdec->codec_info.width) | ||
| 747 | return true; | ||
| 748 | if (inst->crop.height != vdec->codec_info.height) | ||
| 749 | return true; | ||
| 750 | if (fmt && inst->cap_format.num_planes != fmt->num_planes) | ||
| 751 | return true; | ||
| 752 | for (i = 0; i < inst->cap_format.num_planes; i++) { | ||
| 753 | if (inst->cap_format.bytesperline[i] != vdec->codec_info.bytesperline[i]) | ||
| 754 | return true; | ||
| 755 | if (inst->cap_format.sizeimage[i] != vdec->codec_info.sizeimage[i]) | ||
| 756 | return true; | ||
| 757 | } | ||
| 758 | |||
| 759 | return false; | ||
| 760 | } | ||
| 761 | |||
| 762 | static void vdec_init_fmt(struct vpu_inst *inst) | ||
| 763 | { | ||
| 764 | struct vdec_t *vdec = inst->priv; | ||
| 765 | const struct vpu_format *fmt; | ||
| 766 | int i; | ||
| 767 | |||
| 768 | fmt = vpu_helper_find_format(inst, inst->cap_format.type, vdec->codec_info.pixfmt); | ||
| 769 | inst->out_format.width = vdec->codec_info.width; | ||
| 770 | inst->out_format.height = vdec->codec_info.height; | ||
| 771 | inst->cap_format.width = vdec->codec_info.decoded_width; | ||
| 772 | inst->cap_format.height = vdec->codec_info.decoded_height; | ||
| 773 | inst->cap_format.pixfmt = vdec->codec_info.pixfmt; | ||
| 774 | if (fmt) { | ||
| 775 | inst->cap_format.num_planes = fmt->num_planes; | ||
| 776 | inst->cap_format.flags = fmt->flags; | ||
| 777 | } | ||
| 778 | for (i = 0; i < inst->cap_format.num_planes; i++) { | ||
| 779 | inst->cap_format.bytesperline[i] = vdec->codec_info.bytesperline[i]; | ||
| 780 | inst->cap_format.sizeimage[i] = vdec->codec_info.sizeimage[i]; | ||
| 781 | } | ||
| 782 | if (vdec->codec_info.progressive) | ||
| 783 | inst->cap_format.field = V4L2_FIELD_NONE; | ||
| 784 | else | ||
872 more lines aren’t shown here.
This diff is large: its 1359 lines aren’t shown here.
This diff is large: its 363 lines aren’t shown here.
This diff is large: its 434 lines aren’t shown here.
This diff is large: its 26 lines aren’t shown here.
This diff is large: its 69 lines aren’t shown here.
This diff is large: its 184 lines aren’t shown here.
This diff is large: its 880 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 495 lines aren’t shown here.
This diff is large: its 188 lines aren’t shown here.
This diff is large: its 262 lines aren’t shown here.
This diff is large: its 415 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 272 lines aren’t shown here.
This diff is large: its 116 lines aren’t shown here.
This diff is large: its 1645 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 119 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 386 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 260 lines aren’t shown here.
This diff is large: its 462 lines aren’t shown here.
This diff is large: its 714 lines aren’t shown here.
This diff is large: its 56 lines aren’t shown here.
This diff is large: its 1174 lines aren’t shown here.
This diff is large: its 38 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 3 lines aren’t shown here.
This diff is large: its 618 lines aren’t shown here.
This diff is large: its 52 lines aren’t shown here.
This diff is large: its 12 lines aren’t shown here.
This diff is large: its 574 lines aren’t shown here.
This diff is large: its 312 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 67 lines aren’t shown here.
This diff is large: its 793 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 8 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
File renamed without changes.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 3 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 6 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
File renamed without changes.
This diff is large: its 110 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 6 lines aren’t shown here.
This diff is large: its 74 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 19 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 37 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 352 lines aren’t shown here.
This diff is large: its 201 lines aren’t shown here.
This diff is large: its 57 lines aren’t shown here.
This diff is large: its 170 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 26 lines aren’t shown here.
This diff is large: its 177 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
File renamed without changes.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 119 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
File renamed without changes.
This diff is large: its 9 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 44 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 82 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
File renamed without changes.
This diff is large: its 57 lines aren’t shown here.
File renamed without changes.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 291 lines aren’t shown here.
This diff is large: its 154 lines aren’t shown here.
This diff is large: its 107 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 16 lines aren’t shown here.
File renamed without changes.
This diff is large: its 25 lines aren’t shown here.
File renamed without changes.
This diff is large: its 146 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
This diff is large: its 46 lines aren’t shown here.
This diff is large: its 6 lines aren’t shown here.
This diff is large: its 4 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 4 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 947 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 1019 lines aren’t shown here.
This diff is large: its 552 lines aren’t shown here.
This diff is large: its 243 lines aren’t shown here.
This diff is large: its 56 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 181 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 363 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 4 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 92 lines aren’t shown here.
This diff is large: its 174 lines aren’t shown here.
This diff is large: its 19 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 271 lines aren’t shown here.
This diff is large: its 92 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 19 lines aren’t shown here.
This diff is large: its 565 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
This diff is large: its 19 lines aren’t shown here.
This diff is large: its 695 lines aren’t shown here.
This diff is large: its 48 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 122 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
File renamed without changes.
This diff is large: its 46 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
File renamed without changes.
This diff is large: its 512 lines aren’t shown here.
This diff is large: its 201 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
File renamed without changes.
This diff is large: its 45 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 9 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 90 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 4 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 42 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
File renamed without changes.
This diff is large: its 37 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 10 lines aren’t shown here.
File renamed without changes.
This diff is large: its 12 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 32 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 9 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 50 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 16 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 12 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 26 lines aren’t shown here.
File renamed without changes.
This diff is large: its 13 lines aren’t shown here.
File renamed without changes.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
File renamed without changes.
This diff is large: its 7 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 110 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 6 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 26 lines aren’t shown here.
File renamed without changes.
This diff is large: its 8 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 37 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 27 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 32 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 18 lines aren’t shown here.
File renamed without changes.
This diff is large: its 113 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 70 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 4 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 60 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 177 lines aren’t shown here.
File renamed without changes.
This diff is large: its 42 lines aren’t shown here.
File renamed without changes.
This diff is large: its 42 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 13 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 22 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 8 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 3 lines aren’t shown here.
File renamed without changes.
File renamed without changes.
This diff is large: its 30 lines aren’t shown here.
This diff is large: its 149 lines aren’t shown here.
This diff is large: its 516 lines aren’t shown here.
This diff is large: its 60 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 517 lines aren’t shown here.
This diff is large: its 78 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 53 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 121 lines aren’t shown here.
This diff is large: its 65 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 86 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 42 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 6 lines aren’t shown here.
This diff is large: its 38 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 57 lines aren’t shown here.
This diff is large: its 38 lines aren’t shown here.
This diff is large: its 35 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 59 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 381 lines aren’t shown here.
This diff is large: its 80 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 76 lines aren’t shown here.
This diff is large: its 50 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 76 lines aren’t shown here.
This diff is large: its 462 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 44 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 453 lines aren’t shown here.
This diff is large: its 103 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 58 lines aren’t shown here.
This diff is large: its 244 lines aren’t shown here.
This diff is large: its 55 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 28 lines aren’t shown here.
This diff is large: its 56 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 49 lines aren’t shown here.
This diff is large: its 188 lines aren’t shown here.
This diff is large: its 108 lines aren’t shown here.
This diff is large: its 49 lines aren’t shown here.
This diff is large: its 97 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 64 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 285 lines aren’t shown here.
This diff is large: its 86 lines aren’t shown here.
This diff is large: its 28 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 120 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 12 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 64 lines aren’t shown here.
This diff is large: its 77 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 153 lines aren’t shown here.
This diff is large: its 8 lines aren’t shown here.
This diff is large: its 91 lines aren’t shown here.
This diff is large: its 106 lines aren’t shown here.
This diff is large: its 92 lines aren’t shown here.
This diff is large: its 30 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 6 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 44 lines aren’t shown here.
This diff is large: its 133 lines aren’t shown here.
This diff is large: its 174 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 19 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 39 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 4 lines aren’t shown here.
This diff is large: its 5 lines aren’t shown here.
This diff is large: its 74 lines aren’t shown here.
This diff is large: its 1359 lines aren’t shown here.
This diff is large: its 126 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 92 lines aren’t shown here.
This diff is large: its 12 lines aren’t shown here.
This diff is large: its 139 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 47 lines aren’t shown here.
This diff is large: its 543 lines aren’t shown here.
This diff is large: its 57 lines aren’t shown here.
This diff is large: its 10 lines aren’t shown here.
This diff is large: its 219 lines aren’t shown here.
This diff is large: its 65 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 64 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 60 lines aren’t shown here.
This diff is large: its 46 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 85 lines aren’t shown here.
This diff is large: its 130 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 52 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.