From patchwork Fri Jan 29 19:51:46 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: 12056437 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 D4120C433DB for ; Fri, 29 Jan 2021 19:53:32 +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 73ABF61477 for ; Fri, 29 Jan 2021 19:53:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73ABF61477 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=m1WHJZnMTV0tSVbbLvXPdxi0R9ranAAHRtpX5BEHZPQ=; b=MSaq24lJMek/NrpmcyySOj5kut hQYsnPBpe1VWxmhPy8p9zJRoVwCUdO/t7obqEjPN5twt23jq+hAGKRBCfTM+pFHuKKELqKBNSiPVb kt+FqRiYNLsckF+G13SbvshWOlz9hFMD566o0cLFBm8Z9dZvAnQbgzuqUU+4A7eqZ/94BvB17Tx/e vuaTnqQa8VkRcxzhVfoGnLx7N4FH78pNmZMf27L52sAAskDv4cK5YYwB932c0rzNkKsMaNWpwpjhq aB65BmJj/RZv816lB7CD1I0ivuKsxAUM4aVS55JjbrPDokvfeuG0ib96BHI+ZT4fMyc8SYkTl8V1h rcVavaKg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5ZoR-00052Z-Ol; Fri, 29 Jan 2021 19:52:11 +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 1l5ZoM-0004z3-PU for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 19:52:10 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5344464E11; Fri, 29 Jan 2021 19:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611949925; bh=/vAPo6FjDg1j/+87POMJgSj4N2taKZvJjD0FjtW0fYo=; h=From:To:Cc:Subject:Date:From; b=ZGhvLIlIz73Nkqfl2zZL4Z7LG+DGy23xdjh/FTZCjfmFvea9RgrA6ftAZTPxXQHvW ypUh+oe1uxVvENGIz81IagdeTTl7IEdDh5LWmunTH92ZWW/WmqPzFuyrLpUo8lTrol 4DaHKWrS4QthWCwwuvEpZtUqiWb33Ex82Porhgiz54+VKCDzaCpNfjykNLbmyd6R57 T72KIW7BmQu1rQgC6xSQT03xbskzHhQrCR/OLo7fsRK+aiPXTozpeBKJ0Ni3pFM+3E eRbciB+GcrY2MDbSVBgqI6YSlqyqTT9tnRmVFho9h3efoErWiYjBWDdYkC7rFHBgnv iwKx8Zf2UFaHA== Received: by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1l5ZoI-007Wja-U2; Fri, 29 Jan 2021 20:52:02 +0100 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman , Mark Brown , Lee Jones , Vinod Koul Subject: [PATCH v8 00/14] Move Hisilicon 6421v600 SPMI and USB drivers out of staging Date: Fri, 29 Jan 2021 20:51:46 +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_145207_139324_28B5C4AA X-CRM114-Status: GOOD ( 17.11 ) 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 patches 1 to 9 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). - v8: contains a fix for REGMAP dependencies and for a build breakage. 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 | 0 .../bindings/phy/hisilicon,hi3670-usb3.yaml | 0 .../spmi}/hisilicon,hisi-spmi-controller.yaml | 0 MAINTAINERS | 24 +- .../boot/dts/hisilicon/hi3670-hikey970.dts | 22 +- .../boot/dts/hisilicon/hikey970-pmic.dtsi | 87 +++++ drivers/mfd/Kconfig | 16 + drivers/mfd/Makefile | 1 + drivers/mfd/hi6421-spmi-pmic.c | 297 ++++++++++++++++ drivers/phy/hisilicon/Kconfig | 10 + drivers/phy/hisilicon/Makefile | 1 + .../hisilicon}/phy-hi3670-usb3.c | 0 drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + .../hi6421v600-regulator.c | 63 +--- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile | 1 + .../hikey9xx => spmi}/hisi-spmi-controller.c | 0 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 ------------------ include/linux/mfd/hi6421-spmi-pmic.h | 28 +- 25 files changed, 471 insertions(+), 489 deletions(-) rename {drivers/staging/hikey9xx => Documentation/devicetree/bindings/mfd}/hisilicon,hi6421-spmi-pmic.yaml (100%) rename drivers/staging/hikey9xx/phy-hi3670-usb3.yaml => Documentation/devicetree/bindings/phy/hisilicon,hi3670-usb3.yaml (100%) rename {drivers/staging/hikey9xx => Documentation/devicetree/bindings/spmi}/hisilicon,hisi-spmi-controller.yaml (100%) create mode 100644 arch/arm64/boot/dts/hisilicon/hikey970-pmic.dtsi create mode 100644 drivers/mfd/hi6421-spmi-pmic.c rename drivers/{staging/hikey9xx => phy/hisilicon}/phy-hi3670-usb3.c (100%) rename drivers/{staging/hikey9xx => regulator}/hi6421v600-regulator.c (81%) rename drivers/{staging/hikey9xx => spmi}/hisi-spmi-controller.c (100%) 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