From patchwork Fri Jan 29 15:03:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12055993 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.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 1E349C433E6 for ; Fri, 29 Jan 2021 15:05:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 B3DB664E03 for ; Fri, 29 Jan 2021 15:05:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B3DB664E03 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=jonKacv78IHJQ+SIBanz8CYSylOAfaQLrIbujXQcQD0=; b=G/sX4p9Bffua++PyHuKNWk05Go bfuXF+kGyYzF4boC31Y7fkjyI5snTvPc1eftpHOqyr878NgdR8AOYxUBI5z77ASJRvCTU8HFklFIx iPXk1c/WYh3H/IELsQ0T0gpWO5uBa53YV1DFKWgHmNT5WhIsbuqLGlSNtwYjLZ8hN+XsXYWHGB1MY aGapwE5qtn7w1xldyMNy4doCvD9VL1B+OQuO92wikHafAirCo54/jmjrlUOiBqhHDJ2EuP2gufmxd cLYhi3Idj2p20Jhl2RUsklB4zjqbF1jRlNyRTVbuaRXZLpo2/OlNRrEqgWOquuRTBfmoJ64jIwHp4 0NjX7boQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5VJb-0001px-IE; Fri, 29 Jan 2021 15:04:03 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5VJU-0001o6-DI for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 15:03:57 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id C964F64E19; Fri, 29 Jan 2021 15:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611932635; bh=CO/C+gkAeJ4/y8oQwPnwPfaFENpvIiIherDQJ+TcbK0=; h=From:To:Cc:Subject:Date:From; b=Kdq5zwmm1k/ze1pwtcpRhy8d4w1fLetm4UAk+mYLKMWkwIFWqyi3XtHj5YJnIn7xG /CQVMFTOMK9sGkpzNH4N3WkaWObz8jzQAVk5jcYZZfzxmZmNYbXiAbYTMr/vI9P5fA 9JjIFcT35gPE99npKqI8l34kROHebYxIq5W66B5KSPxzRRkKtT1DA0E49G4LeJq5FU vl5fRn6TpskmmWO1ZOj/kC383D8AlqipmAQwQWAZQZ1w+rTLWY9upDlS3lYG5/Syd3 Zv5xqpGjtz0T610plnUsVVV4jh9+Bx5PJlYv7JoR880xRF/bA5PE+zaZ73TgP2TzSg dnXT2ujwKmVNg== Received: by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1l5VJP-0078t4-Nf; Fri, 29 Jan 2021 16:03:51 +0100 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman , Lee Jones , Mark Brown , Vinod Koul Subject: [PATCH v7 00/14] Move Hisilicon 6421v600 SPMI and USB drivers out of staging Date: Fri, 29 Jan 2021 16:03:35 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_100356_889081_7C4DC95F X-CRM114-Status: GOOD ( 16.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mayulong , Mauro Carvalho Chehab , YueHaibing , Yu Chen , Liam Girdwood , Wei Xu , Juan Antonio Aldea-Armenteros , Stephen Boyd , Rob Herring , Christophe JAILLET , linux-arm-kernel@lists.infradead.org, David Gow , Colin Ian King , Kishon Vijay Abraham I , Alex Dewar , Dan Carpenter Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Greg/Mark/Lee/Vinod, Another rebase , also the top of staging-testing, This series contain the remaining patches for USB to start working, except for a final DTS patch. Patches 1 and 2 convert the SPMI and regulator drivers to use regmap and simplifies the logic by using regmap helpers. Patches 3 to 9 address some issues pointed by Lee at the MFD driver. I guess the best would be if Greg could apply both patches also via the staging tree. Patches 10 to 13 move the drivers and their corresponding DT documentation bindings out of staging. Patch 14 contains the DT which describes the regulator, SPMI controller and MFD. I'll submit the final patch with USB bindings after having everything set (e.g. after 5.12-rc1). Mauro Carvalho Chehab (14): staging: hikey9xx: spmi driver: convert to regmap staging: hikey9xx: hi6421v600-regulator: use some regmap helpers staging: hikey9xx: hi6421-spmi-pmic: rename some vars staging: hikey9xx: hi6421-spmi-pmic: cleanup probe code staging: hikey9xx: hi6421-spmi-pmic: cleanup header file staging: hikey9xx: hi6421-spmi-pmic: fix IRQ handler code staging: hikey9xx: hi6421-spmi-pmic: cleanup IRQ handling code staging: hikey9xx: hi6421-spmi-pmic: document registers staging: hikey9xx: hi6421-spmi-pmic: update copyright notes phy: phy-hi3670-usb3: move driver from staging into phy spmi: hisi-spmi-controller: move driver from staging mfd: hi6421-spmi-pmic: move driver from staging regulator: hi6421v600-regulator: move it from staging dts: hisilicon: add support for the PMIC found on Hikey 970 .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 135 ++++ .../bindings/phy/hisilicon,hi3670-usb3.yaml | 73 ++ .../spmi/hisilicon,hisi-spmi-controller.yaml | 75 ++ MAINTAINERS | 24 +- .../boot/dts/hisilicon/hi3670-hikey970.dts | 22 +- .../boot/dts/hisilicon/hikey970-pmic.dtsi | 87 +++ drivers/mfd/Kconfig | 15 + drivers/mfd/Makefile | 1 + drivers/mfd/hi6421-spmi-pmic.c | 296 ++++++++ drivers/phy/hisilicon/Kconfig | 10 + drivers/phy/hisilicon/Makefile | 1 + drivers/phy/hisilicon/phy-hi3670-usb3.c | 668 ++++++++++++++++++ drivers/regulator/Kconfig | 8 + drivers/regulator/Makefile | 1 + drivers/regulator/hi6421v600-regulator.c | 299 ++++++++ drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile | 1 + drivers/spmi/hisi-spmi-controller.c | 367 ++++++++++ drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/hikey9xx/Kconfig | 50 -- drivers/staging/hikey9xx/Makefile | 7 - drivers/staging/hikey9xx/TODO | 5 - drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 326 --------- .../staging/hikey9xx/hi6421v600-regulator.c | 336 --------- .../staging/hikey9xx/hisi-spmi-controller.c | 367 ---------- .../hikey9xx/hisilicon,hi6421-spmi-pmic.yaml | 135 ---- .../hisilicon,hisi-spmi-controller.yaml | 75 -- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 668 ------------------ drivers/staging/hikey9xx/phy-hi3670-usb3.yaml | 73 -- include/linux/mfd/hi6421-spmi-pmic.h | 28 +- 31 files changed, 2072 insertions(+), 2093 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml create mode 100644 Documentation/devicetree/bindings/phy/hisilicon,hi3670-usb3.yaml create mode 100644 Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml create mode 100644 arch/arm64/boot/dts/hisilicon/hikey970-pmic.dtsi create mode 100644 drivers/mfd/hi6421-spmi-pmic.c create mode 100644 drivers/phy/hisilicon/phy-hi3670-usb3.c create mode 100644 drivers/regulator/hi6421v600-regulator.c create mode 100644 drivers/spmi/hisi-spmi-controller.c delete mode 100644 drivers/staging/hikey9xx/Kconfig delete mode 100644 drivers/staging/hikey9xx/Makefile delete mode 100644 drivers/staging/hikey9xx/TODO delete mode 100644 drivers/staging/hikey9xx/hi6421-spmi-pmic.c delete mode 100644 drivers/staging/hikey9xx/hi6421v600-regulator.c delete mode 100644 drivers/staging/hikey9xx/hisi-spmi-controller.c delete mode 100644 drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml delete mode 100644 drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml delete mode 100644 drivers/staging/hikey9xx/phy-hi3670-usb3.c delete mode 100644 drivers/staging/hikey9xx/phy-hi3670-usb3.yaml