From patchwork Tue Jan 1 18:17:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Bauer X-Patchwork-Id: 1019787 X-Patchwork-Delegate: chunkeey@googlemail.com 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=none (p=none dis=none) header.from=david-bauer.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jQTQWaMx"; 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 43Tj8l6yBLz9rxp for ; Wed, 2 Jan 2019 05:17:59 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=B+d+ZQLFhQ+/36JHPyBshza5s7oDGoGGKcfMqfYNVz0=; b=jQTQWaMxdDYGMF Jf0ihjaPoHCmoZ1IK74K43FYFX19+5+AVKAKfhJDuVn1jkbngtgiAjAblJVJgKhKnxgmeW0Oi4ptn mVWmA8P9QZHDp7dwkVl9NP/VbjLSsyqchprDrDWZQEi7/kKQqeGTPkFWL7rMkVXHbCC1kk++wivmJ 84+JM9id5F9j6M1RyPB7ItXTwyy1/jVJzORcGz/oougFPPdC+uhdvXRjPxQiPYKhEKYzk56DiDcPU itiaNVMh0S+WLmEyAMAL4bL92eleZWmi0Rh19WcpCqpFP40pqwTqUE9so9flfQT4ubBs8d9i9Okk+ 5cd2//ViNPtga8U/tpFg==; 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 1geObh-00033X-Ew; Tue, 01 Jan 2019 18:17:37 +0000 Received: from mars.blocktrron.ovh ([51.254.112.43] helo=mail.blocktrron.ovh) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1geObc-00032r-Ua for openwrt-devel@lists.openwrt.org; Tue, 01 Jan 2019 18:17:35 +0000 Received: from localhost.localdomain (ip-109-42-2-255.web.vodafone.de [109.42.2.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.blocktrron.ovh (Postfix) with ESMTPSA id 37AA61E07B for ; Tue, 1 Jan 2019 19:17:27 +0100 (CET) From: David Bauer To: openwrt-devel@lists.openwrt.org Date: Tue, 1 Jan 2019 19:17:22 +0100 Message-Id: <20190101181723.23202-1-mail@david-bauer.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190101_101733_303341_486E5D4D X-CRM114-Status: GOOD ( 14.47 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [PATCH 1/2] ath79: add support for devolo WiFi pro 1750i 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: , 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) WiFi2: QCA9558 3T3R WiFi5: QCA9880 3T3R BTN: 1x Reset 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 square pad) Header is located next to reset-button 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 the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- .../ath79/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 3 +- .../ath79/dts/qca9558_devolo_dvl1750i.dts | 51 +++++++++++++++++++ target/linux/ath79/image/generic.mk | 8 +++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 target/linux/ath79/dts/qca9558_devolo_dvl1750i.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 e24c58e208..c5c163c6ec 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -11,6 +11,7 @@ ath79_setup_interfaces() case "$board" in avm,fritz300e|\ devolo,dvl1750c|\ + devolo,dvl1750i|\ ocedo,koala|\ ocedo,raccoon|\ pcs,cap324|\ 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 441893a752..bd26f35f50 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 @@ -88,7 +88,8 @@ case "$FIRMWARE" in "ath10k/cal-pci-0000:00:00.0.bin") case $board in devolo,dvl1200e|\ - devolo,dvl1750c) + devolo,dvl1750c|\ + 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_dvl1750i.dts b/target/linux/ath79/dts/qca9558_devolo_dvl1750i.dts new file mode 100644 index 0000000000..bd3702eb36 --- /dev/null +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1750i.dts @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include +#include + +#include "qca9558_devolo_dvl1xxx.dtsi" + +/ { + compatible = "devolo,dvl1750i", "qca,qca9557"; + model = "devolo WiFi pro 1750i"; + + aliases { + led-boot = &status_blue; + led-failsafe = &status_red; + led-running = &status_blue; + led-upgrade = &status_red; + }; + + leds { + compatible = "gpio-leds"; + + status_blue: status_blue { + label = "dvl1750i:blue:status"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + status_red: status_red { + label = "dvl1750i:red:status"; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + }; + + beeper { + compatible = "gpio-beeper"; + gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; + }; +}; + +ð0 { + pll-data = <0xbe000000 0x80000101 0x80001313>; +}; + +&gmac_config { + rxdv-delay = <3>; + rxd-delay = <3>; + txen-delay = <3>; + txd-delay = <3>; + rgmii-enabled = <1>; +}; diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 326633835d..b8c67e1638 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -178,6 +178,14 @@ define Device/devolo_dvl1750c endef TARGET_DEVICES += devolo_dvl1750c +define Device/devolo_dvl1750i + ATH_SOC := qca9558 + DEVICE_TITLE := devolo WiFi pro 1750i + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct + IMAGE_SIZE := 15936k +endef +TARGET_DEVICES += devolo_dvl1750i + define Device/dlink_dir-825-b1 ATH_SOC := ar7161 DEVICE_TITLE := D-LINK DIR-825 B1 From patchwork Tue Jan 1 18:17:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Bauer X-Patchwork-Id: 1019786 X-Patchwork-Delegate: chunkeey@googlemail.com 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=none (p=none dis=none) header.from=david-bauer.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WiXAABdb"; 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 43Tj8f4X6dz9s9G for ; Wed, 2 Jan 2019 05:17:50 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=cY3bb2c6rgRctfAcIKDr54QH4CC8X2vG6eEqsHKeH8g=; b=WiXAABdbAh1fMTvNXUR1Yy2UJf XiARpcMU25zGwUnXFQIn1kCZrisLSSylwXvxicI5wKBmneqxsVqp3wTROj7AsDYgDhFf7KftkYe6l 8wczbqoe6BVrK/PuzKnXzBaHpjGyv3OTmaacYkPeq4rcaDqwY2e4X+09uemb5AGloyOSwjfyx2Tti ni3Xkz4KyXab/9NK65OtNIENr9sOm5Cf+rR+mhc234lCpWOTKgvIi7Btbp3BWQOredGq2MQWiPSnY Xzxc0bbLUw5aDGAmzP9uTyjnS+gEJwR4VUIwcuGZoHfTmuZA2SuirACDq/mmVoSbrD4WHRBtIAwrP pgDdLHoA==; 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 1geObp-0003BM-5l; Tue, 01 Jan 2019 18:17:45 +0000 Received: from mars.blocktrron.ovh ([2001:41d0:401:3000::cbd] helo=mail.blocktrron.ovh) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1geObc-00032s-Si for openwrt-devel@lists.openwrt.org; Tue, 01 Jan 2019 18:17:35 +0000 Received: from localhost.localdomain (ip-109-42-2-255.web.vodafone.de [109.42.2.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.blocktrron.ovh (Postfix) with ESMTPSA id 8BB661F8F4 for ; Tue, 1 Jan 2019 19:17:27 +0100 (CET) From: David Bauer To: openwrt-devel@lists.openwrt.org Date: Tue, 1 Jan 2019 19:17:23 +0100 Message-Id: <20190101181723.23202-2-mail@david-bauer.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190101181723.23202-1-mail@david-bauer.net> References: <20190101181723.23202-1-mail@david-bauer.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190101_101733_221500_0F3FCE3D X-CRM114-Status: GOOD ( 13.97 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [PATCH 2/2] ath79: add support for devolo WiFi pro 1200i 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: , 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) WiFi2: QCA9558 2T2R WiFi5: QCA9880 2T2R BTN: 1x Reset 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 square pad) Header is located next to reset-button 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 the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- .../ath79/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 1 + .../ath79/dts/qca9558_devolo_dvl1200i.dts | 51 +++++++++++++++++++ target/linux/ath79/image/generic.mk | 8 +++ 4 files changed, 61 insertions(+) create mode 100644 target/linux/ath79/dts/qca9558_devolo_dvl1200i.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 c5c163c6ec..04d68fd533 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -10,6 +10,7 @@ ath79_setup_interfaces() case "$board" in avm,fritz300e|\ + devolo,dvl1200i|\ devolo,dvl1750c|\ devolo,dvl1750i|\ ocedo,koala|\ 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 bd26f35f50..7adedfef8f 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 @@ -88,6 +88,7 @@ case "$FIRMWARE" in "ath10k/cal-pci-0000:00:00.0.bin") case $board in devolo,dvl1200e|\ + devolo,dvl1200i|\ devolo,dvl1750c|\ devolo,dvl1750i) ath10kcal_extract "art" 20480 2116 diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1200i.dts b/target/linux/ath79/dts/qca9558_devolo_dvl1200i.dts new file mode 100644 index 0000000000..5900d8b487 --- /dev/null +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1200i.dts @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include +#include + +#include "qca9558_devolo_dvl1xxx.dtsi" + +/ { + compatible = "devolo,dvl1200i", "qca,qca9557"; + model = "devolo WiFi pro 1200i"; + + aliases { + led-boot = &status_blue; + led-failsafe = &status_red; + led-running = &status_blue; + led-upgrade = &status_red; + }; + + leds { + compatible = "gpio-leds"; + + status_blue: status_blue { + label = "dvl1200i:blue:status"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + status_red: status_red { + label = "dvl1200i:red:status"; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + }; + + beeper { + compatible = "gpio-beeper"; + gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; + }; +}; + +ð0 { + pll-data = <0xbe000000 0x80000101 0x80001313>; +}; + +&gmac_config { + rxdv-delay = <3>; + rxd-delay = <3>; + txen-delay = <3>; + txd-delay = <3>; + rgmii-enabled = <1>; +}; diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index b8c67e1638..db66720130 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -170,6 +170,14 @@ define Device/devolo_dvl1200e endef TARGET_DEVICES += devolo_dvl1200e +define Device/devolo_dvl1200i + ATH_SOC := qca9558 + DEVICE_TITLE := devolo WiFi pro 1200i + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct + IMAGE_SIZE := 15936k +endef +TARGET_DEVICES += devolo_dvl1200i + define Device/devolo_dvl1750c ATH_SOC := qca9558 DEVICE_TITLE := devolo WiFi pro 1750c