Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5495392pxv; Wed, 21 Jul 2021 06:57:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCjQungf7Ycg9upS/55BlPzXUiJkagp4Q3SDYpWlUfaCZQHstgIbgnCyJlkMRv0uFv08X6 X-Received: by 2002:a05:6402:2206:: with SMTP id cq6mr48476603edb.209.1626875871804; Wed, 21 Jul 2021 06:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626875871; cv=none; d=google.com; s=arc-20160816; b=xijB/oWPCyq9FOTq1/HJBRS1wDn+i+kulGpCACrIPcQc6qZBKeFCAvSFuC4NmInYWL TfCJrHCj7R4RzdtpwSnZFaCdrkBwlsaaKickLpjtMnjDTDS0zgvCR8+ZwIPhQ5tTxyye UVJrI6IKfOu5ZC7lVhrQKxWqybIM4GzG8sBLmiJ/sWJGMzRnNPZ398MsChrOguz9FTmL XKUva0b5LUvGMRANkqEuPte0ZsQrrEODyKiPInXO2/vZYaOWLAOv6BlGryHb0jiIrD0V TXwEHgCeY8tOqMgfVSNVoFairpdC+6U/ZtS1pZPt5iQpNZo2bimeZhRxaQpVSez7Ch9W xUyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QEkEthW7CKgy/or0VKIC3NeiSwizxj3OuVxfIG0VkUM=; b=K7wwujFM8kJMfNjD7oU/pND0k3cGjATrQCbkjW9liz6VZiE6KalYqWJ8c583KMmqad A9HqlJYpXXwk83wswyOL2BLw4iSzk1+I4cQadqt/H4iv7pQBKG+GqxxQQJmDI/mkO2VS uFDoF/3rlMM6E4va+FD+VuDjZq87r29eYIfoeQBK7cIiTN1Dgsh5T0ZdADr8+yWH1dQb N1EINDDBYmfsK/AemAAMReAktXdH2jIp6R++K1/nDR3zNDcU18gx2Zwryju4xVDLkZeY ogRIBPEjhgg85wiq6cOc/cppDjVyZ2YsYm6XfVnKMK0D4Tewaq5tWbH7SV4OmZpg8PZy nVjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HSwP1Zll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si28629650ejv.442.2021.07.21.06.57.28; Wed, 21 Jul 2021 06:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HSwP1Zll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234304AbhGUL7V (ORCPT + 99 others); Wed, 21 Jul 2021 07:59:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234331AbhGUL7K (ORCPT ); Wed, 21 Jul 2021 07:59:10 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62739C061767 for ; Wed, 21 Jul 2021 05:39:42 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id x13-20020a17090a46cdb0290175cf22899cso947632pjg.2 for ; Wed, 21 Jul 2021 05:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QEkEthW7CKgy/or0VKIC3NeiSwizxj3OuVxfIG0VkUM=; b=HSwP1Zll/dPKdP3vrbbcEcVkhx/jcMPX3H7ajHXoSwKOPW+SuuBbZWuMjK5d0IvNt6 bUWR+IarJUShSq8/4Y4ZqPCNqV+Nb9C/YIRUJqW2jpOs8ycmClELT6yzWkawxONQWZYG NDq/jPElYJ19nDgdHBtVsnlcLc+P6LA8juEuE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QEkEthW7CKgy/or0VKIC3NeiSwizxj3OuVxfIG0VkUM=; b=bL79w6/641zfG7Jd3xnBuQQVe3oJfcG05Qii+jLEE2wTc522fnbqkzf9YyZUgNJceA 28BW9Wap0qlVQulKN6D5clqGAZkP2apSWm2qagrxpuBsGs6Rhwih1bPgJc0KXv8e9W6r B4g77olZd+YDdvK0VS6kCJr1IsZbKZSzmZ6P1zUglZbBgw+rtLY3a83BVlRbGfugn39f dfSnh34s8gDPXPz9jRPA+OuNJGwd12lyHbTOGfrIZISeGBdEPXj6D6Sh1D4aWXWJkCOz FqLz/P8NrTkGJ5BItVdpRPVP5TP16C/FCd+pHKiF31K2EAv70ftHnImuuPgjpCPAM4sn ec5w== X-Gm-Message-State: AOAM532ZjYgHhkFJ6+YKbxlUvXb8F2ScUVCX/fQvB+BuC73dAhfHnfRa 7yc+qfFplqr4W3gCXwiGYo4Yqn9ML+pDP/U74ArE8Q== X-Received: by 2002:a17:903:22d0:b029:12b:1215:5e73 with SMTP id y16-20020a17090322d0b029012b12155e73mr27536794plg.60.1626871181882; Wed, 21 Jul 2021 05:39:41 -0700 (PDT) MIME-Version: 1.0 References: <20210715121209.31024-1-yong.wu@mediatek.com> <20210715121209.31024-10-yong.wu@mediatek.com> In-Reply-To: <20210715121209.31024-10-yong.wu@mediatek.com> From: Ikjoon Jang Date: Wed, 21 Jul 2021 20:39:31 +0800 Message-ID: Subject: Re: [PATCH v2 09/11] memory: mtk-smi: mt8195: Add smi support To: Yong Wu Cc: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , "moderated list:ARM/Mediatek SoC support" , srv_heupstream , open list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Mediatek SoC support" , iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, anan.sun@mediatek.com, ming-fan.chen@mediatek.com, yi.kuo@mediatek.com, anthony.huang@mediatek.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 8:22 PM Yong Wu wrote: > > MT8195 has two smi-common, their IP are the same. Only the larbs that > connect with the smi-common are different. thus the bus_sel are different > for the two smi-common. > > Signed-off-by: Yong Wu Reviewed-by: Ikjoon Jang > --- > drivers/memory/mtk-smi.c | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c > index e5a34b3952a0..3c288716a378 100644 > --- a/drivers/memory/mtk-smi.c > +++ b/drivers/memory/mtk-smi.c > @@ -250,6 +250,10 @@ static const struct mtk_smi_larb_gen mtk_smi_larb_mt8192 = { > .config_port = mtk_smi_larb_config_port_gen2_general, > }; > > +static const struct mtk_smi_larb_gen mtk_smi_larb_mt8195 = { > + .config_port = mtk_smi_larb_config_port_gen2_general, > +}; > + > static const struct of_device_id mtk_smi_larb_of_ids[] = { > {.compatible = "mediatek,mt2701-smi-larb", .data = &mtk_smi_larb_mt2701}, > {.compatible = "mediatek,mt2712-smi-larb", .data = &mtk_smi_larb_mt2712}, > @@ -258,6 +262,7 @@ static const struct of_device_id mtk_smi_larb_of_ids[] = { > {.compatible = "mediatek,mt8173-smi-larb", .data = &mtk_smi_larb_mt8173}, > {.compatible = "mediatek,mt8183-smi-larb", .data = &mtk_smi_larb_mt8183}, > {.compatible = "mediatek,mt8192-smi-larb", .data = &mtk_smi_larb_mt8192}, > + {.compatible = "mediatek,mt8195-smi-larb", .data = &mtk_smi_larb_mt8195}, > {} > }; > > @@ -430,6 +435,21 @@ static const struct mtk_smi_common_plat mtk_smi_common_mt8192 = { > F_MMU1_LARB(6), > }; > > +static const struct mtk_smi_common_plat mtk_smi_common_mt8195_vdo = { > + .type = MTK_SMI_GEN2, > + .bus_sel = F_MMU1_LARB(1) | F_MMU1_LARB(3) | F_MMU1_LARB(5) | > + F_MMU1_LARB(7), > +}; > + > +static const struct mtk_smi_common_plat mtk_smi_common_mt8195_vpp = { > + .type = MTK_SMI_GEN2, > + .bus_sel = F_MMU1_LARB(1) | F_MMU1_LARB(2) | F_MMU1_LARB(7), > +}; > + > +static const struct mtk_smi_common_plat mtk_smi_sub_common_mt8195 = { > + .type = MTK_SMI_GEN2_SUB_COMM, > +}; > + > 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}, > @@ -438,6 +458,9 @@ static const struct of_device_id mtk_smi_common_of_ids[] = { > {.compatible = "mediatek,mt8173-smi-common", .data = &mtk_smi_common_gen2}, > {.compatible = "mediatek,mt8183-smi-common", .data = &mtk_smi_common_mt8183}, > {.compatible = "mediatek,mt8192-smi-common", .data = &mtk_smi_common_mt8192}, > + {.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}, > {} > }; > > -- > 2.18.0 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek