[PATCH v5 30/33] dt-bindings: media: add microchip,xisc device bindings

2021-04-15 Thread Eugen Hristev
Add bindings for the Microchip eXtended Image Sensor Controller. Based on the atmel,isc.yaml binding. Signed-off-by: Eugen Hristev --- Changes in v5: - fixed license clause to add BSD-2 Changes in v4: - added '|' at description to preserve line breaks .../bindings/media/microchip

[PATCH v4 30/33] dt-bindings: media: add microchip,xisc device bindings

2021-04-15 Thread Eugen Hristev
Add bindings for the Microchip eXtended Image Sensor Controller. Based on the atmel,isc.yaml binding. Signed-off-by: Eugen Hristev --- .../bindings/media/microchip,xisc.yaml| 129 ++ 1 file changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v4 29/33] dt-bindings: media: atmel-isc: convert to yaml

2021-04-15 Thread Eugen Hristev
Convert the Atmel ISC to yaml binding format. Signed-off-by: Eugen Hristev --- Changes in v4: - added '|' at description to maintain line breaks .../devicetree/bindings/media/atmel,isc.yaml | 115 ++ .../devicetree/bindings/media/atmel-isc.txt | 65 -

[PATCH v3 33/33] MAINTAINERS: add xisc files to isc driver entry

2021-04-13 Thread Eugen Hristev
Add XISC driver and binding files to the ISC driver entry. Signed-off-by: Eugen Hristev --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 95e3c7b7f934..451f2f0bed0b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11721,10 +11721,12 @@ M

[PATCH v3 27/33] media: atmel: atmel-isc-base: add support for more formats and additional pipeline modules

2021-04-13 Thread Eugen Hristev
Add support for additional formats supported by newer pipelines, and for additional pipeline modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 48 +++ 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform

[PATCH v3 32/33] MAINTAINERS: update ISC driver bindings file

2021-04-13 Thread Eugen Hristev
ISC driver was converted to yaml. Update maintainers file. Signed-off-by: Eugen Hristev --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 04e6df934eb0..95e3c7b7f934 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11720,7 +11720,7

[PATCH v3 31/33] media: atmel: atmel-isc: add microchip-xisc driver

2021-04-13 Thread Eugen Hristev
Add driver for the extended variant of the isc, the microchip XISC present on sama7g5 product. Signed-off-by: Eugen Hristev --- drivers/media/platform/Makefile | 1 + drivers/media/platform/atmel/Kconfig | 11 + drivers/media/platform/atmel/Makefile | 2

[PATCH v3 30/33] dt-bindings: media: add microchip,xisc device bindings

2021-04-13 Thread Eugen Hristev
Add bindings for the Microchip eXtended Image Sensor Controller. Based on the atmel,isc.yaml binding. Signed-off-by: Eugen Hristev --- .../bindings/media/microchip,xisc.yaml| 129 ++ 1 file changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v3 29/33] dt-bindings: media: atmel-isc: convert to yaml

2021-04-13 Thread Eugen Hristev
Convert the Atmel ISC to yaml binding format. Signed-off-by: Eugen Hristev --- .../devicetree/bindings/media/atmel,isc.yaml | 115 ++ .../devicetree/bindings/media/atmel-isc.txt | 65 -- 2 files changed, 115 insertions(+), 65 deletions(-) create mode 100644

[PATCH v3 28/33] media: atmel: atmel-isc-sama5d2: remove duplicate define

2021-04-13 Thread Eugen Hristev
Remove a duplicate definition of clock max divider Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-sama5d2-isc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c index

[PATCH v3 26/33] media: atmel: atmel-isc-regs: add additional fields for sama7g5 type pipeline

2021-04-13 Thread Eugen Hristev
Add additional fields for registers present in sama7g5 type pipeline. Extend register masks for additional bits in sama7g5 type pipeline registers. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions

[PATCH v3 22/33] media: atmel: atmel-isc: create callback for GAM submodule product specific

2021-04-13 Thread Eugen Hristev
moment, thus this function is a noop. Signed-off-by: Eugen Hristev --- Changes in v3: - added module description in commit message Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers/media/platform/atmel/atmel-isc.h

[PATCH v3 23/33] media: atmel: atmel-isc: create callback for RLP submodule product specific

2021-04-13 Thread Eugen Hristev
specific callback for initializing the RLP submodule of the pipeline Signed-off-by: Eugen Hristev --- Changes in v3: - added module description in commit message Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c| 6

[PATCH v3 25/33] media: atmel: atmel-isc: create an adapt pipeline callback for product specific

2021-04-13 Thread Eugen Hristev
Once the pipeline is set in the base code, create a callback that will adapt the ISC pipeline to each product. Create the adapt_pipeline callback that will be used in this fashion. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 drivers/media

[PATCH v3 24/33] media: atmel: atmel-isc: move the formats list into product specific code

2021-04-13 Thread Eugen Hristev
The list of input and output formats has to be product specific. Move this list into the product specific code. Have pointers to these arrays inside the device struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 167 ++ drivers/media/platform

[PATCH v3 20/33] media: atmel: atmel-isc: create product specific v4l2 controls config

2021-04-13 Thread Eugen Hristev
Create product specific callback for initializing v4l2 controls. Call this from v4l2 controls init function. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 5 +++-- drivers/media/platform/atmel/atmel-isc.h | 5 + drivers/media/platform/atmel

[PATCH v3 17/33] media: atmel: atmel-isc: add register description for additional modules

2021-04-13 Thread Eugen Hristev
Add register description for additional pipeline modules: the Defective Pixel Correction (DPC) and the Vertical and Horizontal Scaler(VHXS) Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 67 +++ 1 file changed, 67 insertions(+) diff --git a

[PATCH v3 19/33] media: atmel: atmel-isc: add CC initialization function

2021-04-13 Thread Eugen Hristev
in color correction. Signed-off-by: Eugen Hristev --- Changes in v3: - added module description in commit message Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers/media/platform/atmel/atmel-isc.h | 3

[PATCH v3 21/33] media: atmel: atmel-isc: create callback for DPC submodule product specific

2021-04-13 Thread Eugen Hristev
sama5d2 product, this module does not exist, thus this function is a noop. Signed-off-by: Eugen Hristev --- Changes in v3: - added module description in commit message Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers

[PATCH v3 18/33] media: atmel: atmel-isc: extend pipeline with extra modules

2021-04-13 Thread Eugen Hristev
ve this full pipeline (sama7g5), other products do not (sama5d2) Add the modules to the isc base, and also extend the register range to include the modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 11 ++-- drivers/media/platform/atmel/atmel-isc

[PATCH v3 16/33] media: atmel: atmel-isc: add his_entry to register offsets

2021-04-13 Thread Eugen Hristev
Add his_entry to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 ++- drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers

[PATCH v3 14/33] media: atmel: atmel-isc: add DMA to register offsets

2021-04-13 Thread Eugen Hristev
have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- Changes in v3: - added module explanation in commit message drivers/media/platform/atmel/atmel-isc-base.c | 19 --- drivers/media/platform/atmel/atmel-isc-regs.h | 3 +++ drivers/media

[PATCH v3 05/33] media: atmel: atmel-isc: specialize dma cfg

2021-04-13 Thread Eugen Hristev
The dma configuration (DCFG) is specific to the product. Move this configuration in the product specific driver, and add the field inside the driver struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 +-- drivers/media/platform/atmel/atmel-isc.h

[PATCH v3 15/33] media: atmel: atmel-isc: add support for version register

2021-04-13 Thread Eugen Hristev
Add support for version register and print it at probe time. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h| 5 + drivers/media/platform/atmel/atmel-isc.h | 2 ++ drivers/media/platform/atmel/atmel-sama5d2-isc.c | 5 + 3 files changed, 12

[PATCH v3 07/33] media: atmel: atmel-isc-base: add id to clock debug message

2021-04-13 Thread Eugen Hristev
Add the clock id to the debug message regarding clock setup Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel

[PATCH v3 13/33] media: atmel: atmel-isc: add HIS to register offsets

2021-04-13 Thread Eugen Hristev
. Signed-off-by: Eugen Hristev --- Changes in v3: - added module description in commit message drivers/media/platform/atmel/atmel-isc-base.c| 11 +++ drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers/media/platform/atmel/atmel-isc.h | 2 ++ drivers/media

[PATCH v3 11/33] media: atmel: atmel-isc: add SUB422 and SUB420 to register offsets

2021-04-13 Thread Eugen Hristev
these particular modules. Signed-off-by: Eugen Hristev --- Changes in v3: - add module explanation in commit message drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform/atmel/atmel-isc-regs.h| 4 drivers/media/platform/atmel/atmel-isc.h | 4

[PATCH v3 12/33] media: atmel: atmel-isc: add RLP to register offsets

2021-04-13 Thread Eugen Hristev
offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- Changes in v3: - add module description in commit message drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform/atmel/atmel

[PATCH v3 10/33] media: atmel: atmel-isc: add CBC to the reg offsets struct

2021-04-13 Thread Eugen Hristev
offset for this particular module. Signed-off-by: Eugen Hristev --- Changes in v3: - add module explanation in commit message drivers/media/platform/atmel/atmel-isc-base.c| 2 +- drivers/media/platform/atmel/atmel-isc-regs.h| 3 +++ drivers/media/platform/atmel/atmel-isc.h | 2

[PATCH v3 06/33] media: atmel: atmel-isc: extract CSC submodule config into separate function

2021-04-13 Thread Eugen Hristev
Other products can implement it differently. Signed-off-by: Eugen Hristev --- Changes in v3: - added explanation regarding CSC acronym Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c | 8 +--- drivers/media/platform/atmel/

[PATCH v3 09/33] media: atmel: atmel-isc: extract CBC submodule config into separate function

2021-04-13 Thread Eugen Hristev
cific. Other products can implement it differently Signed-off-by: Eugen Hristev --- Changes in v3: - added module description explanation Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c| 4 +--- drivers/media/platform/atmel/

[PATCH v3 00/33] media: atmel: atmel-isc: add support for xisc

2021-04-13 Thread Eugen Hristev
based on old 5.10 style API. Eugen Hristev (33): media: atmel: atmel-isc: specialize gamma table into product specific media: atmel: atmel-isc: specialize driver name constant media: atmel: atmel-isc: add checks for limiting frame sizes media: atmel: atmel-isc: specialize max width and max

[PATCH v3 08/33] media: atmel: atmel-isc: create register offsets struct

2021-04-13 Thread Eugen Hristev
Create a struct that holds register offsets that are product specific. Add initially the CSC register. This allows each product that contains a variant of the ISC to add their own register offset. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 2 +- drivers

[PATCH v3 04/33] media: atmel: atmel-isc: specialize max width and max height

2021-04-13 Thread Eugen Hristev
Move the max width and max height constants to the product specific driver and have them in the device struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 28 +-- drivers/media/platform/atmel/atmel-isc.h | 9 -- .../media/platform

[PATCH v3 03/33] media: atmel: atmel-isc: add checks for limiting frame sizes

2021-04-13 Thread Eugen Hristev
When calling the subdev, certain subdev drivers will overwrite the frame size and adding sizes which are beyond the ISC's capabilities. Thus we need to ensure the frame size is cropped to the maximum caps. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c

[PATCH v3 02/33] media: atmel: atmel-isc: specialize driver name constant

2021-04-13 Thread Eugen Hristev
The driver name constant must defined based on product driver, thus moving the constant directly where it's required. This will allow each ISC based product to define it's own name. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- dri

[PATCH v3 01/33] media: atmel: atmel-isc: specialize gamma table into product specific

2021-04-13 Thread Eugen Hristev
Separate the gamma table from the isc base file into the specific sama5d2 product file. Add a pointer to the gamma table and entries count inside the platform driver specific struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 47 ++- drivers

[PATCH v2 2/2] ARM: at91: debug: add sama7g5 low level debug uart

2021-04-09 Thread Eugen Hristev
Add sama7g5 SoC debug uart on Flexcom3. This is the UART that the ROM bootloader uses. Signed-off-by: Eugen Hristev --- arch/arm/Kconfig.debug | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 9e0b5e7f12af..7598624ce6dd 100644

[PATCH v2 1/2] ARM: at91: add new SoC sama7g5

2021-04-09 Thread Eugen Hristev
Add new SoC from at91 family : sama7g5 Signed-off-by: Eugen Hristev [claudiu.bez...@microchip.com: Select PLL, generic clock and UTMI support] Signed-off-by: Claudiu Beznea --- Changes in v2: - squash previous patch [PATCH 3/3] ARM: at91: Kconfig: select PLL, generic clock and utmi support

[PATCH 3/3] ARM: at91: Kconfig: select PLL, generic clock and utmi support

2021-04-07 Thread Eugen Hristev
From: Claudiu Beznea Select PLL, generic clock and UTMI support for SAMA7G5. Signed-off-by: Claudiu Beznea Signed-off-by: Eugen Hristev --- arch/arm/mach-at91/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index

[PATCH 2/3] ARM: at91: debug: add sama7g5 low level debug uart

2021-04-07 Thread Eugen Hristev
Add sama7g5 SoC debug uart on Flexcom3. This is the UART that the ROM bootloader uses. Signed-off-by: Eugen Hristev --- arch/arm/Kconfig.debug | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 9e0b5e7f12af..7598624ce6dd 100644

[PATCH 1/3] ARM: at91: add new SoC sama7g5

2021-04-07 Thread Eugen Hristev
Add new SoC from at91 family : sama7g5 Signed-off-by: Eugen Hristev --- arch/arm/mach-at91/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index ccd7e80ce943..5eb2a9206f42 100644 --- a/arch/arm/mach-at91/Kconfig

[PATCH v2 30/30] media: atmel: atmel-isc: add microchip-xisc driver

2021-04-05 Thread Eugen Hristev
Add driver for the extended variant of the isc, the microchip XISC present on sama7g5 product. Signed-off-by: Eugen Hristev --- Changes in v2: - adapted to new fwnode subdev style API, as in kernel 5.12. my old code was based on 5.10 style API. drivers/media/platform/Makefile

[PATCH v2 29/30] media: atmel: atmel-isc-sama5d2: remove duplicate define

2021-04-05 Thread Eugen Hristev
Remove a duplicate definition of clock max divider Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-sama5d2-isc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c index

[PATCH v2 28/30] dt-bindings: media: atmel: add microchip-xisc binding

2021-04-05 Thread Eugen Hristev
sensors, by connecting to a demux endpoint present on sama7g5. One of the key points for creating a new binding is the clocking scheme, as atmel-isc requires 3 mandatory clocks, the microchip-xisc requires a single input clock. Signed-off-by: Eugen Hristev --- Hello Rob, all, I did not convert

[PATCH v2 27/30] media: atmel: atmel-isc-base: add support for more formats and additional pipeline modules

2021-04-05 Thread Eugen Hristev
Add support for additional formats supported by newer pipelines, and for additional pipeline modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 48 +++ 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform

[PATCH v2 26/30] media: atmel: atmel-isc-regs: add additional fields for sama7g5 type pipeline

2021-04-05 Thread Eugen Hristev
Add additional fields for registers present in sama7g5 type pipeline. Extend register masks for additional bits in sama7g5 type pipeline registers. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions

[PATCH v2 25/30] media: atmel: atmel-isc: create an adapt pipeline callback for product specific

2021-04-05 Thread Eugen Hristev
Once the pipeline is set in the base code, create a callback that will adapt the ISC pipeline to each product. Create the adapt_pipeline callback that will be used in this fashion. Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1 drivers

[PATCH v2 24/30] media: atmel: atmel-isc: move the formats list into product specific code

2021-04-05 Thread Eugen Hristev
The list of input and output formats has to be product specific. Move this list into the product specific code. Have pointers to these arrays inside the device struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 167 ++ drivers/media/platform

[PATCH v2 23/30] media: atmel: atmel-isc: create callback for RLP submodule product specific

2021-04-05 Thread Eugen Hristev
Create a product specific callback for initializing the RLP submodule of the pipeline Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c| 6 ++ drivers/media/platform/atmel/atmel-isc.h

[PATCH v2 22/30] media: atmel: atmel-isc: create callback for GAM submodule product specific

2021-04-05 Thread Eugen Hristev
Create a product specific callback for initializing the GAM submodule of the pipeline. For sama5d2 product, there is no special configuration at this moment, thus this function is a noop. Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1

[PATCH v2 21/30] media: atmel: atmel-isc: create callback for DPC submodule product specific

2021-04-05 Thread Eugen Hristev
Create a product specific callback for initializing the DPC submodule of the pipeline. For sama5d2 product, this module does not exist, thus this function is a noop. Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform

[PATCH v2 20/30] media: atmel: atmel-isc: create product specific v4l2 controls config

2021-04-05 Thread Eugen Hristev
Create product specific callback for initializing v4l2 controls. Call this from v4l2 controls init function. Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-base.c| 5 +++-- drivers/media/platform

[PATCH v2 19/30] media: atmel: atmel-isc: add CC initialization function

2021-04-05 Thread Eugen Hristev
Implement the color correction (CC) submodule initialization, as a product specific function, which currently configures the neutral point in color correction. Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel

[PATCH v2 18/30] media: atmel: atmel-isc: extend pipeline with extra modules

2021-04-05 Thread Eugen Hristev
ve this full pipeline (sama7g5), other products do not (sama5d2) Add the modules to the isc base, and also extend the register range to include the modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 11 ++-- drivers/media/platform/atmel/atmel-isc

[PATCH v2 17/30] media: atmel: atmel-isc: add register description for additional modules

2021-04-05 Thread Eugen Hristev
Add register description for additional pipeline modules: the Defective Pixel Correction (DPC) and the Vertical and Horizontal Scaler(VHXS) Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 67 +++ 1 file changed, 67 insertions(+) diff --git a

[PATCH v2 16/30] media: atmel: atmel-isc: add his_entry to register offsets

2021-04-05 Thread Eugen Hristev
Add his_entry to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 ++- drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers

[PATCH v2 14/30] media: atmel: atmel-isc: add DMA to register offsets

2021-04-05 Thread Eugen Hristev
Add dma to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 19 --- drivers/media/platform/atmel/atmel-isc-regs.h | 3

[PATCH v2 15/30] media: atmel: atmel-isc: add support for version register

2021-04-05 Thread Eugen Hristev
Add support for version register and print it at probe time. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h| 5 + drivers/media/platform/atmel/atmel-isc.h | 2 ++ drivers/media/platform/atmel/atmel-sama5d2-isc.c | 5 + 3 files changed, 12

[PATCH v2 13/30] media: atmel: atmel-isc: add HIS to register offsets

2021-04-05 Thread Eugen Hristev
Add his to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 11 +++ drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers

[PATCH v2 12/30] media: atmel: atmel-isc: add RLP to register offsets

2021-04-05 Thread Eugen Hristev
Add rlp to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers/media

[PATCH v2 11/30] media: atmel: atmel-isc: add SUB422 and SUB420 to register offsets

2021-04-05 Thread Eugen Hristev
Add sub420 and sub422 to the reg offsets struct. This will allow different products to have a different reg offset for these particular modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform/atmel/atmel-isc-regs.h| 4

[PATCH v2 10/30] media: atmel: atmel-isc: add CBC to the reg offsets struct

2021-04-05 Thread Eugen Hristev
Add cbc to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 2 +- drivers/media/platform/atmel/atmel-isc-regs.h| 3 +++ drivers/media

[PATCH v2 09/30] media: atmel: atmel-isc: extract CBC submodule config into separate function

2021-04-05 Thread Eugen Hristev
The CBC submodule should be initialized in the product specific driver as it's product specific. Other products can implement it differently Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-b

[PATCH v2 08/30] media: atmel: atmel-isc: create register offsets struct

2021-04-05 Thread Eugen Hristev
Create a struct that holds register offsets that are product specific. Add initially the CSC register. This allows each product that contains a variant of the ISC to add their own register offset. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 2 +- drivers

[PATCH v2 07/30] media: atmel: atmel-isc-base: add id to clock debug message

2021-04-05 Thread Eugen Hristev
Add the clock id to the debug message regarding clock setup Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel

[PATCH v2 06/30] media: atmel: atmel-isc: extract CSC submodule config into separate function

2021-04-05 Thread Eugen Hristev
The CSC submodule should be initialized in the product specific driver as it's product specific. Other products can implement it differently. Signed-off-by: Eugen Hristev --- Changes in v2: - addded function prototype to avoid warning with W=1 drivers/media/platform/atmel/atmel-isc-b

[PATCH v2 05/30] media: atmel: atmel-isc: specialize dma cfg

2021-04-05 Thread Eugen Hristev
The dma configuration (DCFG) is specific to the product. Move this configuration in the product specific driver, and add the field inside the driver struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 +-- drivers/media/platform/atmel/atmel-isc.h

[PATCH v2 04/30] media: atmel: atmel-isc: specialize max width and max height

2021-04-05 Thread Eugen Hristev
Move the max width and max height constants to the product specific driver and have them in the device struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 28 +-- drivers/media/platform/atmel/atmel-isc.h | 9 -- .../media/platform

[PATCH v2 03/30] media: atmel: atmel-isc: add checks for limiting frame sizes

2021-04-05 Thread Eugen Hristev
When calling the subdev, certain subdev drivers will overwrite the frame size and adding sizes which are beyond the ISC's capabilities. Thus we need to ensure the frame size is cropped to the maximum caps. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c

[PATCH v2 02/30] media: atmel: atmel-isc: specialize driver name constant

2021-04-05 Thread Eugen Hristev
The driver name constant must defined based on product driver, thus moving the constant directly where it's required. This will allow each ISC based product to define it's own name. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- dri

[PATCH v2 01/30] media: atmel: atmel-isc: specialize gamma table into product specific

2021-04-05 Thread Eugen Hristev
Separate the gamma table from the isc base file into the specific sama5d2 product file. Add a pointer to the gamma table and entries count inside the platform driver specific struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 47 ++- drivers

[PATCH v2 00/30] media: atmel: atmel-isc: add support for xisc

2021-04-05 Thread Eugen Hristev
warnings with W=1 regarding functions with no prototype - Fixed new sama7g5 driver to use the new subdev fwnode API in kernel 5.12. my driver was based on old 5.10 style API. Eugen Hristev (30): media: atmel: atmel-isc: specialize gamma table into product specific media: atmel: atmel-isc: specialize

[PATCH 02/30] media: atmel: atmel-isc: specialize driver name constant

2021-04-01 Thread Eugen Hristev
The driver name constant must defined based on product driver, thus moving the constant directly where it's required. This will allow each ISC based product to define it's own name. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- dri

[PATCH 00/30] media: atmel: atmel-isc: add support for xisc

2021-04-01 Thread Eugen Hristev
in terms of DT, clocks and callbacks to specific operations. I added the binding for the xisc by copying and modifying the existing isc one. I know that it has to be converted to yaml, and I will do that if it looks good. Feedback is appreciated. Thanks, Eugen Eugen Hristev (30): media: atmel

[PATCH 04/30] media: atmel: atmel-isc: specialize max width and max height

2021-04-01 Thread Eugen Hristev
Move the max width and max height constants to the product specific driver and have them in the device struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 28 +-- drivers/media/platform/atmel/atmel-isc.h | 9 -- .../media/platform

[PATCH 21/30] media: atmel: atmel-isc: create callback for DPC submodule product specific

2021-04-01 Thread Eugen Hristev
Create a product specific callback for initializing the DPC submodule of the pipeline. For sama5d2 product, this module does not exist, thus this function is a noop. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers/media/platform/atmel/atmel-isc.h

[PATCH 12/30] media: atmel: atmel-isc: add RLP to register offsets

2021-04-01 Thread Eugen Hristev
Add rlp to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers/media

[PATCH 17/30] media: atmel: atmel-isc: add register description for additional modules

2021-04-01 Thread Eugen Hristev
Add register description for additional pipeline modules: the Defective Pixel Correction (DPC) and the Vertical and Horizontal Scaler(VHXS) Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 67 +++ 1 file changed, 67 insertions(+) diff --git a

[PATCH 01/30] media: atmel: atmel-isc: specialize gamma table into product specific

2021-04-01 Thread Eugen Hristev
Separate the gamma table from the isc base file into the specific sama5d2 product file. Add a pointer to the gamma table and entries count inside the platform driver specific struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 47 ++- drivers

[PATCH 13/30] media: atmel: atmel-isc: add HIS to register offsets

2021-04-01 Thread Eugen Hristev
Add his to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 11 +++ drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers

[PATCH 18/30] media: atmel: atmel-isc: extend pipeline with extra modules

2021-04-01 Thread Eugen Hristev
ve this full pipeline (sama7g5), other products do not (sama5d2) Add the modules to the isc base, and also extend the register range to include the modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 11 ++-- drivers/media/platform/atmel/atmel-isc

[PATCH 08/30] media: atmel: atmel-isc: create register offsets struct

2021-04-01 Thread Eugen Hristev
Create a struct that holds register offsets that are product specific. Add initially the CSC register. This allows each product that contains a variant of the ISC to add their own register offset. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 2 +- drivers

[PATCH 20/30] media: atmel: atmel-isc: create product specific v4l2 controls config

2021-04-01 Thread Eugen Hristev
Create product specific callback for initializing v4l2 controls. Call this from v4l2 controls init function. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 5 +++-- drivers/media/platform/atmel/atmel-isc.h | 5 + drivers/media/platform/atmel

[PATCH 30/30] media: atmel: atmel-isc: add microchip-xisc driver

2021-04-01 Thread Eugen Hristev
Add driver for the extended variant of the isc, the microchip XISC present on sama7g5 product. Signed-off-by: Eugen Hristev --- drivers/media/platform/Makefile | 1 + drivers/media/platform/atmel/Kconfig | 11 + drivers/media/platform/atmel/Makefile | 2

[PATCH 07/30] media: atmel: atmel-isc-base: add id to clock debug message

2021-04-01 Thread Eugen Hristev
Add the clock id to the debug message regarding clock setup Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel

[PATCH 27/30] media: atmel: atmel-isc-base: add support for more formats and additional pipeline modules

2021-04-01 Thread Eugen Hristev
Add support for additional formats supported by newer pipelines, and for additional pipeline modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 48 +++ 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform

[PATCH 11/30] media: atmel: atmel-isc: add SUB422 and SUB420 to register offsets

2021-04-01 Thread Eugen Hristev
Add sub420 and sub422 to the reg offsets struct. This will allow different products to have a different reg offset for these particular modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform/atmel/atmel-isc-regs.h| 4

[PATCH 09/30] media: atmel: atmel-isc: extract CBC submodule config into separate function

2021-04-01 Thread Eugen Hristev
The CBC submodule should be initialized in the product specific driver as it's product specific. Other products can implement it differently Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 +--- drivers/media/platform/atmel/atmel-isc.h

[PATCH 22/30] media: atmel: atmel-isc: create callback for GAM submodule product specific

2021-04-01 Thread Eugen Hristev
Create a product specific callback for initializing the GAM submodule of the pipeline. For sama5d2 product, there is no special configuration at this moment, thus this function is a noop. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers/media

[PATCH 26/30] media: atmel: atmel-isc-regs: add additional fields for sama7g5 type pipeline

2021-04-01 Thread Eugen Hristev
Add additional fields for registers present in sama7g5 type pipeline. Extend register masks for additional bits in sama7g5 type pipeline registers. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions

[PATCH 10/30] media: atmel: atmel-isc: add CBC to the reg offsets struct

2021-04-01 Thread Eugen Hristev
Add cbc to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 2 +- drivers/media/platform/atmel/atmel-isc-regs.h| 3 +++ drivers/media

[PATCH 06/30] media: atmel: atmel-isc: extract CSC submodule config into separate function

2021-04-01 Thread Eugen Hristev
The CSC submodule should be initialized in the product specific driver as it's product specific. Other products can implement it differently. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 8 +--- drivers/media/platform/atmel/atmel-isc.h

[PATCH 19/30] media: atmel: atmel-isc: add CC initialization function

2021-04-01 Thread Eugen Hristev
Implement the color correction (CC) submodule initialization, as a product specific function, which currently configures the neutral point in color correction. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers/media/platform/atmel/atmel-isc.h

[PATCH 05/30] media: atmel: atmel-isc: specialize dma cfg

2021-04-01 Thread Eugen Hristev
The dma configuration (DCFG) is specific to the product. Move this configuration in the product specific driver, and add the field inside the driver struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 +-- drivers/media/platform/atmel/atmel-isc.h

[PATCH 23/30] media: atmel: atmel-isc: create callback for RLP submodule product specific

2021-04-01 Thread Eugen Hristev
Create a product specific callback for initializing the RLP submodule of the pipeline Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 6 ++ drivers/media/platform/atmel/atmel-isc.h | 3 +++ drivers/media/platform/atmel/atmel-sama5d2-isc.c | 10

[PATCH 29/30] media: atmel: atmel-isc-sama5d2: remove duplicate define

2021-04-01 Thread Eugen Hristev
Remove a duplicate definition of clock max divider Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-sama5d2-isc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c index

[PATCH 16/30] media: atmel: atmel-isc: add his_entry to register offsets

2021-04-01 Thread Eugen Hristev
Add his_entry to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 ++- drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers

[PATCH 03/30] media: atmel: atmel-isc: add checks for limiting frame sizes

2021-04-01 Thread Eugen Hristev
When calling the subdev, certain subdev drivers will overwrite the frame size and adding sizes which are beyond the ISC's capabilities. Thus we need to ensure the frame size is cropped to the maximum caps. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c

[PATCH 14/30] media: atmel: atmel-isc: add DMA to register offsets

2021-04-01 Thread Eugen Hristev
Add dma to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 19 --- drivers/media/platform/atmel/atmel-isc-regs.h | 3

  1   2   3   4   >