Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp701746rwl; Fri, 31 Mar 2023 00:47:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ai1ipdAUp4bnnwi2mle2smmq5AcoWOaeIZKPGPtURhGUo0cRfmVKGA3BJ8HhBpoS96/WTG X-Received: by 2002:a05:6402:4315:b0:502:616b:cbd5 with SMTP id m21-20020a056402431500b00502616bcbd5mr5333626edc.2.1680248847271; Fri, 31 Mar 2023 00:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680248847; cv=none; d=google.com; s=arc-20160816; b=aB1zBgv+Vjh0PgIpRoAuqvdeeJf6kxmVWonyV5ZTYQuh4jpclse0qHx9hV/gB7G8vh 2avZ6tm6Brs9S36OZ0sIqtu/AAOiKQGvxAoWE9UKzaUC6BkjA5lfZQap+D94Fs6AjM/O lg1JwOXEfOtoxDYJxr0p5vSgNchB5UT6gr0aq2AmNcNYNZohD4TBW4zQwARRtFQTpIJ8 EZ+RH6P1BVksYDjqMOOUtE5Nv6nVZteOnyd6Ctqmgr49B7etNK7qCdSZ9aCArtEo4snq c7muvTxlq7ykEsc6C4NTjMWEt2aw/n24wJl9aSOQBRiziJ892qYeFmIyxATtdvjE2f9S oN5A== 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=Fj4DkyrxkAeCUx6xU7hBTLIsYLZR3b9vFBFD0WLbWME=; b=lGww/VibualW8s38JqvnXe8o6t0EycrM75YRpG5KLJZLnD/mTMo/UqXHgTmJoLq5Vc 9xDIPOrxAFfgYMtWyzh3AguNKGYPYRTvhBErI3uYX76FMuVxdbifBMwShDMj861EPIWr i0VIfl/FxHIzYMt99qdnC8INSzO9/gMxX6+wwC6dH1/20ZbOGyYjNC3nEA8B2GO2Axz2 vfg+5gxkfy9i5DcBHjj0oHtu/ZpfH5WUmEV1ozDSVnYhj265vODWvdwbwROGheNiSNaK 7awMjUBc7OsE5XFV6v9CpzevplapiXiP1gFG4EhergrApw11r3cxmVv7FSfv/dYDrJkV yjIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D4Lex/3I"; 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 k8-20020aa7d8c8000000b004fd2a5bbdd0si1300452eds.542.2023.03.31.00.47.02; Fri, 31 Mar 2023 00:47:27 -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="D4Lex/3I"; 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 S230208AbjCaHpL (ORCPT + 99 others); Fri, 31 Mar 2023 03:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbjCaHpJ (ORCPT ); Fri, 31 Mar 2023 03:45:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 193211166B for ; Fri, 31 Mar 2023 00:45:07 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8B4F3B82C78 for ; Fri, 31 Mar 2023 07:45:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF7A2C433EF; Fri, 31 Mar 2023 07:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680248705; bh=OGbRPiaaux5ZDB6f0vTfcVN9xGnQb7wk/z86yCbkj70=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=D4Lex/3IWiDJsKJXdxeZn0qRWsfwSHsWcz26FNZAps4vR64qDh8LZULTWKiIm+/rl 3AL3XgQ2ftWVfSebTf5ekVIZN8NZltDBJ6lyvOiGnZvNfCc/EKMOiSWieeY6nWKcS/ cg2IAZ5xjHhhzeIdxObkbJgeCX3+zAMR6DQPqJQ1feQS2ed5ZtJcjc69MiHMG6TL3i vVQ5jeR7nsFanRMh4ht2VB4uy3A3vqoH8kfMc3xuD5uKTVPovwA0S0YSsU7YZz5yt7 x15ivxK+fq8GNfAzfHsKPx0GdObzJ89AmbvTQ5lN+WgaeEF++sBnd5C/pLMelWKhiy knyAP54bQKb7g== Message-ID: Date: Fri, 31 Mar 2023 10:45:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 1/2] phy: ti: gmii-sel: Add support for CPSW9G GMII SEL in J784S4 Content-Language: en-US To: Siddharth Vadapalli , vkoul@kernel.org, kishon@kernel.org Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com References: <20230331062521.529005-1-s-vadapalli@ti.com> <20230331062521.529005-2-s-vadapalli@ti.com> From: Roger Quadros In-Reply-To: <20230331062521.529005-2-s-vadapalli@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 On 31/03/2023 09:25, Siddharth Vadapalli wrote: > 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 = { Please make it into one line > + .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); -- cheers, -roger