From patchwork Tue Jun 29 10:31:26 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: 12349655 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.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 CB23FC11F66 for ; Tue, 29 Jun 2021 10:33:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 94C5061D85 for ; Tue, 29 Jun 2021 10:33:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94C5061D85 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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=xDB/ykMAQ6rYPvicvNdyyeebHgv6Fl4EU0wKwkdfJDU=; b=KZg9NgTW2EnpIp aJziNJYszNlatToJFs+zQ5YAEKksklmnD8SgzzUck5UHiFZBEx951bzQ8HVRgXZPq7XVMiE9n5SXr Ds47A72ctNWCcPVVricHJXWyU7MpPix/mxl+96ttSJq7FrwWZVfAUYxf0UtfqZKQ8j7X+l9gmIpQI KFX33VEM43y7kgXe3Iap4uzq3f/r6s3UbR8A/E50sHnz/+MVdKAZ8bOqMjqPRzWX//lTdH1UVxavA se9GIwxN9WcE5j2sTPkerr6x5J5jlM3ct1Byv3KiPbhLxLQRAzVVZoqVeq6CALwoPdCsolzlRc+N5 4z5vFfHTEs2ktKlHEjcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyB1p-00AW7V-Go; Tue, 29 Jun 2021 10:31:41 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyB1j-00AW1S-FZ for linux-arm-kernel@lists.infradead.org; Tue, 29 Jun 2021 10:31:37 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7953261D4E; Tue, 29 Jun 2021 10:31:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624962694; bh=jKXivDk711GJY/luPmn+YiYTQh6/YAbNd2X1b6kZVVQ=; h=From:To:Cc:Subject:Date:From; b=Tucg4Vh1knXAFd0Fi/1pOBHS2zcZLYm972pEAhHOgJUOMOVMaroQsGe86dDCZJ/Mj XA667h1MOVshuYX275n0359Sx2bOQ5DgJHcROCu2UfNo+W3mkOePedRknzLCE6psva +BUGHImUPgm2LcI5pQwPxEy8BA0bVi30iDvVbDxq8kExxvNiUpPaNHgkhk1JGRMsHF G8ZrztRlID+obtzGuf+szcIwoJpHQIYaPypQQAQSPvUn0Jd92oead524cn1thMYObC jmdqdFxzwjZvEyJvZ0r4BwR324uPmwYGGv942/ahB+6HAUFlFU9Os7UHDWGanYq9Zg nL+F2rBWMFNqg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1lyB1g-00Cx7N-NP; Tue, 29 Jun 2021 12:31:32 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Lee Jones , Axel Lin , Derek Kiernan , Dragan Cvetic , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v10 0/5] Move Hisilicon 6421v600 SPMI and USB drivers out of staging Date: Tue, 29 Jun 2021 12:31:26 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210629_033135_589868_7F1A677E X-CRM114-Status: GOOD ( 14.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Greg, This series contain the final bits needed for the USB3 bus to work without staging drivers on Hikey 970. Tested on a Hikey 970: $ lsusb Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub and checked that mouse events are working using evtest: ... Input device ID: bus 0x3 vendor 0x46d product 0xc52b version 0x111 Input device name: "Logitech USB Receiver Mouse" .... Testing ... (interrupt to exit) Event: time 1624640001.871917, type 2 (EV_REL), code 0 (REL_X), value -4 Event: time 1624640001.871917, type 2 (EV_REL), code 1 (REL_Y), value -3 Event: time 1624640001.871917, -------------- SYN_REPORT ------------ Event: time 1624640001.879868, type 2 (EV_REL), code 0 (REL_X), value -5 Event: time 1624640001.879868, type 2 (EV_REL), code 1 (REL_Y), value -4 .... v10: - Addressed some issues pointed by Axel Lin at the regulator; - Removed a now uneeded header file (hi6421-spmi-pmic.h); - Addressed a couple of checkpatch warnings and did minor cleanups. Mauro Carvalho Chehab (5): staging: hikey9xx: split hi6421v600 irq into a separate driver regulator: hi6421v600-regulator: fix platform drvdata mfd: hi6421-spmi-pmic: move driver from staging dts: hisilicon: add support for the PMIC found on Hikey 970 dts: hisilicon: add support for USB3 on Hikey 970 .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 134 ++++++++ MAINTAINERS | 7 + .../boot/dts/hisilicon/hi3670-hikey970.dts | 129 ++++++-- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 56 ++++ .../boot/dts/hisilicon/hikey970-pmic.dtsi | 87 +++++ drivers/mfd/Kconfig | 16 + drivers/mfd/Makefile | 1 + drivers/mfd/hi6421-spmi-pmic.c | 66 ++++ drivers/misc/Kconfig | 10 + drivers/misc/Makefile | 1 + drivers/misc/hi6421v600-irq.c | 313 ++++++++++++++++++ drivers/regulator/hi6421v600-regulator.c | 49 +-- drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/hikey9xx/Kconfig | 19 -- drivers/staging/hikey9xx/Makefile | 3 - drivers/staging/hikey9xx/TODO | 5 - drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 311 ----------------- .../hikey9xx/hisilicon,hi6421-spmi-pmic.yaml | 134 -------- include/linux/mfd/hi6421-spmi-pmic.h | 30 -- 20 files changed, 826 insertions(+), 548 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.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/misc/hi6421v600-irq.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/hisilicon,hi6421-spmi-pmic.yaml delete mode 100644 include/linux/mfd/hi6421-spmi-pmic.h