From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f38.google.com (mail-pz2-f38.google.com [74.125.228.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3E6A52D2A7 for ; Tue, 29 Sep 2026 14:07:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.38 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790690830; cv=none; b=D0welNh3ejVrzRn1MSAPK5+d6DNu9GgNFEE6GWWH9Z13gOe7ATyICfjUybEviDXSrzg2q2LhsHBJWwbEh8CDfFQfWmn4MRS83uTymzDXBSAUC3pxIr7OX+/uhxmwM67+WtOAdlbR4JOh3KcMQc4kDPOhvEf5a6AvPpybiAwTVjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790690830; c=relaxed/simple; bh=Vmig5rZ+c16r3hkNpOzGu9/REi7dEcyRJZF5KlSxI9A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BfZDu9cvU0mmmTeXaKsL5DqMmGEMxkR9SB5W69VGeMQsFP9uU3077j/SttqyAukh9KiSPQjMTojYQA/1mYNBUoSMzpCH2sK7zUE9ZXSY2VlL7KahhAxDXldax94qkYOqgIGaNHHKhs0jPMxiNqbk+4jzBKLZYasPKIAUq2AwOpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=rutPhvnT; arc=none smtp.client-ip=74.125.228.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rutPhvnT" Received: by mail-pz2-f38.google.com with SMTP id d2e1a72fcca58-883a16b758dso469754b3a.1 for ; Tue, 29 Sep 2026 07:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790690828; x=1791295628; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FDqj1iQwJZUY/2vPDH4xvwzMNQEpOpP9aM8RQ3PhJ9k=; b=rutPhvnTtzYo2v4+APBDe4rDLA4Yy3dmCDd9woN+8CdITqveDJPQx8B2tGt++bQAEC qYYP1lzYCbNEcIUQ4wypxQBx2UbFm9G+6iYYQO6zstWSnP2mW7JCC0zmCKridfJVOQUq vCrO9GxmRgy8uHnbpIGeznFDjdGeDdo8A1S48mpYgFbabNMZj/YmigdjOksaBCQbYmr4 S9RI5yFYVcGXHeuY0PlKie8oIWXHlyJCgElP0fR4DUluEkq2wsTm76xVFJbxVk1vSwaJ Y6BAbEsPzy1H2P4/LBoac3LLhFlaLs70mmznXEpPC8W/WsVM9envKr8wICiFauPIZ+/B XHTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790690828; x=1791295628; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=FDqj1iQwJZUY/2vPDH4xvwzMNQEpOpP9aM8RQ3PhJ9k=; b=xusEqD+ZtXipLO7SOlfNC6T3TYb90Ao1I93k6nvUXehPpDby4FaODv7IT9g+2rCXEn g2MxHKtQ1f/oQknbJx5I1CGK+WnCcFkQ1jnuunVLNmtWC8qx6d445Sdo4tEvJWFm3jjf i/wXIB+cwv5gAJlcpSP85J1f4ZH8TL/YHfKEV41ikpYktocM1HfdWGO3RRkA+5XxA2CO B+dfKzgPESeisBLjkM6pMooRbb7ofY+PazbEuWFCQujaNbwkxH7KxZMsV/hJ6GVLzOXE A9BZH3j9K9FpP0XskeH6LHT6j+dtlkFkrfeTOfiXggPz751ceWCxyvwb5DoeJ1Js83S6 o7sg== X-Forwarded-Encrypted: i=1; AKwUvBxK57lxbtsj8WHunRpBjTqgEEanN3qco4TlaPPCrBusQLQY3NPAdXYzS2K4DJWK2sZQse3OaeQJDXXX@vger.kernel.org X-Gm-Message-State: AFuF++lhQdpQIRGg2HXqV2E6NERxNY1h+NN7/lK40lVZ4V4/E0J5yKM1 +gn/viXJxKFVs1Rr1D0vE7J3tG8mdXyRoyxU4Qds98LLe1yFjLpLYlq4 X-Gm-Gg: AYBFou2xmU1++cxzqI/6OcHZLzSTaTDFDLDOWDP1ukYUGothRHPuZyzfX8d/DUIOOVu vIhCxDmKhO21sRQsvO6LQgzD8bHA4jVYNbCUhZmtTT5yH0EmVGZvimKyrn/mP2wdbXU+VE9ybuS ulu7AG3ib2TvGj6Kz23PPM3rI5xrUV9I4YTelCU0LdT+HhFxXFuAUbIIpj5T7cfApVTd/IkAGhh 5lRqb7URGjEG0A1ejyZ7/fqJZMh4IFJTgEU0wnvePaRwxoMu+WZI8iEPFnVKLWYM+r7dp8LBE42 n/yTmtzKKdc5YIiuHDZTH8QbZiiXN5d5modJq8Mkh1WwBuF3B0vpn/Vkg0rfU5mF59/o90FBij1 7aqWLvOsc27CBtn2U+85yLv2BcV7rv2pnW+VX2VZ9NQ19zjHGjrCbDrr7LmcvVGpBDgq7KVUV50 jt2191O7bPDWsORXq41R6VUsGQJgmcR8qf3HJdOCoSq3OM1cq4eg7EmAdT2nljdGtf+fvOIxlJ/ tpEK4vZFtE= X-Received: by 2002:a05:6a21:4d02:b0:3de:5897:ef9d with SMTP id adf61e73a8af0-3de7c889886mr2099166637.0.1790690828140; Tue, 29 Sep 2026 07:07:08 -0700 (PDT) Received: from Aaron-M6 ([188.253.120.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cc7b0f4ab05sm3526989a12.29.2026.09.29.07.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 07:07:07 -0700 (PDT) From: Yaozhong Li To: Lee Jones Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Chris Zhong , Zhang Qing , mfd@lists.linux.dev, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yaozhong Li Subject: [RFC PATCH v3 1/3] dt-bindings: mfd: rk808: add board level power hold GPIOs Date: Tue, 29 Sep 2026 22:06:46 +0800 Message-ID: <20260929140649.55-2-yaozhonguwl@gmail.com> X-Mailer: git-send-email 2.55.0.windows.3 In-Reply-To: <20260929140649.55-1-yaozhonguwl@gmail.com> References: <20260929140649.55-1-yaozhonguwl@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some boards route "power hold" lines from the SoC into the board's power circuitry. Those lines have to be held asserted while the system is running and released before the PMIC shutdown request is written, otherwise the rails can drop and come back up instead of staying off. Add power-hold-gpios to describe those lines and power-hold-delay-ms for the settle time. The array is bounded at two entries. Firefly's vendor kernel handles exactly two such lines, pmic,hold-gpio and pmic,stby-gpio, and its board files use one or both of them. The lines are released from the PMIC's power-off path, so they are only meaningful when the PMIC is the system power controller. Require that, accepting both the current and the deprecated spelling of the property. Assisted-by: LLM Signed-off-by: Yaozhong Li --- .../bindings/mfd/rockchip,rk808.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml index 50dfffa..9120222 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml @@ -43,6 +43,24 @@ properties: system-power-controller: true + power-hold-gpios: + minItems: 1 + maxItems: 2 + description: + Board level power hold lines driven by the SoC. They have to be held + asserted while the system is running and released before the PMIC + shutdown request is written, otherwise the rails can drop and come + back up instead of staying off. Only meaningful when this PMIC is the + system power controller, through either system-power-controller or + the deprecated rockchip,system-power-controller, as the lines are + released as part of its power-off path. + + power-hold-delay-ms: + default: 0 + description: + Time to wait after releasing power-hold-gpios before the shutdown + request is written, to let the lines settle. + wakeup-source: type: boolean description: @@ -113,6 +131,15 @@ properties: unevaluatedProperties: false unevaluatedProperties: false +dependencies: + power-hold-delay-ms: [ power-hold-gpios ] + +dependentSchemas: + power-hold-gpios: + anyOf: + - required: [ system-power-controller ] + - required: [ 'rockchip,system-power-controller' ] + required: - compatible - reg -- 2.55.0.windows.3