From patchwork Sat Aug 26 19:53:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Gyarmati X-Patchwork-Id: 806140 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="J5MaiSKF"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GJvbLX2B"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3xfpfX4c2rz9s8w for ; Sun, 27 Aug 2017 05:55:16 +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=RaALgK7WVyt6Ze1crbv3IEEaOEVvGFS9kC4F5Wb2mb8=; b=J5MaiSKF6GG6T8 RKJsBORKQoQct9JH4e1hgYfyebASUxBLFfsIE/MRdJRngd79WBukinly3/Pzq5VC15oZ/r5VyALtr 2CtTmPBUUUtRzDAwqeSEdIjkKuSQBSGVkEnqe9s42Wyf1inq0E8/fYBxc97Ga2ai7jbq8gGOyx3CU vivqw0RWH2f+9pjnjVjhAbvqpdR0moUCUwUPeiMRVEp/HlJGVZp3QSKTI94Jty7OiwpA3zxs6BFo5 Pd1JcDEzA3w8km6nFW1hy//TqniT7UsoSE0EcsnEWQKLhNMyurjwY3vsGrhyEsDBfM8SajS+AhbNt 8blE+KjS2Lbh4O6WFhPw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dlhAg-0005PU-7V; Sat, 26 Aug 2017 19:55:06 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dlhAE-0004FG-VB for lede-dev@lists.infradead.org; Sat, 26 Aug 2017 19:54:48 +0000 Received: by mail-wr0-x242.google.com with SMTP id p14so1785550wrg.4 for ; Sat, 26 Aug 2017 12:54:18 -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; bh=zPHXYonFsQai1/R+g+mUidjMYMPb+3qGGLYsWSX+QFU=; b=GJvbLX2B7Z32ErBHuFnUeQzbZxmD9WFUDSNUlPlHutnq5er/OMj4XVqVLWTqu3L5Ao ZpG9d4KsY4b8zXmAxfholYk6N+praRtVYtpiF2nQhzgkF0hjHCJIf9JGShkQfqmLF4/g BephA2R2vJ9yOMZ1ecbdIf410AgfzEVxCIYpYWdxCRrTcO4AgISMP3elWzhLbnaFMqzt k+fdbLMjYA/vLNZYEh3dGYLY/gZ0SbFIAZTaY5PfBw9pYvHwfoxZ+Wmgv/mh8bfZpR4P tItay3uTj/DHBiaKnZ+2Kb4nqQ3NydZ48JZ5vNN7KOny7hw7OErVwmUZJBNVsuFSKdKU ZVEw== 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=zPHXYonFsQai1/R+g+mUidjMYMPb+3qGGLYsWSX+QFU=; b=AYLNy6Nrfb72vKQQmNFfd+VFhcLexnrBKSTGaE71MYNbOlDHYTcAyeKkoHa1wzDoym /+uGjrgi3l2YbUKQTYWO2gt9heFduPu80v5tkjvo+E1hlKcH53Bmi6jPSpy3GMH3e1hR bP9/6IXEphgxU7iaF5aRO4aSD6Hrb+kfJ4BVrxvRc+mj8gVC96ytxwZ6+hPiP8Wc1ata tDy3HRJuEEGa9EtbkLqte1FJW1kqi/CxVuF4C71J9TMvuqamPw2Kf5lad8UWxKDVrb/S bj20TfNPtrY1ousMygoxZO+4Oa3NipNf4B/Z4fbn6wZ3zKD4rcN4aex+FnlrsDNi0PFB ptgg== X-Gm-Message-State: AHYfb5iUHap0i8WLfjAo168Y7XtyTM46L3dnONjefHIdt1XINwNYmXl6 3/2B7my/vST50zFa X-Received: by 10.223.177.211 with SMTP id r19mr1782365wra.96.1503777257067; Sat, 26 Aug 2017 12:54:17 -0700 (PDT) Received: from zgyarmati-w530.localdomain (x4e35e813.dyn.telefonica.de. [78.53.232.19]) by smtp.gmail.com with ESMTPSA id w73sm3050663wmw.20.2017.08.26.12.54.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Aug 2017 12:54:16 -0700 (PDT) From: Zoltan Gyarmati To: lede-dev@lists.infradead.org Date: Sat, 26 Aug 2017 21:53:58 +0200 Message-Id: <20170826195401.11224-2-mr.zoltan.gyarmati@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170826195401.11224-1-mr.zoltan.gyarmati@gmail.com> References: <20170826195401.11224-1-mr.zoltan.gyarmati@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170826_125439_888351_46D22897 X-CRM114-Status: GOOD ( 12.00 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c0c:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mr.zoltan.gyarmati[at]gmail.com) -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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [LEDE-DEV] [PATCH 1/4] ramips/RT5350F-OLINUXINO(-EVB) dts: introduce RT5350F-OLINUXINO.dtsi X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zoltan Gyarmati MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The RT5350F-OLINUXINO(-EVB).dts files' content are nearly the same, so to avoid code duplication this patch creates RT5350F-OLINUXINO.dtsi file which covers the base board's features. The corresponding RT5350F-OLINUXINO.dts just includes the new .dtsi and the RT5350F-OLINUXINO-EVB.dts adds the EVB specific GPIO config. Signed-off-by: Zoltan Gyarmati --- target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts | 71 +--------------------- target/linux/ramips/dts/RT5350F-OLINUXINO.dts | 71 +--------------------- target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi | 74 +++++++++++++++++++++++ 3 files changed, 76 insertions(+), 140 deletions(-) create mode 100644 target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts index 7811ee20d7..5c7b3c7c42 100644 --- a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts +++ b/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts @@ -1,6 +1,6 @@ /dts-v1/; -#include "rt5350.dtsi" +#include "RT5350F-OLINUXINO.dtsi" #include @@ -30,72 +30,3 @@ }; }; }; - -&spi0 { - status = "okay"; - - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <0x17>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO.dts index 6ee3daeaa1..2e0dcb1558 100644 --- a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts +++ b/target/linux/ramips/dts/RT5350F-OLINUXINO.dts @@ -1,77 +1,8 @@ /dts-v1/; -#include "rt5350.dtsi" +#include "RT5350F-OLINUXINO.dtsi" / { compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc"; model = "Olimex RT5350F-OLinuXino"; }; - -&spi0 { - status = "okay"; - - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <0x17>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi new file mode 100644 index 0000000000..f5ccccbf84 --- /dev/null +++ b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi @@ -0,0 +1,74 @@ +#include "rt5350.dtsi" + +/ { + compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <0x17>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +};