From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932756AbdGXPoa (ORCPT ); Mon, 24 Jul 2017 11:44:30 -0400 Received: from mail1.bemta5.messagelabs.com ([195.245.231.152]:6042 "EHLO mail1.bemta5.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756645AbdGXPoL (ORCPT ); Mon, 24 Jul 2017 11:44:11 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRWlGSWpSXmKPExsVyeL7SP92TomW RBnOmmVmcv3uI2eLJgXZGiznnW1gsfr07wm6xaupOFouFbUtYLC7vmsNmcWyBmMWsI/uZHDg9 tqy8yeSxc9Zddo+dOz4zeSzum8zq0f/XwOPKxrlMHp83yQWwR7Fm5iXlVySwZhx99JClYAZ/x bulvUwNjC28XYxcHEICaxkl7v5fyAzhLGCUWH1gBZDDycEmYCyxa/pmJhCbRUBVonfnBZYuRg 4OYYFIiQ8PnUHqRQTeM0p8mL0LrIZZQFFi1fPzYL28AoISJ2c+YYGIS0gcfPECKu4mMf3VNrB 6IQEZiclLJjOBzJQQkJc4d6AIJCwhECexae0L5gmMvLOQTJqFZNICRqZVjOrFqUVlqUW6lnpJ RZnpGSW5iZk5uoYGpnq5qcXFiempOYlJxXrJ+bmbGIEhzAAEOxjXtjofYpTkYFIS5RViKosU4 kvKT6nMSCzOiC8qzUktPsQow8GhJMErJgKUEyxKTU+tSMvMAUYTTFqCg0dJhNcNJM1bXJCYW5 yZDpE6xajLMeX/mi9MQix5+XmpUuK8n4SBigRAijJK8+BGwCL7EqOslDAvI9BRQjwFqUW5mSW o8q8YxTkYlYR5vUBW8WTmlcBtegV0BBPQEXNmlIIcUZKIkJJqYKyWirU0PTLtrnvsvnNnY7vb JY7t79xt9Pho/OrjXg6FNzd+s7/Ss3XLtuxznqeTdpVyvH2zat3zuIkFZ/tC7pYEn7ZrlWrPr ridKz13RsamynRvxW+PLga931s65wjb1fPCsTuWyr2N0RZtbn2sZ+Aj5fJ8xZUV97dv7lz0Mq X0gMHhP19zT5oosRRnJBpqMRcVJwIAGZIB9ucCAAA= X-Env-Sender: Egil.Hjelmeland@zenitel.com X-Msg-Ref: server-10.tower-180.messagelabs.com!1500911049!99996049!2 X-Originating-IP: [195.159.34.254] X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=zenitel.com,-,- X-VirusChecked: Checked From: Egil Hjelmeland Date: Tue, 11 Jul 2017 13:48:25 +0200 Subject: [PATCH 09/13] net: dsa: lan9303: Added Documentation/networking/dsa/lan9303.txt To: , , , , , , , , CC: MIME-Version: 1.0 Content-Type: text/plain Message-ID: <60633305145b42d898e3cacd76216705@nooslMX1.zenitelcss.com> X-Originating-IP: [10.5.202.90] X-ClientProxiedBy: nooslMX1.zenitelcss.com (10.5.2.91) To nooslMX1.zenitelcss.com (10.5.2.91) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Egil Hjelmeland --- Documentation/networking/dsa/lan9303.txt | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/networking/dsa/lan9303.txt diff --git a/Documentation/networking/dsa/lan9303.txt b/Documentation/networking/dsa/lan9303.txt new file mode 100644 index 000000000000..1fd72ff4b492 --- /dev/null +++ b/Documentation/networking/dsa/lan9303.txt @@ -0,0 +1,48 @@ +LAN9303 Ethernet switch driver +============================== + +The LAN9303 is a three port 10/100 ethernet switch with integrated phys +for the two external ethernet ports. The third port is an RMII/MII +interface to a host master network interface (e.g. fixed link). + + +Driver details +============== + +The driver is implemented as a DSA driver, see +Documentation/networking/dsa/dsa.txt. + +See Documentation/devicetree/bindings/net/dsa/lan9303.txt for device +tree binding. + +The LAN9303 can be managed both via MDIO and I2C, both supported by this +driver. + +At startup the driver configures the device to provide two separate +network interfaces (which is the default state of a DSA device). + +When both user ports are joined to the same bridge, the normal +HW MAC learning is enabled. This means that unicast traffic is forwarded +in HW. STP is also supported in this mode. + +If one of the user ports leave the bridge, +the ports goes back to the initial separated operation. + +The driver implements the port_fdb_xxx/port_mdb_xxx methods. + + +Sysfs nodes +=========== + +When a user port is enabled, the driver creates sysfs directory +/sys/class/net/xxx/lan9303 with the following files: + + - swe_bcst_throt (RW): Set/get 6.4.7 Broadcast Storm Control + Throttle Level for the port. Accesses the corresponding bits of + the SWE_BCST_THROT register (13.4.3.23). + + +Driver limitations +================== + + - No support for VLAN -- 2.11.0 DISCLAIMER: This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message.