From patchwork Wed Nov 9 06:55:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 13037200 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 11179C4332F for ; Wed, 9 Nov 2022 06:57:18 +0000 (UTC) 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=90hvt0IgWB09brpeT59zvUN9kqPNriSxTcVWqLWmn60=; b=voc53W8bvOeHTo 9swKaUwfNGutw9jLf9eMWq34SPDr3TDI5ZUy0m51ohnyqefGApD22eAh7hjtiPJzMl6woKKObAPrW L7zu7eing18NQx0UWDxMDXhKzCY/aaE1I36XhGmoh4k+BYHoqFFlhK+OOjU/NZ2SxbHB6kOd6mfO0 dSkd123N3gxNQQSDzkyGxw6xT8nyp2PtlZzyH1r4kPSy3Gcl+yusvwB6l9tfNIo/Kw3K2AjetE2Ae yEo8jZgej/OFMGMm8VvekUBmCwITVLWiWaXNsKgc8n5Z9VMzGT6RxgheqAkdIdGnp3RG72XqEirIo sLuvC+CCaujBe/Xmmh2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1osf0F-00BPsk-QM; Wed, 09 Nov 2022 06:56:03 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1osf0D-00BPqr-Cm for linux-arm-kernel@lists.infradead.org; Wed, 09 Nov 2022 06:56:02 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A96trZe095390; Wed, 9 Nov 2022 00:55:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667976953; bh=tDvioJ6iiI0tv7VoTdxAcDlnVrvRcK7hIBA96PsZ+cs=; h=From:To:CC:Subject:Date; b=KpoirP9im9w7oTlX3cAC7MJlhAzvwUAQ++DSqdMYEuci3UyU6dhVmPgnJ31AtEnH4 5C3ODzCEnYjDcHcoXT8I3QZ9bqyPeJp+1Z62VbK3QDgQBw8eyiFsCjlCScMXny41rS oNhaAcei6Iiblg6OBkoaVGDpBI7sgIiIxrijYw/o= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A96trdb091499 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Nov 2022 00:55:53 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Wed, 9 Nov 2022 00:55:52 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Wed, 9 Nov 2022 00:55:52 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A96tnsV024888; Wed, 9 Nov 2022 00:55:51 -0600 From: Matt Ranostay To: , , , , , , , , CC: , , , , Matt Ranostay Subject: [PATCH v3 0/7] mfd: add tps6594x support for Jacinto platforms Date: Tue, 8 Nov 2022 22:55:39 -0800 Message-ID: <20221109065546.24912-1-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221108_225601_549279_69AFCEE2 X-CRM114-Status: GOOD ( 14.05 ) 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 This patchset series adds support for the TPS6594x PMIC along with initial support for its RTC + GPIO interface, and poweroff sequence. Additionally, add usage of the PMIC for the various Jacintor platforms devicetree's. Changes from v1: * Corrected devicetree documentation issues found with dt-schema * Changed MFD references to PMIC reflecting the more valid use of driver * Cleaning up variable naming and ordering within functions * Adding gpio + regulator cells for upcoming driver support * Switching from .probe to .probe_new API * Revising comments within drivers to be more concise * Adding device tree nodes for j721s2 and j721e platforms Changes from v2: * Adding gpio-tps6594x driver support * Enabling gpio cell in MFD driver * Adding device tree nodes for k3-*dts platforms Keerthy (3): MFD: TPS6594x: Add new PMIC device driver for TPS6594x chips rtc: rtc-tps6594x: Add support for TPS6594X PMIC RTC arm64: dts: ti: k3-j7200-common-proc-board: Add TPS6594x PMIC node Matt Ranostay (4): Documentation: tps6594x: Add DT bindings for the TPS6594x PMIC gpio: tps6594x: add GPIO support for TPS6594x PMIC arm64: dts: ti: k3-j721e-common-proc-board: Add TPS6594x PMIC node arm64: dts: ti: k3-j721s2-common-proc-board: Add TPS6594x PMIC node .../devicetree/bindings/mfd/ti,tps6594x.yaml | 67 +++++++ .../dts/ti/k3-j7200-common-proc-board.dts | 17 ++ .../dts/ti/k3-j721e-common-proc-board.dts | 17 ++ .../dts/ti/k3-j721s2-common-proc-board.dts | 17 ++ drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-tps6594x.c | 142 ++++++++++++++ drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile | 1 + drivers/mfd/tps6594x.c | 120 ++++++++++++ drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-tps6594x.c | 181 ++++++++++++++++++ include/linux/mfd/tps6594x.h | 90 +++++++++ 14 files changed, 685 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ti,tps6594x.yaml create mode 100644 drivers/gpio/gpio-tps6594x.c create mode 100644 drivers/mfd/tps6594x.c create mode 100644 drivers/rtc/rtc-tps6594x.c create mode 100644 include/linux/mfd/tps6594x.h