From patchwork Mon Nov 27 22:19:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 170477 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3505452vqx; Mon, 27 Nov 2023 14:22:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfkcfxqsRtfjijFVYvUeJtAy33oAr0neyzY0RtD1pmchg4MIYQuQoePVtDa4zSIof4LddL X-Received: by 2002:a17:90b:4a90:b0:280:3cc4:f052 with SMTP id lp16-20020a17090b4a9000b002803cc4f052mr12802395pjb.17.1701123757878; Mon, 27 Nov 2023 14:22:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123757; cv=none; d=google.com; s=arc-20160816; b=o7/JZVK0hc4x95X2I7SwG1QUEcvisZQ5rW7rrQfaXN+v1BLhHD9BVc1HyiPkTQDA30 SRZBZiHQAyuLIIBQvqIeKHZVIHvKbP7btn6INDx60gb5TFDZHgTuvGWiSb80JUEVf905 SVgLXG3Xwo0dBHFDA4LvSVrJAye6F/iGqiQum6hTjgiI+c4ufMCPN0fOb3F2ZwsraGMP CjM5sbSNbQ6wwiv2WW3bIjQePweJuaySffYcWN83a+1R5y+DK9TKVkNRub+/ZSAfw1LT vu2ZixzlhRSH6ANYI9+m7E4rg8bK0xFoe7ne1VGnIc2mP9SIADirgw68W0zbm7/bkv8I 9afA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lU5OchIEvF38TLlRSscnw+iYzDDWri1rHhV16S0CVpM=; fh=tV/aYVogIRPCtVwv2y1/IPEMvt9lgf5IpExKF3Ds02I=; b=V2mIyPrrYPnuan9+0sXBtapDpgfWfRmrhOvm+OHtBe02mNqMHVDNDkX6fh2gO5Eky0 gyz8oRtPKtTSBrd4cMDZpr+cLRag4EucQJVVw3XlAkZL0rdCn+rRpWM/XhCFDh6KIkLm zi5SXMRj7B/L0WCiIUDXMq7KQQkQuVIys48FCSFRt2kLrVznucjULPQ07t9U9jdxfjsy 6882ryaUuNKJFVgP2f1MsbuRWdgVVu6UQWrD7AAwWtGk2hkjAnicBRh6sfz1aYV9coVR PK8DCkx1e5liB0Doj9jbRSlg4HS1NvRwC7lPma8rTOvpEHZ4KNYGg0IFrVsr/ftxISmJ HHYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id oc3-20020a17090b1c0300b002859a20ecc3si8168925pjb.138.2023.11.27.14.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:22:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7E8C080A73D6; Mon, 27 Nov 2023 14:22:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234107AbjK0WWY (ORCPT + 99 others); Mon, 27 Nov 2023 17:22:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233826AbjK0WWI (ORCPT ); Mon, 27 Nov 2023 17:22:08 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C05A4C18; Mon, 27 Nov 2023 14:19:21 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7jwg-006mxz-G5; Mon, 27 Nov 2023 23:19:14 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7jwg-000kAS-0o; Mon, 27 Nov 2023 23:19:14 +0100 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, andreas@kemnade.info, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: Conor Dooley Subject: [PATCH v2 1/6] dt-bindings: mfd: ti,twl: Document system-power-controller Date: Mon, 27 Nov 2023 23:19:02 +0100 Message-Id: <20231127221907.177442-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127221907.177442-1-andreas@kemnade.info> References: <20231127221907.177442-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:22:36 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783757545466938399 X-GMAIL-MSGID: 1783757545466938399 Add system-power-controller property because these chips can power off the device. Signed-off-by: Andreas Kemnade Acked-by: Conor Dooley --- Documentation/devicetree/bindings/mfd/ti,twl.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/ti,twl.yaml b/Documentation/devicetree/bindings/mfd/ti,twl.yaml index c04d57ba22b49..52ed228fb1e7e 100644 --- a/Documentation/devicetree/bindings/mfd/ti,twl.yaml +++ b/Documentation/devicetree/bindings/mfd/ti,twl.yaml @@ -34,6 +34,8 @@ properties: interrupt-controller: true + system-power-controller: true + "#interrupt-cells": const: 1 From patchwork Mon Nov 27 22:19:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 170479 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3505512vqx; Mon, 27 Nov 2023 14:22:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/Cl5ggnKobshjPS80mJUjNd2optgOPFSTT0MdVRjWSXRofFX5342lVJirhfX9v6BU/AIe X-Received: by 2002:a17:903:451:b0:1cf:59b7:b035 with SMTP id iw17-20020a170903045100b001cf59b7b035mr12809766plb.21.1701123766148; Mon, 27 Nov 2023 14:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123766; cv=none; d=google.com; s=arc-20160816; b=MxWJH9CvinlKxe3aWAFpZvRRkW/exgjdf6zUlpMlQIG3f0ki+whLrEfGWApMZ7wd+B QTrVsaSof2hH0E6pxZVpxR0CNWlbWii2KkQAOXW84mDKoThe0w8x+/kvS9t5A66De79c LJPN6Xbel9c7EdQqlqHsg7pwTd9X54oFgWtOqDUk6FUkr6KJulN/LQiWKNvwY/j3ziif 1MZ2P3mi/OElCib41Rtc6WSumYYIb7xm0VbIvaxGFfEcgnFcBm+V8NS82KPY/+XP9uqj X8JQaGuLvchLDuBS5AePgjsbxMYOnPFsmHUFjRLYNhI2J5YRmQZ1mjvcdXvoP+8sOBJM vsIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=D4A0tC1iUu6aGA2hB2ve2lQldaElqwWpU6PqjR0KL84=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=zweCCw90DGuJzRRDgM3yJvw1i+CalzItOz4P0na+keltcbLaMnVZ3lv8fX96W5twtj 5Fa4jbbtazH7mOXFrJggjfZg2yC2MUlP4Xxm5BLWZgBeQy5A7t5XXHh6yUvuH8bA+38R dQJzq8fy1THbluaYdxBMlD/akD8tOMjVL6VWoOQlc+gzB7bvto2ApHJ/AHmqqtT0AtlI 96RI+8dTjOblY0L0MkweTIOQlj3UYqBE2rdE4Y7Bk4Ot6m1iFv/S8eCsM5BLz3eFPSDO OJfpLx6APyhxWAoNE+2E7J7QjftijH/4rsmz2+fPP5zksOTRIIcg+O/Etnlnjttg7EsE MrQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j18-20020a170902da9200b001cf7c82c00asi11198035plx.499.2023.11.27.14.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:22:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D75C080A73E1; Mon, 27 Nov 2023 14:22:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234360AbjK0WWc (ORCPT + 99 others); Mon, 27 Nov 2023 17:22:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233800AbjK0WWI (ORCPT ); Mon, 27 Nov 2023 17:22:08 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F834C25; Mon, 27 Nov 2023 14:19:22 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7jwg-006my1-Ra; Mon, 27 Nov 2023 23:19:14 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7jwg-000kAX-1y; Mon, 27 Nov 2023 23:19:14 +0100 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, andreas@kemnade.info, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 2/6] twl-core: add power off implementation for twl603x Date: Mon, 27 Nov 2023 23:19:03 +0100 Message-Id: <20231127221907.177442-3-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127221907.177442-1-andreas@kemnade.info> References: <20231127221907.177442-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:22:45 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783757553832535491 X-GMAIL-MSGID: 1783757553832535491 If the system-power-controller property is there, enable power off. Implementation is based on a Linux v3.0 vendor kernel. Signed-off-by: Andreas Kemnade --- drivers/mfd/twl-core.c | 34 ++++++++++++++++++++++++++++++++++ include/linux/mfd/twl.h | 1 + 2 files changed, 35 insertions(+) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 6e384a79e3418..54482d5d8888b 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -687,6 +687,31 @@ static void twl_remove(struct i2c_client *client) twl_priv->ready = false; } +static void twl6030_power_off(void) +{ +#define APP_DEVOFF (1<<0) +#define CON_DEVOFF (1<<1) +#define MOD_DEVOFF (1<<2) + + int err; + u8 val; + + err = twl_i2c_read_u8(TWL_MODULE_PM_MASTER, &val, + TWL6030_PHOENIX_DEV_ON); + if (err) { + pr_err("I2C error %d reading PHOENIX_DEV_ON\n", err); + return; + } + + val |= APP_DEVOFF | CON_DEVOFF | MOD_DEVOFF; + + err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val, + TWL6030_PHOENIX_DEV_ON); + if (err) + pr_err("TWL6030 Unable to power off\n"); +} + + static struct of_dev_auxdata twl_auxdata_lookup[] = { OF_DEV_AUXDATA("ti,twl4030-gpio", 0, "twl4030-gpio", NULL), { /* sentinel */ }, @@ -852,6 +877,15 @@ twl_probe(struct i2c_client *client) goto free; } + if (twl_class_is_6030()) { + if (of_device_is_system_power_controller(client->dev.of_node)) { + if (!pm_power_off) + pm_power_off = twl6030_power_off; + else + dev_warn(&client->dev, "Poweroff callback already assigned\n"); + } + } + status = of_platform_populate(node, NULL, twl_auxdata_lookup, &client->dev); diff --git a/include/linux/mfd/twl.h b/include/linux/mfd/twl.h index c062d91a67d92..85dc406173dba 100644 --- a/include/linux/mfd/twl.h +++ b/include/linux/mfd/twl.h @@ -461,6 +461,7 @@ static inline int twl6030_mmc_card_detect(struct device *dev, int slot) #define TWL4030_PM_MASTER_GLOBAL_TST 0xb6 +#define TWL6030_PHOENIX_DEV_ON 0x06 /*----------------------------------------------------------------------*/ /* Power bus message definitions */ From patchwork Mon Nov 27 22:19:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 170482 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3505655vqx; Mon, 27 Nov 2023 14:23:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKWoV+qnOp5D1WVpe84F3TXdQG+rInKZNny2DYgcqZ0ITI+NkSNBRlYTwvxnC74Sy9gLbG X-Received: by 2002:a17:90b:4f8e:b0:27c:f1ca:f8a6 with SMTP id qe14-20020a17090b4f8e00b0027cf1caf8a6mr15419311pjb.30.1701123782982; Mon, 27 Nov 2023 14:23:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123782; cv=none; d=google.com; s=arc-20160816; b=c8hO8M9NmoixHIaq9f7Oe50QBi/diqghZ0cOgxfijXI0sEuMPVZRrKAQ3MZSI0WWY5 mTV7hc/ph/T4x0cMFPIKfQWHmrPKM4jEs4gnqHc8dvjGj7c7PE+oDo8wTTo/713GhkSy r0BCA+pozNtFzSmpwt6LAylf6OE4JgzYEqkiKz+W8BKlTetTOLpNruRT5F5V9ODqgfB2 W1RLQwrGlBz11S+LFKQtcB8yx/Fziq33A3Qycp3+l23L9U0AmpIHfO+frsycK4jdTlop FiCNKBL/06zdz8lOiXsCA8qtQW8FqqFvmaaPcjiVERB4a2DVxxkKS45Z4aRMMPC0Wdio UNOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=zPsIwUpBhwVaLNmV2r9TFDOL0/rs4Lot4aYnpRGNYyA=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=hZk11tQJv7BG66Y8KBjMiWq6vY1yWQN7Pb6hlF6Lb786QCycKNyVf0PhFlnuBZlc6O qM2IPgfy3+3t3W6FTwzL0ZbguUAIF0fHrHXDR0v17RrA9qh5SUJ6MXTUuuZqeIpWCgHJ WEaCUEUd3NU0MpyhwBWdXMlTxohQoaGYdVOk8exKnOmBJFw9UoMPTNvLu93oseYurAQ7 6d12tgFfIAsH5lYm6VGEbZQ0DdTQfFHLWnxMJQvoKXI0hFBiWzk5UbSPpe4Ql0JkarI2 swHvVZnu6bwrQNFwWSMxHvHuspGFwyNJmrY56odHh/+rlg/WPAcUccKyDszDXgmhCSQL +xJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id v11-20020a17090a898b00b002852518dc8dsi10480240pjn.43.2023.11.27.14.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:23:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E22428097283; Mon, 27 Nov 2023 14:22:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234107AbjK0WWh (ORCPT + 99 others); Mon, 27 Nov 2023 17:22:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233953AbjK0WWI (ORCPT ); Mon, 27 Nov 2023 17:22:08 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8C34EC3; Mon, 27 Nov 2023 14:19:23 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7jwh-006myF-4h; Mon, 27 Nov 2023 23:19:15 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7jwg-000kAb-2s; Mon, 27 Nov 2023 23:19:14 +0100 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, andreas@kemnade.info, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 3/6] ARM: dts: omap-embt2ws: system-power-controller for bt200 Date: Mon, 27 Nov 2023 23:19:04 +0100 Message-Id: <20231127221907.177442-4-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127221907.177442-1-andreas@kemnade.info> References: <20231127221907.177442-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:22:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783757571929647120 X-GMAIL-MSGID: 1783757571929647120 Configure the TWL6032 as system power controller to let the device power off. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts index 4e267b259ebf0..bb2e9544723c3 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -215,6 +215,7 @@ twl: pmic@48 { interrupts = ; /* IRQ_SYS_1N cascaded to gic */ interrupt-controller; #interrupt-cells = <1>; + system-power-controller; rtc { compatible = "ti,twl4030-rtc"; From patchwork Mon Nov 27 22:19:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 170481 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3505557vqx; Mon, 27 Nov 2023 14:22:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2TYOaiCcoFpkhINFDw2qPOrcKp1nhCgX3gS9C2/Y8ddu/ucDvfSAkJTkqnssCVBgvcVYf X-Received: by 2002:a17:90b:1005:b0:285:940c:5d8a with SMTP id gm5-20020a17090b100500b00285940c5d8amr15751539pjb.17.1701123770829; Mon, 27 Nov 2023 14:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123770; cv=none; d=google.com; s=arc-20160816; b=ywqBCghHFKP0VuQOJEF5svRmnmSIXIl4iWfLzRHM7hfv3ppYSvPW8NYYLACZAWn41D tbiAczGJPulucdwfo3G+vOWepvy1MyPl8OTgLO2ZCt13bbEzff7xVGtx2T1uVUlr7fPq ZdymSLfA5n08oT8JJEqC8cAIkkyQo/DmRKn3ue68oWkKrW50ctZIj5+VyJTe4ud9JvSw +AKAgzNyluYBVxXQkOac8wieUUuFniFyl9D1Www+6NaxMTx34X/mXCf1uBB0TzWa/s8J hS2TgWBvFPYUa3885Ta5VQtedW+5xv1JIEfb7lYHGbVX2ZNCf4YmSpXz2vaiCejURzn4 I3tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=a89o6bX8GlKda8ggAeuclGq0WwOCA8K95wZOP4xrmIM=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=B9/0riZ0akqA+KLRGMstGGR/v3t8k4iMOMYE487IqR2nrQM/AjrwIZ2UF1VDrABTMz /hvHd/XUaaCeCcju2JqW1pMFOTcyW24XbDbj8Ggvj33vHa08GnestuQhIEb3mcvb+bF0 dho75/RyoCFXoUiy9ifE6Fh03tVffJC7hn+dICjByIzWy4yOZKQlZm1mb38vyoZk19EP tT3TeeahY6J89oaXkebhCyMtR3NcJNEih2FOHy0Bxoah3+psvs0W0iiLR0YW+5W3e+l7 q9ZWrDVqUhugawj7ELmw4shLG7HLV/oh/k5ncof4iBedI4ZhOleaFk7e7bVMCyH19AXK MnpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id o11-20020a17090ad24b00b0028515bd32a2si11029510pjw.81.2023.11.27.14.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:22:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D04948098422; Mon, 27 Nov 2023 14:22:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234404AbjK0WWd (ORCPT + 99 others); Mon, 27 Nov 2023 17:22:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233937AbjK0WWI (ORCPT ); Mon, 27 Nov 2023 17:22:08 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D16273E; Mon, 27 Nov 2023 14:19:23 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7jwh-006myN-GI; Mon, 27 Nov 2023 23:19:15 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7jwh-000kAh-0j; Mon, 27 Nov 2023 23:19:15 +0100 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, andreas@kemnade.info, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 4/6] ARM: dts: omap4-panda-common: Enable powering off the device Date: Mon, 27 Nov 2023 23:19:05 +0100 Message-Id: <20231127221907.177442-5-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127221907.177442-1-andreas@kemnade.info> References: <20231127221907.177442-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:22:45 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783757558755014679 X-GMAIL-MSGID: 1783757558755014679 As the TWL6030 chip is the main power controller here, declare it as system-power-controller Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/ti/omap/omap4-panda-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ti/omap/omap4-panda-common.dtsi b/arch/arm/boot/dts/ti/omap/omap4-panda-common.dtsi index f528511c2537b..97706d6296a68 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-panda-common.dtsi +++ b/arch/arm/boot/dts/ti/omap/omap4-panda-common.dtsi @@ -408,6 +408,7 @@ twl: twl@48 { reg = <0x48>; /* IRQ# = 7 */ interrupts = ; /* IRQ_SYS_1N cascaded to gic */ + system-power-controller; }; twl6040: twl@4b { From patchwork Mon Nov 27 22:19:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 170480 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3505559vqx; Mon, 27 Nov 2023 14:22:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcXX5L2z5W3AKzrEMzbAehfJd3guDpyXrsEGER+erKLirf3my8g67LM65uvPB9fR80x4yA X-Received: by 2002:a17:90a:c718:b0:27d:1972:136c with SMTP id o24-20020a17090ac71800b0027d1972136cmr15429299pjt.38.1701123770914; Mon, 27 Nov 2023 14:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123770; cv=none; d=google.com; s=arc-20160816; b=P0rggQignBz/MpvHI9MrtlFpXX9/T7kTxpjNxCr8ffpNL+wlYi/yoDR7WKxb0c6ehl rUbFwAfU6XMi7YpHBkOYzabKfR4uA9nbOcYCXbALwURvdHAHTM/ksgq6bYDYBd9gX5l2 Qvr4mjyOgYNLwhgcPQ008a8P4yNmCVWVJj8O+Qk4CTJNesaOIKkXXqfQa+I964VWEzZK Y7pTOTmFRx9c1a8DwdpIU4bYJTIe+8kvw5e1gJVPEz2ags49bScNV9B9dk1tCYpZZXsU 9vhliZex7g5Mno2JaUbt7ouh9JFX4gKmxhEpL5wXdhMKU0r/kc+cxtKeXuknN8HRab54 KoQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=dHlD70RCHnJ7Q8UACG3DebnglQVd5G72KV1+Qjw76zs=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=Ktt6VlPgZt9zuTsLZ1ptJPLoUtoIaudFXmZACgwCIiA+7yhWYTNctHRm5BkjwKXLlf xNJgZUbL12wxUwd9XEYmWSbA85zrJ+IFoqSjM0r139nwSZ6ya9oR0exVFiizcX9Im9j+ xO1w01f+gx5NiCm8082pOLdu1lI71wyvTuYVoGJTb3fyV5ubK4xxgHqBFJ5Yb48Jjyxn si5vsQ5tM+aAiEQ/r9Q563d8vpAiylttNYVNMoGNZcDEsQYHzfY2sAMAyWYbakSapCeG bk+ZSMqU1XwKY4XPh5pbzuhsaW7KFI1YV9ep7/7tRI/rNj6GsDsKrWCXUxcdhB88XGWH Icew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p5-20020a17090a2d8500b002850f2ced2csi10733106pjd.113.2023.11.27.14.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:22:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DC0ED80A73D6; Mon, 27 Nov 2023 14:22:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234421AbjK0WWg (ORCPT + 99 others); Mon, 27 Nov 2023 17:22:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233867AbjK0WWI (ORCPT ); Mon, 27 Nov 2023 17:22:08 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E0CA4C27; Mon, 27 Nov 2023 14:19:22 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7jwh-006myV-Sg; Mon, 27 Nov 2023 23:19:15 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7jwh-000kAm-25; Mon, 27 Nov 2023 23:19:15 +0100 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, andreas@kemnade.info, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 5/6] mfd: twl4030-power: accept standard property for power controller Date: Mon, 27 Nov 2023 23:19:06 +0100 Message-Id: <20231127221907.177442-6-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127221907.177442-1-andreas@kemnade.info> References: <20231127221907.177442-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:22:50 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783757559521009721 X-GMAIL-MSGID: 1783757559521009721 Instead of only accepting the ti specific properties accept also the standard property. For uniformity, search in the parent node for the tag. The code for powering of is also isolated from the rest in this file. So it is a pure Linux design decision to put it here. Signed-off-by: Andreas Kemnade --- drivers/mfd/twl4030-power.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index e35b0f788c504..3ef892e63b88f 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c @@ -686,6 +686,9 @@ static bool twl4030_power_use_poweroff(const struct twl4030_power_data *pdata, if (of_property_read_bool(node, "ti,use_poweroff")) return true; + if (of_device_is_system_power_controller(node->parent)) + return true; + return false; } From patchwork Mon Nov 27 22:19:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 170478 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3505490vqx; Mon, 27 Nov 2023 14:22:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRJKXuKwHSbualhJkCd1jWMz7qQtY9OHULjMqpKlZPN2f3zS4+06gp+DT/zWnoO7G5cTOT X-Received: by 2002:aa7:9a8a:0:b0:6c5:d2bd:ad8b with SMTP id x10-20020aa79a8a000000b006c5d2bdad8bmr11718047pfi.31.1701123762541; Mon, 27 Nov 2023 14:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123762; cv=none; d=google.com; s=arc-20160816; b=X07Wjov6TtlQqYuN2zsBIOKpd8pu4v0DTfADZUrYPViLoXyM0Eiqew00Znrnklqb6U jehRw3VtkT0FbxwVUumTdZBsXSD/u6iWMxCh+0w3XQgshKW5jzQ6AQYwrN51ijDKht8I m84hA4snhAa7hiviww2qIpy4NeHm/ncghJ4SpRsLHvGz9UunjnW6kpOzJGCtk+/Jrp00 KSt+amw4cW2yaiC72Ig2UglH+/0E5dlm76J6feUFeXtl7oXfo+oe3cM98MvPy8sjZLuC cOp8/PRlqrPbr9GbfXC8so0xnK+lufO0fe+sWXrS/GOFWemcDdXGccNgvA/3QDGgPV4y 4w4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=vOIZcRNHuH1jDOikezoF5isQ5zLP5jN4uIzFktawim4=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=0BdWReP0XwRrgLSKB+r1mK403a8lRonU/0V4RsnKwXRSHKSBVS6sKKHwGgZgPOnl4f kb7nSxcfPrSEwWEgAc+dHJ9dij6HEZGI241xEs8k3PLt/Qt3Ez3IpZvCuVPaXpHifzk/ GLhb7d9nYQLFfaAac/RxDU9adNjeB6o51TFuQvt+5cFzyaN4LOGKgoG7korF8/mr7VMV C38SSh79uI2PVbyb+O1bHFH+F3/P7FH6bRkObS/RKppXeW6YD8ozEU5ZTt8Nh8l3VBcl wUrpYb3DWgTlt6WbhnVJ+yRQRsdNwUYKIX+lNhht3PpD+hHCeBjpXwCO1bg1JxcukwIK 8sgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j25-20020a63fc19000000b005b64e8336dfsi10388490pgi.604.2023.11.27.14.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:22:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B86EA8097282; Mon, 27 Nov 2023 14:22:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234389AbjK0WW2 (ORCPT + 99 others); Mon, 27 Nov 2023 17:22:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233841AbjK0WWI (ORCPT ); Mon, 27 Nov 2023 17:22:08 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B7204C28; Mon, 27 Nov 2023 14:19:23 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7jwi-006myd-D0; Mon, 27 Nov 2023 23:19:16 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7jwi-000kAr-0T; Mon, 27 Nov 2023 23:19:16 +0100 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, andreas@kemnade.info, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 6/6] ARM: dts: omap: gta04: standardize system-power-controller Date: Mon, 27 Nov 2023 23:19:07 +0100 Message-Id: <20231127221907.177442-7-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127221907.177442-1-andreas@kemnade.info> References: <20231127221907.177442-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:22:38 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783757550278074377 X-GMAIL-MSGID: 1783757550278074377 Replace TI-specific property by generic one. Signed-off-by: Andreas Kemnade --- cannot be applied independently of the other ones, so maybe simply delay it. arch/arm/boot/dts/ti/omap/omap3-gta04.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ti/omap/omap3-gta04.dtsi b/arch/arm/boot/dts/ti/omap/omap3-gta04.dtsi index 3661340009e7a..5001c4ea35658 100644 --- a/arch/arm/boot/dts/ti/omap/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/ti/omap/omap3-gta04.dtsi @@ -476,6 +476,7 @@ twl: twl@48 { reg = <0x48>; interrupts = <7>; /* SYS_NIRQ cascaded to intc */ interrupt-parent = <&intc>; + system-power-controller; clocks = <&hfclk_26m>; clock-names = "fck"; @@ -490,7 +491,6 @@ codec { twl_power: power { compatible = "ti,twl4030-power-idle"; - ti,system-power-controller; }; }; };