Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2700225rdb; Mon, 4 Dec 2023 05:21:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWa+rp7f6rVSdSZBvq4gbjs99lKfbAdGgmVeH9oIoGN4JM1+AKHtSbiKyo9IV2He3ecLgW X-Received: by 2002:a05:6a21:3614:b0:18f:97c:5ba5 with SMTP id yg20-20020a056a21361400b0018f097c5ba5mr1016928pzb.115.1701696083333; Mon, 04 Dec 2023 05:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701696083; cv=none; d=google.com; s=arc-20160816; b=lse+zlTTGCoREJuMpbOm3mqN+NFwH6gR0Ao1Xgl0uDyLjj+ZdFLCr2mLwqY54mrYuW FZL33c65nVPqgZpsCoZznauTVpzV5Vgjo6aoCTU2/++ax2/Nuw4VWsbCxWW9OrcmB9IS CStAf7cokzoCYNJnYMORX38BSWzt2nUX3RVw6+sAtxTu4XJUnnWlNREC2NGRRxzW+NzD OxNzaM2j4FNN2jSc/PisiXUXmOqvQJUbM+1QQ7wot7NydhLsq4Dmc/dABTOFE/dxUO4E SC4bjvBDAcFQsHg37NpgQi8mD7MdduftVcJi3JwbQ8aoiV2YpUSmfk+IBVayBHUR3fY3 B4BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=viV7+lwY2a79zTnW1evrf/wrCa3w8/Eku/Dy6wR3OTU=; fh=cgr+i0oQbjzJOfCF9Iz3LM1pX/9aEH0Zkrl8pj2z4Go=; b=cbcVp1kDlv2CgRxjW7F1Jk5f1SEZLR9cZ9wH+Gcpsvs9xyGcQhuoqGiavWU/1PZ/O+ CF7Z6Lr9dpZNWma+Eqy5muFOjB6KuWmKNphoPUG+MAqxMxLce6m6bDhe97+vKRmYgln9 dYbVc/Z3tj2yHHn5hXEnrJAYw5CoMEZ2713NJkPyhR4WoP+wOQe86ylQzXkT5VnAYvSp iw9Wja6VLSgQuHmYxlOHBDuPFxTeTgO8CagdUvr+MUJIVvbKHx/lNs6lQroKBPdK5NK9 YmdHVyQzAochZstByNPTgj1IoVrE/YK+Ja0cHfa3JinaZm8D0Vt7aG5AYuXsRk+8UHnR WA3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=p3DPy0Gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c17-20020a656751000000b005b9602a7badsi8186459pgu.688.2023.12.04.05.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:21:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=p3DPy0Gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0CCA180564AC; Mon, 4 Dec 2023 05:21:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233691AbjLDNVJ (ORCPT + 99 others); Mon, 4 Dec 2023 08:21:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233030AbjLDNVI (ORCPT ); Mon, 4 Dec 2023 08:21:08 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7A8195; Mon, 4 Dec 2023 05:21:14 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B4DL3Jd094902; Mon, 4 Dec 2023 07:21:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701696063; bh=viV7+lwY2a79zTnW1evrf/wrCa3w8/Eku/Dy6wR3OTU=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=p3DPy0GvXCdSFjVlSuxf8i3pAs0mdUWa3Wt0hjv/8mX8Xd2/+cv6A3J/CNsotAY2w nS2S/r4bLJAGQW0X4Hzz1hjwd8D9nmMz3Tcf8XsCR728XmtSS9CZnX6GZqsCdLR+f8 rjOJ31jkgE65orrYQKBoxqMNrglPFldnyKeRSFBU= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B4DL3b3020203 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Dec 2023 07:21:03 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 4 Dec 2023 07:21:03 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 4 Dec 2023 07:21:03 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3B4DL3Fc018616; Mon, 4 Dec 2023 07:21:03 -0600 Date: Mon, 4 Dec 2023 07:21:03 -0600 From: Nishanth Menon To: Siddharth Vadapalli CC: , , , , , , , , , , Subject: Re: [PATCH] arm64: dts: ti: k3-am654-icssg2: Enable PHY interrupts for ICSSG2 Message-ID: <20231204132103.ikkxjz3yxz3ynq6s@demystify> References: <20231120063159.539306-1-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231120063159.539306-1-s-vadapalli@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 05:21:21 -0800 (PST) On 12:01-20231120, Siddharth Vadapalli wrote: > Enable interrupt mode of operation of the DP83867 Ethernet PHY which is > used by ICSSG2. The DP83867 PHY driver already supports interrupt handling > for interrupts generated by the PHY. Thus, add the necessary device-tree > support to enable it. > > Since the GPIO1_87 line is muxed with EXT_REFCLK1 and SYNC1_OUT, update > the pinmux to select GPIO1_87 for routing the interrupt. > > Signed-off-by: Siddharth Vadapalli > --- > > This patch is based on linux-next tagged next-20231120. > > Regards, > Siddharth. > > arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso b/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso > index ec8cf20ca3ac..9f723592d0f4 100644 > --- a/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso > +++ b/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso > @@ -124,21 +124,34 @@ AM65X_IOPAD(0x0088, PIN_INPUT, 2) /* (AG17) PRG2_PRU0_GPO4.PRG2_RGMII1_RX_CTL */ > }; > }; > > +&main_pmx1 { > + /* Select GPIO1_87 for ICSSG2 PHY interrupt */ > + icssg2_phy_irq_pins_default: icssg2-phy-irq-default-pins { > + pinctrl-single,pins = < > + AM65X_IOPAD(0x0014, PIN_INPUT, 7) /* (A22) EXT_REFCLK1.GPIO1_87 */ > + >; > + }; > +}; > + > &icssg2_mdio { > status = "okay"; > - pinctrl-names = "default"; > - pinctrl-0 = <&icssg2_mdio_pins_default>; > + pinctrl-names = "default", "icssg2-phy-irq"; > + pinctrl-0 = <&icssg2_mdio_pins_default>, <&icssg2_phy_irq_pins_default>; why should the pins be part of mdio pinctrl instead of phy? > #address-cells = <1>; > #size-cells = <0>; > > icssg2_phy0: ethernet-phy@0 { > reg = <0>; > + interrupt-parent = <&main_gpio1>; > + interrupts = <87 0x2>; > ti,rx-internal-delay = ; > ti,fifo-depth = ; > }; > > icssg2_phy1: ethernet-phy@3 { > reg = <3>; > + interrupt-parent = <&main_gpio1>; > + interrupts = <87 0x2>; Shouldn't you be using macros for interrupt level like IRQ_TYPE_EDGE_FALLING? > ti,rx-internal-delay = ; > ti,fifo-depth = ; > }; > -- > 2.34.1 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D