Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3935064rdh; Tue, 28 Nov 2023 07:36:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhdJxSn5cIejLHkz54iMEYoIj80l868eAH7iAkd05j9Je44jpIlnfBZBkhnRCaHoxVk6BC X-Received: by 2002:a05:6a00:2449:b0:6cb:68d7:b163 with SMTP id d9-20020a056a00244900b006cb68d7b163mr14919806pfj.23.1701185770112; Tue, 28 Nov 2023 07:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701185770; cv=none; d=google.com; s=arc-20160816; b=xuETpMYiRWB1unaTgizvZNwyqlEAZJdwxS7mzi/X15PKWYmemOHIneAE05lYMwiYuc jRSCapiyT68zskKkkgqOTGmUI5ViE6axo/zxPmy4WvLQmtTnDBlnA5ev8/XX4CM2SzBc a012/FQVgiOTMgNh+qa2TxcZ8YCnwNGrfoX5e/JckRdr4Wkd64t2RVBGqFHrSGaCS8X5 sMMbiKh0GSg9W1jtypNf4YNmrfMUH+tiitGV5F4ATVETWDVquFh40A/ZggBP2L+floh3 BEhqjuGCbP0YpZxK9EkmoLyXdnS1Giv4SgKprcKw0x7ybR9FyZ3C+OG8Nu+onn2xwKEM xKPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=wheDqiE2a9OZr8JN6HhD16I1O5hsDNL5yX5S9DFZ7RQ=; fh=cXrlZBdcqAHS2orkb5trZUtVebMdNRB/nFuDqPO93AM=; b=nJx+GijTeXsczNXrJAckYDwSh5KC4oHeOuq32W46/ecyyU2PWxaBS/M7lxIVKfxwuG 8fgTua12A2Z7vCHseyhCeSj55PRr0zFkuloU/STXjOmVX3Rj9kaLh9Mu+m9nkVzpg/C0 Og/Sh4RDyVLfZpenrGuE/L+mdj+sr+4toBuGqkX/z9NEJiYI1tBUm58uolLbOWDSnLny SS+Znj51USg3bk0AwzoW9NLaMX8zfeUs4wn1aVQC2kNZWfRCSQ8qA6QyiMzEjeDtjaXF xLHaQGUnGc8wxGZBRsWpOXjZiZ0xW4v7RBcQWFUV1dTMKul8RrBed/uIZHWgl5q+zpiB ovrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jW5PFFRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id z2-20020a63c042000000b005c200f02d9asi12530637pgi.621.2023.11.28.07.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:36:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jW5PFFRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E900E807C577; Tue, 28 Nov 2023 07:36:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346835AbjK1Pfp (ORCPT + 99 others); Tue, 28 Nov 2023 10:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346879AbjK1Pfo (ORCPT ); Tue, 28 Nov 2023 10:35:44 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C989A92; Tue, 28 Nov 2023 07:35:48 -0800 (PST) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 07:36:07 -0800 (PST) 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, -- Thomas Richard