* [Patch v5 0/3] Add new compatible for Exynos3250 [not found] <CGME20221114114402epcas5p31aade118059c242bd77835da5470afdb@epcas5p3.samsung.com> @ 2022-11-14 11:50 ` Aakarsh Jain [not found] ` <CGME20221114114406epcas5p20e15f3c3aafba2410eee8697159b1fd6@epcas5p2.samsung.com> ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: Aakarsh Jain @ 2022-11-14 11:50 UTC (permalink / raw) To: linux-arm-kernel, linux-media, linux-kernel, devicetree Cc: m.szyprowski, andrzej.hajda, mchehab, hverkuil-cisco, ezequiel, jernej.skrabec, benjamin.gaignard, krzysztof.kozlowski+dt, stanimir.varbanov, dillon.minfei, david.plowman, mark.rutland, robh+dt, krzk+dt, andi, alim.akhtar, aswani.reddy, pankaj.dubey, smitha.t, aakarsh.jain Since MFC v7 support was added for Exynos5420 and Exynos3250 SoC with same compatible string "samsung,mfc-v7". As both SoCs having different hardware properties and having same compatible string for both SoCs doesn't seems to be correct. Add a new compatible to differentiate the two SoC's MFC IP, at the same time to keep git bisect happy, add a fallback to mfc-v7 for Exynos3250. Changes since v4: - Addressed review comments from Krzysztof Kozlowski. - Fixed syntax in commit body,dropped quotes and corrected proper commit title as per submitting-patches.rst. Changes since v3: - Addressed review comments from Krzysztof Kozlowski. - Added new compatible string for Exynos3250 followed by mfc-v7 fallback. Changes since v2: - Addressed review comments from Krzysztof Kozlowski. - Changed subject prefixes matching the subsystem. Changes since v1: - Addressed review comments from Marek Szyprowski. - Changed subject prefix from arm64 to arm. - Addressed review comments from Krzysztof Kozlowski. - Changed subject prefixes matching the subsystem. - Added new compatible string for Exynos3250 followed by mfc-v7 fallback. - Removed checkpatch warnings from s5p_mfc.c.Sent separate patch series for the same. - Addressed review comments from Tommaso Merciai. - Change in commit message body from used to use in Patch-2. Aakarsh Jain (3): media: dt-bindings: s5p-mfc: Add new compatible string for Exynos3250 SoC media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC ARM: dts: exynos: Add new SoC specific compatible string for Exynos3250 SoC .../devicetree/bindings/media/s5p-mfc.txt | 10 ++++++---- arch/arm/boot/dts/exynos3250.dtsi | 2 +- .../media/platform/samsung/s5p-mfc/s5p_mfc.c | 17 +++++++++++++++-- 3 files changed, 22 insertions(+), 7 deletions(-) -- 2.17.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CGME20221114114406epcas5p20e15f3c3aafba2410eee8697159b1fd6@epcas5p2.samsung.com>]
* [Patch v5 1/3] media: dt-bindings: s5p-mfc: Add new compatible string for Exynos3250 SoC [not found] ` <CGME20221114114406epcas5p20e15f3c3aafba2410eee8697159b1fd6@epcas5p2.samsung.com> @ 2022-11-14 11:50 ` Aakarsh Jain 0 siblings, 0 replies; 6+ messages in thread From: Aakarsh Jain @ 2022-11-14 11:50 UTC (permalink / raw) To: linux-arm-kernel, linux-media, linux-kernel, devicetree Cc: m.szyprowski, andrzej.hajda, mchehab, hverkuil-cisco, ezequiel, jernej.skrabec, benjamin.gaignard, krzysztof.kozlowski+dt, stanimir.varbanov, dillon.minfei, david.plowman, mark.rutland, robh+dt, krzk+dt, andi, alim.akhtar, aswani.reddy, pankaj.dubey, smitha.t, aakarsh.jain Since MFC v7 support was present for both Exynos5420 and Exynos3250 SoC with same compatible string "samsung,mfc-v7". As both SoCs having different hardware properties and having same compatible string for both SoCs doesn't seems to be correct. Add new compatible for Exynos3250 SoC followed by mfc-v7 fallback which will differentiate the node properties for both SoCs which support MFC v7. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com> Suggested-by: Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com> --- Documentation/devicetree/bindings/media/s5p-mfc.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) We are already in process of converting this txt file to yaml. https://patchwork.kernel.org/project/linux-media/patch/20221011122516.32135-2-aakarsh.jain@samsung.com/ Modifying this txt binding for completeness. diff --git a/Documentation/devicetree/bindings/media/s5p-mfc.txt b/Documentation/devicetree/bindings/media/s5p-mfc.txt index aa54c8159d9f..8eb90c043d5d 100644 --- a/Documentation/devicetree/bindings/media/s5p-mfc.txt +++ b/Documentation/devicetree/bindings/media/s5p-mfc.txt @@ -10,10 +10,12 @@ Required properties: - compatible : value should be either one among the following (a) "samsung,mfc-v5" for MFC v5 present in Exynos4 SoCs (b) "samsung,mfc-v6" for MFC v6 present in Exynos5 SoCs - (c) "samsung,mfc-v7" for MFC v7 present in Exynos5420 SoC - (d) "samsung,mfc-v8" for MFC v8 present in Exynos5800 SoC - (e) "samsung,exynos5433-mfc" for MFC v8 present in Exynos5433 SoC - (f) "samsung,mfc-v10" for MFC v10 present in Exynos7880 SoC + (c) "samsung,exynos3250-mfc", "samsung,mfc-v7" for MFC v7 + present in Exynos3250 SoC + (d) "samsung,mfc-v7" for MFC v7 present in Exynos5420 SoC + (e) "samsung,mfc-v8" for MFC v8 present in Exynos5800 SoC + (f) "samsung,exynos5433-mfc" for MFC v8 present in Exynos5433 SoC + (g) "samsung,mfc-v10" for MFC v10 present in Exynos7880 SoC - reg : Physical base address of the IP registers and length of memory mapped region. -- 2.17.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CGME20221114114409epcas5p32057f807dd538f874f8fd4a940c9de00@epcas5p3.samsung.com>]
* [Patch v5 2/3] media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC [not found] ` <CGME20221114114409epcas5p32057f807dd538f874f8fd4a940c9de00@epcas5p3.samsung.com> @ 2022-11-14 11:50 ` Aakarsh Jain 2022-11-24 11:43 ` Alim Akhtar 0 siblings, 1 reply; 6+ messages in thread From: Aakarsh Jain @ 2022-11-14 11:50 UTC (permalink / raw) To: linux-arm-kernel, linux-media, linux-kernel, devicetree Cc: m.szyprowski, andrzej.hajda, mchehab, hverkuil-cisco, ezequiel, jernej.skrabec, benjamin.gaignard, krzysztof.kozlowski+dt, stanimir.varbanov, dillon.minfei, david.plowman, mark.rutland, robh+dt, krzk+dt, andi, alim.akhtar, aswani.reddy, pankaj.dubey, smitha.t, aakarsh.jain Commit 5441e9dafdfc6dc40 ("[media] s5p-mfc: Core support for MFC v7") which adds mfc v7 support for Exynos3250 and use the same compatible string as used by Exynos5240 but both the IPs are a bit different in terms of IP clock. Add variant driver data based on the new compatible string "samsung,exynos3250-mfc" for Exynos3250 SoC. Suggested-by: Alim Akhtar <alim.akhtar@samsung.com> Fixes: 5441e9dafdfc ("[media] s5p-mfc: Core support for MFC v7") Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com> --- .../media/platform/samsung/s5p-mfc/s5p_mfc.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c index fca5c6405eec..007c7dbee037 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c @@ -1576,8 +1576,18 @@ static struct s5p_mfc_variant mfc_drvdata_v7 = { .port_num = MFC_NUM_PORTS_V7, .buf_size = &buf_size_v7, .fw_name[0] = "s5p-mfc-v7.fw", - .clk_names = {"mfc", "sclk_mfc"}, - .num_clocks = 2, + .clk_names = {"mfc"}, + .num_clocks = 1, +}; + +static struct s5p_mfc_variant mfc_drvdata_v7_3250 = { + .version = MFC_VERSION_V7, + .version_bit = MFC_V7_BIT, + .port_num = MFC_NUM_PORTS_V7, + .buf_size = &buf_size_v7, + .fw_name[0] = "s5p-mfc-v7.fw", + .clk_names = {"mfc", "sclk_mfc"}, + .num_clocks = 2, }; static struct s5p_mfc_buf_size_v6 mfc_buf_size_v8 = { @@ -1647,6 +1657,9 @@ static const struct of_device_id exynos_mfc_match[] = { }, { .compatible = "samsung,mfc-v7", .data = &mfc_drvdata_v7, + }, { + .compatible = "samsung,exynos3250-mfc", + .data = &mfc_drvdata_v7_3250, }, { .compatible = "samsung,mfc-v8", .data = &mfc_drvdata_v8, -- 2.17.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [Patch v5 2/3] media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC 2022-11-14 11:50 ` [Patch v5 2/3] media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC Aakarsh Jain @ 2022-11-24 11:43 ` Alim Akhtar 0 siblings, 0 replies; 6+ messages in thread From: Alim Akhtar @ 2022-11-24 11:43 UTC (permalink / raw) To: 'Aakarsh Jain', linux-arm-kernel, linux-media, linux-kernel, devicetree Cc: m.szyprowski, andrzej.hajda, mchehab, hverkuil-cisco, ezequiel, jernej.skrabec, benjamin.gaignard, krzysztof.kozlowski+dt, stanimir.varbanov, dillon.minfei, david.plowman, mark.rutland, robh+dt, krzk+dt, andi, aswani.reddy, pankaj.dubey, smitha.t >-----Original Message----- >From: Aakarsh Jain [mailto:aakarsh.jain@samsung.com] >Sent: Monday, November 14, 2022 5:20 PM >To: linux-arm-kernel@lists.infradead.org; linux-media@vger.kernel.org; linux- >kernel@vger.kernel.org; devicetree@vger.kernel.org >Cc: m.szyprowski@samsung.com; andrzej.hajda@intel.com; >mchehab@kernel.org; hverkuil-cisco@xs4all.nl; >ezequiel@vanguardiasur.com.ar; jernej.skrabec@gmail.com; >benjamin.gaignard@collabora.com; krzysztof.kozlowski+dt@linaro.org; >stanimir.varbanov@linaro.org; dillon.minfei@gmail.com; >david.plowman@raspberrypi.com; mark.rutland@arm.com; >robh+dt@kernel.org; krzk+dt@kernel.org; andi@etezian.org; >alim.akhtar@samsung.com; aswani.reddy@samsung.com; >pankaj.dubey@samsung.com; smitha.t@samsung.com; >aakarsh.jain@samsung.com >Subject: [Patch v5 2/3] media: s5p-mfc: Add variant data for MFC v7 hardware >for Exynos 3250 SoC > >Commit 5441e9dafdfc6dc40 ("[media] s5p-mfc: Core support for MFC v7") >which adds mfc v7 support for Exynos3250 and use the same compatible string >as used by Exynos5240 but both the IPs are a bit different in terms of IP clock. >Add variant driver data based on the new compatible string >"samsung,exynos3250-mfc" for Exynos3250 SoC. > >Suggested-by: Alim Akhtar <alim.akhtar@samsung.com> >Fixes: 5441e9dafdfc ("[media] s5p-mfc: Core support for MFC v7") >Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com> >--- Thanks! Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com> > .../media/platform/samsung/s5p-mfc/s5p_mfc.c | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > >diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c >b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c >index fca5c6405eec..007c7dbee037 100644 >--- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c >+++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c >@@ -1576,8 +1576,18 @@ static struct s5p_mfc_variant mfc_drvdata_v7 = { > .port_num = MFC_NUM_PORTS_V7, > .buf_size = &buf_size_v7, > .fw_name[0] = "s5p-mfc-v7.fw", >- .clk_names = {"mfc", "sclk_mfc"}, >- .num_clocks = 2, >+ .clk_names = {"mfc"}, >+ .num_clocks = 1, >+}; >+ >+static struct s5p_mfc_variant mfc_drvdata_v7_3250 = { >+ .version = MFC_VERSION_V7, >+ .version_bit = MFC_V7_BIT, >+ .port_num = MFC_NUM_PORTS_V7, >+ .buf_size = &buf_size_v7, >+ .fw_name[0] = "s5p-mfc-v7.fw", >+ .clk_names = {"mfc", "sclk_mfc"}, >+ .num_clocks = 2, > }; > > static struct s5p_mfc_buf_size_v6 mfc_buf_size_v8 = { @@ -1647,6 +1657,9 >@@ static const struct of_device_id exynos_mfc_match[] = { > }, { > .compatible = "samsung,mfc-v7", > .data = &mfc_drvdata_v7, >+ }, { >+ .compatible = "samsung,exynos3250-mfc", >+ .data = &mfc_drvdata_v7_3250, > }, { > .compatible = "samsung,mfc-v8", > .data = &mfc_drvdata_v8, >-- >2.17.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CGME20221114114412epcas5p43350b596e52a98eb69406574b4a16171@epcas5p4.samsung.com>]
* [Patch v5 3/3] ARM: dts: exynos: Add new SoC specific compatible string for Exynos3250 SoC [not found] ` <CGME20221114114412epcas5p43350b596e52a98eb69406574b4a16171@epcas5p4.samsung.com> @ 2022-11-14 11:50 ` Aakarsh Jain 2022-11-15 9:35 ` (subset) " Krzysztof Kozlowski 0 siblings, 1 reply; 6+ messages in thread From: Aakarsh Jain @ 2022-11-14 11:50 UTC (permalink / raw) To: linux-arm-kernel, linux-media, linux-kernel, devicetree Cc: m.szyprowski, andrzej.hajda, mchehab, hverkuil-cisco, ezequiel, jernej.skrabec, benjamin.gaignard, krzysztof.kozlowski+dt, stanimir.varbanov, dillon.minfei, david.plowman, mark.rutland, robh+dt, krzk+dt, andi, alim.akhtar, aswani.reddy, pankaj.dubey, smitha.t, aakarsh.jain Commit 752d3a23d1f68de ("ARM: dts: add MFC codec device node for exynos3250") which adds MFC codec device node for exynos3250 SoC. Since exynos3250.dtsi and exynos5420.dtsi are using same compatible string as "samsung,mfc-v7" but their node properties are different. As both SoCs have MFC v7 hardware module but with different clock hierarchy and complexity. Add new compatible string followed by mfc-v7 fallback for Exynos3250 SoC. Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com> Suggested-by: Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com> --- arch/arm/boot/dts/exynos3250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi index 326b9e0ed8d3..a2d6ee7fff08 100644 --- a/arch/arm/boot/dts/exynos3250.dtsi +++ b/arch/arm/boot/dts/exynos3250.dtsi @@ -485,7 +485,7 @@ }; mfc: codec@13400000 { - compatible = "samsung,mfc-v7"; + compatible = "samsung,exynos3250-mfc", "samsung,mfc-v7"; reg = <0x13400000 0x10000>; interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; clock-names = "mfc", "sclk_mfc"; -- 2.17.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: (subset) [Patch v5 3/3] ARM: dts: exynos: Add new SoC specific compatible string for Exynos3250 SoC 2022-11-14 11:50 ` [Patch v5 3/3] ARM: dts: exynos: Add new SoC specific compatible string for Exynos3250 SoC Aakarsh Jain @ 2022-11-15 9:35 ` Krzysztof Kozlowski 0 siblings, 0 replies; 6+ messages in thread From: Krzysztof Kozlowski @ 2022-11-15 9:35 UTC (permalink / raw) To: linux-arm-kernel, linux-media, linux-kernel, Aakarsh Jain, devicetree Cc: Krzysztof Kozlowski, andi, smitha.t, jernej.skrabec, krzk+dt, alim.akhtar, m.szyprowski, dillon.minfei, ezequiel, robh+dt, pankaj.dubey, benjamin.gaignard, andrzej.hajda, aswani.reddy, mark.rutland, stanimir.varbanov, hverkuil-cisco, mchehab, david.plowman, krzysztof.kozlowski+dt On Mon, 14 Nov 2022 17:20:24 +0530, Aakarsh Jain wrote: > Commit 752d3a23d1f68de ("ARM: dts: add MFC codec device node for > exynos3250") which adds MFC codec device node for exynos3250 SoC. This sentence ends prematurely. I don't know what you wanted to say here, so I dropped it. > Since exynos3250.dtsi and exynos5420.dtsi are using same compatible > string as "samsung,mfc-v7" but their node properties are different. > As both SoCs have MFC v7 hardware module but with different clock > hierarchy and complexity. > Add new compatible string followed by mfc-v7 fallback for Exynos3250 > SoC. > > [...] Applied with changes to commit msg, thanks! [3/3] ARM: dts: exynos: Add new SoC specific compatible string for Exynos3250 SoC https://git.kernel.org/krzk/linux/c/c9259e0d224b15a734673200e0825fae5ea2ab1e Best regards, -- Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-11-24 11:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20221114114402epcas5p31aade118059c242bd77835da5470afdb@epcas5p3.samsung.com>
2022-11-14 11:50 ` [Patch v5 0/3] Add new compatible for Exynos3250 Aakarsh Jain
[not found] ` <CGME20221114114406epcas5p20e15f3c3aafba2410eee8697159b1fd6@epcas5p2.samsung.com>
2022-11-14 11:50 ` [Patch v5 1/3] media: dt-bindings: s5p-mfc: Add new compatible string for Exynos3250 SoC Aakarsh Jain
[not found] ` <CGME20221114114409epcas5p32057f807dd538f874f8fd4a940c9de00@epcas5p3.samsung.com>
2022-11-14 11:50 ` [Patch v5 2/3] media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC Aakarsh Jain
2022-11-24 11:43 ` Alim Akhtar
[not found] ` <CGME20221114114412epcas5p43350b596e52a98eb69406574b4a16171@epcas5p4.samsung.com>
2022-11-14 11:50 ` [Patch v5 3/3] ARM: dts: exynos: Add new SoC specific compatible string for Exynos3250 SoC Aakarsh Jain
2022-11-15 9:35 ` (subset) " Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®