Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5638678rwi; Tue, 18 Oct 2022 01:52:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Tt1vsONUQTYDFV+zXpMnqPbFtsokizK1aCpY89jpnlmOMrWJMTIodQX7mhX5n1hZyKSE2 X-Received: by 2002:a17:907:78a:b0:78d:9ac7:b697 with SMTP id xd10-20020a170907078a00b0078d9ac7b697mr1464483ejb.457.1666083145750; Tue, 18 Oct 2022 01:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666083145; cv=none; d=google.com; s=arc-20160816; b=tv2oVhN7zpDlBwAt7O3EOO8aMqxbSA86sRZq9ExX38g2KeSF6fay+KDF8WJA6Iau58 MjH3a/AogNrLYb3iLjeSr6lIK1XuF7fHIJApginrWWvKtuvl6WU+tPjEJQb7obCTqCpo 5AiEULoPF2mkNGCLMje+RDYqwmLitM4ywto7so5Bx6WuCbsDjrtL+Yi5Lka4LfmR08mq 4BmQv6HanENlauQa8qG0qyPFl6npRqNLMymtrG8290ATNvVl/7tCrWurR/lc/rbtqVxz 62d/d9oj7W16wEInwliYlKySelsi/DUAzb+Yj2NgN4oxsnPKw/+ybw3ue0fPUhMxt7Hv cQBg== 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=QmDZI3TBEjPeKNZilh+9aFh3Fur9k+LaiSQR5pUzem8=; b=0fjccDFXgbRQMp+YNBcW0HxKnZAhJtoC31P6zP1J5SJUEEDgxq+Q4fKZXXNRqWUZ2u 2BrpVLGDY3DFhAPAWM5GW209H/Ew7zBioc8l6WAa88MwNiufu6IztKadeVj6quI6FylG z1bSpEaqlB5xp4MIQrP4NehPvSFoc+IfJDkQqJCabp9Kn0opYNoq27xmVm2tougt7XT5 lWmmpTo4X13pCJjQOK9MPjp0h9LDDCW2xJ+UM7RqeyuHDCDo0lExG0fcr5694qjTAGMC L9UahEyC2hi0b/qxXNcGNAJfoU71L3ebfF/6lgP5XCJm5hQoV6KP0B2tLWnvgXK0/n3Q heJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="r/9k2rtb"; 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 c8-20020a50d648000000b004597fa7ee6csi10397690edj.108.2022.10.18.01.52.00; Tue, 18 Oct 2022 01:52:25 -0700 (PDT) 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="r/9k2rtb"; 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 S230218AbiJRIoF (ORCPT + 99 others); Tue, 18 Oct 2022 04:44:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230460AbiJRIn6 (ORCPT ); Tue, 18 Oct 2022 04:43:58 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5B534C631; Tue, 18 Oct 2022 01:43:54 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29I8hbZ3040046; Tue, 18 Oct 2022 03:43:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666082617; bh=QmDZI3TBEjPeKNZilh+9aFh3Fur9k+LaiSQR5pUzem8=; h=From:To:CC:Subject:Date; b=r/9k2rtbuN3htvghYmuj8nXP4urgbY4jvhXNaktKO3OG21ova2uWLHMDeu1p9l8q4 WrqcDMcJ8rEjsyv+KwhFpLm/3taZDC85pCpuieH/1kyKkq129mEYS9bmsqdhsrrXv6 Y59TBDTEsfkIfiowWzpG6jBIFzrX0qzz/8gzBe7E= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29I8hbnf022532 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 18 Oct 2022 03:43:37 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) 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; Tue, 18 Oct 2022 03:43:37 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE100.ent.ti.com (10.64.6.21) 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, 18 Oct 2022 03:43:37 -0500 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29I8hXCP076871; Tue, 18 Oct 2022 03:43:34 -0500 From: Siddharth Vadapalli To: , , , , , , , CC: , , , , Subject: [PATCH v2 0/3] Add support to PHY GMII SEL for J721e CPSW9G QSGMII Date: Tue, 18 Oct 2022 14:13:30 +0530 Message-ID: <20221018084333.149790-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.7 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 for J721e CPSW9G, which contains 8 external ports and 1 internal host port. Update existing approach of using compatible to differentiate between devices that support QSGMII mode and those that don't. The new approach involves storing the number of qsgmii main ports for the device in the num_qsgmii_main_ports member of the "struct phy_gmii_sel_soc_data". This approach makes it scalable for newer devices. ========= Changelog ========= 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. Update description for the property "ti,qsgmii-main-ports", to describe it in a unified way across the compatibles. 3. Add minItems, maxItems, and items at the top, where the property "ti,qsgmii-main-ports" is first defined. Modify them later appropriately, based on the compatible. 4. Update the method to fetch the property "ti,qsgmii-main-ports" from the device-tree, to make it scalable. 5. Use dev_err() when the value(s) provided in the device-tree for the property "ti,qsgmii-main-ports" is/are invalid. v1: https://lore.kernel.org/r/20220914093911.187764-1-s-vadapalli@ti.com/ Siddharth Vadapalli (3): dt-bindings: phy: ti: phy-gmii-sel: Add bindings for J721e phy: ti: gmii-sel: Update methods for fetching and using qsgmii main port phy: ti: gmii-sel: Add support for CPSW9G GMII SEL in J721e .../bindings/phy/ti,phy-gmii-sel.yaml | 48 +++++++++++++++---- drivers/phy/ti/phy-gmii-sel.c | 42 +++++++++++++--- 2 files changed, 75 insertions(+), 15 deletions(-) -- 2.25.1