From patchwork Tue Nov 22 09:58:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Niedermaier X-Patchwork-Id: 13052129 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 428BAC433FE for ; Tue, 22 Nov 2022 10:02:03 +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=wJaMOLg6roP36c8dGbjFF9NEisWPhaKFprNhqhuj+RI=; b=y8OXmHLxUL17pl jYM2qonZYvcUh8JpKSaW9hJOYVFMAu3DPPqKIbMKm6GXupUSURcZlPYlgkpmUyTnw+MtrpXq74uYE HagSWUsUvNf1nMm9FUlC9MwBBsHfmCm8b2U04D7i3mxvQBeRbTal26XHkB60snbDDgg1HLSZKSZN+ ZQDCqQCFVZGdeMyq3B3jJcbuHCue3rRQ98NIgLRntcL5TfdgtLSfpvQgWyzjRFeUv5ObJfWCPgMUR 9/wfz8i6/1NrF95vomevx9R+zU+BaKq9mRKPGp9SuFi8nkglwiJ/8jiz7fZKanAiMAvBuOEx2jru/ Ek+JlloSFOuexb+tXI1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxQ5M-007XTX-6E; Tue, 22 Nov 2022 10:01:01 +0000 Received: from mx2.securetransport.de ([2a03:4000:13:6c7::1]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxQ58-007XIz-0N for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2022 10:00:56 +0000 Received: from mail.dh-electronics.com (unknown [77.24.89.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.securetransport.de (Postfix) with ESMTPSA id B7A935E8AB; Tue, 22 Nov 2022 11:00:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dh-electronics.com; s=dhelectronicscom; t=1669111209; bh=gdo4vgWV8tXNuK/w1oRYXeG/YbiAC9Xkv0incWmwWPA=; h=From:To:CC:Subject:Date:From; b=CnYh0QcxCL0AUHn2PJFVyzpcsVUUV4l7cW96wyZXwCj3oPgfJqr8ym3dP1ge4iea1 /WiDzVtwGEotIfpkZBt4uXkhcGGBEXHMMoKuKy63uC+m90Vgr0Yh5t6PN4jnW9BTnP I8xpyUgi0N003wA7LoshBNjHwmY2a/dky1WK3WTPrOwBEM0bjB3Rj43VTJaHSS6fNQ z9xYtOm+FTsyAma4qe2o25FJ9CPWQLtm/+XJGCnVMnZFSjNQ6YORNOpSpiH+/uEJ53 Dala/yAKrKDlx+0xCTa14KYsIg6+/3fHwGvZNyZJcHv+mOrJseBUCIFhKP9/MR2E0a tIRlJdLJZgRwg== Received: from DHPWEX01.DH-ELECTRONICS.ORG (10.64.2.30) by DHPWEX01.DH-ELECTRONICS.ORG (10.64.2.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Tue, 22 Nov 2022 11:00:00 +0100 Received: from localhost.localdomain (172.16.51.2) by DHPWEX01.DH-ELECTRONICS.ORG (10.64.2.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20 via Frontend Transport; Tue, 22 Nov 2022 10:59:59 +0100 From: Christoph Niedermaier To: CC: Christoph Niedermaier , "Support Opensource" , Adam Thomson , Liam Girdwood , Mark Brown , Marek Vasut , , Subject: [PATCH 0/3] mfd: da9062: Make the use of IRQ optional Date: Tue, 22 Nov 2022 10:58:30 +0100 Message-ID: <20221122095833.3957-1-cniedermaier@dh-electronics.com> X-Mailer: git-send-email 2.11.0 X-klartext: yes MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221122_020046_404706_7860A49D X-CRM114-Status: GOOD ( 13.77 ) 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 For the core functionality of the MFD DA9061/62 IRQ isn't needed. This series removes the requirement for an IRQ. This is done by modifing the MFD driver and regulator driver to setup the device without IRQ. This makes the DA9061/62 chip useable for designs which haven't connected the IRQ pin. I tested it with a DHCOM i.MX6ULL, which is powered by a DA9061. In this series, the DT binding file is also adapted. Christoph Niedermaier (3): dt-bindings: mfd: da9062: Move IRQ to optional properties mfd: da9062: Remove IRQ requirement regulator: da9062: Make the use of IRQ optional --- Cc: Support Opensource Cc: Adam Thomson Cc: Liam Girdwood Cc: Mark Brown Cc: Marek Vasut Cc: kernel@dh-electronics.com Cc: linux-kernel@vger.kernel.org To: linux-arm-kernel@lists.infradead.org --- Documentation/devicetree/bindings/mfd/da9062.txt | 11 +-- drivers/mfd/da9062-core.c | 98 ++++++++++++++++++------ drivers/regulator/da9062-regulator.c | 7 +- 3 files changed, 82 insertions(+), 34 deletions(-)