Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp636781rwl; Thu, 30 Mar 2023 23:31:22 -0700 (PDT) X-Google-Smtp-Source: AK7set8LWMTXm+I4zpnjwcQ7E3yUy6TcepKbpGwCxeSqxuoXWSJFPbw+6+Gpw0dgEhQhHseMov1d X-Received: by 2002:a05:6a20:748c:b0:cd:fc47:dd73 with SMTP id p12-20020a056a20748c00b000cdfc47dd73mr30909383pzd.2.1680244282453; Thu, 30 Mar 2023 23:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680244282; cv=none; d=google.com; s=arc-20160816; b=iV5kpOk6ReXffpjqno03pba+C3RFfjlhCJy32gIK1WtPO9elz+qNtzoxETNW3RUGXP +8fu47lT7p4iYYjcYuwdVf1zyFsaB7TejPzEMWLXL6Fe39Ri1Wjpu1G+/DR/ctVryFGQ BtCZR5uwNGVGG0sEycd/Jl4Q5aKyB9M8bsDgtBOkF1fYsrDdK2uzH0jT0yOodVhwd3dU xe7Td4XiWVZpe9aLyJRcJYVlj8OlDQsiAn84LMkoiJuLowij3uAMvwyBh786thpnTaVh isjpGFrkHM84B5qtaJEWx1L0g2XzQO7U8uvHNhubJcW98W9MwHojvo+jfrsBDzVTdCwv tSww== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8RLcEGn9u7T/MUWJn7GJ3OTSwlD7b2cA29eH8xwKEn8=; b=J4U2G3wyG4hSASpwv5CmrTxHVFrbaNuSWPghj3tMWihoMmoEPIveXkl1LDgHV+WLH8 GGzNdA1QRLPyQ8pQQHT6DxYc5ujm3RMbDRkZZ2603Xf6iMow0EShACeLjKEOAMDcndOv vv6K1aD/G0W7ufNQ/gOVuqLfeAVn0qxBPjxjBAXEDklZgfeR6rtYx7Sno0kw6Pie3Nuk 6VDdoeHASePeHU4WyXM6HSZA60ayysz3Ibu/YPuj9FsXTutBpxwaae1yySax4vfI8CyS huxbRKiUXp5HhRTsCxC0l1s0nGmpdWt8HYXKcCPd31ruuvYBR456wNT+nBe5boQz2cFr BEUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lc9KdtQf; 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 e19-20020a63f553000000b00513a145dc48si1606717pgk.329.2023.03.30.23.31.10; Thu, 30 Mar 2023 23:31:22 -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=lc9KdtQf; 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 S229659AbjCaG0D (ORCPT + 99 others); Fri, 31 Mar 2023 02:26:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjCaG0B (ORCPT ); Fri, 31 Mar 2023 02:26:01 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DEBA191E3 for ; Thu, 30 Mar 2023 23:25:42 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32V6PRRX013259; Fri, 31 Mar 2023 01:25:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680243927; bh=8RLcEGn9u7T/MUWJn7GJ3OTSwlD7b2cA29eH8xwKEn8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lc9KdtQfdE04lt975ol2E4lX4kNTiuqSwqjkWFDT4ryQCQ3oD9Pm7xtUHwCUmp144 m/3tJgc3E9EN9lIt6q476RwcWkMvW1ODVMo7hc9c4QKsXi3uXxL0akf6WGOYttGiLK WXBf/NTS7J+OgGHqQwgpa8yxbEN9hP89jcz5Wxdg= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32V6PRbZ028474 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 Mar 2023 01:25:27 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) 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.2507.16; Fri, 31 Mar 2023 01:25:26 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 31 Mar 2023 01:25:26 -0500 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32V6PLvA027504; Fri, 31 Mar 2023 01:25:24 -0500 From: Siddharth Vadapalli To: , , CC: , , , , Subject: [PATCH 1/2] phy: ti: gmii-sel: Add support for CPSW9G GMII SEL in J784S4 Date: Fri, 31 Mar 2023 11:55:20 +0530 Message-ID: <20230331062521.529005-2-s-vadapalli@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230331062521.529005-1-s-vadapalli@ti.com> References: <20230331062521.529005-1-s-vadapalli@ti.com> 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=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS 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 Each of the CPSW9G ports in TI's J784S4 SoC support modes such as QSGMII. Add a new compatible for it and allow the usage of "ti,qsgmii-main-ports" property for J784S4. Signed-off-by: Siddharth Vadapalli --- drivers/phy/ti/phy-gmii-sel.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/phy/ti/phy-gmii-sel.c b/drivers/phy/ti/phy-gmii-sel.c index c87118cb2af9..fba5c0c0771c 100644 --- a/drivers/phy/ti/phy-gmii-sel.c +++ b/drivers/phy/ti/phy-gmii-sel.c @@ -235,6 +235,15 @@ struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw9g_soc_j721e = { .num_qsgmii_main_ports = 2, }; +static const +struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw9g_soc_j784s4 = { + .use_of_data = true, + .regfields = phy_gmii_sel_fields_am654, + .extra_modes = BIT(PHY_INTERFACE_MODE_QSGMII), + .num_ports = 8, + .num_qsgmii_main_ports = 2, +}; + static const struct of_device_id phy_gmii_sel_id_table[] = { { .compatible = "ti,am3352-phy-gmii-sel", @@ -264,6 +273,10 @@ static const struct of_device_id phy_gmii_sel_id_table[] = { .compatible = "ti,j721e-cpsw9g-phy-gmii-sel", .data = &phy_gmii_sel_cpsw9g_soc_j721e, }, + { + .compatible = "ti,j784s4-cpsw9g-phy-gmii-sel", + .data = &phy_gmii_sel_cpsw9g_soc_j784s4, + }, {} }; MODULE_DEVICE_TABLE(of, phy_gmii_sel_id_table); -- 2.25.1