Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3444440pxt; Tue, 10 Aug 2021 03:54:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYmrcgRZvWs32gyo9tBEmUCo/ymqsUZrEgYxuZphcvSvKX6EhJ0voLo/jzCZE1elBIH4xj X-Received: by 2002:a17:906:85cc:: with SMTP id i12mr26314567ejy.405.1628592851226; Tue, 10 Aug 2021 03:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628592851; cv=none; d=google.com; s=arc-20160816; b=xoZhJ+mqfIQTUn2Q4TLmycXQidT4hjLoh9FpX1budhbAhROfe9zOtCWm8KPTM5rRAA y0sc21dBKT9UqLoX9Gsb/SXKzu1A5DP++jXX7fz1ZV3SoOY7MA10K6wjifq52D7nGxMO RwxQWC7Eg1pvHeZB6HFMU9IkVEzzIekRwGGWmZ1HCipMpqVVAKXPUfgk+9PeKFfbR6oy t04hoYPiyOuoCdn9Ekgj3/dnCAWB3TMt2HUav0wOq6uyRs1GxOoj9OYQDuHNkUmcumQ1 8pttpIy4qnNnvsAmmgcnTPXJgP6maZQKiX8JYdrFdFV6YxQa695afnAkKf6+bsZrI3bD 6BoA== 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=zJ5oVR6ImFEZvhc3YxcZ/oYTwOIYQJYHxRTI0ZGnwEw=; b=Qr5m+9I1nBfq1rj8DzkwEeQGGlSMm5GO3abTJky0q0HSk0dcIUZQsG2HYQXGuRCAYA 7LImZCNDU1X7lwQVKeeZOMCpjWlfVMjOkM32NjZWqYsPEc8rzbO3g8N3TSd1B4lhhqLP 5cr+ceB4JsS9obHWIP12jEcB0T72wmC9WrsrvkbN59vR8dfWQKg6B2+m1r0weY1lPolY zROJioLLudY4MTBuXoqJ1r0PHnGh5VxFY/xCiLrnOuRfHyPZ02bJIyz5crlhYsdztg9O fHb012/pCArV3ahYnZ2n/27OELluSviyjRxHgx1h2Vsr0DqDs5HMqi78SEqXJLbrhO55 7tHw== 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 ot3si5526097ejb.721.2021.08.10.03.53.46; Tue, 10 Aug 2021 03:54:11 -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 S236067AbhHJIJt (ORCPT + 99 others); Tue, 10 Aug 2021 04:09:49 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:49542 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S236577AbhHJIJo (ORCPT ); Tue, 10 Aug 2021 04:09:44 -0400 X-UUID: 53b6c6ec88234b69b482cd65c786915a-20210810 X-UUID: 53b6c6ec88234b69b482cd65c786915a-20210810 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 143540492; Tue, 10 Aug 2021 16:09:09 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 10 Aug 2021 16:09:08 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 10 Aug 2021 16:09:07 +0800 From: Yong Wu To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger CC: Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , , , , , , , , , , , , , Ikjoon Jang Subject: [PATCH v3 00/13] MT8195 SMI support Date: Tue, 10 Aug 2021 16:08:46 +0800 Message-ID: <20210810080859.29511-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: v3:1) In the dt-binding: a. Change mediatek,smi type from phandle-array to phandle from Rob. b. Add a new bool property (mediatek,smi_sub_common) to indicate if this is smi-sub-common. 2) Change the clock using bulk parting. keep the smi-common's has_gals flag. more strict. 3) More comment about larb initial setting. 4) Add a maintain patch v2: https://lore.kernel.org/linux-mediatek/20210715121209.31024-1-yong.wu@mediatek.com/ 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 (13): dt-bindings: memory: mediatek: Add mt8195 smi binding dt-bindings: memory: mediatek: Add mt8195 smi sub common memory: mtk-smi: Use clk_bulk clock 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 device link for smi-sub-common memory: mtk-smi: Add clocks for smi-sub-common 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 MAINTAINERS: Add entry for MediaTek SMI .../mediatek,smi-common.yaml | 36 +- .../memory-controllers/mediatek,smi-larb.yaml | 3 + MAINTAINERS | 8 + drivers/memory/mtk-smi.c | 596 ++++++++++-------- 4 files changed, 395 insertions(+), 248 deletions(-) -- 2.18.0