From patchwork Tue May 22 11:16:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 918176 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="siWvOuRe"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40qtTd6NxHz9s5w for ; Tue, 22 May 2018 21:19:49 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbeEVLTs (ORCPT ); Tue, 22 May 2018 07:19:48 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54260 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbeEVLRn (ORCPT ); Tue, 22 May 2018 07:17:43 -0400 Received: by mail-wm0-f68.google.com with SMTP id a67-v6so30665428wmf.3; Tue, 22 May 2018 04:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z7xAB/DfjU4pQe5cFW5iIVvZFfLbgnMBxfPiQYtMiQc=; b=siWvOuRenw53P5NLfQnVpkaUmgxQ0rBty6SEE4+sj2gVgwqCtwu5YZF3DegheqUkr5 F9GutQ7CYkumeyKtRXQHeTwdYcc8lBHvV+r6gl/X7ZCc2p7y3IjT6X9v5YwSl1d3SuyL ybfM6/21SjZOvrBykkSHjLZR6iB1Ctf0rDw21tsPOPcyTlxVmSgHUgvzdfJvnHAPjs/3 xAp+yyUCgsaU7rqhWKkUswGrCNuGRfFaBrxTDt8lTxNy6xOYe9ZOqPJJzWgTtyVjJhK0 4A9I1h41cEPFwVeS0I87kUpMQVVO2rDHs9/nf0biK7S7OpMd/iCz1tBpKW9Q1tspWYOc 0ffQ== 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:content-transfer-encoding; bh=z7xAB/DfjU4pQe5cFW5iIVvZFfLbgnMBxfPiQYtMiQc=; b=aCTdEpkwpNWdPGp7TotUiJ6qzGGRGVrvEK8GG1QmzLxDTD9VLHAUund7GvjFkaJo8V 1lFsILPpaZoUisKzT9+3ZYofboeCzQi+patJ7AesHh/Lih3/6tdLYaCB1Doz9SWF4shv 92PFPQRw69pwvsqAxQ+X5+mGwgVU+oK0+tIdn+wS6YwWcXskFWoaCNev9IMuRaxz5L38 ODK8y93Sl7gOEYzlK022Bh69YrbyA8tpNT/iv+dlCIqDPYOy1fOJh+lG/8KPBL3oNnvM Lm5BcCsl6ip0NstfeH5Z8oUcGxCmX7Jr4WEb8SX0BvQ9ElvWqZM2xNB6xyyqUUUG2Q+Z xiPA== X-Gm-Message-State: ALKqPwfNnQlGQnkkeSKKSiJXRaTXj/yPjd56Ap4nWCZr1I96ENsT4ALI l3GKjS5iJDw27Bqwme/pYw1yD5N4 X-Google-Smtp-Source: AB8JxZrs1okkpUO2osVQVuQ8h/OAoXLrrjXatDQMCgaQY9OyvqL0TmjAKWl57acQVN8ykl2LHeyaOA== X-Received: by 2002:a1c:904b:: with SMTP id s72-v6mr843104wmd.85.1526987862074; Tue, 22 May 2018 04:17:42 -0700 (PDT) Received: from iota-build.ysoft.local ([89.24.100.190]) by smtp.gmail.com with ESMTPSA id z2-v6sm15146747wmg.46.2018.05.22.04.17.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 04:17:41 -0700 (PDT) From: "=?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?=" X-Google-Original-From: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, f.fainelli@gmail.com, vivien.didelot@savoirfairelinux.com, andrew@lunn.ch, mark.rutland@arm.com, robh+dt@kernel.org, davem@davemloft.net, michal.vokac@ysoft.com Subject: [PATCH net-next v2 1/7] net: dsa: qca8k: Add QCA8334 binding documentation Date: Tue, 22 May 2018 13:16:26 +0200 Message-Id: <1526987792-56861-2-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1526987792-56861-1-git-send-email-michal.vokac@ysoft.com> References: <1526987792-56861-1-git-send-email-michal.vokac@ysoft.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add support for the four-port variant of the Qualcomm QCA833x switch. The CPU port default link settings can be reconfigured using a fixed-link sub-node. Signed-off-by: Michal Vokáč Reviewed-by: Rob Herring Reviewed-by: Andrew Lunn --- Changes in v2: - Add commit message and document fixed-link binding. .../devicetree/bindings/net/dsa/qca8k.txt | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.txt b/Documentation/devicetree/bindings/net/dsa/qca8k.txt index 9c67ee4..15b9057 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.txt +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.txt @@ -2,7 +2,10 @@ Required properties: -- compatible: should be "qca,qca8337" +- compatible: should be one of: + "qca,qca8334" + "qca,qca8337" + - #size-cells: must be 0 - #address-cells: must be 1 @@ -14,6 +17,20 @@ port and PHY id, each subnode describing a port needs to have a valid phandle referencing the internal PHY connected to it. The CPU port of this switch is always port 0. +A CPU port node has the following optional property: + +- fixed-link : Fixed-link subnode describing a link to a non-MDIO + managed entity. See + Documentation/devicetree/bindings/net/fixed-link.txt + for details. + +For QCA8K the 'fixed-link' sub-node supports only the following properties: + +- 'speed' (integer, mandatory), to indicate the link speed. Accepted + values are 10, 100 and 1000 +- 'full-duplex' (boolean, optional), to indicate that full duplex is + used. When absent, half duplex is assumed. + Example: @@ -53,6 +70,10 @@ Example: label = "cpu"; ethernet = <&gmac1>; phy-mode = "rgmii"; + fixed-link { + speed = 1000; + full-duplex; + }; }; port@1 {