Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp341085pxv; Thu, 15 Jul 2021 05:40:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF0BER5XnaN47lasDTxCDHbEuUySJXZAlvoLWUGH5RuvDzItZ4XLHf/MmXZWbSz1D86pBO X-Received: by 2002:a05:6402:1a57:: with SMTP id bf23mr6742813edb.312.1626352814955; Thu, 15 Jul 2021 05:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626352814; cv=none; d=google.com; s=arc-20160816; b=Ke5XI32PCcQKdbR/wJZ92v/AunuDO2vci9xyUgOauhs509LiDVhPVQnO+DqUJ9c5qB +BWgU+JbdKHPm54jFNMy8rAIYeKYDpk4K6Yf0WDEVmFckieKHBPjTh+PVTrWlAMZlC5A 9krMHiOKxmR2gbyJaH0UpHYqN3AJToLZVqLkoQD0Xe3n/pZ/fucEQTTDskPA0fYV9mIq GVb5WdKw73BXeoJQ2exJhVAMtPFdFprH/4jq9mcvEHslzPq2OIEr0fYUuqwYzO4cpaNI X/W27luAFtSwNJktXGv0Pi6gw1vKfbHdPTyDKx2G1hPp6kWywIeEW1Pz67w51rLSgcSO zqeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=c4C8ddz7Br8u6x+f6q4ZGyRlfnM+TIFCZpiNcVtP06g=; b=rQ7ht+Z8MkggIJGic4JLg69vlTeGP7ZDtONVG6SLxI5siU4YQJ5FrfglJwEG5r+i6J KGZnWkeW8bvLwhcGbi8yRlE8CJs78CGU0vvbi2Zooaxk0Fxw1w9h8+JakSuPVWlOiK4K x+P7P6ivMJ8eSCEN/zdQT+XPfx5xFpbyy5o/sQgf+/TDb7+W5OkrDfrHfK82H4Oz7VLx u4Es6qU5kRnG63nYbMbAzX15FEFDQ7dAgv7FM8L3SSa2R+UPy78RPPD2CccaIZxqPGbq BRjhxLpjFPIUgIknuGUbaK9S8qNfb/ZMwaiV3QbXxRKVAYQa5efwkgy5eHcMAtQQ4ri6 lYGw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nb41si3292510ejc.167.2021.07.15.05.39.52; Thu, 15 Jul 2021 05:40:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232518AbhGOMPT (ORCPT + 99 others); Thu, 15 Jul 2021 08:15:19 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38852 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232429AbhGOMPT (ORCPT ); Thu, 15 Jul 2021 08:15:19 -0400 X-UUID: 4a40208b6f1e45608533bb756d6ca5e4-20210715 X-UUID: 4a40208b6f1e45608533bb756d6ca5e4-20210715 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1608474198; Thu, 15 Jul 2021 20:12:23 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Jul 2021 20:12:21 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 15 Jul 2021 20:12:20 +0800 From: Yong Wu To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger CC: Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , , , , , , , , , , , , Subject: [PATCH v2 00/11] MT8195 SMI support Date: Thu, 15 Jul 2021 20:11:58 +0800 Message-ID: <20210715121209.31024-1-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset mainly adds SMI support for mt8195. Comparing with the previous version, add two new functions: a) add smi sub common b) add initial setting for smi-common and smi-larb. change note: v2: rebase on v5.14-rc1 1) Adjust clk_bulk flow: use devm_clk_bulk_get for necessary clocks. 2) Add two new little patches: a) use devm_platform_ioremap_resource b) Add error handle for smi_probe v1: https://lore.kernel.org/linux-mediatek/20210616114346.18812-1-yong.wu@mediatek.com/ Yong Wu (11): dt-bindings: memory: mediatek: Add mt8195 smi binding dt-bindings: memory: mediatek: Add mt8195 smi sub common memory: mtk-smi: Use clk_bulk instead of the clk ops memory: mtk-smi: Rename smi_gen to smi_type memory: mtk-smi: Adjust some code position memory: mtk-smi: Add error handle for smi_probe memory: mtk-smi: Add smi sub common support memory: mtk-smi: Use devm_platform_ioremap_resource memory: mtk-smi: mt8195: Add smi support memory: mtk-smi: mt8195: Add initial setting for smi-common memory: mtk-smi: mt8195: Add initial setting for smi-larb .../mediatek,smi-common.yaml | 31 +- .../memory-controllers/mediatek,smi-larb.yaml | 3 + drivers/memory/mtk-smi.c | 572 ++++++++++-------- 3 files changed, 356 insertions(+), 250 deletions(-) -- 2.18.0