From patchwork Thu Apr 11 15:59:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Bauer X-Patchwork-Id: 1084135 X-Patchwork-Delegate: mail@david-bauer.net 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="Crq4cIiy"; 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 44g5N070Xzz9s47 for ; Fri, 12 Apr 2019 02:00:32 +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: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=iYmYAQQuIy2/e4lPAS7Smnu+npI0sdty6eUwzJj6Myw=; b=Crq4cIiyRZ29r/C89BQD5kCkTS De2E96B4ItPcyyOIczZ2uiilUUobPFluSopJU/IMmjWAnOMcrv4cgr7z8Ruq2MCtse1hAyO4YO0fG T6/SQXiUisLl/PHEeKOS3mHTYvdBKtB+EGvBxUGQuZjVlIa0HE1+ASdCqFLq5EFBlkRehfL7ZOJvL syT5iQvhtTtphJixIxEY6MeguNnBhOpxdZowzkSy9JAN1hYG5KRzIr5dAUnnPM7Gt1rqYwV5zOj5W xOsTOqVbEgLyQM7qBDbpNfj8FXrBOiIEKtMlLvmM5XeypqR+VPbOsLKoz81eXH/Qxw5X9TuUNIMFV t0Y8z+vA==; 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 1hEc7b-0002z7-CZ; Thu, 11 Apr 2019 16:00:15 +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 1hEc7K-0001ib-Oo for openwrt-devel@lists.openwrt.org; Thu, 11 Apr 2019 16:00:00 +0000 Received: from localhost.localdomain (p200300E53F099C0093B6E161A050D22A.dip0.t-ipconnect.de [IPv6:2003:e5:3f09:9c00:93b6:e161:a050:d22a]) (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 78F8C221E3 for ; Thu, 11 Apr 2019 17:59:54 +0200 (CEST) From: David Bauer To: openwrt-devel@lists.openwrt.org Date: Thu, 11 Apr 2019 17:59:45 +0200 Message-Id: <20190411155945.28600-4-mail@david-bauer.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190411155945.28600-1-mail@david-bauer.net> References: <20190411155945.28600-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-20190411_085958_959873_FA74F034 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. 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 4/4] ath79: enable QCA955x SGMII workaround 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 Enable the QCA955x SGMII workaround for all devices which sport the AR8033 + QCA955x combination which is known to show the link-stuck symptoms. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi | 6 ++++++ target/linux/ath79/dts/qca9558_ocedo_ursus.dts | 6 ++++++ target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi index 9937186b1e..e2d1b7cc94 100644 --- a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi @@ -131,6 +131,7 @@ &mdio1 { phy1: ethernet-phy@1 { reg = <1>; + at803x-override-sgmii-link-check; }; }; @@ -139,6 +140,11 @@ mtd-mac-address-increment = <1>; phy-handle = <&phy1>; pll-data = <0x03000101 0x00000101 0x00001313>; + qca955x-sgmii-fixup; + + gmac-config { + device = <&gmac>; + }; }; &wmac { diff --git a/target/linux/ath79/dts/qca9558_ocedo_ursus.dts b/target/linux/ath79/dts/qca9558_ocedo_ursus.dts index 1a92da3946..53bfa51fd2 100644 --- a/target/linux/ath79/dts/qca9558_ocedo_ursus.dts +++ b/target/linux/ath79/dts/qca9558_ocedo_ursus.dts @@ -119,6 +119,7 @@ phy2: ethernet-phy@2 { reg = <2>; + at803x-override-sgmii-link-check; }; }; @@ -144,4 +145,9 @@ mtd-mac-address = <&art 0x12>; phy-handle = <&phy2>; pll-data = <0x3000101 0x101 0x1313>; + qca955x-sgmii-fixup; + + gmac-config { + device = <&gmac>; + }; }; diff --git a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts index 1e3cf40f71..d05e844d63 100644 --- a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts +++ b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts @@ -146,6 +146,7 @@ phy1: ethernet-phy@1 { reg = <1>; phy-mode = "sgmii"; + at803x-override-sgmii-link-check; }; }; @@ -165,4 +166,9 @@ phy-handle = <&phy1>; phy-mode = "sgmii"; + qca955x-sgmii-fixup; + + gmac-config { + device = <&gmac>; + }; };