From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FD89C07E9B for ; Tue, 20 Jul 2021 09:10:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 623BA61019 for ; Tue, 20 Jul 2021 09:10:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 623BA61019 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=vBLMF4Yp4UQHDhOt/nLTvvfgD2vGJOYMsor0M/5bDRk=; b=X3C0ghFOnAIiJn xxwrEmNRVVrn/7hXZGEoxmD5H+Ys6POfL/NMvZlSH4dFMSHgAceJfNnDhOSgD/iXOySa50Ak7H/Wr fo1zeMxreger0PponkeLRyrhaaatU7WacZnhVOobTiYgbHs/xmsfz4tfm1+tlj900sQWyCwlShomE +G7tJyHQgj/Zzg0lYHi3fdcJAJg1njWzMXhv4qB8/75IMQsDaOfENZuRs9kJFzqtWOYd8dnIz9L5y V1trSZ/a+NcH2cJg+XYbsskONUw5++sJieOG9F2YmC3cLwSGaARyRUDRroRlRabWVtB/iIlL0+fBJ q/xPcSFpu7wTFKaiujPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5lk4-00CNgS-VV; Tue, 20 Jul 2021 09:08:45 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5ljx-00CNeT-OO for linux-arm-kernel@lists.infradead.org; Tue, 20 Jul 2021 09:08:41 +0000 Received: by mail-lf1-x132.google.com with SMTP id s13so13252415lfi.12 for ; Tue, 20 Jul 2021 02:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e+hDNLtLpBHkxB3OUhRjMQ7HNzKWe79PsQistW0avMI=; b=c50O7H7V1IymJDax/8geeWLNTzguooDl+bQBabDesQBuFs5T1ETfGwNJauO0piWUsx JYDQE5PC0vCOAEETE8MmZbVFHV3Td7TjVnjkD3a4jgZq2o+4ZXsAdGDzWgh7awuGCdYD 98B70FQB8PVrrEpBqT5IGnqV7oKUSpKfaOxzPI0uqN47vUKkiWxpkmy9s4iOkrSqET0W 3WBMk/ZQSFeMKVnpYwWgpMqbnXjY1DOFFKxVQiO0PG6+D0TrapN9yDDZYmflk3rpQCVm FB0dTXDhfhR0z5am3Ka+UF5XASdOrU6XwIJ7eSFxpMi2e4U3zcW8bYpo9Wg75zfDP15f cbkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e+hDNLtLpBHkxB3OUhRjMQ7HNzKWe79PsQistW0avMI=; b=hAHv4uLY4GvqG66kKtEEcCGMXLBAAjrEAstOU4lelYeZRMuTGbrW1vPcFVuxerwU1H +yh2p596YeWi8cLGwnZjTgD08iLX3Sozlkkaetf7EAn5j6FmuTCGSw3SRcrdUcWDZPKB srVDfsjFNWi8sZPCqw01FoAtWM2M4V7GQ5+bJCWD4ZuSceBfPsDxbzNlJCvfDTDW2FDl /35cHwLNvoMY3W70Dn4B98mu3IoTdPBmFNoF9cn+mz82gDw1ud54CFaRQQ2gCCvy1Djt paGAtx7bRRJyeWu/jylN21mjdJDUzckoVWWogAO1FTc9Yvemy7acsVKbi/q5vTcOCJJd cKgw== X-Gm-Message-State: AOAM530miVrw1CT9Lp7R7IhxjtionuxNxdWKYJt3mBdh1ByrhpNLOJFf vTRXxuDunfYNEcqI2gvtXwN6uyVciX4GBA== X-Google-Smtp-Source: ABdhPJz3aRdeDqXhtd2qSha8ySD60EW1O7cdpizs3SzvxAtvyaLp12I1Q6EIM+KZiulFEIJlaiPMNw== X-Received: by 2002:a05:6512:3ca6:: with SMTP id h38mr21052581lfv.94.1626772115574; Tue, 20 Jul 2021 02:08:35 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id e13sm417916lji.106.2021.07.20.02.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 02:08:35 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa Cc: Linus Walleij Subject: [PATCH] ARM: dts: ixp4xx: Add devicetree for Netgear WG302v2 Date: Tue, 20 Jul 2021 11:06:32 +0200 Message-Id: <20210720090632.1439567-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210720_020837_896159_B1AC118C X-CRM114-Status: GOOD ( 18.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds a devicetree for the Netgear WG302v2 router. The DTS is mostly based on the upstream boardfile but I also added in the ethernet from OpenWrt to get a more complete system. Cc: Imre Kaloz Signed-off-by: Linus Walleij --- arch/arm/boot/dts/Makefile | 3 +- .../boot/dts/intel-ixp42x-netgear-wg302v2.dts | 95 +++++++++++++++++++ 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/intel-ixp42x-netgear-wg302v2.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 1de207f19821..5500eac49eae 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -247,7 +247,8 @@ dtb-$(CONFIG_ARCH_IXP4XX) += \ intel-ixp43x-gateworks-gw2358.dtb \ intel-ixp42x-omicron-devixp.dtb \ intel-ixp42x-omicron-miccpt.dtb \ - intel-ixp42x-omicron-mic256.dtb + intel-ixp42x-omicron-mic256.dtb \ + intel-ixp42x-netgear-wg302v2.dtb dtb-$(CONFIG_ARCH_KEYSTONE) += \ keystone-k2hk-evm.dtb \ keystone-k2l-evm.dtb \ diff --git a/arch/arm/boot/dts/intel-ixp42x-netgear-wg302v2.dts b/arch/arm/boot/dts/intel-ixp42x-netgear-wg302v2.dts new file mode 100644 index 000000000000..6c1f3c6a0e84 --- /dev/null +++ b/arch/arm/boot/dts/intel-ixp42x-netgear-wg302v2.dts @@ -0,0 +1,95 @@ +// SPDX-License-Identifier: ISC +/* + * Device Tree file for Netgear WG302v2 based on IXP422BB + * Derived from boardfiles written by Imre Kaloz + */ + +/dts-v1/; + +#include "intel-ixp42x.dtsi" +#include + +/ { + model = "Netgear WG302 v2"; + compatible = "netgear,wg302v2", "intel,ixp42x"; + #address-cells = <1>; + #size-cells = <1>; + + memory@0 { + /* 16 MB SDRAM according to OpenWrt database */ + device_type = "memory"; + reg = <0x00000000 0x01000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootwait"; + stdout-path = "uart1:115200n8"; + }; + + aliases { + /* These are switched around */ + serial0 = &uart1; + serial1 = &uart0; + }; + + soc { + bus@c4000000 { + flash@0,0 { + compatible = "intel,ixp4xx-flash", "cfi-flash"; + bank-width = <2>; + /* + * 32 MB of Flash in 128 0x20000 sized blocks + * mapped in at CS0 and CS1 + */ + reg = <0 0x00000000 0x2000000>; + + /* Configure expansion bus to allow writes */ + intel,ixp4xx-eb-write-enable; + + partitions { + compatible = "redboot-fis"; + /* CHECKME: guess this is Redboot FIS */ + fis-index-block = <0xff>; + }; + }; + }; + + pci@c0000000 { + status = "ok"; + + /* + * Taken from WG302 v2 PCI boardfile (wg302v2-pci.c) + * We have slots (IDSEL) 1 and 2 with one assigned IRQ + * each handling all IRQs. + */ + interrupt-map = + /* IDSEL 1 */ + <0x0800 0 0 1 &gpio0 8 3>, /* INT A on slot 1 is irq 8 */ + <0x0800 0 0 2 &gpio0 8 3>, /* INT B on slot 1 is irq 8 */ + <0x0800 0 0 3 &gpio0 8 3>, /* INT C on slot 1 is irq 8 */ + <0x0800 0 0 4 &gpio0 8 3>, /* INT D on slot 1 is irq 8 */ + /* IDSEL 2 */ + <0x1000 0 0 1 &gpio0 9 3>, /* INT A on slot 2 is irq 9 */ + <0x1000 0 0 2 &gpio0 9 3>, /* INT B on slot 2 is irq 9 */ + <0x1000 0 0 3 &gpio0 9 3>, /* INT C on slot 2 is irq 9 */ + <0x1000 0 0 4 &gpio0 9 3>; /* INT D on slot 2 is irq 9 */ + }; + + ethernet@c8009000 { + status = "ok"; + queue-rx = <&qmgr 3>; + queue-txready = <&qmgr 20>; + phy-mode = "rgmii"; + phy-handle = <&phy8>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + phy8: ethernet-phy@8 { + reg = <8>; + }; + }; + }; + }; +}; -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel