From patchwork Wed May 23 06:20:18 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: 918751 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="mlz3uCiS"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40rMrz2lRSz9s16 for ; Wed, 23 May 2018 16:23:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754069AbeEWGVR (ORCPT ); Wed, 23 May 2018 02:21:17 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:46611 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbeEWGVO (ORCPT ); Wed, 23 May 2018 02:21:14 -0400 Received: by mail-wr0-f196.google.com with SMTP id x9-v6so21342782wrl.13; Tue, 22 May 2018 23:21:13 -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=EH/XC0aDQUqXaxB57P+nVPH8Wo1s0uvzcmv0dD4gPzQ=; b=mlz3uCiSHwIwftQytw7ey5CmF4OQi/254H/shnNZCFNSWCafNrGCdfmsQ8KCeIVbt4 jJ54dTCMF6dKxUBxtpnhyUpR1+9ACWShWqfee+HHHo+kc2MqvAXaA7GAFxGXqqoY9HNd 7QmrD/xllsS8edungxtAble/IGzgfFjrXySt5nWjylPiXWZs6tNQLsJMCKJDyqaS5jKy 2adSGpiWgKWhX04RNucrchJ1V63PQIAE7DFLxD+//2ZtlYAYFJurJmOqHnmKAet0kDpN 3nKhIce5Vt+BZcTTX6L/AKdqv5fuIA+b+ag19uvjWPmcAwHxi2WJs6iidG+4208EZJqA UEEg== 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=EH/XC0aDQUqXaxB57P+nVPH8Wo1s0uvzcmv0dD4gPzQ=; b=ZI5+n2ZngNfS/cmBc7qAwcNI0TYdEBsBnlhqvGPAyfggEHk/CLCt/JzEKjf1dFe56t GqrbPCHMHdA4pMWFOkCZPmJ5o1D1v8GYTjh6IctavLZIGoWvBY/o+GY0/1qM61TFCZEO uVonCrC6D+Wfje1cRKVfuhVs7Q9RgPZ2z9tz2Ike0WVqV1gMn935Qk1fSOK0pVvECsve 9d2eXA6cQEh0T6rPxNiKi/jr03QyxVK6HiZriBMke+Lr+VCLPA2naosyuibKHhckln1I EznJRfjRoYh/UkxSv+bBsJnyXXJzvOZuD7zOQIDybJ8M5s9oDKKjf5jIZ6q+RNO2YbHk 16RQ== X-Gm-Message-State: ALKqPwd/Dqzg1AeaVFi3Y8YUv1NhSLmuaxd4dSIlj7xZR/Len8SsZUC2 o7FrjBWwc5I6wrD/lp/S7dptK524 X-Google-Smtp-Source: AB8JxZq5qhDboAG0/ujVSpWKja7CuxnW5KYdFPfgf4rJImSfUz+TuV5yt8BLnZbdJL3ub61hv606CQ== X-Received: by 2002:adf:f78d:: with SMTP id q13-v6mr1268213wrp.60.1527056472692; Tue, 22 May 2018 23:21:12 -0700 (PDT) Received: from vokac-latitude.ysoft.local ([89.24.100.190]) by smtp.gmail.com with ESMTPSA id 38-v6sm43012912wry.61.2018.05.22.23.21.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 23:21:11 -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 v3 1/7] net: dsa: qca8k: Add QCA8334 binding documentation Date: Wed, 23 May 2018 08:20:18 +0200 Message-Id: <1527056424-14528-2-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527056424-14528-1-git-send-email-michal.vokac@ysoft.com> References: <1527056424-14528-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 Reviewed-by: Florian Fainelli --- Changes in v3: - Correct fixed-link node documentation term: s/property/node. - Add "Reviewed-by" tag from Rob and Andrew. 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..bbcb255 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 node: + +- 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 {