Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3109855rwb; Tue, 8 Nov 2022 00:14:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5geUPmDaZNq9tILxLn+O9ehgt/x7ff+kHU3yEWuv9h/Hmpe8ZcGUNP8Zna/0hx7cNfnpad X-Received: by 2002:a17:906:7e55:b0:7ae:4bfc:ef45 with SMTP id z21-20020a1709067e5500b007ae4bfcef45mr14514906ejr.94.1667895280992; Tue, 08 Nov 2022 00:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667895280; cv=none; d=google.com; s=arc-20160816; b=Wc1Gscm1SFzOhTPyW9dNRqcv27Eyl2ZQ9DtHFvR793XGV1L2JEZlswklFDC/K98/KL OTcBV938ZVuEk+qP3K5ATL7/jn0t4McMsjb7qrTXn5CJGUXDr8kUvUz8G1K0PHJ1bJ96 ZWGE9aoveZvn5EQ1tfRog6JcgZn6Hw9rjnxqZZ0E05zdKJOFHuAHLhESd8w4N4/u2kA5 CPtErZMrFOXgKY+p+BURvoF5lRiGJwv6gLG5T+F8CbIpsEjeonKR8rTxmcCChO2uM9Op DhYmO7GOwF3SgVO6o9rNHubZdHVg9jQGjnYW1pvpPhltqHdOf//kqLASEkICBLFY5XNi BGmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wY9z7UvZj24VC3mNio1jVMalD20CbZ1aaOEVGgiwzY0=; b=QEaE6gB/28fjLifvBuQ6QYW+w8wu86zd4TIVTF6eCKjGKqg2DH26YlgsVgpFGe1U2Q LOXY70NOnx96id4oUPlOjlOJ9o1cRGyxWqnr0t5nICASvfQVXrdHycpQ9RrIiZewRNV5 8EjJ8y/jko1JJe/H2HRZrUGsRTMmGAFPyvQYqbQ4KcaP4ma5h139v/BbaPlsdAgSygHe 3sSi92bAmIPxRdQY0SfshL7QlIOB79CRyJj6jAiyvTGSGeOsRwi04pxoBgq2CveSfNhW pLXmhORXiCvXUv41Pl/1GkMqokqf5cCO5+IIioOkOux2IInYNf2hqIfAmRSkb0pNs+lT HJPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="NfOT7oZ/"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz18-20020a1709077d9200b007a2d966eeccsi12753473ejc.686.2022.11.08.00.14.14; Tue, 08 Nov 2022 00:14:40 -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=@ti.com header.s=ti-com-17Q1 header.b="NfOT7oZ/"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233744AbiKHIHJ (ORCPT + 90 others); Tue, 8 Nov 2022 03:07:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233461AbiKHIGu (ORCPT ); Tue, 8 Nov 2022 03:06:50 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37A641CB1E; Tue, 8 Nov 2022 00:06:49 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A886BAr088047; Tue, 8 Nov 2022 02:06:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667894771; bh=wY9z7UvZj24VC3mNio1jVMalD20CbZ1aaOEVGgiwzY0=; h=From:To:CC:Subject:Date; b=NfOT7oZ/R3Z7Aa0WN6kUTO9/qMXu7qxRNh6n57QM5Po9WYvF8UiBk9fFlcq7CuUDK qtNywROZ/287/hK+q9V/+GcxJV6af0BBeQPnXHHRZgVBba3RvhFjeIlaKWF1lndTnb G62v1ND74qValWCTeK2kjxuxnbVvcjUZ6EYzYFLY= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A886BBt018819 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Nov 2022 02:06:11 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 8 Nov 2022 02:06:11 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Tue, 8 Nov 2022 02:06:11 -0600 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A8866mC033956; Tue, 8 Nov 2022 02:06:07 -0600 From: Siddharth Vadapalli To: , , , , , , , , , , CC: , , , , , Subject: [PATCH v4 0/3] Add support for QSGMII mode for J721e CPSW9G to am65-cpsw driver Date: Tue, 8 Nov 2022 13:36:03 +0530 Message-ID: <20221108080606.124596-1-s-vadapalli@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Add compatible to am65-cpsw driver for J721e CPSW9G, which contains 8 external ports and 1 internal host port. Add support to power on and power off the SERDES PHY which is used by the CPSW MAC. ========= Changelog ========= v3 -> v4: 1. Fix subject of patch-1/3, updating it to: "dt-bindings: net: ti: k3-am654-cpsw-nuss: Add J721e CPSW9G support" and collect Reviewed-by tag. 2. Rebase series on linux-next tree tagged: next-20221107. v2 -> v3: 1. Run 'make DT_CHECKER_FLAGS=-m dt_binding_check' and fix errors and warnings corresponding to the patch for: Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml with the latest dt-schema and yamllint. v1 -> v2: 1. Drop all patches corresponding to SGMII mode. This is done since I do not have a method to test SGMII in the standard mode which uses an SGMII PHY. The previous series used SGMII in a fixed-link mode, bypassing the SGMII PHY. I will post the SGMII patches in a future series after testing them. 2. Drop all patches corresponding to fixed-link in the am65-cpsw driver. This is done since PHYLINK takes care of fixed-link automatically and there is no need to deal with fixed-link in a custom fashion. 3. Fix indentation errors in k3-am65-cpsw-nuss.yaml. 4. Remove the stale code which tries to power on and power off the CPSW MAC's phy, since the CPSW MAC's phy driver does not support it. 5. Rename the function "am65_cpsw_init_phy()" to "am65_cpsw_init_serdes_phy()", to indicate that the phy corresponds to the SERDES. 6. Invoke "am65_cpsw_disable_serdes_phy()" as a part of the cleanup that is associated with the "am65_cpsw_nuss_remove()" function. v3: https://lore.kernel.org/r/20221026090957.180592-1-s-vadapalli@ti.com/ v2: https://lore.kernel.org/r/20221018085810.151327-1-s-vadapalli@ti.com/ v1: https://lore.kernel.org/r/20220914095053.189851-1-s-vadapalli@ti.com/ Siddharth Vadapalli (3): dt-bindings: net: ti: k3-am654-cpsw-nuss: Add J721e CPSW9G support net: ethernet: ti: am65-cpsw: Enable QSGMII mode for J721e CPSW9G net: ethernet: ti: am65-cpsw: Add support for SERDES configuration .../bindings/net/ti,k3-am654-cpsw-nuss.yaml | 33 ++++++++- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 73 +++++++++++++++++++ 2 files changed, 102 insertions(+), 4 deletions(-) -- 2.25.1