{"id":815860,"url":"http://patchwork.ozlabs.org/api/patches/815860/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/patch/1505858396-23822-2-git-send-email-mr.zoltan.gyarmati@gmail.com/","project":{"id":54,"url":"http://patchwork.ozlabs.org/api/projects/54/?format=json","name":"LEDE development","link_name":"lede","list_id":"lede-dev.lists.infradead.org","list_email":"lede-dev@lists.infradead.org","web_url":"http://lede-project.org/","scm_url":"","webscm_url":"http://git.lede-project.org/","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505858396-23822-2-git-send-email-mr.zoltan.gyarmati@gmail.com>","list_archive_url":null,"date":"2017-09-19T21:59:53","name":"[LEDE-DEV,v1,1/4] ramips/RT5350F-OLINUXINO(-EVB) dts: introduce RT5350F-OLINUXINO.dtsi","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"544ad04c5ada7e798c763833c150014905567836","submitter":{"id":18211,"url":"http://patchwork.ozlabs.org/api/people/18211/?format=json","name":"Zoltán Gyarmati","email":"mr.zoltan.gyarmati@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/lede/patch/1505858396-23822-2-git-send-email-mr.zoltan.gyarmati@gmail.com/mbox/","series":[{"id":3974,"url":"http://patchwork.ozlabs.org/api/series/3974/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/list/?series=3974","date":"2017-09-19T21:59:53","name":"ramips/RT5350F-OLINUXINO(-EVB) improve device tree support","version":1,"mbox":"http://patchwork.ozlabs.org/series/3974/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815860/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815860/checks/","tags":{},"related":[],"headers":{"Return-Path":"<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"P5nTWCxU\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"EF42imha\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxcJM31Wcz9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 08:00:51 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duQZM-0004xR-Bz; Tue, 19 Sep 2017 22:00:40 +0000","from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duQZI-0004r4-31\n\tfor lede-dev@lists.infradead.org; Tue, 19 Sep 2017 22:00:38 +0000","by mail-wm0-x244.google.com with SMTP id e64so816476wmi.2\n\tfor <lede-dev@lists.infradead.org>;\n\tTue, 19 Sep 2017 15:00:16 -0700 (PDT)","from local.com (x55b5855d.dyn.telefonica.de. [85.181.133.93])\n\tby smtp.gmail.com with ESMTPSA id\n\tb36sm159612edd.67.2017.09.19.15.00.13\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 19 Sep 2017 15:00:14 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References:\n\tIn-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=VgNFrMZ3+3aplYC7w3T7RtJ7SMSdWCU50zJt2hBY8wA=;\n\tb=P5nTWCxUz0WH+t\n\tH7p9PkKT6DnmxZ3/vKZ7r6xTvDk1Siz1HIbvy9GEpCReMn7sUOJ0Dv7+JXxbi0UkUe5sYS4WlKd9Y\n\teH1OtIIESTeCb3Bq+ez48Xm5ieHD2H71c1tSO/WUq7Es4r52zvAL0ccTCpBWHH3vM007jzvYUtz56\n\tkrON8qxNlER6LWzO120VSaQfae4YWYlZsEanaLGAQiEPahcNBD4RxOiAAbUTuaVf6ExI0Vw0KDC8O\n\taNTL+28d+A/jnmsM8GP4z6726kMHorImcOog60ZGxQJXAK/kZ5Bx+TsfRPf5SFkkkhvJFkQhoiiMQ\n\tHeZZiKXD2lR+VehxsRCA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=d2nH/+Im4HWTTUmhXAFXTuKeNBzwyc8kV1Y9Pa6e7fI=;\n\tb=EF42imhapT99PDCfcXGcEK2Qzts6PW9zZ1pTfSbtcxK8F86uX6pw3F2fv5VHg3ILPc\n\teMV3AP7nqToSrZGdncuo0K4DrVSae7OlOeph1YR7L5fPsCa4C8gjwOg3l3e+9Ypv9AQy\n\tgX+0judlLph1u2kFDQk2QnHLNvy0HzvfPbmyMqn00RijhRFvc5AJFYckfEmoCLay3cRe\n\tEZQif71wkl3wV0cxCmXZfRPPVBjCLNmL+2UyJlMQ9kOTYHTIbKGu0frKhczlsgOKP91l\n\tVo3gyCO5NpLGuQYVsL6xw/aKrwAORJnxVVZ+YW49mNBY8DHOByLto22d6znCrSvOwfmP\n\tCIzA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=d2nH/+Im4HWTTUmhXAFXTuKeNBzwyc8kV1Y9Pa6e7fI=;\n\tb=pILrochS995MOxCdTVTXspL3rSbseORlIML88m4t2OyLoyu8cNPK7hFIuxwmTpkwM6\n\t2K9azE8FQTThJlU29HC6WF8+ApxAhA84cfqdQbWpBgPCdLhW5fzTzR7iC7QyctXMevic\n\tRnCCaZP0VD+2ai2DzeOytRKn2c+FpYdw4hVXnWVu0llIXwOG8biY1+d565emwQv4cZj+\n\tHAxMpcS9UOtH+nx5oNCOfdt7oVEJvqJgmdBpBGerkUseugRK7wpbBjTBXlGtBxD2RFKg\n\tQJcSmZjErHzI0o6OlAHp2UqOMwYiXUR0jPYEMcWdKsWH5MmxF6BGzVjPlzogLN+F0HUv\n\tD6cw==","X-Gm-Message-State":"AHPjjUjomz8At7sGCDDd6lBAehGsMTJatg7FSoUjpQV1fWRvRup9uBf3\n\tURsAHmHYfo37pqKCQn7myALtqQ==","X-Google-Smtp-Source":"AOwi7QAJKc9DaShx5EHaIkN86BqM1ITUhXZwsQb1CbFnkNDUhDGq/hQtC2UcnAE7T5dKwZKbxRGVuQ==","X-Received":"by 10.80.134.183 with SMTP id r52mr3052998eda.152.1505858415286; \n\tTue, 19 Sep 2017 15:00:15 -0700 (PDT)","From":"Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>","To":"lede-dev@lists.infradead.org","Date":"Tue, 19 Sep 2017 23:59:53 +0200","Message-Id":"<1505858396-23822-2-git-send-email-mr.zoltan.gyarmati@gmail.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1505858396-23822-1-git-send-email-mr.zoltan.gyarmati@gmail.com>","References":"<1505858396-23822-1-git-send-email-mr.zoltan.gyarmati@gmail.com>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170919_150036_380569_8192C75A ","X-CRM114-Status":"GOOD (  12.84  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c09:0:0:0:244 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (mr.zoltan.gyarmati[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","Subject":"[LEDE-DEV] [PATCH v1 1/4] ramips/RT5350F-OLINUXINO(-EVB) dts:\n\tintroduce RT5350F-OLINUXINO.dtsi","X-BeenThere":"lede-dev@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<lede-dev.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/lede-dev/>","List-Post":"<mailto:lede-dev@lists.infradead.org>","List-Help":"<mailto:lede-dev-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>","Cc":"Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>","Errors-To":"lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"The RT5350F-OLINUXINO(-EVB).dts files' content are nearly the same, so to avoid\ncode duplication this patch creates RT5350F-OLINUXINO.dtsi file which\ncovers the base board's features. The corresponding RT5350F-OLINUXINO.dts\njust includes the new .dtsi and the RT5350F-OLINUXINO-EVB.dts adds the EVB\nspecific GPIO config.\n\nSigned-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>\n---\n target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts | 71 +---------------------\n target/linux/ramips/dts/RT5350F-OLINUXINO.dts     | 71 +---------------------\n target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi    | 74 +++++++++++++++++++++++\n 3 files changed, 76 insertions(+), 140 deletions(-)\n create mode 100644 target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi","diff":"diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts\nindex 7811ee2..5c7b3c7 100644\n--- a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts\n+++ b/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts\n@@ -1,6 +1,6 @@\n /dts-v1/;\n \n-#include \"rt5350.dtsi\"\n+#include \"RT5350F-OLINUXINO.dtsi\"\n \n #include <dt-bindings/gpio/gpio.h>\n \n@@ -30,72 +30,3 @@\n \t\t};\n \t};\n };\n-\n-&spi0 {\n-\tstatus = \"okay\";\n-\n-\tm25p80@0 {\n-\t\t#address-cells = <1>;\n-\t\t#size-cells = <1>;\n-\t\tcompatible = \"jedec,spi-nor\";\n-\t\treg = <0>;\n-\t\tspi-max-frequency = <10000000>;\n-\n-\t\tpartition@0 {\n-\t\t\tlabel = \"u-boot\";\n-\t\t\treg = <0x0 0x30000>;\n-\t\t\tread-only;\n-\t\t};\n-\n-\t\tpartition@30000 {\n-\t\t\tlabel = \"u-boot-env\";\n-\t\t\treg = <0x30000 0x10000>;\n-\t\t\tread-only;\n-\t\t};\n-\n-\t\tfactory: partition@40000 {\n-\t\t\tlabel = \"factory\";\n-\t\t\treg = <0x40000 0x10000>;\n-\t\t\tread-only;\n-\t\t};\n-\n-\t\tpartition@50000 {\n-\t\t\tlabel = \"firmware\";\n-\t\t\treg = <0x50000 0x7b0000>;\n-\t\t};\n-\t};\n-};\n-\n-&gpio1 {\n-\tstatus = \"okay\";\n-};\n-\n-&pinctrl {\n-\tstate_default: pinctrl0 {\n-\t\tgpio {\n-\t\t\tralink,group = \"jtag\", \"rgmii\", \"mdio\", \"uartf\";\n-\t\t\tralink,function = \"gpio\";\n-\t\t};\n-\t};\n-};\n-\n-&ethernet {\n-\tmtd-mac-address = <&factory 0x4>;\n-};\n-\n-&esw {\n-\tmediatek,portmap = <0x2f>;\n-\tmediatek,led_polarity = <0x17>;\n-};\n-\n-&wmac {\n-\tralink,mtd-eeprom = <&factory 0>;\n-};\n-\n-&ehci {\n-\tstatus = \"okay\";\n-};\n-\n-&ohci {\n-\tstatus = \"okay\";\n-};\ndiff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO.dts\nindex 6ee3dae..2e0dcb1 100644\n--- a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts\n+++ b/target/linux/ramips/dts/RT5350F-OLINUXINO.dts\n@@ -1,77 +1,8 @@\n /dts-v1/;\n \n-#include \"rt5350.dtsi\"\n+#include \"RT5350F-OLINUXINO.dtsi\"\n \n / {\n \tcompatible = \"olimex,rt5350f-olinuxino\", \"ralink,rt5350-soc\";\n \tmodel = \"Olimex RT5350F-OLinuXino\";\n };\n-\n-&spi0 {\n-\tstatus = \"okay\";\n-\n-\tm25p80@0 {\n-\t\t#address-cells = <1>;\n-\t\t#size-cells = <1>;\n-\t\tcompatible = \"jedec,spi-nor\";\n-\t\treg = <0>;\n-\t\tspi-max-frequency = <10000000>;\n-\n-\t\tpartition@0 {\n-\t\t\tlabel = \"u-boot\";\n-\t\t\treg = <0x0 0x30000>;\n-\t\t\tread-only;\n-\t\t};\n-\n-\t\tpartition@30000 {\n-\t\t\tlabel = \"u-boot-env\";\n-\t\t\treg = <0x30000 0x10000>;\n-\t\t\tread-only;\n-\t\t};\n-\n-\t\tfactory: partition@40000 {\n-\t\t\tlabel = \"factory\";\n-\t\t\treg = <0x40000 0x10000>;\n-\t\t\tread-only;\n-\t\t};\n-\n-\t\tpartition@50000 {\n-\t\t\tlabel = \"firmware\";\n-\t\t\treg = <0x50000 0x7b0000>;\n-\t\t};\n-\t};\n-};\n-\n-&gpio1 {\n-\tstatus = \"okay\";\n-};\n-\n-&pinctrl {\n-\tstate_default: pinctrl0 {\n-\t\tgpio {\n-\t\t\tralink,group = \"jtag\", \"rgmii\", \"mdio\", \"uartf\";\n-\t\t\tralink,function = \"gpio\";\n-\t\t};\n-\t};\n-};\n-\n-&ethernet {\n-\tmtd-mac-address = <&factory 0x4>;\n-};\n-\n-&esw {\n-\tmediatek,portmap = <0x2f>;\n-\tmediatek,led_polarity = <0x17>;\n-};\n-\n-&wmac {\n-\tralink,mtd-eeprom = <&factory 0>;\n-};\n-\n-&ehci {\n-\tstatus = \"okay\";\n-};\n-\n-&ohci {\n-\tstatus = \"okay\";\n-};\ndiff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi\nnew file mode 100644\nindex 0000000..f5ccccb\n--- /dev/null\n+++ b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi\n@@ -0,0 +1,74 @@\n+#include \"rt5350.dtsi\"\n+\n+/ {\n+\tcompatible = \"olimex,rt5350f-olinuxino\", \"ralink,rt5350-soc\";\n+};\n+\n+&spi0 {\n+\tstatus = \"okay\";\n+\n+\tm25p80@0 {\n+\t\t#address-cells = <1>;\n+\t\t#size-cells = <1>;\n+\t\tcompatible = \"jedec,spi-nor\";\n+\t\treg = <0>;\n+\t\tspi-max-frequency = <10000000>;\n+\n+\t\tpartition@0 {\n+\t\t\tlabel = \"u-boot\";\n+\t\t\treg = <0x0 0x30000>;\n+\t\t\tread-only;\n+\t\t};\n+\n+\t\tpartition@30000 {\n+\t\t\tlabel = \"u-boot-env\";\n+\t\t\treg = <0x30000 0x10000>;\n+\t\t\tread-only;\n+\t\t};\n+\n+\t\tfactory: partition@40000 {\n+\t\t\tlabel = \"factory\";\n+\t\t\treg = <0x40000 0x10000>;\n+\t\t\tread-only;\n+\t\t};\n+\n+\t\tpartition@50000 {\n+\t\t\tlabel = \"firmware\";\n+\t\t\treg = <0x50000 0x7b0000>;\n+\t\t};\n+\t};\n+};\n+\n+&gpio1 {\n+\tstatus = \"okay\";\n+};\n+\n+&pinctrl {\n+\tstate_default: pinctrl0 {\n+\t\tgpio {\n+\t\t\tralink,group = \"jtag\", \"rgmii\", \"mdio\", \"uartf\";\n+\t\t\tralink,function = \"gpio\";\n+\t\t};\n+\t};\n+};\n+\n+&ethernet {\n+\tmtd-mac-address = <&factory 0x4>;\n+};\n+\n+&esw {\n+\tmediatek,portmap = <0x2f>;\n+\tmediatek,led_polarity = <0x17>;\n+};\n+\n+&wmac {\n+\tralink,mtd-eeprom = <&factory 0>;\n+};\n+\n+&ehci {\n+\tstatus = \"okay\";\n+};\n+\n+&ohci {\n+\tstatus = \"okay\";\n+};\n","prefixes":["LEDE-DEV","v1","1/4"]}