Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1666922rdb; Thu, 7 Dec 2023 05:54:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBBhYbtGN7oUNCNkretJmErm7ygt7Rx6aKvvGblYpFKmGaYY1MuBbK3z/REKQHHsQjn+cI X-Received: by 2002:a05:6a20:5141:b0:18f:97c:4f6e with SMTP id b1-20020a056a20514100b0018f097c4f6emr1537303pzc.122.1701957276570; Thu, 07 Dec 2023 05:54:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701957276; cv=none; d=google.com; s=arc-20160816; b=kT0xvxJpQ4oA/X1UVDtDHiQfIBpFPQCk0+5jQSD0pW9ia6eGTcF3Tb+d19d+qpPcgc TOJwYUAZIjRWm5uTE0Uj5Y6vgmfUybXx2gfHBoRMpks99QZkq04dP6QEj2C9XD+Z1Zk4 oiMzYec+LVM+NyeuXnx98EPOjpeT6tr3wGcpdrOOfR8Toqv30N2TAL6W+bUo3RILWySk g4rO7do2X3EwU68A2vEndW5OWsUiUQtrmOOkecpq8Oh8NwP8tWeQvRy47V7IB5pN7cbu 9Yu0rTCjUrjBjMnHMoCVteZzxmIHMwQU85bBhL9P6GmH1veA8mBRVXZBH7740xVAJJYx EQGQ== 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=W5gXtXfZlSK11aQjTNxP7QVpz+cyU+aQUS0zTnnUPpc=; fh=VHNh+RFSyKapw0hGl1nCTL5m6Zjwm0YHTVgUOMdvlAU=; b=qTGj7ypObpQdm0V+47hYmgXZ7RxJ9cAhwqD7Q2bc7AyUCdJjQ8Gz9sytuKv+aS2Fwe IHQPIMiZG1yMWp033JQMJmFWmXNxhx9mkwL5Hv9ot0CemkfAUfPX+VgXIUAcqv+ylfkx SS7Di/UV+oavlZsRfnwVZ/HlkMI8weJVqVp7O75P6HHmO6Oa85qry7ihdHLOHid16T0/ DEkX6N3Lg3+YvxL/GvLCgToMtnwdXZygYC0lG+hvEwRBPNHLWqxISn9I7zxV3E+5c1PY 0oftt1Gs42ZYSfQLc6+VsR47PKIaiAKdT25DqqFlKW2zgN6ome3mUR7qWjVTu7pP7PbW fFVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=p65KeSRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id fh24-20020a17090b035800b00285ebeed85fsi1107895pjb.123.2023.12.07.05.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:54:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=p65KeSRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 298978047567; Thu, 7 Dec 2023 05:54:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442388AbjLGNyL (ORCPT + 99 others); Thu, 7 Dec 2023 08:54:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442098AbjLGNyK (ORCPT ); Thu, 7 Dec 2023 08:54:10 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EF1133; Thu, 7 Dec 2023 05:54:15 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B7Ds45R083785; Thu, 7 Dec 2023 07:54:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701957244; bh=W5gXtXfZlSK11aQjTNxP7QVpz+cyU+aQUS0zTnnUPpc=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=p65KeSRApGwvhso3ak+P27MaIukNysRQ+TWyldNFdhLd3e+2vNmvzLDLrZIW2RTdP R4GOOVToI0o/TJIOPn2UT7r89WrjM1tSQ31nOW58+3udob8dC1HYk1rixTWwRYcUJ3 LeMV409vzXHzyJw4bEE3hDQFy0JyqZc0zaCsnS0c= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B7Ds4L5082652 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 7 Dec 2023 07:54:04 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 7 Dec 2023 07:54:03 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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; Thu, 7 Dec 2023 07:54:03 -0600 Received: from [10.249.135.225] ([10.249.135.225]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3B7Ds04n032059; Thu, 7 Dec 2023 07:54:00 -0600 Message-ID: <6f2c1c23-bed6-48be-8407-030f2993ec8a@ti.com> Date: Thu, 7 Dec 2023 19:23:59 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] arm64: dts: ti: k3-am642-evm: add ICSSG1 Ethernet support Content-Language: en-US To: Nishanth Menon CC: MD Danish Anwar , Vignesh Raghavendra , Conor Dooley , Krzysztof Kozlowski , Rob Herring , , , , Tero Kristo , , References: <20231207081917.340167-1-danishanwar@ti.com> <20231207081917.340167-3-danishanwar@ti.com> <20231207131818.3n7z64ve6izatlvs@unchanged> <20231207134343.ufiy2owik5kn3y2r@degrease> From: "Anwar, Md Danish" In-Reply-To: <20231207134343.ufiy2owik5kn3y2r@degrease> 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 05:54:34 -0800 (PST) On 12/7/2023 7:13 PM, Nishanth Menon wrote: > On 18:58-20231207, Anwar, Md Danish wrote: > [...] >>>> + >>>> memory@80000000 { >>>> bootph-all; >>>> device_type = "memory"; >>>> @@ -229,6 +234,70 @@ transceiver2: can-phy1 { >>>> max-bitrate = <5000000>; >>>> standby-gpios = <&exp1 9 GPIO_ACTIVE_HIGH>; >>>> }; >>>> + >>>> + icssg1_eth: icssg1-eth { >>>> + compatible = "ti,am642-icssg-prueth"; >>>> + pinctrl-names = "default"; >>>> + pinctrl-0 = <&icssg1_rgmii1_pins_default>; >>>> + >>>> + sram = <&oc_sram>; >>>> + ti,prus = <&pru1_0>, <&rtu1_0>, <&tx_pru1_0>, <&pru1_1>, <&rtu1_1>, <&tx_pru1_1>; >>>> + firmware-name = "ti-pruss/am65x-sr2-pru0-prueth-fw.elf", >>>> + "ti-pruss/am65x-sr2-rtu0-prueth-fw.elf", >>>> + "ti-pruss/am65x-sr2-txpru0-prueth-fw.elf", >>>> + "ti-pruss/am65x-sr2-pru1-prueth-fw.elf", >>>> + "ti-pruss/am65x-sr2-rtu1-prueth-fw.elf", >>>> + "ti-pruss/am65x-sr2-txpru1-prueth-fw.elf"; >>> >>> Umm... am65x??? is that a typo? I'd rather keep it am64x here and drop >>> that sr2 thing. Tomorrow there will be a custom bug on am64 and then we >>> will have to respin this again. >>> >> >> No Nishant, this is not a typo. Both AM64x and AM65x use the same ICSSG >> firmwares. We only have am65x-sr2-* firmwares and they are used by both >> AM64x and AM65x and that is why I have kept the firmware-name here in dt >> same as the files that we load on the pru cores. >> > > SoCs are different. The hardware as a result is different as well. In > fact, you do have a different compatible to distinguish the two. Some > day, there will be an erratum that is different and we will be stuck > with abi breakage across distros. So, unless you can explain why this > scenario will never occur, I don't buy the argument this will survive > long term. > Agreed, this property was introduced for this purpose only. Today am65x and am64x share the same firmware however in future the firmwares might change and that is why we have this property. Currently this property is not used in driver and firmware name is defined in the driver (with the below structure) which is used for both am64x and am65x. I will rename the firmware names here to am64x-sr2* in v2. In future when we have different firmwares for different SoCs, we can stop using the below structure and use the firmware-name property from dt. static struct icssg_firmwares icssg_emac_firmwares[] = { { .pru = "ti-pruss/am65x-sr2-pru0-prueth-fw.elf", .rtu = "ti-pruss/am65x-sr2-rtu0-prueth-fw.elf", .txpru = "ti-pruss/am65x-sr2-txpru0-prueth-fw.elf", }, { .pru = "ti-pruss/am65x-sr2-pru1-prueth-fw.elf", .rtu = "ti-pruss/am65x-sr2-rtu1-prueth-fw.elf", .txpru = "ti-pruss/am65x-sr2-txpru1-prueth-fw.elf", } }; -- Thanks and Regards, Md Danish Anwar