Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/624173/?format=api
{ "id": 624173, "url": "http://patchwork.ozlabs.org/api/patches/624173/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-2-git-send-email-sven.eckelmann@open-mesh.com/", "project": { "id": 45, "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api", "name": "OpenWrt development", "link_name": "openwrt", "list_id": "openwrt-devel.lists.openwrt.org", "list_email": "openwrt-devel@lists.openwrt.org", "web_url": "http://openwrt.org/", "scm_url": "git://git.openwrt.org/openwrt.git", "webscm_url": "https://dev.openwrt.org/browser", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1463682077-19339-2-git-send-email-sven.eckelmann@open-mesh.com>", "list_archive_url": null, "date": "2016-05-19T18:20:45", "name": "[OpenWrt-Devel,CC,02/34] ar71xx: add kernel support for the OpenMesh MR1750 board", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "6ca09dbc5de60d6cb1461ea9bf578cd5d2f24269", "submitter": { "id": 68437, "url": "http://patchwork.ozlabs.org/api/people/68437/?format=api", "name": "Sven Eckelmann", "email": "sven.eckelmann@open-mesh.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-2-git-send-email-sven.eckelmann@open-mesh.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/624173/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/624173/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<openwrt-devel-bounces@lists.openwrt.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from arrakis.dune.hu (caladan.dune.hu [78.24.191.180])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3r9fYB35Bxz9sCy\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 May 2016 04:22:06 +1000 (AEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id EE849B91F5C;\n\tThu, 19 May 2016 20:21:39 +0200 (CEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tThu, 19 May 2016 20:21:39 +0200 (CEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 140E9B91F54\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:38 +0200 (CEST)", "from mail-wm0-f53.google.com (mail-wm0-f53.google.com\n\t[74.125.82.53]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:37 +0200 (CEST)", "by mail-wm0-f53.google.com with SMTP id a17so138667679wme.0\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 11:21:37 -0700 (PDT)", "from sven-desktop.home.narfation.org\n\t(p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201])\n\tby smtp.gmail.com with ESMTPSA id\n\to73sm468442wme.16.2016.05.19.11.21.35\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 19 May 2016 11:21:35 -0700 (PDT)" ], "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=open-mesh-com.20150623.gappssmtp.com\n\theader.i=@open-mesh-com.20150623.gappssmtp.com\n\theader.b=yYKUUT2s; dkim-atps=neutral", "X-Spam-Checker-Version": "SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu", "X-Spam-Level": "", "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.1", "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tCL_IP_EQ_HELO_IP=-2 (check from: .open-mesh. - helo:\n\t.mail-wm0-f53.google. -\n\thelo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=open-mesh-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=MfY20ee1yJb5j57e5ipXE5c2SZYTsUrQ97oRuvK4+cg=;\n\tb=yYKUUT2sZ//YTlBiTWRqM24nhhXjJ14z4Cq4KvfywCeG4KTEAPQgcafBe4F9gTVoxB\n\tazcXHNEKHubm0ZjQep9ACNCKn3RrzTZbGH3EdZF61zrl4j/wzT1RR4IZRezy7kzmLWpO\n\tfUoFBXNXJ/G3+lBjLRAlElBnJCBZHW3afd0/LXVnpaTTzF3xTj7wse5MSpMQbMvphs4Z\n\tNDxeRAeTkjGogFf2cbIMJVkIz34Wc2ymxobPd/tYlPL9JSIxpAlySE3U15X+seCYF66S\n\tSf/IxGBztOgyHP2YVub0ffSn9+SPr00vMRk7PBwv/D+sFUyZPV8T5tUa8YQVHbYMPhPi\n\tvV8Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=MfY20ee1yJb5j57e5ipXE5c2SZYTsUrQ97oRuvK4+cg=;\n\tb=ELV8HEK4vh2Zu/+kDOFxFX3+SB1OPgD0/8/lx3al4OGPXlFTJahvaGK7wonw/lY9at\n\tee8gPbP8pv4foGtjmV+D5yazyzcD9JUg1fRnIAwD3q2Q7tTUNlMcLZ86oArgh55i5pFh\n\tP7/enYaM4FVdmr+ddAI4b0HVm61md2yf/ypiVabVSuWMUiqkNnoULj/QrIjRAtzA5aBx\n\tqyuoXitWSoi6DZPcnMJZSjCTq6piWlRKclTjyztqqyIUpHprwT1M6z65ohMvqVCEDa/0\n\tug4RSPiU8+IYebprI3naO1sBAAgKFCVyvy0brFDr+BoJ74QdJYB3WENRksbI9gNeUhS9\n\tXtXA==", "X-Gm-Message-State": "AOPr4FUnHurh5OqjoebpViKs++Ok5KbtnfrE5Gf2oDlk+jbG7PGzrdippvERUQd6G/3uTwNM", "X-Received": "by 10.28.65.84 with SMTP id o81mr37781330wma.66.1463682096668;\n\tThu, 19 May 2016 11:21:36 -0700 (PDT)", "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>", "To": "openwrt-devel@lists.openwrt.org", "Date": "Thu, 19 May 2016 20:20:45 +0200", "Message-Id": "<1463682077-19339-2-git-send-email-sven.eckelmann@open-mesh.com>", "X-Mailer": "git-send-email 2.8.1", "In-Reply-To": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>", "References": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>", "Subject": "[OpenWrt-Devel] [PATCH CC 02/34] ar71xx: add kernel support for the\n\tOpenMesh MR1750 board", "X-BeenThere": "openwrt-devel@lists.openwrt.org", "X-Mailman-Version": "2.1.20", "Precedence": "list", "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>", "List-Unsubscribe": "<https://lists.openwrt.org/cgi-bin/mailman/options/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>", "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>", "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>", "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>", "List-Subscribe": "<https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>", "Cc": "Sven Eckelmann <sven.eckelmann@open-mesh.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "openwrt-devel-bounces@lists.openwrt.org", "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>" }, "content": "Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n\nBackport of r46926\n---\n target/linux/ar71xx/config-3.18 | 1 +\n .../ar71xx/files/arch/mips/ath79/mach-mr1750.c | 129 +++++++++++++++++++++\n .../815-MIPS-ath79-add-mr1750-support.patch | 39 +++++++\n 3 files changed, 169 insertions(+)\n create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\n create mode 100644 target/linux/ar71xx/patches-3.18/815-MIPS-ath79-add-mr1750-support.patch", "diff": "diff --git a/target/linux/ar71xx/config-3.18 b/target/linux/ar71xx/config-3.18\nindex e2ff826..2354c9c 100644\n--- a/target/linux/ar71xx/config-3.18\n+++ b/target/linux/ar71xx/config-3.18\n@@ -79,6 +79,7 @@ CONFIG_ATH79_MACH_JWAP003=y\n CONFIG_ATH79_MACH_MC_MAC1200R=y\n CONFIG_ATH79_MACH_MR16=y\n CONFIG_ATH79_MACH_MR12=y\n+CONFIG_ATH79_MACH_MR1750=y\n CONFIG_ATH79_MACH_MR600=y\n CONFIG_ATH79_MACH_MR900=y\n CONFIG_ATH79_MACH_MYNET_N600=y\ndiff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\nnew file mode 100644\nindex 0000000..8ace02f\n--- /dev/null\n+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\n@@ -0,0 +1,129 @@\n+/*\n+ * MR1750 board support\n+ *\n+ * Copyright (c) 2012 Qualcomm Atheros\n+ * Copyright (c) 2012-2013 Marek Lindner <marek@open-mesh.com>\n+ *\n+ * Permission to use, copy, modify, and/or distribute this software for any\n+ * purpose with or without fee is hereby granted, provided that the above\n+ * copyright notice and this permission notice appear in all copies.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n+ *\n+ */\n+\n+#include <linux/platform_device.h>\n+#include <linux/ar8216_platform.h>\n+\n+#include <asm/mach-ath79/ar71xx_regs.h>\n+\n+#include \"common.h\"\n+#include \"dev-ap9x-pci.h\"\n+#include \"dev-gpio-buttons.h\"\n+#include \"dev-eth.h\"\n+#include \"dev-leds-gpio.h\"\n+#include \"dev-m25p80.h\"\n+#include \"dev-wmac.h\"\n+#include \"machtypes.h\"\n+#include \"pci.h\"\n+\n+#define MR1750_GPIO_LED_LAN\t\t12\n+#define MR1750_GPIO_LED_WLAN_2G\t\t13\n+#define MR1750_GPIO_LED_STATUS_GREEN\t19\n+#define MR1750_GPIO_LED_STATUS_RED\t21\n+#define MR1750_GPIO_LED_POWER\t\t22\n+#define MR1750_GPIO_LED_WLAN_5G\t\t23\n+\n+#define MR1750_GPIO_BTN_RESET\t\t17\n+\n+#define MR1750_KEYS_POLL_INTERVAL\t20\t/* msecs */\n+#define MR1750_KEYS_DEBOUNCE_INTERVAL\t(3 * MR1750_KEYS_POLL_INTERVAL)\n+\n+#define MR1750_MAC0_OFFSET\t\t0\n+#define MR1750_WMAC_CALDATA_OFFSET\t0x1000\n+\n+static struct gpio_led mr1750_leds_gpio[] __initdata = {\n+\t{\n+\t\t.name\t\t= \"mr1750:blue:power\",\n+\t\t.gpio\t\t= MR1750_GPIO_LED_POWER,\n+\t\t.active_low\t= 1,\n+\t},\n+\t{\n+\t\t.name\t\t= \"mr1750:blue:wan\",\n+\t\t.gpio\t\t= MR1750_GPIO_LED_LAN,\n+\t\t.active_low\t= 1,\n+\t},\n+\t{\n+\t\t.name\t\t= \"mr1750:blue:wlan24\",\n+\t\t.gpio\t\t= MR1750_GPIO_LED_WLAN_2G,\n+\t\t.active_low\t= 1,\n+\t},\n+\t{\n+\t\t.name\t\t= \"mr1750:blue:wlan58\",\n+\t\t.gpio\t\t= MR1750_GPIO_LED_WLAN_5G,\n+\t\t.active_low\t= 1,\n+\t},\n+\t{\n+\t\t.name\t\t= \"mr1750:green:status\",\n+\t\t.gpio\t\t= MR1750_GPIO_LED_STATUS_GREEN,\n+\t\t.active_low\t= 1,\n+\t},\n+\t{\n+\t\t.name\t\t= \"mr1750:red:status\",\n+\t\t.gpio\t\t= MR1750_GPIO_LED_STATUS_RED,\n+\t\t.active_low\t= 1,\n+\t},\n+};\n+\n+static struct gpio_keys_button mr1750_gpio_keys[] __initdata = {\n+\t{\n+\t\t.desc\t\t= \"Reset button\",\n+\t\t.type\t\t= EV_KEY,\n+\t\t.code\t\t= KEY_RESTART,\n+\t\t.debounce_interval = MR1750_KEYS_DEBOUNCE_INTERVAL,\n+\t\t.gpio\t\t= MR1750_GPIO_BTN_RESET,\n+\t\t.active_low\t= 1,\n+\t},\n+};\n+\n+static void __init mr1750_setup(void)\n+{\n+\tu8 *art = (u8 *)KSEG1ADDR(0x1fff0000);\n+\tu8 mac[6];\n+\n+\tath79_eth0_pll_data.pll_1000 = 0xbe000101;\n+\tath79_eth0_pll_data.pll_100 = 0x80000101;\n+\tath79_eth0_pll_data.pll_10 = 0x80001313;\n+\n+\tath79_register_m25p80(NULL);\n+\n+\tath79_register_leds_gpio(-1, ARRAY_SIZE(mr1750_leds_gpio),\n+\t\t\t\t mr1750_leds_gpio);\n+\tath79_register_gpio_keys_polled(-1, MR1750_KEYS_POLL_INTERVAL,\n+\t\t\t\t\tARRAY_SIZE(mr1750_gpio_keys),\n+\t\t\t\t\tmr1750_gpio_keys);\n+\n+\tath79_init_mac(mac, art + MR1750_MAC0_OFFSET, 1);\n+\tath79_register_wmac(art + MR1750_WMAC_CALDATA_OFFSET, mac);\n+\tath79_register_pci();\n+\n+\tath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);\n+\tath79_register_mdio(0, 0x0);\n+\n+\tath79_init_mac(ath79_eth0_data.mac_addr, art + MR1750_MAC0_OFFSET, 0);\n+\n+\t/* GMAC0 is connected to the RMGII interface */\n+\tath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;\n+\tath79_eth0_data.phy_mask = BIT(5);\n+\tath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;\n+\n+\tath79_register_eth(0);\n+}\n+\n+MIPS_MACHINE(ATH79_MACH_MR1750, \"MR1750\", \"OpenMesh MR1750\", mr1750_setup);\ndiff --git a/target/linux/ar71xx/patches-3.18/815-MIPS-ath79-add-mr1750-support.patch b/target/linux/ar71xx/patches-3.18/815-MIPS-ath79-add-mr1750-support.patch\nnew file mode 100644\nindex 0000000..d802a12\n--- /dev/null\n+++ b/target/linux/ar71xx/patches-3.18/815-MIPS-ath79-add-mr1750-support.patch\n@@ -0,0 +1,39 @@\n+--- a/arch/mips/ath79/Kconfig\n++++ b/arch/mips/ath79/Kconfig\n+@@ -763,6 +763,16 @@ config ATH79_MACH_CAP4200AG\n+ \tselect ATH79_DEV_M25P80\n+ \tselect ATH79_DEV_WMAC\n+ \n++config ATH79_MACH_MR1750\n++\tbool \"OpenMesh MR1750 board support\"\n++\tselect SOC_QCA955X\n++\tselect ATH79_DEV_AP9X_PCI if PCI\n++\tselect ATH79_DEV_ETH\n++\tselect ATH79_DEV_GPIO_BUTTONS\n++\tselect ATH79_DEV_LEDS_GPIO\n++\tselect ATH79_DEV_M25P80\n++\tselect ATH79_DEV_WMAC\n++\n+ config ATH79_MACH_MR900\n+ \tbool \"OpenMesh MR900 board support\"\n+ \tselect SOC_QCA955X\n+--- a/arch/mips/ath79/Makefile\n++++ b/arch/mips/ath79/Makefile\n+@@ -80,6 +80,7 @@ obj-$(CONFIG_ATH79_MACH_HORNET_UB)\t+= ma\n+ obj-$(CONFIG_ATH79_MACH_MC_MAC1200R) += mach-mc-mac1200r.o\n+ obj-$(CONFIG_ATH79_MACH_MR12)\t\t+= mach-mr12.o\n+ obj-$(CONFIG_ATH79_MACH_MR16)\t\t+= mach-mr16.o\n++obj-$(CONFIG_ATH79_MACH_MR1750)\t\t+= mach-mr1750.o\n+ obj-$(CONFIG_ATH79_MACH_MR600)\t\t+= mach-mr600.o\n+ obj-$(CONFIG_ATH79_MACH_MR900)\t\t+= mach-mr900.o\n+ obj-$(CONFIG_ATH79_MACH_MYNET_N600)\t+= mach-mynet-n600.o\n+--- a/arch/mips/ath79/machtypes.h\n++++ b/arch/mips/ath79/machtypes.h\n+@@ -69,6 +69,7 @@ enum ath79_mach_type {\n+ \tATH79_MACH_HORNET_UB,\t\t/* ALFA Networks Hornet-UB */\n+ \tATH79_MACH_MR12,\t\t/* Cisco Meraki MR12 */\n+ \tATH79_MACH_MR16,\t\t/* Cisco Meraki MR16 */\n++\tATH79_MACH_MR1750,\t\t/* OpenMesh MR1750 */\n+ \tATH79_MACH_MR600V2,\t\t/* OpenMesh MR600v2 */\n+ \tATH79_MACH_MR600,\t\t/* OpenMesh MR600 */\n+ \tATH79_MACH_MR900,\t\t/* OpenMesh MR900 */\n", "prefixes": [ "OpenWrt-Devel", "CC", "02/34" ] }