From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 563D0C433EF for ; Tue, 12 Jul 2022 08:51:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbiGLIvn (ORCPT ); Tue, 12 Jul 2022 04:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbiGLIvn (ORCPT ); Tue, 12 Jul 2022 04:51:43 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2728FA6F2D for ; Tue, 12 Jul 2022 01:51:42 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id t1so9261622lft.8 for ; Tue, 12 Jul 2022 01:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=vjHu968868HtBRMF6NYSXXaRFX5EKeerKBprL50iI0E=; b=B4Rg2xxpEzgxWoU2cgZY9zxkR+yH0vP0ittREWZnTv9ide6+6/h+OwcF7XZ/jPDUhD luRNBUbEgsoVHTsEnUfK0nTgOwSsJ2eeFrw29LtOkTucVWf9TGLAam31/lfBzW3VYH4L 6HraAszhWXb6GKWkzgCvsisB0/qpjqzoTrmYCt5JqOI15cJUA+dj9pJaYYfGpbj+uUwR lZz1IGbe6in9spUndTj/WnYzqEPpLt++nNLVYLJWoHvd9ugRfNUtfbO2wcnx0Rbjfdn2 5Jz8CVIa338s2zLcYWw9Fej9glRgLrn4qyjips9Nmo3WJB2YuyRfP+a5o9Xj1Af/0EKQ es1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=vjHu968868HtBRMF6NYSXXaRFX5EKeerKBprL50iI0E=; b=6noTkHP1df62Gd6F3LSnoVbRf9SfAbYxBh5u98vWWDUC8Q/z9Ro7vRk4d8pUdQziiB CTEZNtPWT6UgMO/TSOKVmyJipDLBa6ItPax77dZabIblXtQJfHsfLo0B7DK6T3p50cwW RPubsX/zKFalOFRgWijqZ2+jaLICzjQShh6PzMw4mrDsAO0PmaTlVdnPBNV0YPLfchuV fayOf4T1YTsXAwefhc4+X5pszT6BkbSevPntLR08kNJurtLLKYk9Yezrc+vL5HmEkt8F mOE/M4tKT8F32MW/ArbKnQ67ti5auV3QYthJHeuiKSOPjcR5o+acSQRhV1GTWhYfVQVU Mfow== X-Gm-Message-State: AJIora/w51qhn3wvHZOlVZD0aWrXHEFxfHtBmKWd3hFL6ts9AGd7nWKM nOHI33XSObTmShercixaIjAqPw== X-Google-Smtp-Source: AGRyM1vsmzS4v4HFCqeaDGGnx1Zk47dL88gMC7MXgdrPxgTvK9Q4n1ARWFSGp3BEZ0ZjGbeNI7d8Bg== X-Received: by 2002:a05:6512:3da8:b0:489:e6df:3dd0 with SMTP id k40-20020a0565123da800b00489e6df3dd0mr3719758lfv.224.1657615900524; Tue, 12 Jul 2022 01:51:40 -0700 (PDT) Received: from [10.0.0.8] (fwa5cab-55.bb.online.no. [88.92.171.55]) by smtp.gmail.com with ESMTPSA id o26-20020ac25e3a000000b004886508ca5csm2070843lfg.68.2022.07.12.01.51.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jul 2022 01:51:39 -0700 (PDT) Message-ID: Date: Tue, 12 Jul 2022 10:51:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC PATCH net-next 2/9] dt-bindings: net: Expand pcs-handle to an array Content-Language: en-US To: Sean Anderson , Heiner Kallweit , Russell King , netdev@vger.kernel.org Cc: Jakub Kicinski , Madalin Bucur , "David S . Miller" , Paolo Abeni , Ioana Ciornei , linux-kernel@vger.kernel.org, Eric Dumazet , Andrew Lunn , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org References: <20220711160519.741990-1-sean.anderson@seco.com> <20220711160519.741990-3-sean.anderson@seco.com> From: Krzysztof Kozlowski In-Reply-To: <20220711160519.741990-3-sean.anderson@seco.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 11/07/2022 18:05, Sean Anderson wrote: > This allows multiple phandles to be specified for pcs-handle, such as > when multiple PCSs are present for a single MAC. To differentiate > between them, also add a pcs-names property. > > Signed-off-by: Sean Anderson > --- > > .../devicetree/bindings/net/ethernet-controller.yaml | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > index 4f15463611f8..c033e536f869 100644 > --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml > +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > @@ -107,11 +107,16 @@ properties: > $ref: "#/properties/phy-connection-type" > > pcs-handle: > - $ref: /schemas/types.yaml#/definitions/phandle > + $ref: /schemas/types.yaml#/definitions/phandle-array > description: > Specifies a reference to a node representing a PCS PHY device on a MDIO > bus to link with an external PHY (phy-handle) if exists. You need to update all existing bindings and add maxItems:1. > > + pcs-names: To be consistent with other properties this should be "pcs-handle-names" and the other "pcs-handles"... and then actually drop the "handle". > + $ref: /schemas/types.yaml#/definitions/string-array > + description: > + The name of each PCS in pcs-handle. You also need: dependencies: pcs-names: [ pcs-handle ] > + > phy-handle: > $ref: /schemas/types.yaml#/definitions/phandle > description: Best regards, Krzysztof