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: 929410 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cspCC8Oa"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HwaY635d"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41638d5PDsz9ryk for ; Thu, 14 Jun 2018 22:39:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hNHps530U31Pdq9eo8golLNplG8zyuhVnFETF2n+JFw=; b=cspCC8OapHYEVc Maafo0OyQFBIvdeuSik6gD/DKwxEudV8+prSSgsswR4WgVV6J6AKxB2ccHqREgJAu1/M00XhFdD6y j0JVkUo73cFxm+b+jGbGhg9DmrkGCw4RPMxfAVBe1w2Pd0IZg7M1qYIOb7BIFdd5I0eTJlC3Vc13S AV5EICsFp1TmkIpSjTqQ4S9h4ijXXQPwBr4ZX5eDAVG0t8QFTiMmYcuxEISr5l971Ifl0YCvD95Zv pgaRxUZEN1vt9OOsTRHYT38oMIB8LlHaf7kkX2WH6ZwSNLTSWVETmOcXxiGgtiX9Rg3OUBy4y+FO5 RdYEE3IixhNn0v+pghhg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTRWm-0005vV-29; Thu, 14 Jun 2018 12:39:00 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTRVp-0005Kr-KT for openwrt-devel@lists.openwrt.org; Thu, 14 Jun 2018 12:38:08 +0000 Received: by mail-lf0-x244.google.com with SMTP id g21-v6so9194155lfb.4 for ; Thu, 14 Jun 2018 05:37:51 -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=Dsgls8hYIkJg/cZPUUfIBOTYwyHHGXhLfrPMAjzzvGfSoCQKq9lmDGcq4o7ZgwAh2y pvKHnZ7zYKiEmI6SGrJ+wKk8NS87zlJQtQFF2QVpwzhJ9+35QmZvYY3ykhkvSu3lN0Jt wRTuv+jrK8u+aCf6MWuC9IcburDH+Ao6Ap+cVauhJJrQKcxQSyLu7U9VaR/PaQ7ZbzlA T+k0jj1ytxvAz67uCLIWeza/42pV28HYAAaKb/uh70rcw1OmlrUT+xefLqF9Oi7QUjkT jKiTB0HgEFDquMfiT34M+oU09jCJH6rPj/xkkzNhY+t9lOHWtClA0otIRwyqImH74ouR f8JQ== X-Gm-Message-State: APt69E0hKZvf5uV1grBwqhImggZ35xg8nuky0Gdh0iGJj+IlXvBy2FhU QycuPpCP4edp60OaFZqByCH/Iw== X-Google-Smtp-Source: ADUXVKLcm9S1ofzBHFT0twtJLS77yMn+ztAWlXs7c2502C2I0/72IZ6RHCxE6KGjnuybSPJLkpWrAg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180614_053801_692254_CFC0422C X-CRM114-Status: GOOD ( 15.81 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4010:c07:0:0:0:244 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Subject: [OpenWrt-Devel] [PATCH 1/3] net: dsa: Add DT bindings for Vitesse VSC73xx switches X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Linus Walleij , LEDE Development List , devicetree@vger.kernel.org, Gabor Juhos MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.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 Reviewed-by: Florian Fainelli --- .../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 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.