Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2430175pxu; Mon, 7 Dec 2020 06:30:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJww73GekCE2J02Jq2JVKNENDyqf+HZYPXThcirD26Xyy4YmbNMQtBwKaZett/N0sW4vAJFo X-Received: by 2002:a17:906:c45a:: with SMTP id ck26mr19158912ejb.200.1607351406881; Mon, 07 Dec 2020 06:30:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607351406; cv=none; d=google.com; s=arc-20160816; b=aVdt9fH1VYefnA7a8pxtm85r0UFL/wR4O/v6yGjJL9INh3s1Pvqfv+n9UtBMH9EBb3 X1/r0tdkMSRQi97AmHeMsO5uM6qYpL06o8q7ozyATU9oqbM657O2V+4JGrtONF3OC8zY A9mmIaQYlEBX29NCG/GGN/PhMl5qs5+5JNIrzZ0HqNs2XrTlz24z7EqFBYX73/PODI60 /5Bi8WT/jY6L7c6qLqBaXlrBv37yHISzqF+OPJ4/Z9bNv7YS59bLMGGMmbU5sU6DZBkJ 3U9MFq19w+kJz/D/HvwWCnxveaYZG870kTSgbOduPOW6CLPTPNzaQ1EowwS8YHcvbwRG fRag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=+JKVbKtQK/Yw154DgEA/vvstAwx3uCRVJdxZ6QvqULE=; b=qI0kWyZHnmTUOxXoYuEWxlAsZjTKn25foEHnd5O1aQEUF8SnqpoPLcxEIaXiVOhF70 mYpI1/nUQxIkjOGZZh2pP9JLUKMU1FWL4IPXnJcSjYAybNXDbmq6QkGfiGCjgRYBe797 UyWRCDakDfAZzhGQ5aEKwnsUig4EvPNaYNWX41H7HkoNH2ux8k8U8v9mGTSY0bWKYVqH 5oWqQmBfaz1Y3CBSQ9xsZ76ozVZg1JxbizZ62Wjpvk/VQteOs7xMgvkU09SklXE9RBMk bPIbqMhJzFaJKxis+Eu7FYWrUo279/hQ58lAsnzIXMS1RyjKt2qPQPrNzbANZIroMOPD YLNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=JUrEe5rg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MoAPougR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si6549365ejb.246.2020.12.07.06.29.42; Mon, 07 Dec 2020 06:30:06 -0800 (PST) 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=@aj.id.au header.s=fm1 header.b=JUrEe5rg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MoAPougR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgLGO1Q (ORCPT + 99 others); Mon, 7 Dec 2020 09:27:16 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60027 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbgLGO1Q (ORCPT ); Mon, 7 Dec 2020 09:27:16 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DD37A5C012B; Mon, 7 Dec 2020 09:26:09 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 07 Dec 2020 09:26:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=+JKVbKtQK/Yw154DgEA/vvstAw x3uCRVJdxZ6QvqULE=; b=JUrEe5rgN8zH1Gmmo6hJ2FQYyIHiNWbOrl6cSMUAYe yb04A2Q5FMHTVgW0FEeBGRWY4R4TOV7ib003/DvCLWE3bkww6T4Sn2a+iih+iJc8 7hzbcc3mzWrBRi66cb8K3DrQ5td1I4iek72W0o4DifgnFbVVFpfbYhZgEMeOIknk Hxf/8RYik0vUZQ2L89ii5gTP0GZnR2U7HXMbxjvrl9+tycZDraNLiTl8pzaS5FzQ zLeqthDxFJ0dYL0Fuih/beAfDTEoqQB+NsxNDhwYwJFlU3ECGiiBgwFISfzW90fF 7sjoZ1ymXREtS09RlntLidFbbVsZVIP6tiP57ac1NG0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=+JKVbKtQK/Yw154Dg EA/vvstAwx3uCRVJdxZ6QvqULE=; b=MoAPougRjMheTLjHEFak2mfQSVuIZ9W0H FE/h/v9xUnEdYQhDKOu0N0CRoxnhGd+yqUO7NdaI6/FAcocIkOKCsX6oc4oY3ea9 PvvBSU4uwcosOm/O42NoSNWW78uzW6g93tuIV3QchA6rxLV/fqiIWGFw1k8lbQlR vaC27o343cPi92Dd3nJM4FCoI/TJFiQKLOATnbbeZtdfQ5FlhhnBkDLTPz5Gxmt+ 7e/f/1HE1upltKSTJ0JwENGIP754/D1sNCywC5cmPWNBDLlslUEFsAyf09f/u8du zBurpEFPwua5RNtPEHcOkm9hRMTxPXif1VRUGL3TZjyyp9xzP9tFw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudejgedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegrjhdr ihgurdgruheqnecuggftrfgrthhtvghrnhepieetheduveelhfdvvdejleeuhfelteevhe ffgfeitdefgeekjeefieevgfehhefgnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghen ucfkphepvddtfedrheejrddvtdekrddugeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: from localhost.localdomain (203-57-208-146.dyn.iinet.net.au [203.57.208.146]) by mail.messagingengine.com (Postfix) with ESMTPA id 38BDC108006B; Mon, 7 Dec 2020 09:26:03 -0500 (EST) From: Andrew Jeffery To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, robh+dt@kernel.org, joel@jms.id.au, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, ryan_chen@aspeedtech.com Subject: [PATCH v4 0/6] mmc: sdhci-of-aspeed: Expose phase delay tuning Date: Tue, 8 Dec 2020 00:55:50 +1030 Message-Id: <20201207142556.2045481-1-andrew@aj.id.au> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series implements support for the MMC core clk-phase-* devicetree bindings in the Aspeed SD/eMMC driver. The relevant register was exposed on the AST2600 and is present for both the SD/MMC controller and the dedicated eMMC controller. There are a couple of prominent changes from v3 in v4 of the series: 1. The devicetree phase parsing helper has been moved to the MMC core 2. KUnit tests have been added for the phase calculations in the ASPEED driver Other than that I've updated MAINTAINERS to add myself as the maintainer of the driver. v3 can be found here: https://lore.kernel.org/linux-mmc/20201123063004.337345-1-andrew@aj.id.au/ The series has had light testing on an AST2600-based platform which requires 180deg of input and output clock phase correction at HS200, as well as some synthetic testing under qemu and KUnit. Please review! Cheers, Andrew Andrew Jeffery (6): mmc: core: Add helper for parsing clock phase properties mmc: sdhci-of-aspeed: Expose clock phase controls mmc: sdhci-of-aspeed: Add AST2600 bus clock support mmc: sdhci-of-aspeed: Add KUnit tests for phase calculations MAINTAINERS: Add entry for the ASPEED SD/MMC driver ARM: dts: rainier: Add eMMC clock phase compensation MAINTAINERS | 9 + arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 1 + drivers/mmc/core/host.c | 43 ++++ drivers/mmc/host/Kconfig | 14 ++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-aspeed-test.c | 100 ++++++++ drivers/mmc/host/sdhci-of-aspeed.c | 251 ++++++++++++++++++- include/linux/mmc/host.h | 17 ++ 8 files changed, 425 insertions(+), 11 deletions(-) create mode 100644 drivers/mmc/host/sdhci-of-aspeed-test.c -- 2.27.0