Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp326797iof; Mon, 6 Jun 2022 04:21:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywFPR6zx6XN7jAWFePYG0OW3oOa7rd1MuX8NRHyo+kuHWfwDy+LO8lSSitBONgGnlKBDP+ X-Received: by 2002:a17:902:e80c:b0:167:5e77:e696 with SMTP id u12-20020a170902e80c00b001675e77e696mr12495047plg.119.1654514465221; Mon, 06 Jun 2022 04:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654514465; cv=none; d=google.com; s=arc-20160816; b=E0E5S4IUBVXIClNXSlACnDVhRQ1NcGJEIgO6vyeUIAML0H+UeWKYWc4cRuAa96yHts aidO/G3AZRNV6qNRusRT7txHWySWDoZZ1HUgdBSUTqxatoQ2fTcTqUl7CXWlopXYVa2S qaK7RGH7KL+Rdl2oIyqazqm2pdhcAJ/fzQnn/BIOKGKDdM9D/y8DQ7/9/qaiDd0Pjorh v1FnDlp5qIstSK4+DF5qtpM76BYdThjxEs6mx2k9wvEUA8XwGQMRywpGIE9S42pvRIp+ 63R/Ro0j+KACUzVDx2SdAt0IIWpDEgN+X3s5UHZPZOAHDE6J6jRvK7DzBStcg7uHparu eXJQ== 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=RzofpN8LTT0pK90RsTEKA9YlM2UMDZ0XQd/tW3igcIU=; b=q7Ar6GqlPhPagrOaCpUpOEmBX5Yvia+89FwK+cLc/etSUGQ4YVESySFBO7vOHKTKNu ZZ+QcWOoUu+8tk2kVxfa1psSHO97S1b/nHYr8w1ma36Xf2n0/qFdLE1pU6+KwBpswoO5 YV2WR7achV4pDu8mGaUI6mK5tGlnpLfr38E/e9mhINIWPOoxwCwZMUaxyvavxSKQWuQb SCY/4W0oDwdZaH6zneGmPn8vFxkUH7tULjnvZ1Ujv1cf78Nkuim/ISCf+QL1bIZ9eThG I2ActpIXoUhrCaWSSPT15NNfV2cmaB3cTbR2WOUL1X5EAperNuPPOc4T/0bgsYXu9iRa VWYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dsooFiJ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f13-20020a170902ce8d00b0015eafbef962si16786737plg.31.2022.06.06.04.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 04:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dsooFiJ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C8DA1AD592; Mon, 6 Jun 2022 04:05:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234786AbiFFLFi (ORCPT + 99 others); Mon, 6 Jun 2022 07:05:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234787AbiFFLFh (ORCPT ); Mon, 6 Jun 2022 07:05:37 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095501ABFAB; Mon, 6 Jun 2022 04:05:34 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 256B5JOu128160; Mon, 6 Jun 2022 06:05:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1654513519; bh=RzofpN8LTT0pK90RsTEKA9YlM2UMDZ0XQd/tW3igcIU=; h=From:To:CC:Subject:Date; b=dsooFiJ7o8tCRTVwf0W45wIfk8pXtIgr6Ae1Hv8n9NS46ePHyWlHJ4r15alG5tPHq FvDNyAf5sAH8jL02aOGBuePgLktYNhSTuuL4tPBUXdtL5oNfZx/XDtDlz1jAzHltE/ vnwHeu5/jTgwYmIp53NAUNwRGnLUDWrdwRsRsmh0= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 256B5J2h009986 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 Jun 2022 06:05:19 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 6 Jun 2022 06:05:14 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 6 Jun 2022 06:05:14 -0500 Received: from ula0492258.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 256B57G2072083; Mon, 6 Jun 2022 06:05:08 -0500 From: Siddharth Vadapalli To: , , , , , , , , , , CC: , , , , Siddharth Vadapalli Subject: [PATCH v3 0/3] J7200: CPSW5G: Add support for QSGMII mode to am65-cpsw driver Date: Mon, 6 Jun 2022 16:34:40 +0530 Message-ID: <20220606110443.30362-1-s-vadapalli@ti.com> X-Mailer: git-send-email 2.36.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=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for QSGMII mode to am65-cpsw driver. Change log: v2 -> v3: 1. In ti,k3-am654-cpsw-nuss.yaml, restrict if/then statement to port nodes. v1 -> v2: 1. Add new compatible for CPSW5G in ti,k3-am654-cpsw-nuss.yaml and extend properties for new compatible. 2. Add extra_modes member to struct am65_cpsw_pdata to be used for QSGMII mode by new compatible. 3. Add check for phylink supported modes to ensure that only one phy mode is advertised as supported. 4. Check if extra_modes supports QSGMII mode in am65_cpsw_nuss_mac_config() for register write. 5. Add check for assigning port->sgmii_base only when extra_modes is valid. v2: https://lore.kernel.org/r/20220602114558.6204-1-s-vadapalli@ti.com/ v1: https://lore.kernel.org/r/20220531113058.23708-1-s-vadapalli@ti.com Siddharth Vadapalli (3): dt-bindings: net: ti: k3-am654-cpsw-nuss: Update bindings for J7200 CPSW5G net: ethernet: ti: am65-cpsw: Add support for J7200 CPSW5G net: ethernet: ti: am65-cpsw: Move phy_set_mode_ext() to correct location .../bindings/net/ti,k3-am654-cpsw-nuss.yaml | 135 ++++++++++++------ drivers/net/ethernet/ti/am65-cpsw-nuss.c | 41 +++++- drivers/net/ethernet/ti/am65-cpsw-nuss.h | 2 + 3 files changed, 129 insertions(+), 49 deletions(-) -- 2.36.1