From patchwork Wed Nov 25 18:45:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11932057 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-23.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,INCLUDES_PULL_REQUEST, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7354CC56202 for ; Wed, 25 Nov 2020 18:45:35 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 27662206CA; Wed, 25 Nov 2020 18:45:35 +0000 (UTC) Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1AF520674; Wed, 25 Nov 2020 18:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606329935; bh=wYs7yKzr01gmOFi/hPQSCmHXWhDupFK2+1oBhemb6X4=; h=From:List-Id:To:Cc:Subject:Date:From; b=pqAnVkmBA8N5/I04t2LRtof88xVi6mMC3bVDK6M7fzJ9o+uxAaNOcrHtuhvAkT8Nt IN/k/VfXmodcnxLKULwrMxQWs3EuqbjvKxhof4o6ebC1ZL78ANN/IGncZ6qZTEO8mx E+nHTwmSbvyU9G2LH7iU+22Ghd8F3+BqoFRK4VQ8= From: Krzysztof Kozlowski List-Id: To: Olof Johansson , Arnd Bergmann , arm@kernel.org, soc@kernel.org Cc: Krzysztof Kozlowski , linux-kernel@vger.kernel.org Subject: [GIT PULL 1/2] memory: Memory controller for v5.11 Date: Wed, 25 Nov 2020 19:45:28 +0100 Message-Id: <20201125184529.5392-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Hi, Few early changes for v5.11. Best regards, Krzysztof The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git tags/memory-controller-drv-5.11 for you to fetch changes up to 5445a0c0d3366358e7ac44efa108b6fd359873e3: memory: pl353-smc: fix compile test on !ARM_AMBA (2020-11-18 17:14:54 +0100) ---------------------------------------------------------------- Memory controller drivers for v5.11 1. jz4780_nemc: fix devm_ioremap() return value check leading to potential NULL pointer dereference. 2. mediatek: Convert bindings to dtschema and add support for mt8192. 3. pl353-smc: Fix compile test. ---------------------------------------------------------------- Dan Carpenter (1): memory: jz4780_nemc: Fix an error pointer vs NULL check in probe() Krzysztof Kozlowski (2): MAINTAINERS: add dt binding headers to memory controller drivers entry memory: pl353-smc: fix compile test on !ARM_AMBA Yong Wu (3): dt-bindings: memory: mediatek: Convert SMI to DT schema dt-bindings: memory: mediatek: Add mt8192 support memory: mtk-smi: Add mt8192 support .../memory-controllers/mediatek,smi-common.txt | 50 -------- .../memory-controllers/mediatek,smi-common.yaml | 142 +++++++++++++++++++++ .../memory-controllers/mediatek,smi-larb.txt | 50 -------- .../memory-controllers/mediatek,smi-larb.yaml | 132 +++++++++++++++++++ MAINTAINERS | 1 + drivers/memory/Kconfig | 4 +- drivers/memory/jz4780-nemc.c | 4 +- drivers/memory/mtk-smi.c | 19 +++ 8 files changed, 298 insertions(+), 104 deletions(-) delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml From patchwork Wed Nov 25 18:45:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11932059 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-23.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,INCLUDES_PULL_REQUEST, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D86E8C56201 for ; Wed, 25 Nov 2020 18:45:42 +0000 (UTC) Received: by mail.kernel.org (Postfix) id AD1752075A; Wed, 25 Nov 2020 18:45:42 +0000 (UTC) Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F363620674; Wed, 25 Nov 2020 18:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606329942; bh=oyJLagFjQFP8ehmzjlxlBNe5DZs42FKe1zNAG5a9QYQ=; h=From:List-Id:To:Cc:Subject:Date:In-Reply-To:References:From; b=TkRprwEZ6QqDwjAQVJ8YQS2HQXpiXexpCQm/cUze9eFMPexoYxpdSoX5E8C0kOQnB ewqOgGSG9U7nwZspKzniPYLnECKUKWGpzRAYaVkcNt5DXWC2pikzXONoE8uMVopAUK LVzmE42jXG+Et4cdFn33MFkAQ+OqvX30hEwDHBiU= From: Krzysztof Kozlowski List-Id: To: Olof Johansson , Arnd Bergmann , arm@kernel.org, soc@kernel.org Cc: Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Dmitry Osipenko , Thierry Reding Subject: [GIT PULL 2/2] memory: tegra for v5.11 Date: Wed, 25 Nov 2020 19:45:29 +0100 Message-Id: <20201125184529.5392-2-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201125184529.5392-1-krzk@kernel.org> References: <20201125184529.5392-1-krzk@kernel.org> MIME-Version: 1.0 Hi, The Tegra memory controllers work was big enough to get its own branch and tag. It also includes few SoC and clock patches, which I shared externally via a stable tag to devfreq tree. The work is not yet finished, so more patches from Dmitry will be coming. However I want to flush my queue now. Best regards, Krzysztof The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git tags/memory-controller-drv-tegra-5.11 for you to fetch changes up to e45b57df4b9e9f8b5df7553a9a001acd9cae1b5d: memory: tegra30-emc: Remove unnecessary of_node_put in tegra_emc_probe (2020-11-23 17:28:48 +0100) ---------------------------------------------------------------- Memory controller drivers for v5.11 - Tegra SoC There is a bigger work from Dmitry Osipenko around Tegra SoC memory controller drivers, mostly towards adding interconnect support and integration with devfreq. This work touches all Tegra memory controller drivers and also few other SoC-related parts. It's not yet finished but the intermediate stage seems ready to merge. Beside that Tegra 210 memory controller got few fixes and received new swgroups (work of Nicolin Chen). ---------------------------------------------------------------- Dmitry Osipenko (35): dt-bindings: memory: tegra20: emc: Correct registers range in example clk: tegra: Export Tegra20 EMC kernel symbols soc/tegra: fuse: Export tegra_read_ram_code() soc/tegra: fuse: Add stub for tegra_sku_info dt-bindings: memory: tegra20: emc: Document nvidia, memory-controller property dt-bindings: memory: tegra20: mc: Document new interconnect property dt-bindings: memory: tegra20: emc: Document new interconnect property dt-bindings: memory: tegra20: emc: Document OPP table and voltage regulator dt-bindings: memory: tegra30: mc: Document new interconnect property dt-bindings: memory: tegra30: emc: Document new interconnect property dt-bindings: memory: tegra30: emc: Document OPP table and voltage regulator dt-bindings: memory: tegra124: mc: Document new interconnect property dt-bindings: memory: tegra124: emc: Document new interconnect property dt-bindings: memory: tegra124: emc: Document OPP table and voltage regulator dt-bindings: tegra30-actmon: Document OPP and interconnect properties dt-bindings: host1x: Document new interconnect properties dt-bindings: memory: tegra20: Add memory client IDs dt-bindings: memory: tegra30: Add memory client IDs dt-bindings: memory: tegra124: Add memory client IDs memory: tegra: Add and use devm_tegra_memory_controller_get() memory: tegra: Use devm_platform_ioremap_resource() memory: tegra: Remove superfluous error messages around platform_get_irq() memory: tegra: Add missing latency allowness entry for Page Table Cache memory: tegra-mc: Add interconnect framework memory: tegra20-emc: Make driver modular memory: tegra20-emc: Continue probing if timings are missing in device-tree memory: tegra20: Support interconnect framework memory: tegra: Correct stub of devm_tegra_memory_controller_get() memory: tegra20-emc: Use dev_pm_opp_set_clkname() memory: tegra20-emc: Factor out clk initialization memory: tegra20-emc: Remove IRQ number from error message memory: tegra20-emc: Add devfreq support memory: tegra30: Add FIFO sizes to memory clients memory: tegra30-emc: Make driver modular memory: tegra30-emc: Continue probing if timings are missing in device-tree Krzysztof Kozlowski (1): Merge branch 'for-v5.11/tegra-soc-clk' into HEAD Nathan Chancellor (1): memory: tegra30-emc: Remove unnecessary of_node_put in tegra_emc_probe Nicolin Chen (5): memory: tegra: Correct la.reg address of seswr memory: tegra: Correct tegra210_mc_clients def values memory: tegra: Sort tegra210_swgroups by reg address dt-bindings: memory: tegra: Add missing swgroups memory: tegra: Complete tegra210_swgroups .../bindings/arm/tegra/nvidia,tegra30-actmon.txt | 25 + .../display/tegra/nvidia,tegra20-host1x.txt | 68 +++ .../memory-controllers/nvidia,tegra124-emc.yaml | 19 + .../memory-controllers/nvidia,tegra124-mc.yaml | 5 + .../memory-controllers/nvidia,tegra20-emc.txt | 22 +- .../memory-controllers/nvidia,tegra20-mc.txt | 3 + .../memory-controllers/nvidia,tegra30-emc.yaml | 18 + .../memory-controllers/nvidia,tegra30-mc.yaml | 5 + drivers/clk/tegra/clk-tegra20-emc.c | 3 + drivers/memory/tegra/Kconfig | 9 +- drivers/memory/tegra/mc.c | 155 +++++- drivers/memory/tegra/mc.h | 22 + drivers/memory/tegra/tegra114.c | 6 + drivers/memory/tegra/tegra124-emc.c | 22 +- drivers/memory/tegra/tegra124.c | 6 + drivers/memory/tegra/tegra20-emc.c | 528 +++++++++++++++++++-- drivers/memory/tegra/tegra20.c | 77 +++ drivers/memory/tegra/tegra210-emc-core.c | 39 +- drivers/memory/tegra/tegra210.c | 60 ++- drivers/memory/tegra/tegra30-emc.c | 73 ++- drivers/memory/tegra/tegra30.c | 72 +++ drivers/soc/tegra/fuse/tegra-apbmisc.c | 2 + include/dt-bindings/memory/tegra124-mc.h | 68 +++ include/dt-bindings/memory/tegra20-mc.h | 53 +++ include/dt-bindings/memory/tegra210-mc.h | 10 + include/dt-bindings/memory/tegra30-mc.h | 67 +++ include/soc/tegra/fuse.h | 4 + include/soc/tegra/mc.h | 27 ++ 28 files changed, 1299 insertions(+), 169 deletions(-)