From patchwork Thu Jun 14 12:35:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 138567 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2058500lji; Thu, 14 Jun 2018 05:37:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLYByiWrNuA2JqzXWXFG2GpZVXO4vEJZfGjBAq3oc99iYBHjcw/wPDO+gkLtUnyiUMp00ZM X-Received: by 2002:a65:4bcd:: with SMTP id p13-v6mr2217409pgr.114.1528979873131; Thu, 14 Jun 2018 05:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528979873; cv=none; d=google.com; s=arc-20160816; b=NH2xbzNwKI5wg5PRGyqBcfsO3o/oqfirBBY4NkS42EQxFDLvDA2f13uO/EmQqzvWV4 1FQngaXBHriwCvJvWK4xbthKPIXbWhQFAkhk+N0UWgh4wAGur4Zrw2qQ0rECjoHkkJc2 VkvOburhTFF22M+lAOXrU0lyexb/0YkKYkkU2SJxr8QEgcAQUPWMQ6q9txYkDD/KXTHJ POlJ1uN7ApaOXlIRzvWbsYOf9CJkX5RRqnAkGrmM8CYdCXTPRxYN4OTrhUNt6X1cGM54 c8X3Bg3hYk0cq2npJrGibNF13iVLlSM7aPHgbahDh4Z6VWpfeywPr1YT9uasvs9bbVX4 TNJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wBArKc+nnWcj22xaU3EJ4vtw7Ao3tDNsxW75R0gfK5c=; b=0uh3h80Hcc1m5II17Z44YfLOHuQoKvVzwouZ9mquSXUpMPHaBb0Qe0RaMDhD/h7S0W wl5doj+q8aUc/6qanIReXs06mHideHr5aWs6KIYoqFzbycRQL5Zq0hmEsE+XhbFb5e6W V1j4wlcbnPx23Yy7ZAuOUGBHjPxqGPcFTGpMI9OD6PzoDWJZAdDUXhTVFSrq4BBCyIzy 4Q5aAFNS82b3XgI4QEiE/zS80ruKQkFeAnzbhbzNaYstaA2vcsuC3YDg6a9ZsNRzsn6W dLFE+1n1jjXNEGS4E7aJHsMqpoKlS0LTwzMVnVr55FG1aU+C2Ra8uviT7YM5Wd2CeLl9 L41Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HwaY635d; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e72-v6si5462466pfd.352.2018.06.14.05.37.52; Thu, 14 Jun 2018 05:37:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HwaY635d; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755097AbeFNMhw (ORCPT + 5 others); Thu, 14 Jun 2018 08:37:52 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34137 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755069AbeFNMhv (ORCPT ); Thu, 14 Jun 2018 08:37:51 -0400 Received: by mail-lf0-f68.google.com with SMTP id o9-v6so9193593lfk.1 for ; Thu, 14 Jun 2018 05:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SGxk/c0gBjFQ4b+0ZOqV9hBS224c1J1DRzSeFJnG2C8=; b=HwaY635dC9vX3mnoB8G0fzP58K9dStviyYXFxPcWqdGEBOlBokXSs/75GXWKMw3Pkq kesA6/+eqjo5kD+LSmyyU4ZdIBex8J4Y9oLP4v4+hmE3aBQeSlmW1x/BStEIiFiGl/xV myAqssngfwgPjOyAkHiByj/6Np60bMgF5qiyM= 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; bh=SGxk/c0gBjFQ4b+0ZOqV9hBS224c1J1DRzSeFJnG2C8=; b=a6Y67Z361gDm12EGmVBqnvLwzygPKkTzPjObXDIPqq2lrPl89K98lhXH8z2SDrk1/P QKlA14ZQNcDlTshfNlWRQegi9u87jpn/enpjPTYz75weXOTcDt0Hp4JS2uiLPzzXM8J8 pomHKWUWJW75bNg55+cC86JqGx40yjEc88VjhNYqNxX1qzv3AmEC8ejSIpFTq+2bq1ca SLliaajM+FRneDepEjRJLHnv4Ez+sOaEdBOSGwfpNEDGGZZr7SyMmWByUXGhftdd7VDv ovi1KTpO7DW3/2VXk0n1v2cqvcezgfXhSt9gF28i7gHCUBDMKdY0c0XBLmw9oTUjP/Ov wuaA== X-Gm-Message-State: APt69E1TKJ5/NEXUYMJD4NNmO4iJALEtb+SA0xPpaVjkglHTF9Cf6ck3 39/DHYrZ2lgeaFGhmE3hBmfnWQ== X-Received: by 2002:a2e:1bcb:: with SMTP id c72-v6mr1783338ljf.99.1528979869544; Thu, 14 Jun 2018 05:37:49 -0700 (PDT) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id g17-v6sm937152ljg.27.2018.06.14.05.37.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Jun 2018 05:37:48 -0700 (PDT) From: Linus Walleij To: Andrew Lunn , Vivien Didelot , Florian Fainelli Cc: netdev@vger.kernel.org, openwrt-devel@lists.openwrt.org, LEDE Development List , Gabor Juhos , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/3] net: dsa: Add DT bindings for Vitesse VSC73xx switches Date: Thu, 14 Jun 2018 14:35:32 +0200 Message-Id: <20180614123534.8063-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180614123534.8063-1-linus.walleij@linaro.org> References: <20180614123534.8063-1-linus.walleij@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds the device tree bindings for the Vitesse VSC73xx switches. We also add the vendor name for Vitesse. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../bindings/net/dsa/vitesse,vsc73xx.txt | 81 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.txt -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Florian Fainelli diff --git a/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.txt b/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.txt new file mode 100644 index 000000000000..474cdba5fa37 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.txt @@ -0,0 +1,81 @@ +Vitess VSC73xx Switches +======================= + +This defines device tree bindings for the Vitesse VSC73xx switch chips. +The Vitesse company has been acquired by Microsemi and Microsemi in turn +acquired by Microchip but retains this vendor branding. + +The currently supported switch chips are: +Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch +Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch +Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch +Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch + +The device tree node is an SPI device so it must reside inside a SPI bus +device tree node, see spi/spi-bus.txt + +Required properties: + +- compatible: must be exactly one of: + "vitesse,vsc7385" + "vitesse,vsc7388" + "vitesse,vsc7395" + "vitesse,vsc7398" +- gpio-controller: indicates that this switch is also a GPIO controller, + see gpio/ +- #gpio-cells: this must be set to <2> and indicates that we are a twocell + GPIO controller. + +Optional properties: + +- reset-gpios: a handle to a GPIO line that can issue reset of the chip. + It should be tagged as active low. + +Required subnodes: + +See net/dsa/dsa.txt for a list of additional required and optional properties +and subnodes of DSA switches. + +Examples: + +switch@0 { + compatible = "vitesse,vsc7395"; + reg = <0>; + /* Specified for 2.5 MHz or below */ + spi-max-frequency = <2500000>; + gpio-controller; + #gpio-cells = <2>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan1"; + }; + port@1 { + reg = <1>; + label = "lan2"; + }; + port@2 { + reg = <2>; + label = "lan3"; + }; + port@3 { + reg = <3>; + label = "lan4"; + }; + vsc: port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; +}; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index b5f978a4cac6..e8473894700c 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -385,6 +385,7 @@ v3 V3 Semiconductor variscite Variscite Ltd. via VIA Technologies, Inc. virtio Virtual I/O Device Specification, developed by the OASIS consortium +vitesse Vitesse Semiconductor Corporation vivante Vivante Corporation vocore VoCore Studio voipac Voipac Technologies s.r.o.