Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1523358rwb; Mon, 7 Nov 2022 02:37:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4aBRdGMBaAm11ohwAquevMeAeEuJtRO81ovQ14KEccc6AwVJL33+BsFJvtVQi7FZXTXhOi X-Received: by 2002:a17:903:451:b0:188:782d:c22 with SMTP id iw17-20020a170903045100b00188782d0c22mr9895525plb.156.1667817475858; Mon, 07 Nov 2022 02:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667817475; cv=none; d=google.com; s=arc-20160816; b=cKKpR367Br6LI57mHA1jCRHVf4r3T+fM4i10BSy/lc2eg2B/z8v1B64WbM5zpSZkku fT/IlqVK1TaRswTCAcdLqeo1p6njS7D2N01xXudyseW4WCjuL+EbwW17N2Krg5YVZl9W lbLgA7wvcVY8q8lgVzZiTnb3uq0T2xeU4PSYojKZWoQ640Nf5l7bjtMQ+jiBqdqklTHd RAZKOrQWnCuYNDCUAGynynZIg661ULDax1ItE+2jaJxWKNr9cAT8Jn9qtC7jK0W4Rl1x fugEiJlaLpp80YUzIPbGCYgLitL9SSk6d6lD406E00VpEPtqsFBOjVPiTYxTkrZY8BoI ZKKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zaNxkXQ1Y4JKbXCKNHnI42Q7eEAv3p2c5wJUZMq4jg0=; b=L91ZmztAjLmsubkMgfj4esEbFAUC4vfE4s0W7ne0JC7ADWkgHe7EUdL372GCiEeqQy PNclYKUdf8rqA6wvL8omnP3IFPtVt915AU4MwStVZ+dxilelSIYECPCoqpIluwfPCagL aTW1xVpEaNunn7I1utsN7FjZUWDJxpo3c5DxWw0NKc3pdVHszvBGPJatqQtaFPYzaVVi OME60m1KBLkXLfZmMH2Jy9mzNVOG8QDRBo93fv/Yh6pFyNqkmcifT8H4owPskR/dqtvk as5ANbVKb2iFzQ+Z21LDrBf+1Wg5p8Hz/D3sI4jq7+3bIEGchwyFXdi5w200T9VpHWDi DIqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=LALeX+CQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a1709026a8900b00187242da09asi9265928plk.265.2022.11.07.02.37.43; Mon, 07 Nov 2022 02:37:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=LALeX+CQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231450AbiKGK3u (ORCPT + 93 others); Mon, 7 Nov 2022 05:29:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbiKGK3s (ORCPT ); Mon, 7 Nov 2022 05:29:48 -0500 Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5683B15FE1 for ; Mon, 7 Nov 2022 02:29:47 -0800 (PST) Received: by mail-vk1-xa30.google.com with SMTP id g16so6293831vkl.11 for ; Mon, 07 Nov 2022 02:29:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zaNxkXQ1Y4JKbXCKNHnI42Q7eEAv3p2c5wJUZMq4jg0=; b=LALeX+CQc6yEAIT60ZcvX38eVOtEox1MCHJCm/0G+Q1qAGru2yWXLRd6QBRUqHcjVw +Icd2aOOOtpj6szG5Y5HbluYDK658QcJ1pC7e8Yd76bRz5goJZxaF4Dy6PNa2Svh5f8E oOZBYeOzAX5bfxbgR0QGPyj0veg25b8GvR/kKsAZ0/q+ymIBotnrmLIPD3Orvvvz1Md1 DWjqcAKNoq39Rm810RCCfBBO0mq6UJR+p7uaer3mD+yBfN19cUYBACUqJoEmsbt5eOXf pe/jtmGnlJL+BV8gkhtpMcJ8sESAPxYe7PhFW0/zCI2oNLv2E3p4C+6atNREHuuZuooP lVaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zaNxkXQ1Y4JKbXCKNHnI42Q7eEAv3p2c5wJUZMq4jg0=; b=3VuXeuEzorVG29EjRNu+iH17zkpMyyqCEJjHgdgdiIQChey+auIUPwyiR7C3hJZqya B7MrtHEKE830LmsaxZkg4mV23s7bjBqywBuCXHEDBJhK7HQo391BwKcfLH/OVBl6BlAY o6PHRZDgdAPVOgyJICgUkx1XqxHn4Y4PDZJ3PBOuYBJ5HM3E/Bbth54wgAJT5QaAan2h 6JJQeGiPF6AMBj6DgmrXSfGKJth7S/Qt6YWRUhQ2ojJkfk4yoYjn6H1wj1mojLT5erKN yN0v2OOjClIR/zKKaseCrVXGgQU6G8ejrl8Lpl3cfhk7qeom8u1+gh80fZQ6lcpW69Yi MUQw== X-Gm-Message-State: ACrzQf0F7kxUTXHfJCR/qpvzFGTJb+A+uLb2gPpaW2HIN0gtnWhvAuGW mdZhGmrxAHrLQfgahygeTfNye+KxlCBai+10BcuMW/DkqGg= X-Received: by 2002:a05:6122:2219:b0:3b8:7fbd:9554 with SMTP id bb25-20020a056122221900b003b87fbd9554mr5383200vkb.27.1667816986458; Mon, 07 Nov 2022 02:29:46 -0800 (PST) MIME-Version: 1.0 References: <20221027130859.1444412-1-shenwei.wang@nxp.com> In-Reply-To: From: Bartosz Golaszewski Date: Mon, 7 Nov 2022 11:29:35 +0100 Message-ID: Subject: Re: [PATCH v4 0/5] gpio: add suspend/resume support for i.mx8x SoCs To: Shenwei Wang Cc: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Linus Walleij , Aisheng Dong , Jacky Bai , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , Peng Fan , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "imx@lists.linux.dev" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 3, 2022 at 11:01 PM Shenwei Wang wrote: > > > > > -----Original Message----- > > Subject: [PATCH v4 0/5] gpio: add suspend/resume support for i.mx8x SoC= s > > > > On i.MX8QM/QXP/DXL SoCs, even a GPIO is selected as the wakeup source, = the > > GPIO block will be powered off when system enters into suspend state. T= his can > > greatly reduce the power consumption of suspend state because the whole > > partition can be shutdown. This is called PAD wakeup feature on i.MX8x > > platform. > > > > This series of patches enable this wakeup feature on i.MX8QM/QXP/DXL > > platforms. > > > > Changes in v4: > > - fixed the format issues reported by Peng Fan. > > - change the return type of mxc_gpio_generic_config, and limit the > > suspend/resume behavior changes only on i.MX8QM/QXP/DXL platform. > > > > A soft ping. =F0=9F=98=8A > > Regards, > Shenwei > > > Changes in v3: > > - According to the feedback from Linus Walleij, the wakeup feature is > > moved to pinctrl driver, and the array of gpio-pin mapping is moved > > to gpio device node and initialized via gpio-ranges property. > > > > Shenwei Wang (5): > > arm64: dts: imx8dxl-ss-lsio: add gpio-ranges property > > arm64: dts: imx8qm-ss-lsio: add gpio-ranges property > > arm64: dts: imx8qxp-ss-lsio: add gpio-ranges property > > pinctrl: freescale: add pad wakeup config > > gpio: mxc: enable pad wakeup on i.MX8x platforms > > > > .../boot/dts/freescale/imx8dxl-ss-lsio.dtsi | 41 +++++++++ > > .../boot/dts/freescale/imx8qm-ss-lsio.dtsi | 38 ++++++++ > > .../boot/dts/freescale/imx8qxp-ss-lsio.dtsi | 25 +++++ > > drivers/gpio/gpio-mxc.c | 92 ++++++++++++++++++- > > drivers/pinctrl/freescale/pinctrl-scu.c | 30 ++++++ > > 5 files changed, 225 insertions(+), 1 deletion(-) > > > > -- > > 2.34.1 > GPIO part looks good to me. Acked-by: Bartosz Golaszewski