From patchwork Thu May 26 21:08:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Kresin X-Patchwork-Id: 626884 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rG1yW5f65z9t5X for ; Fri, 27 May 2016 07:10:43 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kresin-me.20150623.gappssmtp.com header.i=@kresin-me.20150623.gappssmtp.com header.b=jDEmuRPr; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b62Wj-0001g2-Hz; Thu, 26 May 2016 21:09:09 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b62WY-0001QS-2K for lede-dev@lists.infradead.org; Thu, 26 May 2016 21:08:58 +0000 Received: by mail-wm0-x243.google.com with SMTP id n129so8513138wmn.1 for ; Thu, 26 May 2016 14:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kresin-me.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=2cbxk4Ooj905WBpW3KtAEGRu+7f7Hph6/GN1Si2KSqY=; b=jDEmuRPrWMl7SXfwYUQw1f6Yi/uvBEOD778dvrK46oSjXGatVxSbJndrHSodJ8WDeW pmyULtqiSP9YQUjMaG5R/s4PIDLLYHz1SfVg6WUMG2cUGzuF5PTR1RyjltGyr2CTMsWt 0sUqLMUOdqnZUtGP8mE9/MAe16Jl+tocw779e06IwbCykwInYT7mHDP7LyDDnPa85/Er cl0kqV9z4wIUUZZY7UJ6wFFwsiTh7pQnBF3/EeEXuMRnstHwEBSXAAV0xIWnNJXZLxqI 7MsdPiGVH2LWWEZ6SdoJcDZXLYwknu5P20lSDFgaqSQZBuhOmJ6pS8XN/CRwKSeOH3JE 872Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=2cbxk4Ooj905WBpW3KtAEGRu+7f7Hph6/GN1Si2KSqY=; b=i9AsbfugoTEutq8UY4KDw36ctNFxXyBWhvT7dNF1lAYZbCZKF6yR743CVl5rA/CsEw 3bZeycoFDfofeyBUDrQ7zGt0zgVjrF2Z5x+60zCci+k8zIj7t1y5PJ85c07YTBdtxXQM jOCi5xNG7WvXUXk0bOhz06YxdSeowPia8bFUc/X5/OpfHK+/QS/IsfvUEQ2faDQpf0ow 2NKSUaJA9TUKzXZ9flv2Bhe4N5SmgCLHk+wH2vWtrXboxs/DdEZOW6aBZV9fadZa2QCT rfKQ8+FDXoD0MPHm1TpW37KOjyFZSm5u2FbhgFT8Dtyy8yNLkH0xunmtgAPE0KyaAisY QSpA== X-Gm-Message-State: ALyK8tLTzCF2OyVo65oq8TBnPrF3u/0xQS1E2qSm7hiS1RI6VjWQYYugozRp6XS3VYKzsA== X-Received: by 10.194.171.7 with SMTP id aq7mr10770255wjc.8.1464296916443; Thu, 26 May 2016 14:08:36 -0700 (PDT) Received: from desktop.wvd.kresin.me (p5DDC4E91.dip0.t-ipconnect.de. [93.220.78.145]) by smtp.gmail.com with ESMTPSA id y6sm5288755wmy.8.2016.05.26.14.08.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 May 2016 14:08:36 -0700 (PDT) From: Mathias Kresin To: lede-dev@lists.infradead.org Date: Thu, 26 May 2016 23:08:22 +0200 Message-Id: <1464296907-28020-4-git-send-email-dev@kresin.me> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464296870-27976-1-git-send-email-dev@kresin.me> References: <1464296870-27976-1-git-send-email-dev@kresin.me> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160526_140858_262781_C1D552A1 X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:243 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH 4/9] lantiq: VGV7519 - add vlan support X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add the lantiq,switch property to enable vlans and setup them up. Signed-off-by: Mathias Kresin --- target/linux/lantiq/base-files/etc/board.d/02_network | 3 ++- target/linux/lantiq/dts/VGV7519.dtsi | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network index b27b802..58fb6ca 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -126,7 +126,8 @@ BTHOMEHUBV5A) VGV7519) lan_mac=$(mtd_get_mac_binary board_config 22) wan_mac=$(macaddr_add "$lan_mac" 1) - ucidef_set_interface_lan 'eth0' + ucidef_add_switch "switch0" \ + "4:lan:1" "2:lan:2" "1:lan:3" "0:lan:4" "6t@eth0" ;; VGV7510KW22) diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi index 7891ab1..005cecd 100644 --- a/target/linux/lantiq/dts/VGV7519.dtsi +++ b/target/linux/lantiq/dts/VGV7519.dtsi @@ -227,6 +227,7 @@ #size-cells = <0>; reg = <0>; mac-address = [ 00 11 22 33 44 55 ]; + lantiq,switch; ethernet@0 { compatible = "lantiq,xrx200-pdi-port";