From patchwork Tue Nov 28 15:34:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Richard X-Patchwork-Id: 13471366 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 435F3C4167B for ; Tue, 28 Nov 2023 15:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=s98ein8AtjQFLLAwGgcNNhdKtnaghMWwVIbULtJJIdE=; b=QQoQD/z8QjuRAA qfCzgnPZtzqfuorbd5qvjOO3Z3Ck21g7Op9nCSc2r0bTuYP1wZA4gpsp0XlGAG/VIcbcPxv16C8Ub PnDxj5OaTr7epI6W7+TydD9yFG3QDG10Gr90WKmWECnJVE8xjqljpexlV/RuDACvLd5daY2vWAGXW wFx+csZbyOciHG3UtIsUdSWVNkORhZsla0mVGFGCtQiLPtyp83oMuCs6FkFa13OApZ2tonUAllMQE z+NW2GLEYE80tgXZ40n9uOq7symRrThIXVGnLfAeLouoteE+VQfH1wzd9SjMSpx6rHK6RkIloueCy jN7viLfBih7t5pVFchIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r807v-005hQl-1Q; Tue, 28 Nov 2023 15:35:55 +0000 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r807r-005hOq-1Z for linux-arm-kernel@lists.infradead.org; Tue, 28 Nov 2023 15:35:53 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 28365FF803; Tue, 28 Nov 2023 15:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701185746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wheDqiE2a9OZr8JN6HhD16I1O5hsDNL5yX5S9DFZ7RQ=; b=jW5PFFRFM3QHLzqGw2eP/vuhSY/2H2WnsX80le7uM3aFzdaPasOGKMZgaXRnRpg6HxF9KS dPnktG+RUba8i95BML29r6+xhH9dY/rgmO7IINtPJsklbQgDHXKmN7VoQQEuA8j/fe+Qun k18ByByEdOzlQSvn9h/HWKFQgYQdr3GZu/bAX/Ma/UHmffHAvdqOx3Ng5N00Lrgd1npuem ZJoWIKv12Ep8Iqqb7Ob8Q8pUrvTKaoWWm0rm0344ox0KT3OnkjwNdY0kC4b7XVpbrgAH39 PUPjFOugk3XfkPz6GGUD7xSoe7vm4eUO+zKHdkbDnb7L41h/dv6TlJbu06YBbA== From: Thomas Richard Subject: [PATCH 0/3] pinctrl: pinctrl-single: fix suspend/resume on j7200 Date: Tue, 28 Nov 2023 16:34:58 +0100 Message-Id: <20231128-j7200-pinctrl-s2r-v1-0-704e7dc24460@bootlin.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKIIZmUC/x3N0QrCMAyF4VcZuTbQRobWVxEv2iy6iNSRiAhj7 77Wy+/Az1nBxVQcLsMKJl91fdeGeBiA51wfgjo1AwU6xkhnfJ4oBFy08sde6GSYRi6J45hyEmh dyS5YLFeee9nZ58Xkrr//1fW2bTsVmSuPegAAAA== To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tony Lindgren , Haojian Zhuang , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, theo.lebrun@bootlin.com, u-kumar1@ti.com, Thomas Richard X-Mailer: b4 0.12.0 X-GND-Sasl: thomas.richard@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231128_073551_855981_50129B6D X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On j7200, during suspend to ram the SoC is powered-off. So the pinctrl contexts are lost. The flag PCS_CONTEXT_LOSS_OFF shall be set to restore the pinctrl contexts. A new compatible (ti,j7200-padconf) was created to enable this flag only for j7200. Signed-off-by: Thomas Richard --- Thomas Richard (3): dt-bindings: pinctrl: pinctrl-single: add ti,j7200-padconf compatible pinctrl: pinctrl-single: add ti,j7200-padconf compatible arm64: dts: ti: k3-j7200: use ti,j7200-padconf compatible .../devicetree/bindings/pinctrl/pinctrl-single.yaml | 1 + arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 8 ++++---- arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 12 ++++++------ drivers/pinctrl/pinctrl-single.c | 5 +++++ 4 files changed, 16 insertions(+), 10 deletions(-) --- base-commit: 2a20795e4274c0d94c14fcb8309f72699e404d99 change-id: 20231128-j7200-pinctrl-s2r-95cb9c159a9e Best regards,