From patchwork Wed Jan 27 19:08:15 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: 12050795 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.3 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 97006C433E6 for ; Wed, 27 Jan 2021 19:09:39 +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 3B0B860C40 for ; Wed, 27 Jan 2021 19:09:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B0B860C40 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=MBpCQ/psETV+NvK8R4IJeMvWa+2mztO1kjC+0uKUxPg=; b=LNHcQZJq+bK47TpNnLVLyJ73md 6VgwSs4C/AloOwub9KxsyVTvFKnJ/7MIc0rMkMANl8B9rJ6wbCqt+6kWnsF8Sok3hH9uf173BCbtT +MVQWak7cwGNI0TcXZZX4GHgnoSyy+zoNiFc3NE62LJLskQw5Mfj+vgm9R48ofEniC9OrRa1MFcsl 9VSwd0PLFD9c36dyn9w0nkfmyzzG2VtthPEaeBYtGUW6aQ+tNnaaVSd24bH3DuSqQ2Y26L+ZL2tzn n9C5xFvTzZc6NhzuzEqZLh6w/jpDfPhApo6N6V0K0ForDHnw7eOy7nvvnGLJN7UGRrYIIxLMXQCFW 6oHvW2rA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4qB3-0007zt-WE; Wed, 27 Jan 2021 19:08:30 +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 1l4qB1-0007xP-88 for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2021 19:08:28 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5B43864DAB; Wed, 27 Jan 2021 19:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611774505; bh=2HavwUWRXPYAzxhXM+vrsP246g6dUCKujiewop5u6Mw=; h=From:To:Cc:Subject:Date:From; b=exksylbd229tqjbMBx300VKVBsCgT8w/z3AhlXq2BxP1S2/hY+dwKeG/8OoOIQ9aV +SmhYyjis9Jkkg/M+KsikSNf/WVHWJ+Q3pRFhmy1YjfUOedXkJ4vn4R21nng0OxJgN 4I0JhC+jnNgWMVlB4ue/EuBLoj7QvhfDT4b7s3EfoTZQSh9PCS7uvme/vSZjIZoFgg lg7WRJNNX31lWDKYhuWPIROAc9BJ/rwL/slRUanza9D8RgBeZsk3S4QXVH51YA8+zJ pNoUBy9AykXo3Mp2Xj0/qe4BczHrlP/0rNSLSqWrvDGeNjFbpKoBYva8P3zC5lNpii X4JMWzj3HVAsQ== Received: by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1l4qAx-003n4p-09; Wed, 27 Jan 2021 20:08:23 +0100 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman , Mark Brown , Lee Jones , Vinod Koul Subject: [PATCH v6 0/7] Move Hisilicon 6421v600 SPMI and USB drivers out of staging Date: Wed, 27 Jan 2021 20:08:15 +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-20210127_140827_450305_8F42CBBA X-CRM114-Status: GOOD ( 17.65 ) 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, Wang Hai , 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, Just did a rebase on the top of staging-testing, and re-tested at the hardware. This series contain the remaining patches for USB to start working, except for a final DTS patch, which depends on two patches that should be merged via the ARM SoC tree. Patches 1 and 2 convert the SPMI and regulator drivers to use regmap and simplifies the logic by using regmap helpers. I guess the best would be if Greg could apply both patches also via the staging tree. Patches 3-6 move the drivers and their corresponding DT documentation bindings out of staging. Patch 7 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 (7): staging: hikey9xx: spmi driver: convert to regmap staging: hikey9xx: hi6421v600-regulator: use some regmap helpers 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 | 15 +++ drivers/mfd/Makefile | 1 + .../hikey9xx => mfd}/hi6421-spmi-pmic.c | 115 ++++++------------ drivers/phy/hisilicon/Kconfig | 10 ++ drivers/phy/hisilicon/Makefile | 1 + .../hisilicon}/phy-hi3670-usb3.c | 0 drivers/regulator/Kconfig | 8 ++ 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 - include/linux/mfd/hi6421-spmi-pmic.h | 7 +- 24 files changed, 207 insertions(+), 222 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 rename drivers/{staging/hikey9xx => mfd}/hi6421-spmi-pmic.c (72%) 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