From patchwork Sun Apr 16 09:19:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 13212741 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C20CDC77B78 for ; Sun, 16 Apr 2023 09:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230389AbjDPJT5 (ORCPT ); Sun, 16 Apr 2023 05:19:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjDPJT4 (ORCPT ); Sun, 16 Apr 2023 05:19:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4E41BD2; Sun, 16 Apr 2023 02:19:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 15E2C60CBA; Sun, 16 Apr 2023 09:19:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 58389C433EF; Sun, 16 Apr 2023 09:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681636794; bh=C3B7e70soFXi8WZxufA7WKhVicEU3OSoxaI6T2fcuAc=; h=From:Subject:Date:To:Cc:Reply-To:From; b=apCC9c5lzLTPsL5JA3sEYyUXlsoV1Mg+3CnDFrRCfronJV6Np/x8DYa99BntFDymw 7VFms9S0HXQ74+q6YE/F7PP70nBBhQkrlu/FrZ+Z4F//dFU1xR+Ib3UBYTweEuBbif 3SfZ4a9UaFBodEcCjZwxKApuAEQ55nWiJ+Ckh6bZAG0HwCPtEmdrpreLjBhvdAPZJX XxNJUPdYghiBQczT1CO0Uy0Cb/qwdpKcApEPjG1Clvh+Lt81lVGhkiO5pRU/leghjC eliYK11BtcJ/l3ck1UZD6zAmF22HKIb8jSQ/d9TTTFgFDUDyHLv2ZVIE4u1m3EdhUm YKTiQQIHWhnww== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F443C77B72; Sun, 16 Apr 2023 09:19:54 +0000 (UTC) From: Yang Xiwen via B4 Relay Subject: [PATCH RFC v4 0/4] mmc: add support for the dw-mmc controller on Hi3798MV200 Date: Sun, 16 Apr 2023 17:19:31 +0800 Message-Id: <20230415-mmc-hi3798mv200-v4-0-44096e187f53@outlook.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKO9O2QC/4XNS6oCMRAF0K1IxkYqSf/iSBBcgFNxkE9ph/fSk aQNivTejT0TEYe3invugySMDhNZLx4kYnbJhaGEarkgplfDGamzJRMOXEDFauq9ob0Trex85gD UIKtRatl0TUNKS6uEVEc1mP7V8yqNGF+PS8STu81TB7LfbcmxHHuXxhDv83xm8+vrUmYUqNW1l sxKIW21CdfxP4S/lQl+1jL/IfAiMMvb6iR1y6z6FMQPQRQBALloOgMtyHdhmqYneDfUdVIBAAA = To: Ulf Hansson , Jaehoon Chung , Rob Herring , Krzysztof Kozlowski , Yang Xiwen Cc: tianshuliang , Jiancheng Xue , Shawn Guo , David Yang , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681636790; l=1828; i=forbidden405@outlook.com; s=20230415; h=from:subject:message-id; bh=C3B7e70soFXi8WZxufA7WKhVicEU3OSoxaI6T2fcuAc=; b=GmryrH+KwWWU6nkjqwj8a3ukVx0Ec87ykdWjriMTVhsDrDRMtJxEuyCjRBS4WkpmSQFeXKC9o j5hrj6xVIjRDVzCxNjUBHNQp58agOcAHp+V78Hg93ESTHGduk1YQplv X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=hfdpPU3AXR+t7fdv58tXCD4UzRNq+fop2TMJezFlAhM= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230415 with auth_id=44 X-Original-From: Yang Xiwen Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The dw-mmc controller found on Hi3798MV200 is like the one found on Hi3798CV200, but has some tweaks. Also refreshed the dt-binding and converted it to YAML. Signed-off-by: Yang Xiwen --- Changes in v4: - fix license of dt-binding document. - some other fixes to dt-binding document. - Link to v3: https://lore.kernel.org/r/20230415-mmc-hi3798mv200-v3-0-00e2368c0709@outlook.com Changes in v3: - split dt-binding commit into 2 parts, one for renaming, the other for new compatible string. - some other fixes to dt-binding document. - Link to v2: https://lore.kernel.org/r/20230415-mmc-hi3798mv200-v2-0-1d274f9b71da@outlook.com Changes in v2: - add DDR52 support - edit dt-binding, substitude all hi3798cv200 with histb - send email to more people - Link to v1: https://lore.kernel.org/r/20230415-mmc-hi3798mv200-v1-0-db5b91d939d4@outlook.com --- Yang Xiwen (4): mmc: dw_mmc: hi3798cv200: rename to dw_mmc-histb mmc: dw_mmc: histb: add support for hi3798mv200 dt-binding: mmc: hi3798cv200-dw-mshc: convert to YAML and rename to histb-dw-mshc dt-binding: mmc: histb-dw-mshc: Add Hi3798MV200 compatible string .../bindings/mmc/hi3798cv200-dw-mshc.txt | 40 --- .../bindings/mmc/hisilicon,histb-dw-mshc.yaml | 93 ++++++ drivers/mmc/host/Kconfig | 8 +- drivers/mmc/host/Makefile | 2 +- drivers/mmc/host/dw_mmc-hi3798cv200.c | 206 ------------- drivers/mmc/host/dw_mmc-histb.c | 339 +++++++++++++++++++++ 6 files changed, 437 insertions(+), 251 deletions(-) --- base-commit: 76f598ba7d8e2bfb4855b5298caedd5af0c374a8 change-id: 20230415-mmc-hi3798mv200-ce15e9b96866 Best regards,