From patchwork Tue Nov 22 12:20:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhe Wang X-Patchwork-Id: 627856 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 9A867C4332F for ; Tue, 22 Nov 2022 12:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233626AbiKVMV3 (ORCPT ); Tue, 22 Nov 2022 07:21:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbiKVMV2 (ORCPT ); Tue, 22 Nov 2022 07:21:28 -0500 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 103694AF08; Tue, 22 Nov 2022 04:21:24 -0800 (PST) Received: from SHSend.spreadtrum.com (shmbx06.spreadtrum.com [10.0.1.11]) by SHSQR01.spreadtrum.com with ESMTPS id 2AMCKeiB003619 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 22 Nov 2022 20:20:40 +0800 (CST) (envelope-from Zhe.Wang1@unisoc.com) Received: from xm13705pcu.spreadtrum.com (10.13.3.189) by shmbx06.spreadtrum.com (10.0.1.11) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 22 Nov 2022 20:20:41 +0800 From: Zhe Wang To: , , , , , CC: , , , , , , Subject: [PATCH v3 0/2] Add support for Unisoc UFS host controller Date: Tue, 22 Nov 2022 20:20:28 +0800 Message-ID: <20221122122030.7659-1-zhe.wang1@unisoc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.13.3.189] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To shmbx06.spreadtrum.com (10.0.1.11) X-MAIL: SHSQR01.spreadtrum.com 2AMCKeiB003619 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Add this patchset to support the Unisoc UFS host controller. V2 -> V3: - Modify the clock and reset names to more appropriate names - Use 'assigned-clock-parents' to place parent clock of 'core' - Do some format order modification V1 -> V2: - Fix dt-binding doc in v2 patch - Do some minor format changes - Remove of_match_ptr - Remove functions from headers Zhe Wang (2): dt-bindings: ufs: Add document for Unisoc UFS host controller scsi: ufs-unisoc: Add support for Unisoc UFS host controller .../bindings/ufs/sprd,ums9620-ufs.yaml | 79 +++ drivers/ufs/host/Kconfig | 12 + drivers/ufs/host/Makefile | 1 + drivers/ufs/host/ufs-sprd.c | 457 ++++++++++++++++++ drivers/ufs/host/ufs-sprd.h | 73 +++ 5 files changed, 622 insertions(+) create mode 100644 Documentation/devicetree/bindings/ufs/sprd,ums9620-ufs.yaml create mode 100644 drivers/ufs/host/ufs-sprd.c create mode 100644 drivers/ufs/host/ufs-sprd.h Reviewed-by: Krzysztof Kozlowski