From patchwork Sun Jan 20 16:46:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: D J Armstrong X-Patchwork-Id: 1028183 X-Patchwork-Delegate: openwrt@kresin.me 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=hotmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UqJx8Jr3"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=hotmail.com header.i=@hotmail.com header.b="cROtgbda"; 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 43jLFD6ncsz9sCh for ; Mon, 21 Jan 2019 03:47:08 +1100 (AEDT) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-ID:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=STp/swoCUWcgp15GXFLuPSarXvd4ZdTJTMNVyytlFyM=; b=UqJx8Jr3SWsplZ JpU6/1XNMbn5OvBckRXxJYdlB7LYknJPBZCvYm1DrYoI2ulA3v4o9eJyTlBLtCGbvrgIAdy+zC7tM rMhhg9u1uMith9ZHM0Vj74pih4AzXpclr2itwnAp09JwujFKX++QHh3dL4Ru36kuW6g+eMZU+rMz0 4u1/8xaIwCFT+z2KwDV0GeMUQWgOxElvFVlnqD9mj9NLMG7/DxYuhMu4kU23sknfvZavRTAL+sxC2 TF9GhX2bj41WAQbr/pD6WSWoTU6lCZkT9cvJsWRUKtn8kLm9pm3EsOegcXJA7iQYQcGLmE2/TGowM A0fu0g95ZLUlseoLo0Mg==; 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 1glGFM-0008C7-Nm; Sun, 20 Jan 2019 16:46:56 +0000 Received: from mail-oln040092069103.outbound.protection.outlook.com ([40.92.69.103] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1glGFD-0008Bd-Oi for openwrt-devel@lists.openwrt.org; Sun, 20 Jan 2019 16:46:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1knhM4tw+A5DoOKC4XtHvQzxLkNJpu0YHkae+MLYrZ8=; b=cROtgbdasZqMafUP7mNMY1HlETdqrp5DIdt2TxfsEp15JW7tcqtPaMYJDNVXzmw0mhgSp6ETM45XMYthQgLQSkuKCN5tcWR0+6bZSchrDnlqZU6sQfWSctTWhoUlReJ0c/y0ctEL60eLNebWG422l3dzs72msmYrPcN3QTvl1GDqGeTvZF1Ge2SGa9c2Ly0SftXeS7OxpEepzHJTugZTki2CHzyDhHjEQfAugTLhVUjOirHBoXX+YVEICyd91YOk06HT78swWMXU/gCcygcciVmeaXDKRUSmk1dFRIqdvOpGC6TqYZqxFrUNfvF2q9+GwSDGgCyCkP4fMqW8s+sNOw== Received: from VE1EUR02FT026.eop-EUR02.prod.protection.outlook.com (10.152.12.54) by VE1EUR02HT078.eop-EUR02.prod.protection.outlook.com (10.152.13.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.11; Sun, 20 Jan 2019 16:46:43 +0000 Received: from VI1PR0602MB3360.eurprd06.prod.outlook.com (10.152.12.60) by VE1EUR02FT026.mail.protection.outlook.com (10.152.12.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.11 via Frontend Transport; Sun, 20 Jan 2019 16:46:43 +0000 Received: from VI1PR0602MB3360.eurprd06.prod.outlook.com ([fe80::f010:efaa:b93c:6ae0]) by VI1PR0602MB3360.eurprd06.prod.outlook.com ([fe80::f010:efaa:b93c:6ae0%5]) with mapi id 15.20.1537.031; Sun, 20 Jan 2019 16:46:43 +0000 From: D J Armstrong To: "openwrt-devel@lists.openwrt.org" Thread-Topic: [PATCH v1] ath79: Add support for Devolo WiFi Pro 1750e Thread-Index: AQHUsN+59Rfg6HsM00q+nMBtlrXjgg== Date: Sun, 20 Jan 2019 16:46:42 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CWLP265CA0107.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:51::23) To VI1PR0602MB3360.eurprd06.prod.outlook.com (2603:10a6:803:10::15) x-incomingtopheadermarker: OriginalChecksum:B83B3C3074386256CA652DE0020CE7E1AE8916D142908422370947BC9CD718FE; UpperCasedChecksum:F7988C22FE91D221F32D873C67E8D95471B755C6A60780521C50FA002F77B857; SizeAsReceived:8547; Count:64 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.11.0 x-tmn: [/byl9efPOIqxISx/3D8LsEywX+7lj4BS] x-microsoft-original-message-id: <20190120164625.67092-1-iamdjango@hotmail.com> x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VE1EUR02HT078; 6:7oEFms1XHjtsoeD0VeyehxLx0CVNPGS2jGQlwNhVrWhxQ7u41NNwpFQtbcVlwWlytGfeSeUaBUE2Quo5fVrJCHWGTo1/Eu3j8XVQPog1eVajm9R6JghGWBXWP2uuGf+gvh62BGI6+hC9vm0rakrAD06ODXDNLZ1kHXD3gHWEBzwwmNZ1yxkK+QOpS7MLjZ4hGl0dlhIozX75SKfsdafNFjWHXkLGPRBdigMmpiD5FIDPIuHKhq1MiGiTMvttSJFNwHKhTAZxImQvgt/aG7DhOC9j5ysb2NpSMFlFlvziG3rEF/zLhstlqqNArM+OkwJqGAjJKiYyEDdPTHkGf1M8Rgpi/Z5xYK2+17wbSt3iNamCrKnOeeiHKHCe0rmApGEZA8ZALCka8sF6YCBxS2M2cvf5KtNcQNpRBYKRo1BGbunE2uX3A36oW4Gy06b3783G3gwc2KCAqeh/nv0e4ckPqg==; 5:wspPjhw+haN2maXQgzwJ0u3TdEmNB5OGX6MkoynxrZabaSALrir4omSYU62meNiFwp1gOAJHD8FVow3TeNkxMwCDx8owGZNB32NUt5s/uiZ+6GqoQRaZygRjvSOuNv6XIpkQfx9HImWt2VBh2e9tm+tJreT2LllizjYy0J8BACGp20/P1em7p3OIHkUwQ+5OWMvISMeuOlsUFWz+gmXHWA==; 7:0JPhQQIi64o1Rzgi1JI8ou95rH9gMi9YYNW3mwtNPOuce3UWYOPt5i8cz5XFaLDgaxgA30rT1tkpCcibVuZVYn/Yol+q+n0TypSewNvZqmuRM86914UkOUaxZApBL4N74jkatQK5M+ZxpGIF2oTbkA== x-incomingheadercount: 64 x-eopattributedmessage: 0 x-ms-exchange-slblob-mailprops: citmFLqyTFRbxofIXBwNeTCPrgwKcpOi7jwoZIVrEpHRjfTHFl3CO/r1MxCYcn4IFHfaxe0ZZv4PwOq9oGLjUXxXn6msS0BWepxeRMziG7SjvPHp37nVvGZA3hRcv9sRnNWH6FzzGTDm5KxKGsOaJr+deMj/hFXhjrCLsKUtojRBuVFHFzANgoBvXY9R5xACSUF3a5Gf9CharXVYYHygsN87HGC13GUz6K/9GWVC6Vq8ytsXQ+D4lzx5f8pzZuHFmcah5/SrGbUsTImtRYTBXtgP6asWteIxVGMo9nI3yIaIElqqp1aAqxbZ8szljTYl+J4a938LM+02X+wYY+lOiMASedPl9ivr+GxpnC6j+/JkqqQchxFcjV/JTuDs0SSSUEtE0xqMcrwkGPlDeypO6Gz5l8Oa7T2+7VOwlI7KMaDCYAvUj2fA463+SPWCB+WtPg/m4rXZimFx4FyNM41UYmDI4hfi5EcSiDQhUefyaQAzFYrvLf6fspDhYm4YBnIXnXrMqO2gpC7RFIdZvsvBW5vY+8KfMHkM7wWA7SU/seHjgS2beZ9Nv0gLDH9N5vXxSr5CFuCrcrq6zzHJU5rLKSvTYjoxHJlXgRHQcIl2c7CEWCSJcQ9Rhsp/yg7VwGdi/Nr97xI6aMWsj/bm+1t4cHZBLCG5W4Iq3VSlZ4IzG//TSotIiWo3if4T21hOASAUubq320NXZwPycOWQqAZHl9vuf074KJ6jvsdwoPb9UGWp/7+/W/kVaP70xgexuqf/TgoFz6owTRojKWbnGVuo406yiQzmSAlOEniLjsQKlt8= x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(201702181274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045); SRVR:VE1EUR02HT078; x-ms-traffictypediagnostic: VE1EUR02HT078: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(4566010)(82015058); SRVR:VE1EUR02HT078; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR02HT078; x-microsoft-antispam-message-info: idKYWqDOjsAW1IGeV0oOPgXOEQgLP0qokVIaa5SngZe18JoxqD5nEKmzwKNtChXQ MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 24fd1209-d934-423e-a578-ee886993c07f X-MS-Exchange-CrossTenant-Network-Message-Id: 199c9ca2-99a8-492c-0949-08d67ef6db49 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 24fd1209-d934-423e-a578-ee886993c07f X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2019 16:46:42.3653 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT078 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190120_084647_912626_2F806321 X-CRM114-Status: GOOD ( 13.36 ) X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 FORGED_HOTMAIL_RCVD2 hotmail.com 'From' address, but no 'Received:' -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [40.92.69.103 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (iamdjango[at]hotmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain Subject: [OpenWrt-Devel] [PATCH v1] ath79: Add support for Devolo WiFi Pro 1750e 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: D J Armstrong Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Hardware -------- CPU: Qualcomm Atheros QCA9558 RAM: 128M DDR2 FLASH: 16MiB ETH: 1x Atheros AR8035 (PoE in) 1x Atheros AR8033 WiFi2: QCA9558 3T3R (SiGE SE2565T 2.4 GHz power amp x3) WiFi5: QCA9880 3T3R (Skyworks 5003L1 5 GHz power amp x3) BTN: 1x Reset 1x WPS 1x USB eject LED: 1x LED blue 1x LED red BEEP: 1x GPIO attached piezo beeper UART: 3.3V GND TX RX (115200-N-8) (3.3V is pin closest to rear ports) Dupont 4 pin header Rear RJ45 serial port non-functional USB: 1x v2.0 Installation ------------ Make sure you set a password for the root user as prompted on first setup! 1. Upload OpenWRT sysupgrade image via SSH to the device. Use /tmp as the destination folder on the device. User is root, password previously set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: Django Armstrong --- .../linux/ath79/base-files/etc/board.d/02_network | 3 +- .../etc/hotplug.d/firmware/11-ath10k-caldata | 1 + target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts | 83 ++++++++++++++++++++++ target/linux/ath79/image/generic.mk | 8 +++ 4 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 3eb0e413f3..6c732d854e 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -62,7 +62,8 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "1:lan:1" "3:lan:4" "4:lan:3" "5:lan:2" "2:wan" ;; - devolo,dvl1200e) + devolo,dvl1200e|\ + devolo,dvl1750e) ucidef_set_interface_lan "eth0 eth1" ;; dlink,dir-825-b1) diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 76efa24b52..84e43ceee5 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -90,6 +90,7 @@ case "$FIRMWARE" in devolo,dvl1200e|\ devolo,dvl1200i|\ devolo,dvl1750c|\ + devolo,dvl1750e|\ devolo,dvl1750i) ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0) -1) diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts b/target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts new file mode 100644 index 0000000000..2570eb7cea --- /dev/null +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts @@ -0,0 +1,83 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include +#include + +#include "qca9558_devolo_dvl1xxx.dtsi" + +/ { + compatible = "devolo,dvl1750e", "qca,qca9557"; + model = "devolo WiFi pro 1750e"; + + aliases { + led-boot = &status_blue; + led-failsafe = &status_red; + led-running = &status_blue; + led-upgrade = &status_red; + }; + + keys { + wps { + label = "WPS Button"; + linux,code = ; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + + usb_eject { + label = "USB Eject Button"; + linux,code = ; + linux,input-type = ; + gpios = <&gpio 19 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; + + leds { + compatible = "gpio-leds"; + + status_blue: status_blue { + label = "dvl1750e:blue:status"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + status_red: status_red { + label = "dvl1750e:red:status"; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + }; + + beeper { + compatible = "gpio-beeper"; + gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; + }; + + + gpio_export { + compatible = "gpio-export"; + + gpio_usb_power { + gpio-export,name = "devolo:power:usb"; + gpio-export,output = <1>; + gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&usb_phy0 { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&mdio1 { + status = "okay"; +}; + +ð1 { + status = "okay"; +}; diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 22ba5305b1..9d0412fe97 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -186,6 +186,14 @@ define Device/devolo_dvl1750c endef TARGET_DEVICES += devolo_dvl1750c +define Device/devolo_dvl1750e + ATH_SOC := qca9558 + DEVICE_TITLE := devolo WiFi pro 1750e + DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct + IMAGE_SIZE := 15936k +endef +TARGET_DEVICES += devolo_dvl1750e + define Device/devolo_dvl1750i ATH_SOC := qca9558 DEVICE_TITLE := devolo WiFi pro 1750i