From patchwork Wed May 30 13:18:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Maclean X-Patchwork-Id: 922820 X-Patchwork-Delegate: blogic@openwrt.org 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=monkeh.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="g0sbPaiY"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="DBsAdoVd"; 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 40wsL1189dz9rvt for ; Wed, 30 May 2018 23:45:29 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject: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=6ji8YkkleErqmvJK9BLSSXovZ6JsZXUT91OE5FdHg9I=; b=g0sbPaiYo9LtfQwhecTw5ey67p LSc5tdvloVUX1W7wqRNOcpqWCLVyeF2r2MSaoE3NWwMtKQTtCGFzhhOx32TFPX2NtXoxtC7eDnEEV 4Jo2K7IgIxDwJwntmld12n/iCzYGvghSln743no6KXUBuAbd2s+OTm6Nn6eJtu6JHKkbaeKCHannm nD4/91Luun77nKqRuzjTJwHPT2z0qx+UveBoVLhQSI+8ilcLYrz0Vrh8R//kBBjB1jyqN1yCWOsH4 HJuB3dHEbW3L9imGbXT0LNhG1wrV58A73jVqWyidTaydGnsCS2xNYBwCudNfZ+xQ/QxMEDFGGSouE Yph3fnjA==; 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 1fO1Pe-0001X3-SU; Wed, 30 May 2018 13:45:14 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fO1Nm-00009F-8e for openwrt-devel@bombadil.infradead.org; Wed, 30 May 2018 13:43:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:To:From:Sender:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=p7of9MgAdtwUvIO9wefX52nTddC8OUGJaAmWUDX3lXo=; b=DBsAdoVdS1jsBr5V14C88vXOo P6IraU5t2iybfGxQJcBbOX3CpYKsRxrIOAczP1K/xFh0aExdynnj0Q2UkupR9I74h875JiefWMAbJ spD2qHzOdysg+rXNy/FLV6Dp+l0VE+ei1/sy4QaIRdSvcE+HR0fOrJ+ZH7btUDMLda3tTCHjpPB/L MaOLl442oXuPh/AKBQDO4ESWS5sAdQP0815btQ9Iq5kE0Y5gdYibatFcwAVgf1Xzx1BuLz5jrGqF5 ctA6qdCAMtasRkWue/jbyaXFG8ch94bRPEk6q/V8hNQFGD/AhHAF0TuWFJI0kdYVCIbwrvIPWIU7f jkTKMdcyA==; Received: from monkeh.net ([88.97.98.50] helo=mail.monkeh.net) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fO112-0003dZ-US for openwrt-devel@lists.openwrt.org; Wed, 30 May 2018 13:19:49 +0000 Received: from terra.home.monkeh.net (unknown [172.16.0.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: monkeh@monkeh.net) by mail.monkeh.net (Postfix) with ESMTPSA id BFD58309DEC for ; Wed, 30 May 2018 13:19:29 +0000 (UTC) From: Alex Maclean To: openwrt-devel@lists.openwrt.org Date: Wed, 30 May 2018 14:18:51 +0100 Message-Id: <20180530131854.9365-2-monkeh@monkeh.net> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180530131854.9365-1-monkeh@monkeh.net> References: <20180530131854.9365-1-monkeh@monkeh.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180530_091949_092984_72872A96 X-CRM114-Status: GOOD ( 10.70 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.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 v2 2/5] ath79: add AR7240 dtsi 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: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Alex Maclean --- target/linux/ath79/dts/ar7240.dtsi | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 target/linux/ath79/dts/ar7240.dtsi diff --git a/target/linux/ath79/dts/ar7240.dtsi b/target/linux/ath79/dts/ar7240.dtsi new file mode 100644 index 0000000000..6805d1a786 --- /dev/null +++ b/target/linux/ath79/dts/ar7240.dtsi @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "ar724x.dtsi" + +/ { + usb_phy: usb-phy { + compatible = "qca,ar7200-usb-phy"; + + reset-names = "usb-phy", "usb-ohci-dll"; + resets = <&rst 4>, <&rst 3>; + + #phy-cells = <0>; + + status = "disabled"; + }; +}; + +&ahb { + usb: usb@1b000000 { + compatible = "generic-ohci"; + reg = <0x1b000000 0x1000>; + + interrupts = <3>; + + resets = <&rst 5>; + reset-names = "usb-host"; + + phy-names = "usb-phy"; + phys = <&usb_phy>; + + status = "disabled"; + }; +}; + +&mdio0 { + builtin-switch; +}; + +ð0 { + compatible = "qca,ar7240-eth", "syscon"; + + pll-data = <0x00110000 0x00001099 0x00991099>; + + resets = <&rst 8>, <&rst 9>; + reset-names = "phy", "mac"; +}; + +&mdio1 { + builtin-switch; +}; + +ð1 { + compatible = "qca,ar7240-eth", "syscon"; + + pll-data = <0x00110000 0x00001099 0x00991099>; + + resets = <&rst 12>, <&rst 13>; + reset-names = "phy", "mac"; + + phy-mode = "gmii"; + + fixed-link { + speed = <1000>; + full-duplex; + }; +};