Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3860827rdb; Mon, 11 Dec 2023 02:01:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFX4deuCCwPpEB9VX9XTV9YUZY1fkPfq5YlDuf12DEAa9MI97xB7iBAWVXUHQuwdw4r3M+L X-Received: by 2002:a05:6358:7296:b0:170:17eb:2039 with SMTP id w22-20020a056358729600b0017017eb2039mr5428377rwf.34.1702288895865; Mon, 11 Dec 2023 02:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702288895; cv=none; d=google.com; s=arc-20160816; b=bSk//85iIjTKVuc3hskajoJ9o6wLGe12u+0NuVYRfGD6dsIperQzZSJIOz7Jp9KQns Tt9f9JKZ10bzYoMbwvbUyzo/L1S4nf/WDeaiKNGuBE/zx+uJCUgC7rJl8XNYcBQy3vuj Te0W3/B2PLFc8qRlzmmBtOS4VC8B8rKFhmYnJyXp9kaZ0qE8SFFwrloYzR3QvFjAVa4T RDVxb5E15cTU+Gv6cvK8+QtgAGXNUoVuo7/9lbdZkkGIYXmGENBsuBSh/pY55QzLnkO5 WfqahJLtzC8TwlwmwBsHnqpcZYR7VRsYSHZX2LvhDHoqs8hM+BWga1NIdAZ+94g6t0bA S6Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2paImWByJrTjROw8WnVv5FUglPWngDhuD4VbnvfawPM=; fh=9Y/nuoyQ77OhKJBzjgN0Ppjw3BlHXPHHR0qowlDGwxQ=; b=Q2sz0httIj/UrmvjNv5gi+sAiL1TkE6ne2wvw6ua509t3/ai3/e25H/YAonDb2vEfC 3D10B/xiQl+KCTHddkdZ0G+6RJrzotve5m5uk1us593CsEcCMHlbcitA7nbCGsXwq+wR fzfF+I+HTu/Uk7/YvqkaOcNHO3EdYR5ZCPSqNxFYpzHH2Zh2M+AEnLwvIPyLOrOccLp2 Y4R1KvUJ+ZiVVFGS9nwfnKpyOsOxmFx0d2qN7GnFJUdjea5vMwAmK64yoH2ezn8BzFUj TON1aoRkaiiX15wUgg1PC2jxRRk6Y5K/i9iW/USolxvmK2dxsI5Ax0J9aX3i9U8uMnqE 78Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=B0YIoYlx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t14-20020a63eb0e000000b005c63a36938fsi5938156pgh.809.2023.12.11.02.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 02:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=B0YIoYlx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 39A9D807C556; Mon, 11 Dec 2023 02:01:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234742AbjLKKBQ (ORCPT + 99 others); Mon, 11 Dec 2023 05:01:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234736AbjLKKBM (ORCPT ); Mon, 11 Dec 2023 05:01:12 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03CECCB; Mon, 11 Dec 2023 02:01:16 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BBA0xGK071011; Mon, 11 Dec 2023 04:00:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1702288859; bh=2paImWByJrTjROw8WnVv5FUglPWngDhuD4VbnvfawPM=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=B0YIoYlxNaGFRmSHJRHWKi7aKMPn/PNqAExXc/pG/Nk0UbP7+EZZzVBmRvqYU2WVS ye2rxb24vGGRjBepVSPA/FCElOT95q258sYgoaJ0lyCgiPE5wEEjuii6c8seGzG3sm m/JeElUwD/DBIwhhYcUyaMzH6gl2MmubDWz0AmrY= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3BBA0xrC034776 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 Dec 2023 04:00:59 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 11 Dec 2023 04:00:59 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE115.ent.ti.com (157.170.170.26) 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, 11 Dec 2023 04:00:59 -0600 Received: from [10.24.69.31] (danish-tpc.dhcp.ti.com [10.24.69.31]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3BBA0s88080210; Mon, 11 Dec 2023 04:00:55 -0600 Message-ID: <9f63b81d-1826-411f-b310-e726e5eb5cb3@ti.com> Date: Mon, 11 Dec 2023 15:30:54 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] arm64: dts: ti: k3-am642-evm: add overlay for icssg1 2nd port Content-Language: en-US To: "Anwar, Md Danish" , Andrew Lunn CC: Vignesh Raghavendra , Nishanth Menon , Conor Dooley , Krzysztof Kozlowski , Rob Herring , , , , Tero Kristo , , References: <20231207081917.340167-1-danishanwar@ti.com> <20231207081917.340167-4-danishanwar@ti.com> From: MD Danish Anwar In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 11 Dec 2023 02:01:31 -0800 (PST) Hi Andrew, On 08/12/23 12:58 pm, Anwar, Md Danish wrote: > On 12/8/2023 3:10 AM, Andrew Lunn wrote: >>> + mdio-mux-2 { >>> + compatible = "mdio-mux-multiplexer"; >>> + mux-controls = <&mdio_mux>; >>> + mdio-parent-bus = <&icssg1_mdio>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + mdio@0 { >>> + reg = <0x0>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + icssg1_phy2: ethernet-phy@3 { >>> + reg = <3>; >>> + tx-internal-delay-ps = <250>; >>> + rx-internal-delay-ps = <2000>; >>> + }; >>> + }; >> >> That looks odd. A mux generally has > 1 mdio bus. Otherwise its not >> really a mux. >> > > We are disabling node `mdio-mux-1` which has the `cpsw3g_mdio` bus and > then adding a new node `mdio-mux-2` which has the `icssg1_mdio` bus. The > mux can actually have two different mdio buses. The patch actually > disables the mux1 node and creates a new node for icssg1_mdio bus so > that cpsw3g mdio bus is disabled properly. > > We can modify the existing `mdio-mux-1` as well (added the code below) > instead of disabling mux1 and creating mux2 node. > > &mdio_mux_1 { > mdio-parent-bus = <&icssg1_mdio>; > #address-cells = <1>; > #size-cells = <0>; > > mdio@0 { > reg = <0x0>; > #address-cells = <1>; > #size-cells = <0>; > > icssg1_phy2: ethernet-phy@3 { > reg = <3>; > tx-internal-delay-ps = <250>; > rx-internal-delay-ps = <2000>; > }; > }; > }; > > Let me know what do you think. Is the approach in the patch correct or > should I modify existing mux node only? > Can you please let me know which approach should I follow here? >> And this mux hardware exists all the time right? So it should be in >> the .dtsi file. >> > > Agreed. But the mdio-mux-1 node was added in k3-am642-evm.dts by the > commit 985204ecae1c37d55372874ff9146231d28fccc6. I did the same with > mdio-mux-2 node. > >> Andrew > -- Thanks and Regards, Danish