From patchwork Wed Nov 23 05:35:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 13053061 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 4638BC4332F for ; Wed, 23 Nov 2022 05:36:53 +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=mK/O+YRiM5VpJ58S5kmMbvzX3p4ZGyap9nWzyANMkq4=; b=xp7ZXw986G/j+y 6a1uj3yeEx/K2D896creJyYNnoHSFImR35i4s5ewRMTBEaGBcUCSPmmIbvAKHgPcQujQreGFST8GG LwIxK96Gai7bjL71UBHaOSvUk6PXHqut+fiJazoEKatXx3BkrQiwMTvIwW/sjumJE0lWR9A//4DHM /VXWklPr9KuW65tE2BKWb4REpoZhLGpAIAVvOby3Cql001fY/D5DeogaEtKCdJhGOewVhGeMxDrxh fJIMLOZkfg0EG+vDhzXBhFgDhoeKk1/nZTlZYVaPEUB6Ew2nVxK7QNpSRHpcpLf27G5RusiptqKeR EP5stElwPYtpaQQj70LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxiQI-00EKRy-Hs; Wed, 23 Nov 2022 05:35:50 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxiQD-00EKNZ-HI for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2022 05:35:48 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AN5ZZnr093934; Tue, 22 Nov 2022 23:35:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669181735; bh=HRUVEW1J10nUGyiZYAFBBzOycKc14vOPd2IPySe5Pw4=; h=From:To:CC:Subject:Date; b=AEYvuyVBLediJMMHGlXQhaZCcC9Co1fkIv6G2kzzm/2RH3ADOxU5lL4bXXRT6Xbh4 nDdbMpbHUwMvPnlTi7cM7uo9+Ah3sz7OZ/rbk+77tYVncp9fIEmVaa/wK+Zzf/l5sl czyhGau3cKB16/5rw+OT7WuejxHPCBNKFh+Gwarg= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AN5ZZC7002620 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 23:35:35 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 22 Nov 2022 23:35:35 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 22 Nov 2022 23:35:35 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AN5ZWbS011255; Tue, 22 Nov 2022 23:35:34 -0600 From: Matt Ranostay To: , , , , , , , CC: , , , , Matt Ranostay Subject: [PATCH v5 0/4] mfd: add tps6594 support for Jacinto platforms Date: Tue, 22 Nov 2022 21:35:08 -0800 Message-ID: <20221123053512.1195309-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-20221122_213545_821528_2935AA74 X-CRM114-Status: GOOD ( 14.59 ) 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 TPS6594 PMIC along with initial support for its RTC + GPIO interface, and poweroff sequence. 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 Changes from v3: * Refactoring gpio driver to use regmap gpio helpers * Changing rtc driver to use more of device resource management * Minor code changes related to error messages that aren't useful being dropped * Dropped wildcard in device-tree compatible, and i2c device id * Dropped device tree changes from the series; since these should be in their own series later Changes from v4: * Corrected commit messages for device tree documentation * Added TPS6954 datasheet PDF to devicetree documentation * Renamed all references, including filenames + configuration options, from tps6594x to tps6594 dropping the unneeded wildcard Keerthy (2): mfd: tps6594: Add support for TPS6594 PMIC devices rtc: rtc-tps6594: Add support for TPS6594 PMIC RTC Matt Ranostay (2): dt-bindings: mfd: ti,tps6594: add TPS6594 PMIC support gpio: gpio-tps6594: add GPIO support for TPS6594 PMIC .../devicetree/bindings/mfd/ti,tps6594.yaml | 69 ++++++++ drivers/gpio/Kconfig | 9 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-tps6594.c | 78 +++++++++ drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile | 1 + drivers/mfd/tps6594.c | 113 +++++++++++++ drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-tps6594.c | 155 ++++++++++++++++++ include/linux/mfd/tps6594.h | 88 ++++++++++ 11 files changed, 539 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ti,tps6594.yaml create mode 100644 drivers/gpio/gpio-tps6594.c create mode 100644 drivers/mfd/tps6594.c create mode 100644 drivers/rtc/rtc-tps6594.c create mode 100644 include/linux/mfd/tps6594.h Reviewed-by: Keerthy