Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp560638rwb; Thu, 18 Aug 2022 08:19:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR4dGmBT+ce+bAInyZdOKiqYwN+H7HvTG0GUKpIHZwxpBzw+oN5UciLqcD3fyshi9R0NJ7Ry X-Received: by 2002:a17:902:e30c:b0:171:2036:532c with SMTP id q12-20020a170902e30c00b001712036532cmr3064692plc.121.1660835956694; Thu, 18 Aug 2022 08:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660835956; cv=none; d=google.com; s=arc-20160816; b=wODRlN5ok6DpD33Tw11uS6y3Cd2ayO3wnEBJ/RTseiD1uYR1QQDTsDwAsKsdGWuC7X yHuB7+FeY2Esx4MpWyo67+9+oRIzryK+G7b4jltvliuh5cIPexWN5zyonoo5P0o6P6lH Dm1zRVz4HBvadt9siVpDAGiiaIQi9zEOVUhxgnnP8jWQCEpUI94O7RDel/UtAPIMKEld ACzdcW+ASLihd31EQizVykTd2T3Bv2dHC+HgVtEd69elE+O8iLctHJTtGHXzZocSa+CS dLLCvtGuwjLcMsyr+BDxtsuJQ1kcpZgNXjl9vhRAS5CaMX5vNUgsFamm7VG9r7D453Su B5RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7IrASqplrkVpiIiYhE5AJVZ21/g9GJs8NehtB1NbKQo=; b=mWCgNqOS/i7uD+YMHxV+3BkWSSSxb/eD18ZKs3z7g+kGxMTzcAOV/uEWmn199w2qZ4 0UP92268I1gKRJ0rGov7CzNi5ADEol7Fm2mrmhb0qHxPqzzxfFPoZEmWj0Vq2pGsJX3F KdfQw5BclehQeR8RAK4PudXmVzyOvhSCu65uoPxAOu/XhmQx0tzxlle6257EjjmQ3QPW Pl6N/yKWemhTquZfBboIWy+LefC5SJnVvYzcsQyQy7cQNx6oiTfH7+RW/47YKsvqPRmp 2CgJ4JjtmxUhDCSAVB4YQKMgjpLnqFKtHwVOba/vYT9WbzEPL1F9YckBAwALWTOgWvNn EICQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d1-20020a170902aa8100b0016ef7232e66si1360249plr.372.2022.08.18.08.18.58; Thu, 18 Aug 2022 08:19:16 -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; 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 S1343663AbiHROni (ORCPT + 99 others); Thu, 18 Aug 2022 10:43:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343670AbiHROnf (ORCPT ); Thu, 18 Aug 2022 10:43:35 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F886277; Thu, 18 Aug 2022 07:43:32 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id s3-20020a17090a2f0300b001facfc6fdbcso1379195pjd.1; Thu, 18 Aug 2022 07:43:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=7IrASqplrkVpiIiYhE5AJVZ21/g9GJs8NehtB1NbKQo=; b=O1rX+4vyvcZ1+ChzNRfjvogwelOlPltwxrBtxH+m5zikEWlAoFoEfUhIXnF7XZFA7B g20deZBsLSDbxFSjn7MTh1GX1sWzPiwthgt6lSoqQUQyhU1F7RhSseXP6uT1p9fek5IT xT+nKp5EnkJarL6eMOV2ecvzJtR5Z8z91Xy3ElYPUgcxWbeS2ODQY/BYm9Tz+gB/9iYu I6XBAriZ96RNuBkcI7RSsK+y3YYXUmRkTk8XVeIO7MbK54X5QiSERfgOoislkzjolEHo 29dFr8nKnee4h87j6tMK/2To8mShxAwLZHQLeEVbLv1oQob01D3yRMq3/lfBR8RUtkE6 ZanA== X-Gm-Message-State: ACgBeo083RBP6XqPr0Jl6rldDUip+fWJgxirQk2M+txSHazLB8kVPK/Q GGPgS8+RUmwp4mI/Jc9m6w== X-Received: by 2002:a17:902:ecce:b0:16e:e6e9:69ba with SMTP id a14-20020a170902ecce00b0016ee6e969bamr3177308plh.97.1660833812118; Thu, 18 Aug 2022 07:43:32 -0700 (PDT) Received: from robh.at.kernel.org ([2607:fb90:80c2:7290:7acd:8d54:3db6:21d4]) by smtp.gmail.com with ESMTPSA id y8-20020a170902864800b0016f8e8032c4sm762868plt.129.2022.08.18.07.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 07:43:31 -0700 (PDT) Received: (nullmailer pid 1837696 invoked by uid 1000); Thu, 18 Aug 2022 14:43:26 -0000 Date: Thu, 18 Aug 2022 08:43:26 -0600 From: Rob Herring To: Siddharth Vadapalli Cc: lee.jones@linaro.org, krzysztof.kozlowski+dt@linaro.org, kishon@ti.com, vkoul@kernel.org, dan.carpenter@oracle.com, grygorii.strashko@ti.com, rogerq@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH v2 1/2] dt-bindings: phy: ti: phy-gmii-sel: Add bindings for J7200 Message-ID: <20220818144326.GA1829017-robh@kernel.org> References: <20220816055848.111482-1-s-vadapalli@ti.com> <20220816055848.111482-2-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220816055848.111482-2-s-vadapalli@ti.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Aug 16, 2022 at 11:28:47AM +0530, Siddharth Vadapalli wrote: > TI's J7200 SoC supports additional PHY modes like QSGMII and SGMII > that are not supported on earlier SoCs. Add a compatible for it. > > Signed-off-by: Siddharth Vadapalli > --- > .../mfd/ti,j721e-system-controller.yaml | 5 ++++ > .../bindings/phy/ti,phy-gmii-sel.yaml | 27 ++++++++++++++++++- > 2 files changed, 31 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml b/Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml > index 73cffc45e056..527fd47b648b 100644 > --- a/Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml > +++ b/Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml > @@ -54,6 +54,11 @@ patternProperties: > description: > Clock provider for TI EHRPWM nodes. > > + "phy@[0-9a-f]+$": > + type: object > + description: > + This is the register to set phy mode through phy-gmii-sel driver. No properties for this node? A whole node for 1 register? Or this node is ti,phy-gmii-sel.yaml? If so, add a $ref to it. > + > required: > - compatible > - reg > diff --git a/Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml b/Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml > index ff8a6d9eb153..54da408d0360 100644 > --- a/Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml > +++ b/Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml > @@ -53,12 +53,21 @@ properties: > - ti,am43xx-phy-gmii-sel > - ti,dm814-phy-gmii-sel > - ti,am654-phy-gmii-sel > + - ti,j7200-cpsw5g-phy-gmii-sel > > reg: > maxItems: 1 > > '#phy-cells': true > > + ti,qsgmii-main-ports: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: | > + Required only for QSGMII mode. Array to select the port for > + QSGMII main mode. Rest of the ports are selected as QSGMII_SUB > + ports automatically. Any one of the 4 CPSW5G ports can act as the > + main port with the rest of them being the QSGMII_SUB ports. Constraints? > + > allOf: > - if: > properties: > @@ -73,6 +82,22 @@ allOf: > '#phy-cells': > const: 1 > description: CPSW port number (starting from 1) > + - if: > + properties: > + compatible: > + contains: > + enum: > + - ti,j7200-cpsw5g-phy-gmii-sel > + then: > + properties: > + '#phy-cells': > + const: 1 > + description: CPSW port number (starting from 1) > + ti,qsgmii-main-ports: > + maxItems: 1 An array, but only 1 entry allowed? > + items: > + minimum: 1 > + maximum: 4 Can't this be up above? > - if: > properties: > compatible: > @@ -97,7 +122,7 @@ additionalProperties: false > > examples: > - | > - phy_gmii_sel: phy-gmii-sel@650 { > + phy_gmii_sel: phy@650 { > compatible = "ti,am3352-phy-gmii-sel"; > reg = <0x650 0x4>; > #phy-cells = <2>; > -- > 2.25.1 >