Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2225000rwi; Fri, 28 Oct 2022 04:43:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78JEhSLpARAqFNQ8lJHnPrrXbuLskAhauYwJNekO0bjcb5MGqp0pDZdkRBCT7nQ6EFTlbi X-Received: by 2002:a17:907:7b94:b0:731:1b11:c241 with SMTP id ne20-20020a1709077b9400b007311b11c241mr47745527ejc.676.1666957425428; Fri, 28 Oct 2022 04:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666957425; cv=none; d=google.com; s=arc-20160816; b=dp5ntqhnOg9q8CNqOEm+9hR8ZjhurknmEriyVfY7kj71Kelt/eCwZ1R3m4UYGVxys+ slk4T0aIzXzO94tIl+yRSyMIqzJCpSDyAgVctEK3D8UeIownd7Q5BqFpca3CLzLI17+N NSinQ03xZqYxZ7Xlkqgtcqj8HgnEjk70SvpTyV/aPgaicp3hoTlZ9su5PVIOOetolD61 Vpx7YSss3TjMM4DWwGII10vAZgsXxbOqu5CMNXF2xtUO029dBYdr8scsI6txAitmwDq4 aSCQWRYoTtVA+LUsO7/1oK5aKC+Th5RggjSkiTcBymbJ0VNR7+QIYk4r1KKwTRXIt4zj 22Zg== 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=ZMtaz1xD7ex8HgoAMNRcrzoWWT0r0/l0FyOjhmhehCM=; b=UgiWNBRXT8S36kxxPBI51rRMEWX+XzkWoEnWGwug5uLkgKlT8hbcIhLpArmv/kiCbw 1qw/Ao5YPWoGKSYozANwUmlpsTKA56b73DpwZ9pVnQ3N+gqobt2VkG1VxLGb8fI0vyWf Ys9VV0SkIdAOn1R8qR9x8q81Cm+rowKpW80DjIVFNCPm5medMLkfE7UGDiBOsgNSPBc+ kWwaG8PWRKlKdm4THUU+X/lhespkCtwUiM29no4EfKXBcYIdCl2o3uNfl1vAacDQfCCO 34j8H6epH/1MZfvbP+r3mkSj6o+UQUVKU1HpjOn2JtXSph4YrzUdi3F4HEDpGsAeXdTb SZZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NdWGUQAo; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a1709060bd100b0073d74bcac8dsi3635646ejg.513.2022.10.28.04.43.19; Fri, 28 Oct 2022 04:43:45 -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=@kernel.org header.s=k20201202 header.b=NdWGUQAo; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230143AbiJ1KYF (ORCPT + 99 others); Fri, 28 Oct 2022 06:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbiJ1KYD (ORCPT ); Fri, 28 Oct 2022 06:24:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B452B1CB534; Fri, 28 Oct 2022 03:24:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50F6A62762; Fri, 28 Oct 2022 10:24:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05631C433D6; Fri, 28 Oct 2022 10:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666952640; bh=1JtXCOpRqptIdX0DQSUwY7YoNsgQauDmJBdHmsHsiK8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NdWGUQAo9OIMDnZhf8sSknwkusIA80E3ral84mYmh5p2WsibhWqBuyxClsD2IlDhP Bh8xuqaq2Fs/CkKRiVbge/J+K+RvyUOSD8kbcNj6Qk+P9Ok5uAn2mogFCTqN843F4y sh4PBJdpwkyf1zLfEsY8btNN5cKkThMLoLVFkOwO/cu+y72rZtoSvsgVOTnpjzeDwn z8c9B1iIJQi2bp2UMQxkQ7g6cYJRlEa27+zERDJnC7uzDMR4tusfm0yuvjUEAuA9pw AwqShO4Omo3T4qcymts8cUe/gGOSloZ96DGHd9QKDPVwTyspTQxdwQF6tVamVu68in euburMr6Sgceg== Message-ID: Date: Fri, 28 Oct 2022 13:23:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v3 3/3] phy: ti: gmii-sel: Add support for CPSW9G GMII SEL in J721e Content-Language: en-US To: Siddharth Vadapalli , robh+dt@kernel.org, lee@kernel.org, krzysztof.kozlowski@linaro.org, krzysztof.kozlowski+dt@linaro.org, kishon@kernel.org, vkoul@kernel.org, dan.carpenter@oracle.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20221026074532.109220-1-s-vadapalli@ti.com> <20221026074532.109220-4-s-vadapalli@ti.com> From: Roger Quadros In-Reply-To: <20221026074532.109220-4-s-vadapalli@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 On 26/10/2022 10:45, Siddharth Vadapalli wrote: > Each of the CPSW9G ports in J721e support additional modes like QSGMII. > Add a new compatible for J721e to support the additional modes. > > In TI's J721e, each of the CPSW9G ethernet interfaces can act as a > QSGMII main or QSGMII-SUB port. The QSGMII main interface is responsible > for performing auto-negotiation between the MAC and the PHY while the rest > of the interfaces are designated as QSGMII-SUB interfaces, indicating that > they will not be taking part in the auto-negotiation process. > > Signed-off-by: Siddharth Vadapalli Reviewed-by: Roger Quadros > --- > 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 c8f30d2e1f46..8c667819c39a 100644 > --- a/drivers/phy/ti/phy-gmii-sel.c > +++ b/drivers/phy/ti/phy-gmii-sel.c > @@ -218,6 +218,15 @@ struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw5g_soc_j7200 = { > .num_qsgmii_main_ports = 1, > }; > > +static const > +struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw9g_soc_j721e = { > + .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", > @@ -243,6 +252,10 @@ static const struct of_device_id phy_gmii_sel_id_table[] = { > .compatible = "ti,j7200-cpsw5g-phy-gmii-sel", > .data = &phy_gmii_sel_cpsw5g_soc_j7200, > }, > + { > + .compatible = "ti,j721e-cpsw9g-phy-gmii-sel", > + .data = &phy_gmii_sel_cpsw9g_soc_j721e, > + }, > {} > }; > MODULE_DEVICE_TABLE(of, phy_gmii_sel_id_table); cheers, -roger