Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7419664rwb; Wed, 23 Nov 2022 06:22:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uR75y7WVOUvrw5lApIV65+j67aD2ZlUPNHhibd8VDqSYiLna0YRmErEhQLleu6Zb/zmB/ X-Received: by 2002:a17:90b:3c85:b0:218:4a32:1924 with SMTP id pv5-20020a17090b3c8500b002184a321924mr31666502pjb.24.1669213327865; Wed, 23 Nov 2022 06:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669213327; cv=none; d=google.com; s=arc-20160816; b=rL8HVRczd7umzoZdzvuExUu1RfO/joII/JjP/s6CaIoFUsSFdBHHoU5dqIavO4Kox0 WIruXyrAuIr+hVznF0H2Zq5rwebGFpbm7ccwEU5RZ5DH9BDunfEIF3n37J9xUGg8gNRR U2xGiTY4dBmWXeOZDRnrWnVgdL8iMsduLx/kQ97FHTyDFMUSh35dlx+H3sPr7HiXeyXG LyGZBh+yiaVZjpILzuxPxG6j05U9z63HWu27uprixPqfwccuPSldWt7AZFuFxbf2rzdF UG1nyocR7GNs7UMVWXKNGEAqegWZzfen6RpX/xuZbqyy0oVMxWMfMV0K0hjfYskSh48N E75w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uszX2YXhRo8OdMXZRubKyG6XQTLJS1i6JFk/Tk+AzJE=; b=FyXK7SkHN53Q0GVA2dP1cF6sSSTvP+jFBTRd4yubn9ngv8Q9+TnRARsdWsPywyLEOp EZ/d6N3edFdkfa5QgaBP0EA+Xnd23lcnUzFZEmmlyyQOuib8fovLCRCKaZm/iQy8ehVy VmvsUiGypst1LrjUVgUMJPOcpl7CFlBAk9d6uCT/TgOvYFk7FWsIlNMpF7XK4LYqGKuY NzsT6gXHp0DQPqg3OT5163gfy1CTcS1WCgdDyooFLKkrh0EooXM32IGbytHS/hVVFa4i SCR5gPR+Cbwgp+BOTsB21lSNHdPxGFCKLPqoFICZCqMvbiqegBg7zGFeXym3LJoji5Bx bgsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m9MCSmpb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay6-20020a056a00300600b0056bc1d790ebsi16559566pfb.57.2022.11.23.06.21.54; Wed, 23 Nov 2022 06:22:07 -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=@gmail.com header.s=20210112 header.b=m9MCSmpb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238619AbiKWNWY (ORCPT + 89 others); Wed, 23 Nov 2022 08:22:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238206AbiKWNV4 (ORCPT ); Wed, 23 Nov 2022 08:21:56 -0500 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93C1029803; Wed, 23 Nov 2022 05:00:58 -0800 (PST) Received: by mail-ot1-x32a.google.com with SMTP id db10-20020a0568306b0a00b0066d43e80118so11168854otb.1; Wed, 23 Nov 2022 05:00:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uszX2YXhRo8OdMXZRubKyG6XQTLJS1i6JFk/Tk+AzJE=; b=m9MCSmpbqdRH7+4KQyPsB99jGimXLvL7T8+W9hpeQ4oh8sBgsasHUj4lQBUv23vkaO z593kbo6lONHYoUM0keJSXJKoNPld2g0MUMCWNtEmrduHeKQVT0qwQVZRidiGAmkySuJ YByc//Bz9M+VuH8+BuojV5mAMc/yM2bBIFPk/RogKUdhcJH6MUPcFM+DH7Vu8GwEPhbY Wsr8/XLzVIJvWs7w7x34FhncgBiSn15ih0ZUD3QOFPS7bs1LQAu7VgQMhUYFE11ffTdt SubCzz6GYCEnp21hpbM+YZIh/LdYMpqfPAT7UgdF6c/wtBNVGeLCdKF5O8wOT9i69j6X EdJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=uszX2YXhRo8OdMXZRubKyG6XQTLJS1i6JFk/Tk+AzJE=; b=o5Q0yceBw2Cm0K6O0Gin4kZsrSB5dQ/e2cLj0hR7SzDd/r1Orhpkzil0rukc1oAYqQ SkkATUYmk9Yrq1AOST5DpLfY2JwFdLXcZaXncU4lAIOCCVaVF00iI5aJHfbtPPnBUwTF EfqL6xu9/Q8Zof410vE1GFxHzKaYUklm8f/VSvz1Sk+n+8m00piK1AF7UN0Ck9BoBWI4 ObGRYYMR0e9M323F3ERayjKpu8DYgCp5lx6ur6oszqah/MP8mZq8DudywGdziDpx3Y8G 7pLN7KL9F/0ZUqbs8YHWudPk4v3w96dC6PszgTjJbeA0I2UbnrdHn4tHw0755dZTpBXY 1j+A== X-Gm-Message-State: ANoB5pmnqspdqckNRFFnh8TR320p6IqMbCajarY1CC4DmzHm8DrCDHs8 CXo5t6Xb6KTozoabCcTBQUHiNj9nQXNnoInIBPzgkH04 X-Received: by 2002:a9d:4f07:0:b0:662:c31:161c with SMTP id d7-20020a9d4f07000000b006620c31161cmr7801332otl.301.1669208457897; Wed, 23 Nov 2022 05:00:57 -0800 (PST) MIME-Version: 1.0 References: <20221116200150.4657-1-linux.amoon@gmail.com> <20221116200150.4657-5-linux.amoon@gmail.com> <19f1a4fb-42b2-580d-3736-e0e1d0cfe7fb@wolfvision.net> In-Reply-To: <19f1a4fb-42b2-580d-3736-e0e1d0cfe7fb@wolfvision.net> From: Anand Moon Date: Wed, 23 Nov 2022 18:30:36 +0530 Message-ID: Subject: Re: [linux-next-v2 4/5] arm64: dts: rockchip: Add support of interrupt to ethernet node on Rock 3A SBC To: Michael Riesch Cc: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Chukun Pan , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hi Michael, Thanks for your review comments. On Tue, 22 Nov 2022 at 21:40, Michael Riesch wrote: > > Hi Anand, > > On 11/16/22 21:01, Anand Moon wrote: > > As per the shematic gmac1 support gpio interrupt controller > > Typo "shematic" -> "schematic" Ok, > > > GMAC1_INT/PMEB_GPIO3_A7 add the support for this. > > Maybe split the commit message into two proper sentences. Ok this Interrupt is used for Power Management Event (supports 3.3V pull up). Set low if received a magic packet or wake up frame; active low. so this interrupt is used for suspend / resume. > > > > Signed-off-by: Anand Moon > > --- > > v2: new patch added > > --- > > arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 10 +++++++++- > > 1 file changed, 9 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts > > index 5378254c57ca..9f84a23a8789 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts > > +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts > > @@ -588,10 +588,14 @@ rgmii_phy1: ethernet-phy@0 { > > compatible = "ethernet-phy-ieee802.3-c22"; > > reg = <0x0>; > > pinctrl-names = "default"; > > - pinctrl-0 = <ð_phy_rst>; > > + pinctrl-0 = <ð_phy_rst>, <ð_phy_int>; > > reset-assert-us = <20000>; > > reset-deassert-us = <100000>; > > reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>; > > + interrupt-parent = <&gpio3>; > > + /* GMAC1_INT/PMEB_GPIO3_A7 */ > > This comment is pretty superfluous. Ok will drop this. > > > + interrupts = ; > > + #interrupt-cells = <1>; > > I am not an expert here, but I believe #interrupt-cells = <1>; means > that the phy provides an array of interrupts. Are you sure this is > correct? I find it strange that the phy driver consumes one interrupt > and provides N interrupts?! > Ok will drop this. > > }; > > }; > > > > @@ -630,6 +634,10 @@ vcc_mipi_en: vcc_mipi_en { > > }; > > > > ethernet { > > + eth_phy_int: eth-phy-int { > > + rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>; > > Interrupt is active low and you pull down the line here? There is a pull > up resistor on sheet 11 of the schematic, so this does not seem right at > all. > Actually this GPIO3_A7_d hence pull_down, this pin level triggered So I will set this as &pcfg_pull_none. I don't have PoE set up to verify these changes as of now. > Best regards, > Michael Thanks -Anand