From patchwork Sat Aug 20 07:16:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 599420 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F018C32772 for ; Sat, 20 Aug 2022 07:17:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343768AbiHTHRW (ORCPT ); Sat, 20 Aug 2022 03:17:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243618AbiHTHRU (ORCPT ); Sat, 20 Aug 2022 03:17:20 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3374C6961; Sat, 20 Aug 2022 00:17:19 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id pm17so6475772pjb.3; Sat, 20 Aug 2022 00:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=3Gj5f3w9OQFfik8UamsqozmpIyn6I4xFDFsJ76lHXeE=; b=beY9hzQ6YUEUWP5DZ42FeQ+ndF6ZqgyenaIAFmYDIjoHYOwKcuzsahTH6fxHrzCaWC OJ8ACfP7RIoTyjgStccgwCw5jpm1KWlASfPTk4rzRVon3c40j5KXn0S9at3dgNZJEyjq yHD56YCaYAmeVzmmKd7r4V90PFWBAHWakrqT1mvfygUsk27GSCcFxGh7dD6m7OHmPghS wRPrUo+ALaOq0sa13MDTXJk1BEPCZ97Ay/5K2AJJdHyshCnaq1hVCZTMXLumv2ci5ZN1 jQI/+J44tPm4gXvu2l1lvMbdBxY4tEvhhws/Lya1xQxvLDeSvYaTaIptr8d/V7JsPDt+ ZyIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=3Gj5f3w9OQFfik8UamsqozmpIyn6I4xFDFsJ76lHXeE=; b=T07kC3bepUS6WQHp/JymEG21pfrLqdxQrBSylHGgN2BCWH2QfsPIpLWtAC/3osLekU 0EmPyedRNLxKBn5PzamDmUU2WTUaqE/iYNg21lmE7ibuHuApIVwwsiB0bPohpnDEOO9p SyntB0MWdMOX2IiP30xzm2aFFjsw/04yODBCuFOhtQJ6rI3bYf/Bm52B2QSVdrmKXFDJ TEn4ORuwOuqsso4pEOWxK3ijk39SdEw7QPbWWfvrT33tjmvhw3nE119R4U0EK2tFHqkr JpYi8J3shZFe/bhmOag3G+i+oPwYe92cxtoS9c2G8T+kIMX7wIAuJoJUsM3Zhhmt+tk1 FUyg== X-Gm-Message-State: ACgBeo2onTbl+51o1xDLFpgkfrolU+DqsIdj1Dr3Z9ArgCTZNQc77x53 yB8s/0YnX2JBwXDi3rRKcAimVmKa+XNFFIn7X1Y= X-Google-Smtp-Source: AA6agR7itwESn5ApNtVpb+4Uh+XQ5oNjUaJSAjTA3UOVyhKqqFoLh3fu31cL6i/zoqelQ4QkPEm0Iw== X-Received: by 2002:a17:90a:e7cb:b0:1f5:38:cb53 with SMTP id kb11-20020a17090ae7cb00b001f50038cb53mr12578961pjb.110.1660979838970; Sat, 20 Aug 2022 00:17:18 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:17:18 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 01/10] power: reset: Move TWL4030 power driver from mfd Date: Sat, 20 Aug 2022 12:46:51 +0530 Message-Id: <20220820071659.1215-2-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The power/reset folder seems like a more appropriate place for twl4030-power.c Signed-off-by: Mithil Bavishi Acked-by: Lee Jones --- drivers/mfd/Kconfig | 13 ------------- drivers/mfd/Makefile | 1 - drivers/power/reset/Kconfig | 12 ++++++++++++ drivers/power/reset/Makefile | 1 + drivers/{mfd => power/reset}/twl4030-power.c | 0 5 files changed, 13 insertions(+), 14 deletions(-) rename drivers/{mfd => power/reset}/twl4030-power.c (100%) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index abb58ab1a..6a409bb2a 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1643,19 +1643,6 @@ config TWL4030_CORE high speed USB OTG transceiver, an audio codec (on most versions) and many other features. -config TWL4030_POWER - bool "TI TWL4030 power resources" - depends on TWL4030_CORE && ARM - help - Say yes here if you want to use the power resources on the - TWL4030 family chips. Most of these resources are regulators, - which have a separate driver; some are control signals, such - as clock request handshaking. - - This driver uses board-specific data to initialize the resources - and load scripts controlling which resources are switched off/on - or reset when a sleep, wakeup or warm reset event occurs. - config MFD_TWL4030_AUDIO bool "TI TWL4030 Audio" depends on TWL4030_CORE diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index 858cacf65..bd7bf95e6 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@ -108,7 +108,6 @@ obj-$(CONFIG_MFD_TPS65912_SPI) += tps65912-spi.o obj-$(CONFIG_MENELAUS) += menelaus.o obj-$(CONFIG_TWL4030_CORE) += twl-core.o twl4030-irq.o twl6030-irq.o -obj-$(CONFIG_TWL4030_POWER) += twl4030-power.o obj-$(CONFIG_MFD_TWL4030_AUDIO) += twl4030-audio.o obj-$(CONFIG_TWL6040_CORE) += twl6040.o diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index a8c46ba58..39117b697 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -303,4 +303,16 @@ config POWER_MLXBF help This driver supports reset or low power mode handling for Mellanox BlueField. +config TWL4030_POWER + bool "TI TWL4030 power resources" + depends on TWL4030_CORE && ARM + help + Say yes here if you want to use the power resources on the + TWL4030 family chips. Most of these resources are regulators, + which have a separate driver; some are control signals, such + as clock request handshaking. + + This driver uses board-specific data to initialize the resources + and load scripts controlling which resources are switched off/on + or reset when a sleep, wakeup or warm reset event occurs. endif diff --git a/drivers/power/reset/Makefile b/drivers/power/reset/Makefile index 0a39424fc..e9db25b09 100644 --- a/drivers/power/reset/Makefile +++ b/drivers/power/reset/Makefile @@ -36,3 +36,4 @@ obj-$(CONFIG_SYSCON_REBOOT_MODE) += syscon-reboot-mode.o obj-$(CONFIG_POWER_RESET_SC27XX) += sc27xx-poweroff.o obj-$(CONFIG_NVMEM_REBOOT_MODE) += nvmem-reboot-mode.o obj-$(CONFIG_POWER_MLXBF) += pwr-mlxbf.o +obj-$(CONFIG_TWL4030_POWER) += twl4030-power.o diff --git a/drivers/mfd/twl4030-power.c b/drivers/power/reset/twl4030-power.c similarity index 100% rename from drivers/mfd/twl4030-power.c rename to drivers/power/reset/twl4030-power.c From patchwork Sat Aug 20 07:16:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 598862 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66C74C32774 for ; Sat, 20 Aug 2022 07:17:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343814AbiHTHR2 (ORCPT ); Sat, 20 Aug 2022 03:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343799AbiHTHR0 (ORCPT ); Sat, 20 Aug 2022 03:17:26 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E64C6978; Sat, 20 Aug 2022 00:17:26 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id y127so3140262pfy.5; Sat, 20 Aug 2022 00:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=Seg+UsTU9seYZei7wiY/0xEcb4bTv9pLii1wsg0IFuU=; b=OqOiIWHZbbliX2kj7yStifnR763uDol11zzXqTc7qecZFIyvqGTmARRMiqW795F+re ZVpiHegWHhMck98+3x7p3Rq2ImeDIZ4PQsAKfHM+jlhotAmrZRp/Pj3ckEpI0IX6bz7U tpEjQohU8/eW42SmcexAcUKUnt8u+HLhiMesZN2cmF0DFD5nC4Fojs+/R9ZpTOEOONT7 R3rPt7zo3UB1LXcdexJ+PU7vcyNOsvWVgTWLSTmrMrgarH+WkV3D5EFbX5E9uA+oLfyx sHKBxFOZerqah+gN8OEHt3Rf0fMs2nYNb2YiLfh3i3YmeqIjsYP/uYHQnYI79jYLkk+4 ZM9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Seg+UsTU9seYZei7wiY/0xEcb4bTv9pLii1wsg0IFuU=; b=4VrNlkW7g4Zty66jH46kqddMQ9btiWo+HoHkLsIXV0bWnZHHmzrWTKemtnwhvrzogL okVPoagfpsgpiKWVWPfF2CzuFOhbTAJkJplRk+rG0fX42F8n2L+oSNUR7k08QxDy+6Yx FBBm6v847eRKG54kLyP52+Jv068o6t5o9vzDKy/8HRWpc12UZxnPva9QeuTH8/AUNf6D wxiXj/HwbK+d8SySL5a6bKYtn1DiGvHSo2t9eUmWeJYFXXJ6/ExEzcQdyRR5A0I9DG82 /R1XU0aXN6Y8g3erwucAd37gyUhfGLzdbyLa2hTnkeJVFbo3Xngc/T4Dv/nrcEjTdkwo TEjw== X-Gm-Message-State: ACgBeo31QaiQeX4aiPruzdV0tMsvzbECmTxKSfXBK87SK4vN7rvsSlq8 HOTeP+pDf2eXedsIkjCX4U2CfSh5QPLjEbGijzc= X-Google-Smtp-Source: AA6agR4utyPoQwMxsveMu7ZzFckkhnkh6nJBcGJxw0aWrH3KMKuRLV0i/8HSkC/HfEwEhuh8fqjVsw== X-Received: by 2002:a05:6a00:3406:b0:535:f76f:c971 with SMTP id cn6-20020a056a00340600b00535f76fc971mr9026502pfb.5.1660979845476; Sat, 20 Aug 2022 00:17:25 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:17:25 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 02/10] dt-bindings: power: reset: Move twl4030-power from mfd to power/reset Date: Sat, 20 Aug 2022 12:46:52 +0530 Message-Id: <20220820071659.1215-3-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Move the documentation for twl4030-power from mfd to power/reset Signed-off-by: Mithil Bavishi Acked-by: Rob Herring --- .../devicetree/bindings/{mfd => power/reset}/twl4030-power.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/{mfd => power/reset}/twl4030-power.txt (100%) diff --git a/Documentation/devicetree/bindings/mfd/twl4030-power.txt b/Documentation/devicetree/bindings/power/reset/twl4030-power.txt similarity index 100% rename from Documentation/devicetree/bindings/mfd/twl4030-power.txt rename to Documentation/devicetree/bindings/power/reset/twl4030-power.txt From patchwork Sat Aug 20 07:16:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 599419 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B44EC3F6B0 for ; Sat, 20 Aug 2022 07:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343855AbiHTHRf (ORCPT ); Sat, 20 Aug 2022 03:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343851AbiHTHRd (ORCPT ); Sat, 20 Aug 2022 03:17:33 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82673C6947; Sat, 20 Aug 2022 00:17:32 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y141so6101723pfb.7; Sat, 20 Aug 2022 00:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=NaF0Qk2p6j2196mNUJaF8uknQCNZGqPcFXW4blntr18=; b=JCBmNFewKTYyy3azun5/TuWRXSH+3XD273uPDSPRl37mfN0afYyoUA7pdya1QaU3L/ hoF3B8K6/Bs7eYnCCu+CCrIRragkX58pIVOyzcoDQblmtQKcVNMEWe4gWeVS+HoUhj/+ l2PdmX3kLjkuc0bn84u/AI8P5MmYjyI28zfE2Dto5xEYubt0jcisrJl7VHpcpNN8wpCg A2r51iteAajnOQfsmprDIVBIMMAvJMPiz0qGzHvgiDntxVQ1d8jVn1dJgn0CU09grxIU K9GutODXoVi6SmVZSnPAwU7cT1qF6PqO7F+Wc+PW8c53KUeMjCptDtmr/hdRiPnH+Cum yx8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=NaF0Qk2p6j2196mNUJaF8uknQCNZGqPcFXW4blntr18=; b=ZOhBb+lNyhjYJF81nQKqLnkiWX2LkrL2M5+se+fdWu90HSrXuUcupRQi6dRXmSMEdh 2wLgTcVFcKTJKaBVWLLb2uVbWVnra06rKflk7o02ktYT3Dqa7XVMjPfHdUJQNYa+hchm bGJOR8Rnz1vlNHZiGQvzor3/VTjQiwm/LwZqkqXwh7TfCxeGvX/IpwUa8+pQsndhC0sm eRyAF0P/Qmxx/hYSGabbojyCx/6O1qtffIYuBEAngeyL0tgsjSGr6tMDMpvk85cjw/pu Qa0kcTCCQHsJ24wVno8RJkI+AbVrzCmlw3ckG3a7tiZDxBzzpoNBbx5ZeGNwQy1F4Ab5 4r6g== X-Gm-Message-State: ACgBeo0/uq8uPEn4dWT+U5oULtnSNg+cocDb+z0yL0HtWWFC8aL7Fdbr Fd/lCWRAThOp6mwrGVy5wzxm92zt4wdGtO99988= X-Google-Smtp-Source: AA6agR5e4LbPReWIOgnjJpHOBuF592FLzh2H9BusO1kFefpEOrAcugidLU4zG1E8aJSmOANkruyB+g== X-Received: by 2002:a63:1624:0:b0:41a:9dea:1c80 with SMTP id w36-20020a631624000000b0041a9dea1c80mr9203015pgl.400.1660979851663; Sat, 20 Aug 2022 00:17:31 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:17:31 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 03/10] power: reset: Add TWL6030 power driver, with minimal support for power off Date: Sat, 20 Aug 2022 12:46:53 +0530 Message-Id: <20220820071659.1215-4-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Paul Kocialkowski This adds a TWL6030 power driver, that currently only supports powering off the device when the TWL is used as system power controller. This driver might be extended to support more power-related features of the TWL6030. Signed-off-by: Paul Kocialkowski Signed-off-by: Mithil Bavishi --- drivers/power/reset/Kconfig | 10 ++++ drivers/power/reset/Makefile | 1 + drivers/power/reset/twl6030-power.c | 93 +++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 drivers/power/reset/twl6030-power.c diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index 39117b697..5156b1613 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -316,3 +316,13 @@ config TWL4030_POWER and load scripts controlling which resources are switched off/on or reset when a sleep, wakeup or warm reset event occurs. endif + +config TWL6030_POWER + bool "TI TWL6030 power resources" + depends on TWL4030_CORE && ARM + help + Say yes here if you want to use the power resources on the + TWL6030 family chips. + + When used as system power controller, this driver allows turning off + the main power supply. diff --git a/drivers/power/reset/Makefile b/drivers/power/reset/Makefile index e9db25b09..692d51cef 100644 --- a/drivers/power/reset/Makefile +++ b/drivers/power/reset/Makefile @@ -37,3 +37,4 @@ obj-$(CONFIG_POWER_RESET_SC27XX) += sc27xx-poweroff.o obj-$(CONFIG_NVMEM_REBOOT_MODE) += nvmem-reboot-mode.o obj-$(CONFIG_POWER_MLXBF) += pwr-mlxbf.o obj-$(CONFIG_TWL4030_POWER) += twl4030-power.o +obj-$(CONFIG_TWL6030_POWER) += twl6030-power.o diff --git a/drivers/power/reset/twl6030-power.c b/drivers/power/reset/twl6030-power.c new file mode 100644 index 000000000..78c8a02a3 --- /dev/null +++ b/drivers/power/reset/twl6030-power.c @@ -0,0 +1,93 @@ +/* + * TWL6030 power + * + * Copyright (C) 2016 Paul Kocialkowski + * + * This file is subject to the terms and conditions of the GNU General + * Public License. See the file "COPYING" in the main directory of this + * archive for more details. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include +#include +#include + +#define TWL6030_PHOENIX_DEV_ON 0x25 + +#define TWL6030_PHOENIX_APP_DEVOFF BIT(0) +#define TWL6030_PHOENIX_CON_DEVOFF BIT(1) +#define TWL6030_PHOENIX_MOD_DEVOFF BIT(2) + +void twl6030_power_off(void) +{ + int err; + + err = twl_i2c_write_u8(TWL6030_MODULE_ID0, TWL6030_PHOENIX_APP_DEVOFF | + TWL6030_PHOENIX_CON_DEVOFF | TWL6030_PHOENIX_MOD_DEVOFF, + TWL6030_PHOENIX_DEV_ON); + if (err) + pr_err("TWL6030 Unable to power off\n"); +} + +static bool twl6030_power_use_poweroff(struct device_node *node) +{ + if (of_property_read_bool(node, "ti,system-power-controller")) + return true; + + return false; +} + +#ifdef CONFIG_OF +static const struct of_device_id twl6030_power_of_match[] = { + { + .compatible = "ti,twl6030-power", + }, + { }, +}; + +MODULE_DEVICE_TABLE(of, twl6030_power_of_match); +#endif /* CONFIG_OF */ + +static int twl6030_power_probe(struct platform_device *pdev) +{ + struct device_node *node = pdev->dev.of_node; + + if (!node) { + dev_err(&pdev->dev, "Platform data is missing\n"); + return -EINVAL; + } + + /* Board has to be wired properly to use this feature */ + if (twl6030_power_use_poweroff(node) && !pm_power_off) + pm_power_off = twl6030_power_off; + + return 0; +} + +static int twl6030_power_remove(struct platform_device *pdev) +{ + return 0; +} + +static struct platform_driver twl6030_power_driver = { + .driver = { + .name = "twl6030_power", + .of_match_table = of_match_ptr(twl6030_power_of_match), + }, + .probe = twl6030_power_probe, + .remove = twl6030_power_remove, +}; + +module_platform_driver(twl6030_power_driver); + +MODULE_AUTHOR("Paul Kocialkowski "); +MODULE_DESCRIPTION("Power management for TWL6030"); +MODULE_LICENSE("GPL"); From patchwork Sat Aug 20 07:16:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 598861 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 626F7C3F6B0 for ; Sat, 20 Aug 2022 07:17:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343915AbiHTHRn (ORCPT ); Sat, 20 Aug 2022 03:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343944AbiHTHRk (ORCPT ); Sat, 20 Aug 2022 03:17:40 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A98C6B6F; Sat, 20 Aug 2022 00:17:39 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id f4so3469931pgc.12; Sat, 20 Aug 2022 00:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=VCrPOIohHxLmVfDrC2sy48yiF41OfgNylthp59ZduCI=; b=dchGxaCKupq9BXoOYaw19H8frLNwc6XeTZCiWGW9TTi/8T2+w1+H0N2Qo0v1FbNiY4 APXAIasrV88C5hsA3n4Sm3+xeBoxCp7EYmARcrmc/Nl0niRndeUkJnT3q0wi8k5LcWn5 5ed0mfpFI0ZEFFKPdS3hA7Yy/tFsDgX30TXncYI+0IQIc66aglSot7at6jzom1PSKdWp 3JH9zmPNjJnbLIBhVqnAXfrRYbLelo6sywfdpz8SmDv47wkla9983/thXe7bst0HubYE GexVSwh63IDHKdRaIHMNVnrmEjRuGgwkXe4o8vMSHAAPT9gNl9OGx7HTv5CKuRtxeV7f I1ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=VCrPOIohHxLmVfDrC2sy48yiF41OfgNylthp59ZduCI=; b=PIXhd7iTip3EQa3R9EfmhcYpDd2t+fzWHuMOn6a8kUtLQX5dwr7u8MKeMW1s1erpei NzzriB1eTZt81TU8v4RcWsm7Ke3TZ4Tz06AwThFFG70qro+bERt4hhd9T3Goo8jHyPTp akVyDpY9fqaI2jWZQAMSsYtxkjhl6F3ry1XZnIF4O/rBv3tN/Hxbi9KpTsZpSpevi2Aq 5HZl/icoRiKY/5Rj/3+fR1zbXSufdt2z2O9mJcxvI0xQs0FpA/Z0j25PWT9Ht+czI4ph fUTzO6nSnjhk35ABwi/R9JnRSJuwwjoe3t0bqLYl3eRK8KK990v5fCwgeY6beRhyoUfI WpsQ== X-Gm-Message-State: ACgBeo1Ht+Vdm04EJ3JXk1++m6CDVd+6xlL+j1k93qSiI1DFjbM38O1O U0Vxhe7kS3b9kHT+0WEiuz4piBlFP2T7iIiUHKM= X-Google-Smtp-Source: AA6agR7SEcSo9UFWLqpeucJoo+pblvH13x2pFJP0jpXEp1hAqnl3YWy9qYl/x4fPjD/CfLOTTS67+Q== X-Received: by 2002:a63:4f10:0:b0:426:9c61:5e48 with SMTP id d16-20020a634f10000000b004269c615e48mr9085640pgb.360.1660979858113; Sat, 20 Aug 2022 00:17:38 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:17:37 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 04/10] dt-bindings: input: twl-pwrbutton: Add support for twl6030-pwrbutton Date: Sat, 20 Aug 2022 12:46:54 +0530 Message-Id: <20220820071659.1215-5-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Adds documentation for the compatible string for twl6030 powerbutton support. Signed-off-by: Paul Kocialkowski Signed-off-by: Mithil Bavishi Acked-by: Rob Herring --- Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt b/Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt index f5021214e..9a0b765d3 100644 --- a/Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt +++ b/Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt @@ -8,6 +8,7 @@ This module provides a simple power button event via an Interrupt. Required properties: - compatible: should be one of the following - "ti,twl4030-pwrbutton": For controllers compatible with twl4030 + - "ti,twl6030-pwrbutton": For controllers compatible with twl6030 - interrupts: should be one of the following - <8>: For controllers compatible with twl4030 From patchwork Sat Aug 20 07:16:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 599418 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9B86C32772 for ; Sat, 20 Aug 2022 07:17:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344120AbiHTHR5 (ORCPT ); Sat, 20 Aug 2022 03:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344017AbiHTHRs (ORCPT ); Sat, 20 Aug 2022 03:17:48 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 672D8C6CC4; Sat, 20 Aug 2022 00:17:46 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id jl18so5833593plb.1; Sat, 20 Aug 2022 00:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=4us/F8eJ4tlg85vnYkTyoESksVXkiPBpQ7bpWGLRwos=; b=XwO4jsclhEdDs+e+EKz62wjpyGp7J8Trg1Psjtc16e37N0551qfVeCLHzvkHl+H96k 54ux0H3rbeURovPf399q/9jvcjONV09gnI0moMEiu40eYvAyYoowdGxt61PD6M8Qpdev bEXr06awDkfNJ3ANL/zcTAzUrscDwoWhu3NlQ2QLAsY4Wns3IQoMCeLlpJ6FRfZWBSWu fCL+WtTw3royLbz6/tH/ThP4rWPlyaRASk9DehAPnHxCtC0tcpduQYbz2puh5VrC6dSv QM8iHvtNC0Qx/8NsZ+0TSlIYReDGv0aqPyrQDsg2fRZKw1/IaJWhXuYcl4w52u5uZyWB FlOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=4us/F8eJ4tlg85vnYkTyoESksVXkiPBpQ7bpWGLRwos=; b=ZYxKsgazrGKgXK2Ve9qQeOk5sIlFJsyNs8+dTXmQRRmBPmlkpTPoR4vRDS99L4w+CK LGjwPkDDg7Y5QtgYhj3kUDuYZPC/QzllRMDf6Wdo0mU+z9x/Wv/1/EXRAPMgKWvW5eu0 /l/H6SQxHOhWXcRNBjcMqiw0pIO5pHpMI9o93fp6clVy0uuc2gD/w65qtoCwy4tcdoG/ WiZK9OwXF8GxocilDu1XYTr9fLVTJ/JY2Cz1+ZwUsn/RCpbvKs4ciS11Ahe8jrHYb6rk LQw1EkNnHEc7YN92KSU2nzzEC93vPSWgrU7w3W3sOzVxLj1XMpgp7aoKUCg9y1LFD6sK IHTw== X-Gm-Message-State: ACgBeo1RKwrbDBGkaSHHYmEgzjFWgTaAZ9pIoEKHBRANegcgihmPGfSj +WH0WaJ/rQdw6G81o2UDVWnlh3OwM18d83YhI5c= X-Google-Smtp-Source: AA6agR5z4on5mvqISCpPOt29CWgrhGAriBua88sqdLBj9ZYLLKzrHoZRVNygEdAzEUmOj4SH3UMQ1g== X-Received: by 2002:a17:90a:982:b0:1ef:f525:9801 with SMTP id 2-20020a17090a098200b001eff5259801mr12533685pjo.191.1660979864696; Sat, 20 Aug 2022 00:17:44 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:17:44 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 05/10] dt-bindings: power: reset: Add bindings for twl6030-power Date: Sat, 20 Aug 2022 12:46:55 +0530 Message-Id: <20220820071659.1215-6-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Adds documentation for the twl6030 power driver. Signed-off-by: Paul Kocialkowski Signed-off-by: Mithil Bavishi --- .../bindings/power/reset/twl6030-power.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/twl6030-power.txt diff --git a/Documentation/devicetree/bindings/power/reset/twl6030-power.txt b/Documentation/devicetree/bindings/power/reset/twl6030-power.txt new file mode 100644 index 000000000..946bb3d9f --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/twl6030-power.txt @@ -0,0 +1,31 @@ +Texas Instruments TWL family (twl6030) reset and power management module + +For now, the binding only supports the complete shutdown of the system after +poweroff. + +Required properties: +- compatible : must be + "ti,twl6030-power" + +Optional properties: + +- ti,system-power-controller: This indicates that TWL6030 is the + power supply master of the system. With this flag, the chip will + initiate an ACTIVE-to-OFF or SLEEP-to-OFF transition when the + system poweroffs. + +Example: +&i2c1 { + clock-frequency = <2600000>; + + twl: twl@48 { + reg = <0x48>; + interrupts = <7>; /* SYS_NIRQ cascaded to intc */ + interrupt-parent = <&intc>; + + twl_power: power { + compatible = "ti,twl6030-power"; + ti,system-power-controller; + }; + }; +}; From patchwork Sat Aug 20 07:16:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 598860 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4865C32796 for ; Sat, 20 Aug 2022 07:18:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344142AbiHTHR7 (ORCPT ); Sat, 20 Aug 2022 03:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344074AbiHTHR4 (ORCPT ); Sat, 20 Aug 2022 03:17:56 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0F39C6FFC; Sat, 20 Aug 2022 00:17:52 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id s36-20020a17090a69a700b001faad0a7a34so9417516pjj.4; Sat, 20 Aug 2022 00:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=PEwtldO5Q6Fe+jN6MUYbpoaDfAqWs36K7tLMiCkYHvU=; b=JyZk7DOHK9hHwX1eKLIacuxuejIsO5iTGXhrd397iLNDTTtwkuCGABjD0H3dfusyuz TQocoo6dr6xm8PCYZaA3k0drDe2/6rhw/f1B5m/ucGSEOSQ3UJXDJIk9nuo2cS4rFStV px3yVr+esWbmRj1yZgKB6qMFjuHZ2tukwQR6Q6tF18joNXJYCzF9XkVh66VqbR8qUthz GaA3/iJlIQKeXwZAz6qzMbtwv1pC64LTBIXIB0hDqKUWuXPvI0xUAZQdG060TTVFoRMn myeYkBVDrwWjIeWwyxBSEU7dcnXoKWCZc06rD7PxhIEDRabR0zPpunh2QUHCoMiRI3Bw Rvmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=PEwtldO5Q6Fe+jN6MUYbpoaDfAqWs36K7tLMiCkYHvU=; b=3LlrYpuHi9dzBFQOs7B9flOhpEutja1zFVEu6zcPDYk2U0SnpBHIut7kcFJceoti+A Fu1u+2dld20LZ+k1VfMqwaDp9DRXtRxmK/8MkEtVRb/J3IiIhTyPVknu4ZgiGSy97rJx qjSUjX1oLjfGDbD861E5iV9rDflOgPBDIs5mVVLkClxnKPE7XkTH50WOJpj4yaWaKMx2 vlTlDL8vPcv0A7dXRrj16PeTtNwxbNgFWIyuhgQc1jrKjA2R5avcwXW8+vuxESQ4VRpE h92HamqBH0wctOvqQUZKGU0FuFNBbDCxuTtrxHrN8hH8fqve/xp47AhbBUqJzyd6OaJW P0Ig== X-Gm-Message-State: ACgBeo32xzN7fKAdEKeke8sxSaNEsrLGUAZ1fsdNBXVqibh6NL5U7uWI Nj6LHEhMYNebyvXSJtYc2bCffM/ROfdxAnC4XSI= X-Google-Smtp-Source: AA6agR6U1kl/AKlq5BqNAR5lkM1hvHTrxu3S8RWyP0wqhr9srdlNTk42u7EJPs4Vpblu6wgiozU4xw== X-Received: by 2002:a17:90b:1d02:b0:1f5:8526:303 with SMTP id on2-20020a17090b1d0200b001f585260303mr18210394pjb.79.1660979872152; Sat, 20 Aug 2022 00:17:52 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:17:51 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 06/10] ARM: OMAP2+: Only select TWL4030_POWER for OMAP3 Date: Sat, 20 Aug 2022 12:46:56 +0530 Message-Id: <20220820071659.1215-7-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Paul Kocialkowski The TWL4030 is generally used with the OMAP3, not with OMAP4. The TWL6030 is generally used with the OMAP4 instead. Signed-off-by: Paul Kocialkowski --- arch/arm/mach-omap2/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 3b53dda9e..e4fea50c3 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -143,7 +143,7 @@ config ARCH_OMAP2PLUS_TYPICAL select REGULATOR select REGULATOR_FIXED_VOLTAGE select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4 - select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4 + select TWL4030_POWER if ARCH_OMAP3 select VFP help Compile a kernel suitable for booting most boards From patchwork Sat Aug 20 07:16:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 599417 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88352C25B08 for ; Sat, 20 Aug 2022 07:18:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344073AbiHTHSM (ORCPT ); Sat, 20 Aug 2022 03:18:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344125AbiHTHSE (ORCPT ); Sat, 20 Aug 2022 03:18:04 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34792C6978; Sat, 20 Aug 2022 00:18:00 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id 2so5851531pll.0; Sat, 20 Aug 2022 00:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=UVlXPIqbQg02ChER46P6UD1TtAv817U4yKmxStFtpNo=; b=qT0e1xG0h2edkrLDl8PaMtsJUkpb3Mo9rJ+IslBNWlb5+HdEVyryeU6YrrT4UOvbmS mdw2GYJzN8VWcfLZexXCTCA5S8KKzojXcWIcypw5nNDLFiP+GchUrFs2DJ4OrlPN6OXi AbCkQSzSaQXa1nXDKZyJ2lHIeF7mno5swuScg2/nJM1ajZb9QS/W1Nq/+Rk9F2xV6WBp lk0PUDcdlUVqQHOc1omr2JwuLuTkpDp0REay18ZVX3K8wwfYM9+jl6//jc4Z5ne2slY4 Y8W+6C99CTCEo9jfYFP9/KEXgkr8sp8w+QK/TR5bhU/ogE3FmPYxD+PHWc8k9zNIwqmP lTTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=UVlXPIqbQg02ChER46P6UD1TtAv817U4yKmxStFtpNo=; b=pgTZC9y18m9bdGGx2vgpQUlwsifC1rfLI1lkper/ltEIQLCDtAVe/DCMVBNKlIUTyx q+6xGppLFbsZKwUxcg+YR6y+zAlrW6I6FkFnGU0OojnEd2haxhPi/B9TX0cQH94B3cfO Jl3FaetqTeCQnljn4rbgdEMnUoxEsa56MaPegxbId8cAuYv3p2Te5ajeZPfGnJ0vpQ6b 5UbBkKlfrGIhMgIafukpRa5bUEdlySt0sgq6DuSUKwKcZSaFF+vnSslUTECwUxZykFRJ TrXrDrUnSiyaWIxbFNvDo6Ci3HPdJJuXPgtKDEnslBSNExIMcc64UjkhBkINZyR7LwDH uQEw== X-Gm-Message-State: ACgBeo21+mnjRftQnWaU12rkbqFGiFREAZg5gp1a+NcLXRYxdLJpXt9e Mx83qIdU1lzT9Q6CVjiHdt9d6Ayzoa7I8RiRiNs= X-Google-Smtp-Source: AA6agR7ymADVZDxsBUTK/13Aqse5MQRxA8+cSckmzbdXcFfJGA84NWxfs2lPwNjJPRMG631LGqj/Lg== X-Received: by 2002:a17:902:f604:b0:172:75a4:33ea with SMTP id n4-20020a170902f60400b0017275a433eamr10725001plg.7.1660979879913; Sat, 20 Aug 2022 00:17:59 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.17.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:17:59 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 07/10] ARM: OMAP2+: Select TWL6030_POWER for OMAP4 Date: Sat, 20 Aug 2022 12:46:57 +0530 Message-Id: <20220820071659.1215-8-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Paul Kocialkowski The TWL6030 is generally used with the OMAP4. Signed-off-by: Paul Kocialkowski --- arch/arm/mach-omap2/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index e4fea50c3..9af3bd488 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -144,6 +144,7 @@ config ARCH_OMAP2PLUS_TYPICAL select REGULATOR_FIXED_VOLTAGE select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4 select TWL4030_POWER if ARCH_OMAP3 + select TWL6030_POWER if ARCH_OMAP4 select VFP help Compile a kernel suitable for booting most boards From patchwork Sat Aug 20 07:16:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 598859 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7296C32774 for ; Sat, 20 Aug 2022 07:18:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344457AbiHTHSZ (ORCPT ); Sat, 20 Aug 2022 03:18:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344272AbiHTHSM (ORCPT ); Sat, 20 Aug 2022 03:18:12 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD63C924F; Sat, 20 Aug 2022 00:18:07 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id w13so226732pgq.7; Sat, 20 Aug 2022 00:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=1mL44LhgVNAFqi2qF+fV+oSg58Nxy3pqMbmee8fAK+0=; b=k/9Qd7lhzIbswn34lMy3BZO+KFiTLJosJsO4Qa6imOg60/0KwOMasJF59XXma78+xB fcc6qpftoIG2AfJrCpq3xRl7Rqgao2O/IzyB6NGzXvOXBffiYsO6LmsxxNOTZX+XJ2bG FPgrIXSujEejGI+QDDStCkxXHVhylaOrzYMIVVezvsW/lspgpIv2DwxVlGQY0VpbKVrm QEwn4C+c1hQf16GdwG/qf2RgqQG5GnK+4lazSgH60wbNF4S9gOnoowbsge3wCU0FGXjl SOQUw3WbyuZ/pBBRlsupfKr/zZdtkK7rX+rGQSc6Y1IspDhEFg5dq/hEYJ2aj/W9KYK0 IWxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=1mL44LhgVNAFqi2qF+fV+oSg58Nxy3pqMbmee8fAK+0=; b=ohKDcu2jx1b+ZLKBk8b0WZCZuTBMb0D5FtlIfg3qnNHmN/jeUQgdX2BKtq+w7SApLC bVjj83SQfWWkIyECqH0uR7V3v0lwUYEB6NwyuGQ+gNMAgzcz43SjLaoJesmfJdz+SWdW v/B0nlJZTRNDRTYQs+LkqX5QsXIUQq82pl7JJpXLE2glwX5IOTISlZPwabTmHZ/4hHR8 DtzjOd4gbN5TX5zyv2VSXmsSi7ao5Qb+ILBX6XnxJIwRZndxZFRQ6E/eeMF+o9T1tB5W Cr8ALmWzZMW8jJ+IIezeWjzToBZknY7RU+APr2V1UkTRjMTODQy+XZrraft7D3srt3TX S38Q== X-Gm-Message-State: ACgBeo3v/TOICfM63qXf8N4WCWVJZZJngjQzBxe2m6dsXMkDDyHGNpD/ 7MU/iVDq1fnkcnAXGX19Eb20C2W+CNp6VVnWVeE= X-Google-Smtp-Source: AA6agR4NxGnfZRo5gdcgBhdmQCqmhzWFRG8VI6JLloAAkzGDFS+5cm6dfx1sXHOQFYhAP+fUg/5wgA== X-Received: by 2002:a63:82c8:0:b0:42a:498e:93ae with SMTP id w191-20020a6382c8000000b0042a498e93aemr4226039pgd.607.1660979886155; Sat, 20 Aug 2022 00:18:06 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:18:05 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 08/10] input: misc: Rename twl4030_pwrbutton to twl_pwrbutton Date: Sat, 20 Aug 2022 12:46:58 +0530 Message-Id: <20220820071659.1215-9-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This renames the twl4030-pwrbutton driver to twl-pwrbutton, since power button handling is very similar on most TWL chips. Signed-off-by: Mithil Bavishi --- arch/arm/configs/omap2plus_defconfig | 2 +- drivers/input/misc/Kconfig | 8 ++--- drivers/input/misc/Makefile | 2 +- .../{twl4030-pwrbutton.c => twl-pwrbutton.c} | 32 +++++++++---------- 4 files changed, 22 insertions(+), 22 deletions(-) rename drivers/input/misc/{twl4030-pwrbutton.c => twl-pwrbutton.c} (76%) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index 99d015cf8..621fd8b7e 100644 --- a/arch/arm/configs/omap2plus_defconfig +++ b/arch/arm/configs/omap2plus_defconfig @@ -402,7 +402,7 @@ CONFIG_TOUCHSCREEN_TSC2007=m CONFIG_INPUT_MISC=y CONFIG_INPUT_CPCAP_PWRBUTTON=m CONFIG_INPUT_TPS65218_PWRBUTTON=m -CONFIG_INPUT_TWL4030_PWRBUTTON=m +CONFIG_INPUT_TWL_PWRBUTTON=m CONFIG_INPUT_UINPUT=m CONFIG_INPUT_PALMAS_PWRBUTTON=m CONFIG_INPUT_PWM_VIBRA=m diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index a18ab7358..2c50459c7 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig @@ -479,15 +479,15 @@ config INPUT_AXP20X_PEK be called axp20x-pek. -config INPUT_TWL4030_PWRBUTTON - tristate "TWL4030 Power button Driver" +config INPUT_TWL_PWRBUTTON + tristate "TWL Power button Driver" depends on TWL4030_CORE help Say Y here if you want to enable power key reporting via the - TWL4030 family of chips. + TWL family of chips. To compile this driver as a module, choose M here. The module will - be called twl4030_pwrbutton. + be called twl_pwrbutton. config INPUT_TWL4030_VIBRA tristate "Support for TWL4030 Vibrator" diff --git a/drivers/input/misc/Makefile b/drivers/input/misc/Makefile index 28dfc444f..3eddb8cbd 100644 --- a/drivers/input/misc/Makefile +++ b/drivers/input/misc/Makefile @@ -78,7 +78,7 @@ obj-$(CONFIG_INPUT_SOC_BUTTON_ARRAY) += soc_button_array.o obj-$(CONFIG_INPUT_SPARCSPKR) += sparcspkr.o obj-$(CONFIG_INPUT_STPMIC1_ONKEY) += stpmic1_onkey.o obj-$(CONFIG_INPUT_TPS65218_PWRBUTTON) += tps65218-pwrbutton.o -obj-$(CONFIG_INPUT_TWL4030_PWRBUTTON) += twl4030-pwrbutton.o +obj-$(CONFIG_INPUT_TWL_PWRBUTTON) += twl-pwrbutton.o obj-$(CONFIG_INPUT_TWL4030_VIBRA) += twl4030-vibra.o obj-$(CONFIG_INPUT_TWL6040_VIBRA) += twl6040-vibra.o obj-$(CONFIG_INPUT_UINPUT) += uinput.o diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl-pwrbutton.c similarity index 76% rename from drivers/input/misc/twl4030-pwrbutton.c rename to drivers/input/misc/twl-pwrbutton.c index b307cca17..5614c5003 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl-pwrbutton.c @@ -1,5 +1,5 @@ /** - * twl4030-pwrbutton.c - TWL4030 Power Button Input Driver + * twl-pwrbutton.c - TWL4030 Power Button Input Driver * * Copyright (C) 2008-2009 Nokia Corporation * @@ -52,7 +52,7 @@ static irqreturn_t powerbutton_irq(int irq, void *_pwr) return IRQ_HANDLED; } -static int twl4030_pwrbutton_probe(struct platform_device *pdev) +static int twl_pwrbutton_probe(struct platform_device *pdev) { struct input_dev *pwr; int irq = platform_get_irq(pdev, 0); @@ -65,14 +65,14 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) } input_set_capability(pwr, EV_KEY, KEY_POWER); - pwr->name = "twl4030_pwrbutton"; - pwr->phys = "twl4030_pwrbutton/input0"; + pwr->name = "twl_pwrbutton"; + pwr->phys = "twl_pwrbutton/input0"; pwr->dev.parent = &pdev->dev; err = devm_request_threaded_irq(&pdev->dev, irq, NULL, powerbutton_irq, IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING | IRQF_ONESHOT, - "twl4030_pwrbutton", pwr); + "twl_pwrbutton", pwr); if (err < 0) { dev_err(&pdev->dev, "Can't get IRQ for pwrbutton: %d\n", err); return err; @@ -90,24 +90,24 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) } #ifdef CONFIG_OF -static const struct of_device_id twl4030_pwrbutton_dt_match_table[] = { - { .compatible = "ti,twl4030-pwrbutton" }, - {}, +static const struct of_device_id twl_pwrbutton_dt_match_table[] = { + { .compatible = "ti,twl4030-pwrbutton" }, + {}, }; -MODULE_DEVICE_TABLE(of, twl4030_pwrbutton_dt_match_table); +MODULE_DEVICE_TABLE(of, twl_pwrbutton_dt_match_table); #endif -static struct platform_driver twl4030_pwrbutton_driver = { - .probe = twl4030_pwrbutton_probe, +static struct platform_driver twl_pwrbutton_driver = { + .probe = twl_pwrbutton_probe, .driver = { - .name = "twl4030_pwrbutton", - .of_match_table = of_match_ptr(twl4030_pwrbutton_dt_match_table), + .name = "twl_pwrbutton", + .of_match_table = of_match_ptr(twl_pwrbutton_dt_match_table), }, }; -module_platform_driver(twl4030_pwrbutton_driver); +module_platform_driver(twl_pwrbutton_driver); -MODULE_ALIAS("platform:twl4030_pwrbutton"); -MODULE_DESCRIPTION("Triton2 Power Button"); +MODULE_ALIAS("platform:twl_pwrbutton"); +MODULE_DESCRIPTION("TWL Power Button"); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Peter De Schrijver "); MODULE_AUTHOR("Felipe Balbi "); From patchwork Sat Aug 20 07:16:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 599416 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49C45C32774 for ; Sat, 20 Aug 2022 07:18:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344586AbiHTHSr (ORCPT ); Sat, 20 Aug 2022 03:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344407AbiHTHSU (ORCPT ); Sat, 20 Aug 2022 03:18:20 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3608D6406; Sat, 20 Aug 2022 00:18:14 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id k14so6137354pfh.0; Sat, 20 Aug 2022 00:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=1zjTqUm4luCpgc05ENQ2GjoJH4VkCDObkjj2YRmbGQQ=; b=VU7DtQSsgB1zcrbxExarNoM/FM3oHXXC4E0gQvlVLBnzJU+FTDhawOTl+6Zc9crRbf +xHKDW0N2oPEouDXOJuEszJ1QD9Qqj+Q65IpkD+p8pRarBdph7EtdDxMEtYzBzQGhdJF 94uRBci2yh/52XwIn6FYouKGDDj0L6c3MuC/jj7ruTsTijs4eq/cq+8PyPtJkvc6UCQb WALgMDr98U1gLCCwdWyZzjfwOQwmS4vWasROxU37cckCRohZQTYos7eFFw9+PuYnVTq9 jfIxY5hqptbYCRHbk32h0Enbx8joXy0/Ufk73ifhc3UU6tP2gfhldSWTyMfh6nFqXKHa WXlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=1zjTqUm4luCpgc05ENQ2GjoJH4VkCDObkjj2YRmbGQQ=; b=cSdWd8Djjk8mjzZbv7La0uosalETnw4P9V7Gs7Jt9PYDCYK5FbRBxz9P/pIS5myllg K8APRbL52HABGeXx82cwEBw7KFJoK5vr2z9JXWwSvmVDjPXlYmEQYqlrieJl980u4PAk 2+wnxZlMcVs6blE6xEJt9X8XWS8SXZvaTi9Vl3Hh3CR7Jmwh/VPok6DA4g62dntkbm6W Y5bbDCgBWJoIYXMNJyp7ZgT9CNZqQsK7bmF7OdnhYqba6K8lW35OqU9TFdReGvpluX/E LVWKEafqbO5hJg6AYRu94N/YYDTL4yQGgtR5H/tPsRrgYafTPTyylrP4Hk7T7HwhGJps pzaw== X-Gm-Message-State: ACgBeo3vRws9HEBXratRBSA+LalU9kBTcPr77TLEXNSo3By3WyamhgsI cVJnS95JQatcjmWBM5suA0WfpuUnwytyjZHqOPM= X-Google-Smtp-Source: AA6agR7Tn8tFdRxFz7954cWIplbnFqO0dmoiLoIt/8ZECUKL/T9JmOM+42WDNvNUvk4PSItxpF8exg== X-Received: by 2002:a05:6a00:a05:b0:534:b1ad:cfac with SMTP id p5-20020a056a000a0500b00534b1adcfacmr11227240pfh.35.1660979892605; Sat, 20 Aug 2022 00:18:12 -0700 (PDT) Received: from mithil.localdomain ([103.19.226.223]) by smtp.gmail.com with ESMTPSA id j15-20020a17090a694f00b001faf273e4afsm1459019pjm.35.2022.08.20.00.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 00:18:12 -0700 (PDT) From: Mithil Bavishi To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, sre@kernel.org, tony@atomide.com, linux@armlinux.org.uk, bavishimithil@gmail.com, contact@paulk.fr Subject: [PATCH 09/10] dt-bindings: input: Rename twl4030-pwrbutton to twl-pwrbutton Date: Sat, 20 Aug 2022 12:46:59 +0530 Message-Id: <20220820071659.1215-10-bavishimithil@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220820071659.1215-1-bavishimithil@gmail.com> References: <20220820071659.1215-1-bavishimithil@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This changes the Documentation of the twl4030-pwrbutton to make it more generic as it can support other chips than twl4030 as well. Signed-off-by: Mithil Bavishi --- .../input/{twl4030-pwrbutton.txt => twl-pwrbutton.txt} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename Documentation/devicetree/bindings/input/{twl4030-pwrbutton.txt => twl-pwrbutton.txt} (81%) diff --git a/Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt b/Documentation/devicetree/bindings/input/twl-pwrbutton.txt similarity index 81% rename from Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt rename to Documentation/devicetree/bindings/input/twl-pwrbutton.txt index 9a0b765d3..43addc04d 100644 --- a/Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt +++ b/Documentation/devicetree/bindings/input/twl-pwrbutton.txt @@ -1,6 +1,6 @@ -Texas Instruments TWL family (twl4030) pwrbutton module +Texas Instruments TWL family pwrbutton module -This module is part of the TWL4030. For more details about the whole +This module is part of a TWL chip. For more details about the whole chip see Documentation/devicetree/bindings/mfd/twl-family.txt. This module provides a simple power button event via an Interrupt.