* [PATCH v2 1/3] memory: mtk-smi: mt8365: Add SMI Support
2023-04-07 9:13 [PATCH v2 0/3] Add MT8365 SMI driver support Alexandre Mergnat
@ 2023-04-07 9:13 ` Alexandre Mergnat
2023-04-11 8:28 ` AngeloGioacchino Del Regno
2023-04-07 9:13 ` [PATCH v2 2/3] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 Alexandre Mergnat
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Alexandre Mergnat @ 2023-04-07 9:13 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Matthias Brugger,
AngeloGioacchino Del Regno, Rob Herring
Cc: linux-mediatek, linux-kernel, linux-arm-kernel, devicetree,
Alexandre Mergnat
Add MT8365 SMI common support.
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
drivers/memory/mtk-smi.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index 5a9754442bc7..6523cb510518 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -713,6 +713,11 @@ static const struct mtk_smi_common_plat mtk_smi_sub_common_mt8195 = {
.has_gals = true,
};
+static const struct mtk_smi_common_plat mtk_smi_common_mt8365 = {
+ .type = MTK_SMI_GEN2,
+ .bus_sel = F_MMU1_LARB(2) | F_MMU1_LARB(4),
+};
+
static const struct of_device_id mtk_smi_common_of_ids[] = {
{.compatible = "mediatek,mt2701-smi-common", .data = &mtk_smi_common_gen1},
{.compatible = "mediatek,mt2712-smi-common", .data = &mtk_smi_common_gen2},
@@ -728,6 +733,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
{.compatible = "mediatek,mt8195-smi-common-vdo", .data = &mtk_smi_common_mt8195_vdo},
{.compatible = "mediatek,mt8195-smi-common-vpp", .data = &mtk_smi_common_mt8195_vpp},
{.compatible = "mediatek,mt8195-smi-sub-common", .data = &mtk_smi_sub_common_mt8195},
+ {.compatible = "mediatek,mt8365-smi-common", .data = &mtk_smi_common_mt8365},
{}
};
--
2.25.1
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH v2 2/3] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365
2023-04-07 9:13 [PATCH v2 0/3] Add MT8365 SMI driver support Alexandre Mergnat
2023-04-07 9:13 ` [PATCH v2 1/3] memory: mtk-smi: mt8365: Add SMI Support Alexandre Mergnat
@ 2023-04-07 9:13 ` Alexandre Mergnat
2023-04-11 8:29 ` AngeloGioacchino Del Regno
2023-04-07 9:13 ` [PATCH v2 3/3] dt-bindings: memory-controllers: mediatek,smi-larb: " Alexandre Mergnat
2023-04-10 16:59 ` [PATCH v2 0/3] Add MT8365 SMI driver support Krzysztof Kozlowski
3 siblings, 1 reply; 8+ messages in thread
From: Alexandre Mergnat @ 2023-04-07 9:13 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Matthias Brugger,
AngeloGioacchino Del Regno, Rob Herring
Cc: linux-mediatek, linux-kernel, linux-arm-kernel, devicetree,
Alexandre Mergnat
Add binding description for mediatek,mt8365-smi-common
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
.../devicetree/bindings/memory-controllers/mediatek,smi-common.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
index a8fda30cccbb..2f36ac23604c 100644
--- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
@@ -43,6 +43,7 @@ properties:
- mediatek,mt8195-smi-common-vdo
- mediatek,mt8195-smi-common-vpp
- mediatek,mt8195-smi-sub-common
+ - mediatek,mt8365-smi-common
- description: for mt7623
items:
@@ -133,6 +134,7 @@ allOf:
- mediatek,mt8192-smi-common
- mediatek,mt8195-smi-common-vdo
- mediatek,mt8195-smi-common-vpp
+ - mediatek,mt8365-smi-common
then:
properties:
--
2.25.1
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v2 2/3] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365
2023-04-07 9:13 ` [PATCH v2 2/3] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 Alexandre Mergnat
@ 2023-04-11 8:29 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 8+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-04-11 8:29 UTC (permalink / raw)
To: Alexandre Mergnat, Yong Wu, Krzysztof Kozlowski,
Matthias Brugger, Rob Herring
Cc: linux-mediatek, linux-kernel, linux-arm-kernel, devicetree
Il 07/04/23 11:13, Alexandre Mergnat ha scritto:
> Add binding description for mediatek,mt8365-smi-common
>
> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
...but the bindings commits should come before the driver commits.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 3/3] dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365
2023-04-07 9:13 [PATCH v2 0/3] Add MT8365 SMI driver support Alexandre Mergnat
2023-04-07 9:13 ` [PATCH v2 1/3] memory: mtk-smi: mt8365: Add SMI Support Alexandre Mergnat
2023-04-07 9:13 ` [PATCH v2 2/3] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 Alexandre Mergnat
@ 2023-04-07 9:13 ` Alexandre Mergnat
2023-04-11 8:29 ` AngeloGioacchino Del Regno
2023-04-10 16:59 ` [PATCH v2 0/3] Add MT8365 SMI driver support Krzysztof Kozlowski
3 siblings, 1 reply; 8+ messages in thread
From: Alexandre Mergnat @ 2023-04-07 9:13 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Matthias Brugger,
AngeloGioacchino Del Regno, Rob Herring
Cc: linux-mediatek, linux-kernel, linux-arm-kernel, devicetree,
Alexandre Mergnat
Add binding description for mediatek,mt8365-smi-larb
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
.../devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
index 5f4ac3609887..aee7f6cf1300 100644
--- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
@@ -34,6 +34,10 @@ properties:
- const: mediatek,mt7623-smi-larb
- const: mediatek,mt2701-smi-larb
+ - items:
+ - const: mediatek,mt8365-smi-larb
+ - const: mediatek,mt8186-smi-larb
+
reg:
maxItems: 1
--
2.25.1
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v2 3/3] dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365
2023-04-07 9:13 ` [PATCH v2 3/3] dt-bindings: memory-controllers: mediatek,smi-larb: " Alexandre Mergnat
@ 2023-04-11 8:29 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 8+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-04-11 8:29 UTC (permalink / raw)
To: Alexandre Mergnat, Yong Wu, Krzysztof Kozlowski,
Matthias Brugger, Rob Herring
Cc: linux-mediatek, linux-kernel, linux-arm-kernel, devicetree
Il 07/04/23 11:13, Alexandre Mergnat ha scritto:
> Add binding description for mediatek,mt8365-smi-larb
>
> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
...but the bindings commits should come before the driver commits.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/3] Add MT8365 SMI driver support
2023-04-07 9:13 [PATCH v2 0/3] Add MT8365 SMI driver support Alexandre Mergnat
` (2 preceding siblings ...)
2023-04-07 9:13 ` [PATCH v2 3/3] dt-bindings: memory-controllers: mediatek,smi-larb: " Alexandre Mergnat
@ 2023-04-10 16:59 ` Krzysztof Kozlowski
3 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-04-10 16:59 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, linux-kernel,
linux-arm-kernel, linux-mediatek, Yong Wu, Rob Herring,
Alexandre Mergnat
Cc: Krzysztof Kozlowski, devicetree
On Fri, 07 Apr 2023 11:13:50 +0200, Alexandre Mergnat wrote:
> This serie add MT8365 SMI common driver support, to be bisectable and
> avoid issue with the DTS change. This driver change and the related
> change in the DTS should be applied in the right order (driver first).
>
> Here the related DTS change: [1]
>
> Also add the SMI common and LARB bindings for MT8365 support,
> I kept the Matthias Brugger reviewed-by from the previous series [3] [4].
>
> [...]
Applied, thanks! It's late, so it might miss current cycle.
With corrected order of patches (I don't know why you decided to reorder
bindings with driver. Bindings should be before its usage).
[1/3] memory: mtk-smi: mt8365: Add SMI Support
https://git.kernel.org/krzk/linux-mem-ctrl/c/3ec0e1ea4770e40575bfb2bb4e9ebbbaa3c80d3f
[2/3] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365
https://git.kernel.org/krzk/linux-mem-ctrl/c/67025255ee8b1ec496b01f74e8c298d211bc7a82
[3/3] dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365
https://git.kernel.org/krzk/linux-mem-ctrl/c/4ad9a801a3597ccfd406c911638aca2c61e57bdf
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread