* [PATCH v13 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC
@ 2026-11-20 3:24 Congcong Yao via B4 Relay
2026-11-20 3:24 ` [PATCH v13 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188 Congcong Yao via B4 Relay
2026-11-20 3:24 ` [PATCH v13 2/2] memory: mtk-smi: mt8188: Add SMI reset and clamp Congcong Yao via B4 Relay
0 siblings, 2 replies; 4+ messages in thread
From: Congcong Yao via B4 Relay @ 2026-11-20 3:24 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Rob Herring, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Philipp Zabel
Cc: linux-mediatek, linux-kernel, devicetree, linux-arm-kernel,
Friday Yang, Congcong Yao
Based on: linux-next (adcad7f4e633, 2026-11-19)
On the MediaTek MT8188 SoC platform, we encountered power-off failures
and SMI bus hang issues during camera stress tests. The issue arises
because bus glitches are sometimes produced when MTCMOS powers on or
off. While this is fairly normal, the software must handle these
glitches to avoid mistaking them for transaction signals. What's
more, this issue emerged only after the initial upstreaming of SMI
driver.
The software solutions can be summarized as follows:
1. Use CLAMP to disable the SMI sub-common port after turning off the
LARB CG and before turning off the LARB MTCMOS.
2. Use CLAMP to disable/enable the SMI sub-common port.
3. Implement an AXI reset for SMI LARBs.
Changes in v13:
- Use the linked SMI Common device MMIO base for clamp register writes
instead of obtaining a syscon regmap. Remove the regmap lookup and its
error path from mtk_smi_device_link_common().
- Move clamp port setup into mtk_smi_larb_parse_reset(), after the SMI
Common device link is established and the larb ID is validated.
- Pass the LARB directly to the clamp helper and return immediately on
reset failure in the genpd callback.
- Drop the v12 driver Reviewed-by tags after changing clamp access.
Changes in v12:
- We used to parse 'mediatek,smi' property in 'mtk_smi_larb_parse_syscon'
to get smi sub common regmap. The property has already been parsed in
'mtk_smi_device_link_common'. To remove redundant code, we remove
'mtk_smi_larb_parse_syscon' function and get the smi sub common regmap
in 'mtk_smi_device_link_common'.
- We need to get driver data in 'mtk_smi_device_link_common', so move
'platform_set_drvdata' before 'mtk_smi_device_link_common' in
'mtk_smi_larb_probe'.
- Link to v12:
https://lore.kernel.org/lkml/20260119120552.9325-1-friday.yang@mediatek.com/
Changes in v11:
- Add error checking in the 'mtk_smi_genpd_callback' function and use
'switch-case' statement instead of 'if-else'.
- Use 'larb->larb_gen->clamp_port[larb->larbid]' to determine
whether smi larb requires clamp and reset operations or not in
'mtk_smi_larb_probe'. Remove the '_optional' suffix from the
function name.
- Replace 'devm_reset_control_get_optional_exclusive' with
'devm_reset_control_get_exclusive' in 'mtk_smi_larb_parse_reset',
return the error code if it fails to get the reset controller.
- Remove genpd callback when smi larb probe fails.
- Link to v11:
https://lore.kernel.org/lkml/20250917120724.8650-1-friday.yang@mediatek.com/
Changes in v10:
- Rename 'smi_comm_inport_id' to 'smi_comm_in_port_id'.
- Return 0 when it fails to get 'larb_id' in
'mtk_smi_larb_parse_clamp_optional'.
- Link to v10:
https://lore.kernel.org/lkml/20250806085946.11383-1-friday.yang@mediatek.com/
Changes in v9:
- Add 'dev_pm_genpd_remove_notifier' in 'mtk_smi_larb_remove'.
- Remove unused macros.
- Rename 'sub_comm_syscon' to 'smi_comm_syscon'.
- Rename 'sub_comm_inport_id' to 'smi_comm_inport_id'.
- Add more detailed descriptions in change log.
- Fix incorrect tags.
- Link to v9:
https://lore.kernel.org/lkml/20250804125215.23076-1-friday.yang@mediatek.com/
Changes in v8:
- Fix incorrect tags.
- Link to v8:
https://lore.kernel.org/lkml/20250521063347.31578-1-friday.yang@mediatek.com/
Changes in v7:
- We replaced 'pm_runtime_enable' with 'devm_pm_runtime_enable' in the
v6 patch. This changed the order of cleanup, and reviewers expressed
concerns that it could introduce unexpected issues. So v7 discard this
change and continue using 'pm_runtime_enable'. We need to conduct
further investigation to determine if there are any issues related
to the cleanup order. This might be resolved in the future, but for
now, we just maintain the current status.
- Link to v7:
https://lore.kernel.org/lkml/20250430094545.23932-1-friday.yang@mediatek.com/
Changes in v6:
- Fix coding style.
- Add another patch to replace 'pm_runtime_enable' with
'devm_pm_runtime_enable'.
- Link to v6:
https://lore.kernel.org/lkml/20250408033206.12176-1-friday.yang@mediatek.com/
Changes in v5:
- Use 'devm_pm_runtime_enable' instead of 'pm_runtime_enable'.
- Remove 'pm_runtime_disable' in 'mtk_smi_common_remove' and
'mtk_smi_larb_remove'.
- Link to v5:
https://lore.kernel.org/lkml/20250311122327.20685-1-friday.yang@mediatek.com/
Changes in v4:
- Use 'devm_reset_control_get_optional_exclusive' instead of
'devm_reset_control_get'.
- Link to v4:
https://lore.kernel.org/lkml/20250221074846.14105-1-friday.yang@mediatek.com/
Changes in v3:
- Remove redundant descriptions for 'resets' and 'reset-names'.
- Modify the requirements for 'resets' and 'reset-names'.
- Rename 'mtk_smi_larb_parse_clamp' to 'mtk_smi_larb_parse_clamp_optional'.
- Rename 'mtk_smi_larb_parse_reset' to 'mtk_smi_larb_parse_reset_optional'.
- Merge 'mtk_smi_larb_clamp_protect_enable' and
'mtk_smi_larb_clamp_protect_disble' into one function.
- Modify the definition for mtk_smi_larb_clamp_port_mt8188,
use 'larbid' as the index of the array.
- Use 'syscon_regmap_lookup_by_phandle' instead of 'device_node_to_regmap'.
- Do Not parse 'resets', just check the return value of
'devm_reset_control_get'.
- Add 'has_gals' flag for 'mtk_smi_sub_common_mt8188'.
- Link to v3:
https://lore.kernel.org/lkml/20250121064934.13482-1-friday.yang@mediatek.com/
Changes in v2:
- According to previous discussions in v1, divided these four
patches into two topic separately.
- Modify the description for 'resets' in binding.
- Add const value 'larb' for 'reset-names' in binding.
- Modify requirement for 'resets' and 'reset-names' in binding.
- Delete 'mediatek,smi-sub-comm' in binding.
- Delete 'mediatek,smi-sub-comm-in-portid' in binding.
- Modify the example in binding.
- Add 'mtk_smi_larb_clamp_port_mt8188' definition in SMI driver.
- Change the way to parse the 'resets' in driver.
- Change label from 'err_pm_disable' to 'err_link_remove'.
- Link to v2:
https://lore.kernel.org/lkml/20241120063701.8194-1-friday.yang@mediatek.com/
---
Friday Yang (2):
dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188
memory: mtk-smi: mt8188: Add SMI reset and clamp
.../memory-controllers/mediatek,smi-common.yaml | 2 +
.../memory-controllers/mediatek,smi-larb.yaml | 19 ++++
drivers/memory/mtk-smi.c | 120 ++++++++++++++++++++-
3 files changed, 140 insertions(+), 1 deletion(-)
---
base-commit: adcad7f4e6332cff3d6d7165f41584899f598534
change-id: 20261103-8188-smi-clamp-reset-e3c1bc2381d8
Best regards,
--
Congcong Yao <congcong.yao@mediatek.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v13 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188
2026-11-20 3:24 [PATCH v13 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC Congcong Yao via B4 Relay
@ 2026-11-20 3:24 ` Congcong Yao via B4 Relay
2026-11-20 3:24 ` [PATCH v13 2/2] memory: mtk-smi: mt8188: Add SMI reset and clamp Congcong Yao via B4 Relay
1 sibling, 0 replies; 4+ messages in thread
From: Congcong Yao via B4 Relay @ 2026-11-20 3:24 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Rob Herring, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Philipp Zabel
Cc: linux-mediatek, linux-kernel, devicetree, linux-arm-kernel,
Friday Yang
From: Friday Yang <friday.yang@mediatek.com>
On the MediaTek MT8188 SoC, bus glitches may occur during MTCMOS
on/off transitions. The root cause is a hardware design choice in
the camera subsystem where the SMI LARB and SMI Sub-Common modules
are located in separate power domains and controlled by independent
MTCMOS gates. A timing window exists after the main power domain
is enabled but before the sub-power domain is enabled. During this
window, unstable glitch signals can appear on the bus. Unlike other
subsystems, the camera subsystem lacks a GALs (Globally Asynchronous
Locally Synchronous) hardware module, which would normally handle
cross-domain synchronization and filter out such glitches.
In contrast, other subsystems have their SMI LARB and SMI Sub-Common
within one power domain or could rely on GALs for synchronization.
Thus they are not affected by this issue.
To prevent these glitches from causing bus hang, SMI requires clamp
and reset operations. This change adds the 'resets' and 'reset-names'
properties to SMI LARBs within camera subsystem to support the necessary
reset operations. This reset setting is exclusively required for the
MediaTek MT8188 platform and remains inactive on other SoCs.
We also add 'smi-sub-common' in the smi-common binding for MT8188.
This indicates that some SMI LARBs are connected to the SMI Sub-Common,
which in turn is connected to the SMI Common. The hardware block diagram
can be described as follows.
SMI-Common(Smart Multimedia Interface Common)
|
+----------------+------------------+
| | |
| | |
| | |
| | |
| | |
larb0 SMI-Sub-Common0 SMI-Sub-Common1
| | | | |
larb1 larb2 larb3 larb7 larb9
Signed-off-by: Friday Yang <friday.yang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Rob Herring <robh@kernel.org>
---
.../memory-controllers/mediatek,smi-common.yaml | 2 ++
.../memory-controllers/mediatek,smi-larb.yaml | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
index 33c989f7fc33..65931adcc6fc 100644
--- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
@@ -55,6 +55,7 @@ properties:
- mediatek,mt8186-smi-common
- mediatek,mt8188-smi-common-vdo
- mediatek,mt8188-smi-common-vpp
+ - mediatek,mt8188-smi-sub-common
- mediatek,mt8189-smi-common
- mediatek,mt8189-smi-sub-common
- mediatek,mt8192-smi-common
@@ -125,6 +126,7 @@ allOf:
compatible:
contains:
enum:
+ - mediatek,mt8188-smi-sub-common
- mediatek,mt8189-smi-sub-common
- mediatek,mt8195-smi-sub-common
then:
diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
index 9a5dafd7c07e..79ef73e52c5d 100644
--- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
@@ -71,6 +71,12 @@ properties:
description: the hardware id of this larb. It's only required when this
hardware id is not consecutive from its M4U point of view.
+ resets:
+ maxItems: 1
+
+ reset-names:
+ const: larb
+
required:
- compatible
- reg
@@ -129,6 +135,19 @@ allOf:
required:
- mediatek,larb-id
+ - if: # only for image, camera and ipe subsys
+ properties:
+ compatible:
+ const: mediatek,mt8188-smi-larb
+ mediatek,larb-id:
+ enum:
+ [ 9, 10, 11, 12, 13, 16, 17, 18, 19, 20 ]
+
+ then:
+ required:
+ - resets
+ - reset-names
+
additionalProperties: false
examples:
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v13 2/2] memory: mtk-smi: mt8188: Add SMI reset and clamp
2026-11-20 3:24 [PATCH v13 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC Congcong Yao via B4 Relay
2026-11-20 3:24 ` [PATCH v13 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188 Congcong Yao via B4 Relay
@ 2026-11-20 3:24 ` Congcong Yao via B4 Relay
2026-11-26 10:44 ` Yong Wu (吴勇)
1 sibling, 1 reply; 4+ messages in thread
From: Congcong Yao via B4 Relay @ 2026-11-20 3:24 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Rob Herring, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Philipp Zabel
Cc: linux-mediatek, linux-kernel, devicetree, linux-arm-kernel,
Friday Yang, Congcong Yao
From: Friday Yang <friday.yang@mediatek.com>
To prevent handling glitch signals during MTCMOS on/off transitions,
SMI requires clamp and reset operations. Parse the reset settings for
SMI LARBs and the clamp settings for the SMI Sub-Common. Register
genpd callback for the SMI LARBs located in image, camera and IPE
subsystems, and apply reset and clamp operations within the callback.
Signed-off-by: Friday Yang <friday.yang@mediatek.com>
Signed-off-by: Congcong Yao <congcong.yao@mediatek.com>
---
drivers/memory/mtk-smi.c | 120 ++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 119 insertions(+), 1 deletion(-)
diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index 0ebbaf3411aa..5ec277fea04f 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -14,7 +14,9 @@
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
+#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>
+#include <linux/reset.h>
#include <linux/soc/mediatek/mtk_sip_svc.h>
#include <soc/mediatek/smi.h>
#include <dt-bindings/memory/mt2701-larb-port.h>
@@ -34,6 +36,8 @@
#define SMI_FIFO_TH1 0x238
#define SMI_FIFO_TH2 0x23c
#define SMI_DCM 0x300
+#define SMI_COMMON_CLAMP_EN_SET 0x3c4
+#define SMI_COMMON_CLAMP_EN_CLR 0x3c8
#define SMI_DUMMY 0x444
/* SMI LARB */
@@ -134,6 +138,7 @@ struct mtk_smi_larb_gen {
unsigned int larb_direct_to_common_mask;
unsigned int flags_general;
const u8 (*ostd)[SMI_LARB_PORT_NR_MAX];
+ const u8 *clamp_port;
};
struct mtk_smi {
@@ -150,6 +155,7 @@ struct mtk_smi {
};
struct mtk_smi_larb { /* larb: local arbiter */
+ struct device *dev;
struct mtk_smi smi;
void __iomem *base;
struct device *smi_common_dev; /* common or sub-common dev */
@@ -158,6 +164,9 @@ struct mtk_smi_larb { /* larb: local arbiter */
u32 *mmu;
unsigned char *bank;
bool bound; /* set once the iommu binds us */
+ u8 smi_comm_in_port_id; /* smi-comm or sub-comm */
+ struct notifier_block nb;
+ struct reset_control *rst_con;
};
static int
@@ -514,6 +523,19 @@ static const u8 mtk_smi_larb_mt8195_ostd[][SMI_LARB_PORT_NR_MAX] = {
[28] = {0x1a, 0x0e, 0x0a, 0x0a, 0x0c, 0x0e, 0x10,},
};
+static const u8 mtk_smi_larb_clamp_port_mt8188[MTK_LARB_NR_MAX] = {
+ [9] = BIT(1), /* larb10 */
+ [10] = BIT(2), /* larb11a */
+ [11] = BIT(2), /* larb11b */
+ [12] = BIT(3), /* larb11c */
+ [13] = BIT(0), /* larb12 */
+ [16] = BIT(1), /* larb15 */
+ [17] = BIT(2), /* larb16a */
+ [18] = BIT(2), /* larb16b */
+ [19] = BIT(3), /* larb17a */
+ [20] = BIT(3), /* larb17b */
+};
+
static const struct mtk_smi_larb_gen mtk_smi_larb_mt2701 = {
.port_in_larb = {
LARB0_PORT_OFFSET, LARB1_PORT_OFFSET,
@@ -567,6 +589,7 @@ static const struct mtk_smi_larb_gen mtk_smi_larb_mt8188 = {
.flags_general = MTK_SMI_FLAG_THRT_UPDATE | MTK_SMI_FLAG_SW_FLAG |
MTK_SMI_FLAG_SLEEP_CTL | MTK_SMI_FLAG_CFG_PORT_SEC_CTL,
.ostd = mtk_smi_larb_mt8188_ostd,
+ .clamp_port = mtk_smi_larb_clamp_port_mt8188,
};
static const struct mtk_smi_larb_gen mtk_smi_larb_mt8189 = {
@@ -626,6 +649,43 @@ static void mtk_smi_larb_sleep_ctrl_disable(struct mtk_smi_larb *larb)
writel_relaxed(0, larb->base + SMI_LARB_SLP_CON);
}
+static void mtk_smi_larb_clamp_protect_enable(struct mtk_smi_larb *larb, bool enable)
+{
+ struct mtk_smi *common = dev_get_drvdata(larb->smi_common_dev);
+ u32 clamp_offset;
+
+ clamp_offset = enable ? SMI_COMMON_CLAMP_EN_SET : SMI_COMMON_CLAMP_EN_CLR;
+ writel(larb->smi_comm_in_port_id, common->base + clamp_offset);
+}
+
+static int mtk_smi_genpd_callback(struct notifier_block *nb,
+ unsigned long event, void *data)
+{
+ struct mtk_smi_larb *larb = container_of(nb, struct mtk_smi_larb, nb);
+ int ret;
+
+ switch (event) {
+ case GENPD_NOTIFY_PRE_ON:
+ case GENPD_NOTIFY_PRE_OFF:
+ /* Clamp this larb to avoid the redundant commands */
+ mtk_smi_larb_clamp_protect_enable(larb, true);
+ break;
+ case GENPD_NOTIFY_ON:
+ ret = reset_control_reset(larb->rst_con);
+ if (ret) {
+ dev_err(larb->dev, "Failed to reset smi larb %d\n", ret);
+ return NOTIFY_BAD;
+ }
+
+ mtk_smi_larb_clamp_protect_enable(larb, false);
+ break;
+ default:
+ break;
+ }
+
+ return NOTIFY_OK;
+}
+
static int mtk_smi_device_link_common(struct device *dev, struct device **com_dev)
{
struct platform_device *smi_com_pdev;
@@ -685,6 +745,28 @@ static int mtk_smi_dts_clk_init(struct device *dev, struct mtk_smi *smi,
return ret;
}
+static int mtk_smi_larb_parse_reset(struct mtk_smi_larb *larb)
+{
+ struct device *dev = larb->dev;
+ int ret;
+
+ larb->smi_comm_in_port_id = larb->larb_gen->clamp_port[larb->larbid];
+ larb->rst_con = devm_reset_control_get_exclusive(dev, "larb");
+ if (IS_ERR(larb->rst_con))
+ return dev_err_probe(dev, PTR_ERR(larb->rst_con),
+ "Failed to get reset controller\n");
+
+ larb->nb.notifier_call = mtk_smi_genpd_callback;
+ ret = dev_pm_genpd_add_notifier(dev, &larb->nb);
+ if (ret) {
+ larb->nb.notifier_call = NULL;
+ return dev_err_probe(dev, ret,
+ "Failed to add genpd callback\n");
+ }
+
+ return 0;
+}
+
static int mtk_smi_larb_probe(struct platform_device *pdev)
{
struct mtk_smi_larb *larb;
@@ -695,6 +777,7 @@ static int mtk_smi_larb_probe(struct platform_device *pdev)
if (!larb)
return -ENOMEM;
+ larb->dev = dev;
larb->larb_gen = of_device_get_match_data(dev);
larb->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(larb->base))
@@ -711,15 +794,41 @@ static int mtk_smi_larb_probe(struct platform_device *pdev)
if (ret < 0)
return ret;
- pm_runtime_enable(dev);
platform_set_drvdata(pdev, larb);
+
+ /* The larbid are sequential for IOMMU if this property is not present */
+ ret = of_property_read_u32(dev->of_node, "mediatek,larb-id", &larb->larbid);
+ if (ret == -EINVAL)
+ goto pm_runtime_en;
+ if (ret || larb->larbid >= MTK_LARB_NR_MAX) {
+ ret = -EINVAL;
+ goto err_link_remove;
+ }
+
+ /*
+ * Only SMI LARBs in camera, image and IPE subsys need to
+ * apply clamp and reset operations, others can be skipped.
+ */
+ if (larb->larb_gen->clamp_port && larb->larb_gen->clamp_port[larb->larbid]) {
+ ret = mtk_smi_larb_parse_reset(larb);
+ if (ret)
+ goto err_link_remove;
+ }
+
+pm_runtime_en:
+ pm_runtime_enable(dev);
ret = component_add(dev, &mtk_smi_larb_component_ops);
if (ret)
goto err_pm_disable;
return 0;
err_pm_disable:
+ if (larb->nb.notifier_call)
+ dev_pm_genpd_remove_notifier(&pdev->dev);
+
pm_runtime_disable(dev);
+
+err_link_remove:
device_link_remove(dev, larb->smi_common_dev);
put_device(larb->smi_common_dev);
return ret;
@@ -729,6 +838,9 @@ static void mtk_smi_larb_remove(struct platform_device *pdev)
{
struct mtk_smi_larb *larb = platform_get_drvdata(pdev);
+ if (larb->nb.notifier_call)
+ dev_pm_genpd_remove_notifier(&pdev->dev);
+
device_link_remove(&pdev->dev, larb->smi_common_dev);
pm_runtime_disable(&pdev->dev);
component_del(&pdev->dev, &mtk_smi_larb_component_ops);
@@ -865,6 +977,11 @@ static const struct mtk_smi_common_plat mtk_smi_common_mt8188_vpp = {
.init = mtk_smi_common_mt8195_init,
};
+static const struct mtk_smi_common_plat mtk_smi_sub_common_mt8188 = {
+ .type = MTK_SMI_GEN2_SUB_COMM,
+ .has_gals = true,
+};
+
static const struct mtk_smi_common_plat mtk_smi_common_mt8189 = {
.type = MTK_SMI_GEN2,
.bus_sel = F_MMU1_LARB(1) | F_MMU1_LARB(3) | F_MMU1_LARB(5) |
@@ -920,6 +1037,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
{.compatible = "mediatek,mt8186-smi-common", .data = &mtk_smi_common_mt8186},
{.compatible = "mediatek,mt8188-smi-common-vdo", .data = &mtk_smi_common_mt8188_vdo},
{.compatible = "mediatek,mt8188-smi-common-vpp", .data = &mtk_smi_common_mt8188_vpp},
+ {.compatible = "mediatek,mt8188-smi-sub-common", .data = &mtk_smi_sub_common_mt8188},
{.compatible = "mediatek,mt8189-smi-common", .data = &mtk_smi_common_mt8189},
{.compatible = "mediatek,mt8189-smi-sub-common", .data = &mtk_smi_sub_common_mt8189},
{.compatible = "mediatek,mt8192-smi-common", .data = &mtk_smi_common_mt8192},
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v13 2/2] memory: mtk-smi: mt8188: Add SMI reset and clamp
2026-11-20 3:24 ` [PATCH v13 2/2] memory: mtk-smi: mt8188: Add SMI reset and clamp Congcong Yao via B4 Relay
@ 2026-11-26 10:44 ` Yong Wu (吴勇)
0 siblings, 0 replies; 4+ messages in thread
From: Yong Wu (吴勇) @ 2026-11-26 10:44 UTC (permalink / raw)
To: robh@kernel.org, p.zabel@pengutronix.de,
Congcong Yao (姚聪聪), conor+dt@kernel.org,
matthias.bgg@gmail.com, AngeloGioacchino Del Regno,
krzk@kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Friday Yang (杨阳)
On 五, 2026-11-20 at 11:24 +0800, Congcong Yao via B4 Relay wrote:
> From: Friday Yang <friday.yang@mediatek.com>
>
> To prevent handling glitch signals during MTCMOS on/off transitions,
> SMI requires clamp and reset operations. Parse the reset settings for
> SMI LARBs and the clamp settings for the SMI Sub-Common. Register
> genpd callback for the SMI LARBs located in image, camera and IPE
> subsystems, and apply reset and clamp operations within the callback.
>
> Signed-off-by: Friday Yang <friday.yang@mediatek.com>
> Signed-off-by: Congcong Yao <congcong.yao@mediatek.com>
> ---
> drivers/memory/mtk-smi.c | 120
> ++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 119 insertions(+), 1 deletion(-)
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-26 10:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 3:24 [PATCH v13 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC Congcong Yao via B4 Relay
2026-11-20 3:24 ` [PATCH v13 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188 Congcong Yao via B4 Relay
2026-11-20 3:24 ` [PATCH v13 2/2] memory: mtk-smi: mt8188: Add SMI reset and clamp Congcong Yao via B4 Relay
2026-11-26 10:44 ` Yong Wu (吴勇)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox