From patchwork Fri Mar 26 10:56:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Waldekranz X-Patchwork-Id: 410549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D979C433ED for ; Fri, 26 Mar 2021 10:58:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55F5361A2D for ; Fri, 26 Mar 2021 10:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbhCZK54 (ORCPT ); Fri, 26 Mar 2021 06:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbhCZK5g (ORCPT ); Fri, 26 Mar 2021 06:57:36 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B743C0613B3 for ; Fri, 26 Mar 2021 03:57:35 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id b4so7019218lfi.6 for ; Fri, 26 Mar 2021 03:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=waldekranz-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=0+klkabTeEvw0WJV8BO/v4dQpSrn0TdpcI7Bv/xjc28=; b=Ep/maXsSuMdE8i6PgUxX7oQkbaaWqtDrT9BpKIsTk2LlDof1n87dQwgjSDp8qOco3G ltq1IbXiDTvsgBLMORYFEFvH4xq9KxE4wpmcbyiAJRMJXKHp2YPGm7VTiuVecwy8wUaN Ug2a7QUojgeSbvVarhep3XSHEDk1BvR+/8z1GVXpMk7LR2dK4jsK0P9Oq+P02iukYhLS OkVIvopLKjJTg+/EkRP+9x+qut+rxCuHhWDROBHp6B0jaL6wKG5W/hlE1lBWhdo5SLdU h+4XMceIuYgiZI6zAX+9xwjVxUlpfN04S0GeeX1YQTl7ji+hmoNkd+ZtZsE+2BEf7Mwd F+Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=0+klkabTeEvw0WJV8BO/v4dQpSrn0TdpcI7Bv/xjc28=; b=d3uP+9nRenRZNKk2Q8h7ZchXmgNK/BUgld5XwpojK6H616uIaVvnPdcoUZxtNKSgwW uQgIeFZ9HAUhSCAXBDInQy3eA7CIjLvIecMcb6Ez5jUAVUxR+bdup0EDDZzJTvTcJHRV EqnXIHlXfm/+H1InN0nHOYbqDK9L0Yw4diebo0CvHyA5XnFo1iuCwyl8EDpiRRgc0UR1 pN0yo1nlQQwKqq8sgkH6jnOtFdx8amJ6GobLMLoaq2UmdSemExm7SBmtvy3WU0vpqOzy 5ITZSizgG57IEiU5bds30Oz1QXEfskkXX83SHGZGmMth3MRWuzTMrpXALulI32jmLSNE RFgg== X-Gm-Message-State: AOAM532W66osMYXMysAQRrvmUDa97BTJb9kgtPjUCI9SLW8oFOAwr9tr zcSxj+TB+67ztMf0D/DKQ7yV4A== X-Google-Smtp-Source: ABdhPJy/p6Z0jp/qGHIM6d19d2al5fxJSuc+D9EKisjJjgj434vhQ7GVuAQsH3F7XqQ+NYIvGrnCGg== X-Received: by 2002:a19:380a:: with SMTP id f10mr7599372lfa.294.1616756253972; Fri, 26 Mar 2021 03:57:33 -0700 (PDT) Received: from veiron.westermo.com (static-193-12-47-89.cust.tele2.se. [193.12.47.89]) by smtp.gmail.com with ESMTPSA id n23sm832629lfq.121.2021.03.26.03.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 03:57:33 -0700 (PDT) From: Tobias Waldekranz To: davem@davemloft.net, kuba@kernel.org Cc: andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, netdev@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH net-next 3/3] dt-bindings: net: dsa: Document dsa, tag-protocol property Date: Fri, 26 Mar 2021 11:56:48 +0100 Message-Id: <20210326105648.2492411-4-tobias@waldekranz.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210326105648.2492411-1-tobias@waldekranz.com> References: <20210326105648.2492411-1-tobias@waldekranz.com> MIME-Version: 1.0 Organization: Westermo Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The 'dsa,tag-protocol' is used to force a switch tree to use a particular tag protocol, typically because the Ethernet controller that it is connected to is not compatible with the default one. Signed-off-by: Tobias Waldekranz --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 8a3494db4d8d..5dcfab049aa2 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -70,6 +70,13 @@ patternProperties: device is what the switch port is connected to $ref: /schemas/types.yaml#/definitions/phandle + dsa,tag-protocol: + description: + Instead of the default, the switch will use this tag protocol if + possible. Useful when a device supports multiple protcols and + the default is incompatible with the Ethernet device. + $ref: /schemas/types.yaml#/definitions/string + phy-handle: true phy-mode: true