Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2000782lqz; Tue, 2 Apr 2024 04:33:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhLt/hloaIkGuLWXSYnzDqwOF/hesAbM6Ny1kaQSfqkIfAMf3U66vYqQD9Dlz9xzWOpGSN3QsoDjaXU0HEbk9m3IubXLk1LkShCk8NZw== X-Google-Smtp-Source: AGHT+IGzk/WL5HkpxaBavxLixO8B766Bc+5Soe7FYC82iaviUaefSpPiDcpLCSslv49klI2c5GI7 X-Received: by 2002:a17:903:2408:b0:1e0:e6b0:b770 with SMTP id e8-20020a170903240800b001e0e6b0b770mr17608165plo.69.1712057591181; Tue, 02 Apr 2024 04:33:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712057591; cv=pass; d=google.com; s=arc-20160816; b=0lbh929Lp7DEUC93evUm3I9Z2NZwtxGTKSh4SL7O0cqU/glsubZAGF76fVH7emJ53c ESDsY+pAFw3GymGvmqrPv3AVmxwtrU7zZpTQwNdkEZlmE6t6c9YwuTEs7f/DGqRRl94E rwGy8ixyPAj9C2IavPcOk1ceIiHrxITXVhoiU0aPdGWCGc3v5lVyYoknuSgw4twTOYgw 5IqmJHSuaqNa7ZgscFfBhp7mIY/FHqBw/zgrhQSvb7JkjoqdqG0MG2lFQiFOqv3VIryP x5ZlVhGYZXhkoknPpSdgYgqcrWT+Vkk8c4Tb9f2Ag2nHXAf/P0l9eh1cAFPM2f1EIyvt ARTg== 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:cc:to :from:dkim-signature; bh=9MRqTZ5hji8Z4mdkDWZpaDS9fQ1NAcdQnKFC5GgJSMk=; fh=COWw7W7yo9dAMu2I4hSp3bfcgcoPeTZWMvIxswQY1aE=; b=HYfFpra3zbGloLmxqzHO94ch7hy64/9uYwLSDUkQd0h88xzlRmXrCXbri8MIySeOP7 kP0ru49UPHyBFJgM1vxX+gZCNbfOzRQ3pEgV+VbVet6sHJDbGj3mX66adWqWHf/coojb aPr8l+Q1WDrmHJO/rO3rmwq+/WLaLMiTPWdD1CslJsYSc/Y8GMnTQY6hTetd8YJowGq2 7Acc76nE/k2yixEPpBZhMyQY46aKehe7CbE7NfNUI3iIP5UU/gkOsAWRcGRcc4iTTy+t XcGhMxuL+zWdTRJXR6uKQoPg86KTctXoRdzr8wCH+9JfQJG1EXxxGCmYugKiOI/8yK45 1CYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=2D060gjv; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-127842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127842-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h12-20020a170902f54c00b001dffbdeaae3si11291988plf.262.2024.04.02.04.33.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 04:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=2D060gjv; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-127842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127842-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 05ABFB25567 for ; Tue, 2 Apr 2024 11:17:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DE596E602; Tue, 2 Apr 2024 11:17:21 +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="2D060gjv" Received: from mail2.andi.de1.cc (vmd64148.contaboserver.net [161.97.139.27]) (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 0570C627FC; Tue, 2 Apr 2024 11:17:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.97.139.27 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712056640; cv=none; b=YU5NmI+9zoJgY+k2uUXV+6yWAkl5VvORUm4ZNC9FLPz9Qh7duM245Kexjra3TSWI/l6ZDlPhLWffE11d6bhEIdktTQkTOYLV7LS5FwfDDI+91Kp+jiLuv9m5TsK0u0CM53R+ik874mMtsCmA7OrjLMGanhN4xNIC3s3qzUy4XwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712056640; c=relaxed/simple; bh=3p55CVrq9iuOG18GVfPuvJM+1XznpjhKC1MOFnxHBco=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Ox/4HIImMobpDTWSjmcH+1HhfaSHi3SbA1s2q7xttT+AsEhjHu/u0kFIyQsBIN83CcydX7YBe5VEPCbHYA/bwssRTQBzft3WELS7BZ9VHRZlb55UhG9F0038UQvXW0OSBa2Ci/sXhDX6M2j01ImF9vATSQZCWaGJhAHdsMjCKqc= 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=2D060gjv; arc=none smtp.client-ip=161.97.139.27 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 Received: from mail.andi.de1.cc ([2a02:c205:3004:2154::1]) by mail2.andi.de1.cc with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rrc8c-003kp9-2C; Tue, 02 Apr 2024 13:17:10 +0200 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:Cc:To:From:Sender:Reply-To: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=9MRqTZ5hji8Z4mdkDWZpaDS9fQ1NAcdQnKFC5GgJSMk=; b=2D060gjvyytlYEzcptGZF4jdhp lTTTPssfZGO5HNXgULHUz8gfq43BQXCY4KbDZyldTf4koDAbTdfTfhnbjfeNbO09UACdgNCBb3c7Y Nv2llr8tqzmOR97wYY+yIsjG/xNIcq9dF9COHs9wba0BfbjBNi+AX2kC8ex08ODknXQvs3+HYSMok gk0cLDCQ6PtPKbPHaD1SvE89R+Ghs+FAStwQepfKaRG4RiohzFriS+shYS2ZxiI6hZV0+6PRftGD6 VisRFDbZUsNNC23zDwwFm/dzaPh8OEXLYU+5Glens0hekwaMQjIUGP1ADc+3boEUABh1WhxAlWTC1 Q46DuIng==; Received: from p2003010777026a001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7702:6a00: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.96) (envelope-from ) id 1rrc8b-000IAF-15; Tue, 02 Apr 2024 13:17:09 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1rrc8b-0024W8-00; Tue, 02 Apr 2024 13:17:09 +0200 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mazziesaccount@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH v3 0/2] mfd: rohm-bd71828: Add power off Date: Tue, 2 Apr 2024 13:16:58 +0200 Message-Id: <20240402111700.494004-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 power off functionality. Marked as RFC because of magic numbers without a good source and strange delays. The only information source is a vendor kernel. Changes in v3: - define for poweroff bit - rmw operation to set only that bit Changes in v2: - style corrections - remove unnecessary writes and delays - correctly unregister handler Andreas Kemnade (2): dt-bindings: mfd: Add ROHM BD71828 system-power-controller property mfd: rohm-bd71828: Add power off functionality .../bindings/mfd/rohm,bd71828-pmic.yaml | 2 ++ drivers/mfd/rohm-bd71828.c | 36 ++++++++++++++++++- include/linux/mfd/rohm-bd71828.h | 3 ++ 3 files changed, 40 insertions(+), 1 deletion(-) -- 2.39.2