Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2230526rdb; Fri, 8 Dec 2023 02:02:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYWf/3iTtr6cR1V2SULgnVWM02XT51kY+ExNl5d2ppWVaj2DhcQThZ0kpVz4L8SU1I1y+T X-Received: by 2002:a05:6a20:8f13:b0:190:3037:351a with SMTP id b19-20020a056a208f1300b001903037351amr1047540pzk.41.1702029726896; Fri, 08 Dec 2023 02:02:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702029726; cv=none; d=google.com; s=arc-20160816; b=qOXwoTfIOlT1Iga8KvUuTn6toG61XGLjazTPXaxLPj90sGFfYfqSYy2EFCsUo9w537 XBa6hYvZoUiParmOzU/YXydVwF1k+rlTH+iFcCGnQ71qvjFGOsACbxbresH4bltSE3wM kRCGqMksId4w+/eayLRZ5/25E/zzdQm3UtvXBJlT2O2XM9HjnZRC2fXiLxWNAsCsjUSH siN4sM2sLZWYsiH1KdwpwsUsz98Xd7tWHbP+JW8WsciRgYnyBhr3hXj0yM4WV5Dpr+nU aD8c7aVN0Xr6klkHCEiy4t6IZimQEGJo4HchmG0ghKxrhgoeIfdEK/Qa2ig8u1r9N3hF pY8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=hZcZ/4EE7MJPD1PLsF9ABizzda6xUv01dAvk7dkcqBY=; fh=QPJmqsXEWNhGYmLiHmS1JFjMk5O/JuDfzpTVDZw0ooE=; b=pat6qh6wBDxXLPmeGE0wYdxYU63uh/pBIsRlaqEaa2SAwlhS3hZE79NL/SZzZqjSiB sIHmA945hRQR+qapOJCI//DwnT7Ofmiaq+GnMmf2dAEVjXYnnocpHhX60fpnvxyaN1xE AhE6+aX11Xn0ZNecNr2bKNHzJIKRxDJMsZ51v2GqBB1jqnmpY3HykyoJnrakzOmfQIv7 shzgwi3+PoB6WRDuvNhH6bkDNiKMyPyhpDgb+bCBXLq+4tw6hrEHaYpv6AhLjmdItiht vWvQZQ4h3xUbXya268dIWCYs8MonhwFocCdjJpHa5RZXWknZ1eugObIGUGHFu0jeKToD XcZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id t9-20020aa79389000000b006ce46c5f293si1275049pfe.384.2023.12.08.02.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:02:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2B27A809C3AC; Fri, 8 Dec 2023 02:01:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233242AbjLHKAc convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Dec 2023 05:00:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbjLHKAb (ORCPT ); Fri, 8 Dec 2023 05:00:31 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E1661720 for ; Fri, 8 Dec 2023 02:00:38 -0800 (PST) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[IPv6:::1]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBXee-0002TW-Ni; Fri, 08 Dec 2023 11:00:20 +0100 Message-ID: <83ca3d88cdaa7bc6e6bd3c4e88518b155a6b0f05.camel@pengutronix.de> Subject: Re: [PATCH 2/4] dt-bindings: imx6q-pcie: Add host-wake-gpio property From: Lucas Stach To: Sherry Sun , hongxing.zhu@nxp.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 08 Dec 2023 11:00:19 +0100 In-Reply-To: <20231208091355.1417292-3-sherry.sun@nxp.com> References: <20231208091355.1417292-1-sherry.sun@nxp.com> <20231208091355.1417292-3-sherry.sun@nxp.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 02:01:09 -0800 (PST) Hi Sherry, Am Freitag, dem 08.12.2023 um 17:13 +0800 schrieb Sherry Sun: > Add host-wake-gpio property that can be used to wakeup the host > processor. > > Signed-off-by: Sherry Sun > Reviewed-by: Richard Zhu > --- > Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > index 81bbb8728f0f..944f0f961809 100644 > --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > @@ -72,6 +72,10 @@ properties: > L=operation state) (optional required). > type: boolean > > + host-wake-gpio: There is only one wake signal in PCIe and it has a defined direction, so there is no point in specifying that it is a host wakeup. Also GPIO handles without a traling 's' are deprecated. So this should be wake-gpios > + description: Should specify the GPIO for controlling the PCI bus device > + wake signal, used to wakeup the host processor. Default to active-low. The description is wrong. For the RC complex case (which is the binding you are modifying here) the controller does not control the wake signal, but instead uses it as a input. The description should reflect that. The default is also quite useless, as your implementation does not allow to change it. Please translate the GPIO active flags from the DT to the proper IRQ flags and drop this default here. The DT should simply carry the proper polarity. Regards, Lucas > + > required: > - compatible > - reg