From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 E75D7C433B4 for ; Thu, 20 May 2021 10:29:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 677D5613C8 for ; Thu, 20 May 2021 10:29:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 677D5613C8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=rAi1UDAy5/NLnAfZGqCU7Jd/nTfynVO8Qk86uIsSOns=; b=MGdHfd8QqKuKJKyYHVDaEvjcVH XbuNf5I1jb/aU1T8HIuoYjszVHiU217xOK+5d8kOrBmyeYn8rgM+YPC3swvuzCyGbiSgXccnA9Zg8 jCZy3KpsQS+AwupB2/AXtEuOEUc64BuMKWnPjR9o2/3++01e4ETq5k66actPo45bit19tdtM6CeyB ntpdSmgN/pDuK1EXdvSqRJJQdWFOuwsq6tlIxw2CdNhgAxIm8J0lOrZX4HM82WaV7Ch0wnwosrrdQ QWb7UNjGU3Gik0HIfqZWL65w98jSzTZW7SCTzp8IfEG5tWiLgGs2h8bzaTICE9SDcV3ClI87RnnMs m0ks1XZw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljftn-0008Rd-TC; Thu, 20 May 2021 10:27:28 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljfth-0008Qi-0C for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 10:27:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=rQhT1d2jRK+Z6sYimRUIuCmhIuSHcpjfi7FNZGh6WLo=; b=lykaMLtP6BJx+qmR8LJ0dNwBgZ n4ETOwj36z2m43EixhI9Bh42Lf86jXRhqvU4IP6rQhnKxdqyJ7LDyXWqmWrflliN3mOR6/sha75Jk 8LfJDbIb5AVXjZxxnbwDG2Y5X7Rnjt3hgUvZoH/mWsa9lcynQoRjiuYdJ597ju/yLUsPlgLVKuVxn zoiWFkYoiXrC5brH/yym5zo2taSROZg4C3/jacFjdgsQi8Hhiuu9fu14kUIPELkM+Ucu4vm+zXjpP +kTvLnaIK0Q7Q/H3HuavLZXlfpYi8XrmbhGArZsEI2jnrcj8HxdykmTGH9xV2R9BfWxzbaDHC+on+ 8c7UWIHg==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljftd-00GAdl-TN for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 10:27:19 +0000 Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 14KA3qFR077615 for ; Thu, 20 May 2021 18:03:52 +0800 (GMT-8) (envelope-from steven_lee@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 14KA18f0077450; Thu, 20 May 2021 18:01:08 +0800 (GMT-8) (envelope-from steven_lee@aspeedtech.com) Received: from slee-VirtualBox.localdomain (192.168.100.253) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 May 2021 18:13:47 +0800 From: Steven Lee To: Rob Herring , Joel Stanley , "Andrew Jeffery" , Adrian Hunter , "Ulf Hansson" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , "moderated list:ASPEED SD/MMC DRIVER" , "open list:ASPEED SD/MMC DRIVER" CC: , , , Subject: [PATCH v4 0/3] mmc: sdhci-of-aspeed: Support toggling SD bus signal Date: Thu, 20 May 2021 18:13:42 +0800 Message-ID: <20210520101346.16772-1-steven_lee@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.100.253] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 14KA18f0077450 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_032718_210277_D7B30416 X-CRM114-Status: GOOD ( 15.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org AST2600-A2 EVB has the reference design for enabling SD bus power and toggling SD bus signal voltage between 3.3v and 1.8v by GPIO regulators. This patch series adds sdhci node and gpio regulators in a new dts file for AST2600-A2 EVB. The description of the reference design of AST2600-A2 EVB is added in the new dts file. This patch also include a helper for updating AST2600 sdhci capability registers. Changes from v3: * Remove the example of gpio regulator from dt-bindings. * Add sdhci node and gpio regulators to a new dts file. * Move the comment of the reference design to the new dts file. * Modify commit message of sdhci-of-aspeed.c. * Fix coding style issues of sdhci-of-aspeed.c. * Remove the implementation of eMMC resetc since it has no relevance to the goal that this patch series want to achieve and it may needs further discussion about the design of reset behavior. Changes from v2: * Move the comment of the reference design from dt-bindings to device tree. * Add clk-phase binding for eMMC controller. * Reimplement aspeed_sdc_set_slot_capability(). * Separate the implementation of eMMC reset to another patch file. * Fix yaml document error per the report of dt_binding_check and dtbs_check. Changes from v1: * Add the device tree example for AST2600 A2 EVB in dt-bindings document * Add timing-phase for eMMC controller. * Remove power-gpio and power-switch-gpio from sdhci driver, they should be handled by regulator. * Add a helper to update capability registers in the driver. * Sync sdhci settings from device tree to SoC capability registers. * Sync timing-phase from device tree to SoC Clock Phase Control register Please help to review. Regards, Steven Steven Lee (3): ARM: dts: aspeed: ast2600evb: Add sdhci node and gpio regulator for A2 evb. ARM: dts: aspeed: ast2600evb: Add phase correction for emmc controller. mmc: sdhci-of-aspeed: Configure the SDHCIs as specified by the devicetree. arch/arm/boot/dts/aspeed-ast2600-evb-a2.dts | 98 +++++++++++++++++++++ arch/arm/boot/dts/aspeed-ast2600-evb.dts | 3 +- drivers/mmc/host/sdhci-of-aspeed.c | 48 ++++++++++ 3 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/aspeed-ast2600-evb-a2.dts -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel