Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp404830pxj; Thu, 20 May 2021 12:02:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAEugDsL55DJfkpsFKz8wAmWVfu5BOczGLhlwxC7PM1S8RxXkCI0Ea5jpeJTHY+OS8iSd1 X-Received: by 2002:a5d:8147:: with SMTP id f7mr7233381ioo.135.1621537379087; Thu, 20 May 2021 12:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621537379; cv=none; d=google.com; s=arc-20160816; b=AlR6fDadM0JFgwTHRemn+2kEojIYq6DhVupnpthcPjMJ2tBaGcZ2TFUtJBlqukxikr 20siXGGqTwS499QgaLaARYaqo2e8TqZn2/wWu1J8I7a3HiNN0vExD7FiViueQ0uDd530 RQ7FVIWjJI0OCimpdg4+Ss1cs8Ke/R0NglDIhuuyDc7ibIouTGo6lt6RR2FVY2qnBuIr 8otsNeFSaX1zQxBlh/wNbRfgqIJ5tzMKfNHEbuzzfzVH/RC54Lyo86F5u7AXTr3j/zQF se9tSWayX3mvilo3Idyf2A9YollGaz7ONtIBUOeS/Y1Oyiv9xUIR4P9DuCsfE5AcNIe6 YkIA== 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=rQhT1d2jRK+Z6sYimRUIuCmhIuSHcpjfi7FNZGh6WLo=; b=C1TzB78BQd83I+JOQ3S/5zSmNIaaYBKUPkJtw5CrHjq84LJPvD586lYvIt7sChK+CY 4tQDklFmdLJ0+be+9Vlv3hfedBz/qUgZqgLR+v7R78OrnqJD+vrb+F3xYItx02Ub/HwH RHAFXrYeHkeVlcxDD5usgD4G+3aF7u23gr9yxODYNVeA1rMPStWEXvXD3bQV8FNLT3uM dd9RQ0zZoDOqhIcI6QvPsXI0XaYtBK4PdIFeLlGxzKXQ9v9gROZqxq17Sv3y6kDqsZ8Y gNwgBs1WFqDApCQamkISFX0i5GlbKfG2d5mZAmYO0BE0gWEVdIuEbTKhUy/B9t7MIgli P7gg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si2983491jap.18.2021.05.20.12.02.45; Thu, 20 May 2021 12:02:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237200AbhETKaY (ORCPT + 99 others); Thu, 20 May 2021 06:30:24 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:28342 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235817AbhETKSB (ORCPT ); Thu, 20 May 2021 06:18:01 -0400 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 Content-Type: text/plain 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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