Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp107203rdb; Sat, 17 Feb 2024 00:21:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW2Y92iJ7PO0G9HwIKXFCaWbDWp6WAYgzUQUPHwcE2QLmiNb8aLQSmglYbhTKEmkFxm5vqfqkFh+QRkAPhaZDg3Ru9P4D2oNJWFUOpGPw== X-Google-Smtp-Source: AGHT+IEOF7yXx1YHPisRkXVHPMNyB3Mesk8wVMQEZ+GzHGpoytOZvnxnauy22gRH0a1BGOLJxxUW X-Received: by 2002:a17:906:a298:b0:a3d:8366:e31f with SMTP id i24-20020a170906a29800b00a3d8366e31fmr4512798ejz.42.1708158089680; Sat, 17 Feb 2024 00:21:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708158089; cv=pass; d=google.com; s=arc-20160816; b=yI5cv4ToVz6AUgc3nySN5GLMHkF8JlXjrzPygDth1uqYgaednY3tSPyNX4CcDMKSlL seDFz8xLBlaKISdp99WTZfowDDPVHcxTaMWFc74hPRvjTB57KrQYOhoqlHK8iWRxdA9C EJ5DdtAHMFb0R+5HzKYaRdzh/Op6+oG+Yk155Y+iXGMK0APwawe/pdpHdTfxnUG/h3ni B6k+DWPuwy1oUOE6jsQ19gUBB07OPfj3Aj/GS46tsZZCHPtanXX9umJHrP9+p0ks41zu is+ik7Wn/Kfa/BdKAQSC50+6YXqzpn043XJdHoxgsHYI4oEYy9OGuy85zuc4xBTV9cZB JzwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=0H8yS7B9ijf/Bav3Ome14xQsniFW8pPuUVlXJhECckA=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=WX460jO0i98MpSFgNHEmWYPQ8ATtuACBRq9P3tfZ1j4zPaYx+rTVhVLsY78p5kLwdw sr1m78gL42tiWIq5pBeGLTOg+wsLxYDv1HlmsXslxeTVsLeJsKzG49DeuMnajuwHC5e1 E7xoA4htDe/uM2pdEM7EKx3Wguf4SB16vNa8Rl/aTxI3T+5Jmlq7qnQg4zpWIt6+Go3D uZI4jE2ScO2m/AwiXU4vgJs14SJwSZPAnDnVDdZN/ggDpwlPXFjCSjmLP1kOPm2v6xKx 73QMgubi2vg2X0FeUrz4FC0TELR4jWJhwd6GdRe3LB3iA+f95EA0ZCB5Kekw4IzKovFI LONg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="hKR3/Yhk"; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-69747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69747-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qw37-20020a1709066a2500b00a3d1e75f8a1si705131ejc.6.2024.02.17.00.21.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 00:21:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="hKR3/Yhk"; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-69747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69747-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6E2EF1F21AE6 for ; Sat, 17 Feb 2024 08:21:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9ED2E1DFFB; Sat, 17 Feb 2024 08:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="hKR3/Yhk" Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61E631D526; Sat, 17 Feb 2024 08:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708158049; cv=none; b=VAqPtnYtCZOL5XR9wonNXp6u0Eq5mDPh+Y4NYnCcKOVcl/uehFdqucLs16myrIDvmpF5kZUYdSh+6/zEyoWBvnBigGO1QAicN2jIGb0fTUDe6fnZ0chorEKH5crYYA7IuZMBPWK7UjVwYRr7kY1XTYwYtlnWf1FFp8f/1GURrCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708158049; c=relaxed/simple; bh=78DJpSgRADSQ8xQ51c9xtgYjH6BRPB5WjDqxTZCNphY=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=JoZlMenoTgWYwz6pb5WKyNLkGGtmPy0R4VDgK67nNI+zBq/CxMRH4l7HLQEvOVGb51wDOcEuG4fvbo4JQtkBPszNa8k1G4Z+fOBC5bh52T8cT+LIKvvOXyUyQsPbRl851njJwcv+lTrPqBNj6oWDw1Z2RyKhhYrQ4X+VrAutzeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=hKR3/Yhk; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0H8yS7B9ijf/Bav3Ome14xQsniFW8pPuUVlXJhECckA=; b=hKR3/YhkMhJeF4jgVsEzADhqba /ODX3nXaqmPdPftLmbKNy6ic/PS6oDqjxV0B3p0m9ixDBHbfDtseK77Xk3rovxVqo6kaiS6Lm8MU5 DH8BQ2BqRF3hX3ilbM3pk+3bJBk+gWXMh2sNt5gde9c65zkRueqHk4Uc//fvio7MBy/L3ys1Lt+Zo KC8SmV3yUB8l7+3pYRK0dpftLXjs0gTi7NIxQqWf8N64igdju18WyV8AkpoB2ofo7wp4ph8jt66EM YOl4IXyqLRdsSaIPxeaSPOx6QNio7FpAQKZBoOYjlBJ19QU7k8F7xcckL1uq9TUbSo+iheHgvG3kJ 4ejKNJ3Q==; Received: from p2003010777002c001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:2c00: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 1rbFvz-009WA0-GB; Sat, 17 Feb 2024 09:20:31 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1rbFvy-00DabZ-0p; Sat, 17 Feb 2024 09:20:30 +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 v4 0/5] mfd: twl: system-power-controller Date: Sat, 17 Feb 2024 09:20:02 +0100 Message-Id: <20240217082007.3238948-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add system-power-controller property in the bindings and the corresponding implementation and use it where appropriate. Not all cases are hit yet, there has probably to be a separate series after going through with a brush. Changes in v4: - fix spelling/grammar - drop twl4030 dts cleanup, it would need an IB or be postponed till next release Changes in v3: - twl-core: - remove repetitive verbose error messages - placed constants at top part of function - minor cleanups Changes in v2: - add A-By - fix compiler warning Andreas Kemnade (5): dt-bindings: mfd: ti,twl: Document system-power-controller twl-core: add power off implementation for twl603x ARM: dts: omap-embt2ws: system-power-controller for bt200 ARM: dts: omap4-panda-common: Enable powering off the device mfd: twl4030-power: accept standard property for power controller .../devicetree/bindings/mfd/ti,twl.yaml | 2 ++ .../boot/dts/ti/omap/omap4-epson-embt2ws.dts | 1 + .../boot/dts/ti/omap/omap4-panda-common.dtsi | 1 + drivers/mfd/twl-core.c | 28 +++++++++++++++++++ drivers/mfd/twl4030-power.c | 3 ++ include/linux/mfd/twl.h | 1 + 6 files changed, 36 insertions(+) -- 2.39.2