From patchwork Fri Nov 18 09:22:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 13047905 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 EF284C433FE for ; Fri, 18 Nov 2022 09:23:41 +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=X+UOBeHdNUadNDasrHBGrdMDUyxLKHJWKIbVVFY+/b4=; b=zaxM7BAPgl6BJ0 Jf4dhsUnlsNgkeFxXR0zjMBNB4QNEjBl/HiFumaAY4UOcB/+eXut/tHKJ+HEYMQ/gaccciT4yhCLd p/lq7QxWhSbvcJcKUQFA/aS11Scrrhh1mHykeq6cOZRt2+x/BlsXaBJsCQMF/RokkrgMgcCsjecoC Xe5BC8Tp5wRYaIFrggULIKCGITj4IYztvreg2/npxi8hsNYxL9seokyVxh5bImpuBMpPS8vvBzQoD fHiCVzf7zbJr6kIi8mVqo1/vuTCDnfjv4MO1JoOMtInmuRCnLU7x7O3gopWa2fKHoZzY+16gsKSWt NTmc1NB5YLqXF2LanWaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovxa0-0033bm-TN; Fri, 18 Nov 2022 09:22:37 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovxZy-0033Yz-1Q for linux-arm-kernel@lists.infradead.org; Fri, 18 Nov 2022 09:22:35 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AI9MNF4076880; Fri, 18 Nov 2022 03:22:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668763343; bh=vwNaGwz0+unEw3DnW8QS+x9gcVkdP39aX2pv4R8/ADE=; h=From:To:CC:Subject:Date; b=XKBt65PdawPeqn6iNbZMM9IQwgHW0z0BbAERjsON8FyIxIc9pj666RdAuoPIGhuMq 7zi2Vfs4k2Z1RsAnkEmRDlHGqpl15c66KtOSC7tDbGSuE+OYO/VxxAXoXNLP9288f+ hHCTqbBTmmYg1TrqY8Nx6gAS/9b8E57FQhJ0UKVY= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AI9MNHU029850 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:22:23 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 03:22:23 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE104.ent.ti.com (10.64.6.25) 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; Fri, 18 Nov 2022 03:22:23 -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 2AI9MKKx083116; Fri, 18 Nov 2022 03:22:22 -0600 From: Matt Ranostay To: , , , , , , CC: , , , , Matt Ranostay Subject: [PATCH v4 0/4] mfd: add tps6594x support for Jacinto platforms Date: Fri, 18 Nov 2022 01:22:14 -0800 Message-ID: <20221118092218.480147-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-20221118_012234_238780_F616B5D8 X-CRM114-Status: GOOD ( 15.31 ) 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 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 Keerthy (2): MFD: TPS6594x: Add new PMIC device driver for TPS6594x chips rtc: rtc-tps6594x: Add support for TPS6594X PMIC RTC Matt Ranostay (2): Documentation: ti,tps6594: Add DT bindings for the TPS6594x PMIC gpio: gpio-tps6594x: add GPIO support for TPS6594x PMIC .../devicetree/bindings/mfd/ti,tps6594.yaml | 65 ++++++++ drivers/gpio/Kconfig | 9 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-tps6594x.c | 78 +++++++++ drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile | 1 + drivers/mfd/tps6594x.c | 113 +++++++++++++ drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-tps6594x.c | 155 ++++++++++++++++++ include/linux/mfd/tps6594x.h | 88 ++++++++++ 11 files changed, 535 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ti,tps6594.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