From patchwork Fri Jul 24 10:38:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 11682933 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EFE1C912 for ; Fri, 24 Jul 2020 10:42:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 C352520748 for ; Fri, 24 Jul 2020 10:42:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JnZBqFUh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="lMS0hKsT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C352520748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UO/eLJqixWtXW9nIUnz3LrG0x+CisQlr1ClAcwY/ABA=; b=JnZBqFUhYygOQMY1geTnWitBU NdsrG/jpRozLKvO1aplwgDBGVTGp/bcErDINE/nRd9zTI9I9HmmxjIquGAulZK3R1SLmH6PLSeBfT gENOW+UqKLe8eRWArnScqxovcX5eWxiuEXrLCYDPYzrVBreWyV07EoXlF3twKevicYG22Zr3Jn+FU aJUGAQQg8AyGFwSroKa7Wfy3snVm7cxFFRGfudiQeOO8ukwDud8UlK+WMbFjDBBf13L+JcKvsVvLJ RFEI+Dx4eAkf8GOIi5WwYZOnCxtFDZXQXGBUtnASj5u8gNIyMVoUQVBdSgapnoYZgW85ljYDk0Xqz 66oPdscFw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv7z-0007IE-9j; Fri, 24 Jul 2020 10:40:35 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv6P-0006UW-I2 for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2020 10:39:02 +0000 Received: by mail-wm1-x343.google.com with SMTP id o2so7838534wmh.2 for ; Fri, 24 Jul 2020 03:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=asNVEYk8KfoZ4vg7N/gD3s4rcXG24Tr1/ayUv6ELQDA=; b=lMS0hKsTGuLOzUEs5OuvhgZ8Stjst8miUPMx3B0A9abxrjSNgaKaVtS/0pZQZa3SZf Ye6XwdvuS/WCKoxzEA6SV89RC7Liz0J/lkrgrvwMRfSwS8fc3zFStCQx+yfgR+vWo309 fFb8PXCdeKxJHyOwdmlWtN63viAJXcLaSGyVZ6NxxV9S5vsjjAr3D9CFnzz/2O9OU/2c 5NjxVsW3ifD6SijmQ08F1Fnb9PDoAIUGj7VFD3PvfYZdiAN4+mpgksweKjvd9VOOhr1z +/9tqNXP9hzE7sxVQCJeyRc8ayX5l8EjVU6iCBnu5ezIHwAmRyLjIruHh+H1UvNR5HyU NumA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=asNVEYk8KfoZ4vg7N/gD3s4rcXG24Tr1/ayUv6ELQDA=; b=pmMfZcrWoVo+9OL0+TsoxmEmygJ9IYtICPM/hbLqMBJVddy10QZ4q32/+w7PyGeWVX IEyChGWaY7Hlyc7TTQzKFC+wZ+F6CGc4lEMRlAb03iobFjuq2HSv4pGF5eS3AJnZuyaR qd4yseiGEN/P2UqCOp+7S8OAdQjLOikXaDcZ1SwjkzED+6ZaLVHhjaVqshP25jY5IW+3 cJo8e9ZkRKl+GX+m/7GvPAob79JXdhGAPXJlTiTPKWanXnQ1G/zSxWQSgilKgE3889Le q5ZH7e4oyU3IpCtBZYGdlTznp74RF1JyMuKB5BVoZBlcQri3kUX2rPsmLHgcHshdIqTU hc8w== X-Gm-Message-State: AOAM532wtX8J5U2rLvUFshF8/1/6DiJD3ggtu0yjojAl4bdN/4YKDxOH ZGCoqiI0pQz+CNpjPXVsmy9quXdBMqVsAA/qHqDlYPlG4DfGNDzbaxb7Se90YPqpqU7aduz3Hbh 07S6lJRORDStX7N7uj9h/UeVOOm3Sttgzkpm1HB0BwaqS5nYXt5+l94j3N9nB1+aPd496vIqeAE NjfJtjZHhm6igLV9dLgA== X-Google-Smtp-Source: ABdhPJx0ZNqiuuhbIiOHn5PgnM0nwGQ+h7ykoniMkeWT2A7yZtkoVyUDBnTbW5mVNDL0oRvX3iICXQ== X-Received: by 2002:a1c:a181:: with SMTP id k123mr8235759wme.172.1595587135446; Fri, 24 Jul 2020 03:38:55 -0700 (PDT) Received: from lukakovacicapc.local ([2a00:ee2:4b0d:3001:fbc5:498b:ed6d:cfac]) by smtp.gmail.com with ESMTPSA id f186sm6526280wmf.29.2020.07.24.03.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 03:38:54 -0700 (PDT) From: Luka Kovacic To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] arm: mvebu: dts: Add CRS326-24G-2S board Date: Fri, 24 Jul 2020 12:38:37 +0200 Message-Id: <20200724103840.18994-2-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200724103840.18994-1-luka.kovacic@sartura.hr> References: <20200724103840.18994-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200724_063858_018298_816621BB X-CRM114-Status: GOOD ( 18.90 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:343 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, Luka Perkov , jason@lakedaemon.net, Jakov Petrina , gregory.clement@bootlin.com, Luka Kovacic , sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org MikroTik CRS326-24G-2S board has a switch chip with an integrated Marvell Prestera 98DX3236 CPU. This commit includes two board variants, namely the factory default one and a Bit variant. The Bit variant has a bigger Macronix flash. This device tree includes basic Linux support. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Jakov Petrina Reviewed-by: Andrew Lunn --- arch/arm/boot/dts/Makefile | 2 + .../boot/dts/armada-xp-crs326-24g-2s-bit.dts | 43 ++++++++ arch/arm/boot/dts/armada-xp-crs326-24g-2s.dts | 17 +++ .../arm/boot/dts/armada-xp-crs326-24g-2s.dtsi | 104 ++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 arch/arm/boot/dts/armada-xp-crs326-24g-2s-bit.dts create mode 100644 arch/arm/boot/dts/armada-xp-crs326-24g-2s.dts create mode 100644 arch/arm/boot/dts/armada-xp-crs326-24g-2s.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e6a1cac0bfc7..8627a38c4100 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1312,6 +1312,8 @@ dtb-$(CONFIG_MACH_ARMADA_39X) += \ armada-398-db.dtb dtb-$(CONFIG_MACH_ARMADA_XP) += \ armada-xp-axpwifiap.dtb \ + armada-xp-crs326-24g-2s.dtb \ + armada-xp-crs326-24g-2s-bit.dtb \ armada-xp-db.dtb \ armada-xp-db-dxbc2.dtb \ armada-xp-db-xc3-24g4xg.dtb \ diff --git a/arch/arm/boot/dts/armada-xp-crs326-24g-2s-bit.dts b/arch/arm/boot/dts/armada-xp-crs326-24g-2s-bit.dts new file mode 100644 index 000000000000..21f442afab1f --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs326-24g-2s-bit.dts @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for MikroTik CRS326-24G-2S+ Bit board + * + * Copyright (C) 2020 Sartura Ltd. + * Author: Luka Kovacic + */ + +#include "armada-xp-crs326-24g-2s.dtsi" + +/ { + model = "MikroTik CRS326-24G-2S+ Bit"; +}; + +&spi0 { + status = "okay"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; + m25p,fast-read; + + partition@u-boot { + reg = <0x00000000 0x001f0000>; + label = "u-boot"; + }; + partition@u-boot-env { + reg = <0x001f0000 0x00010000>; + label = "u-boot-env"; + }; + partition@ubi1 { + reg = <0x00200000 0x03f00000>; + label = "ubi1"; + }; + partition@ubi2 { + reg = <0x04100000 0x03f00000>; + label = "ubi2"; + }; + }; +}; diff --git a/arch/arm/boot/dts/armada-xp-crs326-24g-2s.dts b/arch/arm/boot/dts/armada-xp-crs326-24g-2s.dts new file mode 100644 index 000000000000..83aef43f66d5 --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs326-24g-2s.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for MikroTik CRS326-24G-2S+ board + * + * Copyright (C) 2020 Sartura Ltd. + * Author: Luka Kovacic + */ + +#include "armada-xp-crs326-24g-2s.dtsi" + +/ { + model = "MikroTik CRS326-24G-2S+"; +}; + +&spi0 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/armada-xp-crs326-24g-2s.dtsi b/arch/arm/boot/dts/armada-xp-crs326-24g-2s.dtsi new file mode 100644 index 000000000000..f3e1a25ca5f2 --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs326-24g-2s.dtsi @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for CRS326-24G-2S board + * + * Copyright (C) 2016 Allied Telesis Labs + * Copyright (C) 2020 Sartura Ltd. + * + * Based on armada-xp-db.dts + * + * Note: this Device Tree assumes that the bootloader has remapped the + * internal registers to 0xf1000000 (instead of the default + * 0xd0000000). The 0xf1000000 is the default used by the recent, + * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier + * boards were delivered with an older version of the bootloader that + * left internal registers mapped at 0xd0000000. If you are in this + * situation, you should either update your bootloader (preferred + * solution) or the below Device Tree should be adjusted. + */ + +/dts-v1/; +#include "armada-xp-98dx3236.dtsi" + +/ { + model = "CRS326-24G-2S+"; + compatible = "mikrotik,crs326-24g-2s", "marvell,armadaxp-98dx3236", "marvell,armada-370-xp"; + + chosen { + bootargs = "console=ttyS0,115200 earlyprintk"; + }; + + memory { + device_type = "memory"; + reg = <0 0x00000000 0 0x20000000>; /* 512 MB */ + }; +}; + +&L2 { + arm,parity-enable; + marvell,ecc-enable; +}; + +&devbus_bootcs { + status = "okay"; + + /* Device Bus parameters are required */ + + /* Read parameters */ + devbus,bus-width = <16>; + devbus,turn-off-ps = <60000>; + devbus,badr-skew-ps = <0>; + devbus,acc-first-ps = <124000>; + devbus,acc-next-ps = <248000>; + devbus,rd-setup-ps = <0>; + devbus,rd-hold-ps = <0>; + + /* Write parameters */ + devbus,sync-enable = <0>; + devbus,wr-high-ps = <60000>; + devbus,wr-low-ps = <60000>; + devbus,ale-wr-ps = <60000>; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&i2c0 { + clock-frequency = <100000>; + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; + m25p,fast-read; + + partition@u-boot { + reg = <0x00000000 0x001f0000>; + label = "u-boot"; + }; + partition@u-boot-env { + reg = <0x001f0000 0x00010000>; + label = "u-boot-env"; + }; + partition@ubi1 { + reg = <0x00200000 0x00e00000>; + label = "ubi1"; + }; + }; +}; From patchwork Fri Jul 24 10:38:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 11682937 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 58A75912 for ; Fri, 24 Jul 2020 10:43:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 2A3B120748 for ; Fri, 24 Jul 2020 10:43:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HMOHIsik"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="MKTrm8RF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A3B120748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9icUhpLz6xU1PN3QkQ1OArKpCI2BSl9OiNKk00moB3E=; b=HMOHIsikX+D2arnVGxqCScvQh 0RbZ/nFgk0yVSejpAXY+/sDuaue43SEaQrEIznog2a6NR5O3Ei4KDWubV4GF4hLr6PCnboUp82Qp5 65d6cq7AeCWMwFc/99ym9v80cTCieg3vbj4/f4l3USQ9Bxu2rKkuu/gdWFBCFvfNW7FDnyHCFgxTL bOm8pRST6Y/tMmdekad6j4gInmiqyPI5HUfMKyrzCkVXxo0f4zLbPX4/9/z9YzYe0N28YpplK6aF+ umgVvuTpIaiILBQ799K1xnqe3NDVAb1neXXfS9nxgxQouUK1MIJIzY83TdkoZuTFX2WsjJwnsLe5g cWCnbgunA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv8A-0007T1-Qe; Fri, 24 Jul 2020 10:40:46 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv6R-0006Vv-By for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2020 10:39:03 +0000 Received: by mail-wm1-x342.google.com with SMTP id 3so894517wmi.1 for ; Fri, 24 Jul 2020 03:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jzuRpAS8/HJXVbVLylAyBQaGzmpX+rFR9BOvfquNy00=; b=MKTrm8RFq3jYoOmAKlCuZn5T4X3dUyv6SahKhXYwy0NIffWYo8Lfht7c59sIvenQzP vjtw6/RsPvnRZU0rkHfJ1iCIDTcsRL8emdSy1PHUEPX676EcI5jTrdhy3TBzhjhKPOtr gqxTTZHhCM4XtJN90RqXybYY65zg8hKdtMMCLw81jfHtMxqbyUWsm0Bwu+Nvxzf+PP/x Cs6wRftrKJ4N3JoNJqKEW8tfFR0RzCk3ZcKY+gYrywvab/+suj7cc/TYEIWr7BekITh2 sf+FS6BDR7oZxpfrxCNRvMBV8CWefguLDr/USZsF2ZACBS7dhNjRhpsZncgQwgGhAff1 fCCA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jzuRpAS8/HJXVbVLylAyBQaGzmpX+rFR9BOvfquNy00=; b=Z8hWFXoUo3FoLnPzsauFs6KKR9SX8uaolFmiuijeow5IIUvNzaqhSALYxoyqiRhfHq zwW1iWy+hZ9qfgPH3ueaG0YqW1KNzPfZmJL8v9sCX2IxW7bwkC9jUm99rNAUuJvNzMvr H3NlkqM+Qxd9T/MYXOvaQzqMsDVjN5g6atapz+zoDxhMWbn08cBfetg4DUIz30mYbmpi F4bnOlWrLABOWM4szb4h8lAlE969E/aeBFWb67qxRkUUsaIgiK2De2xLRjrGua1rWBVt K+1CBS8jrxWlAwqpDtsU8pC01e4FT62K/hYBIr/gj5ubKx10+TIfEeCXW3+TQbvS3BSK xH1Q== X-Gm-Message-State: AOAM530qe9vPs06UNsZWEbI0d4hyW6ITIZshFWS+JIFE4Hyj247cXd8x ub5xCt1GLxcCUVfxXdMfLe4p6D5w1LLozKRTIFXGIiFsZ7iW9psyY2gaLGazT4zbJp5XHjo6BeE 1SPv9SL6jLOIJ7jQCF69rupaStCgf1fascJVATpB1f6yWh+ND58Yy/ihZ0ptaIRJHhuALq6Goph 2/OJcSeKMJdnIB0mDnbQ== X-Google-Smtp-Source: ABdhPJwtYg2leiWigjNBGlHSEpqgwuWkpBIB3GKIA1LeBVEGPNltJUPGNe3lI9nTH1vI6ZuZK0LpVQ== X-Received: by 2002:a1c:ba83:: with SMTP id k125mr8229420wmf.160.1595587137660; Fri, 24 Jul 2020 03:38:57 -0700 (PDT) Received: from lukakovacicapc.local ([2a00:ee2:4b0d:3001:fbc5:498b:ed6d:cfac]) by smtp.gmail.com with ESMTPSA id f186sm6526280wmf.29.2020.07.24.03.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 03:38:56 -0700 (PDT) From: Luka Kovacic To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] arm: mvebu: dts: Add CRS305-1G-4S board Date: Fri, 24 Jul 2020 12:38:38 +0200 Message-Id: <20200724103840.18994-3-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200724103840.18994-1-luka.kovacic@sartura.hr> References: <20200724103840.18994-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200724_063859_579616_13FB1D95 X-CRM114-Status: GOOD ( 19.00 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:342 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, Luka Perkov , jason@lakedaemon.net, Jakov Petrina , gregory.clement@bootlin.com, Luka Kovacic , sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org MikroTik CRS305-1G-4S board has a switch chip with an integrated Marvell Prestera 98DX3236 CPU. This commit includes two board variants, namely the factory default one and a Bit variant. The Bit variant has a bigger Macronix flash. This device tree includes basic Linux support. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Jakov Petrina Reviewed-by: Andrew Lunn --- arch/arm/boot/dts/Makefile | 2 + .../boot/dts/armada-xp-crs305-1g-4s-bit.dts | 43 ++++++++ arch/arm/boot/dts/armada-xp-crs305-1g-4s.dts | 17 +++ arch/arm/boot/dts/armada-xp-crs305-1g-4s.dtsi | 104 ++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 arch/arm/boot/dts/armada-xp-crs305-1g-4s-bit.dts create mode 100644 arch/arm/boot/dts/armada-xp-crs305-1g-4s.dts create mode 100644 arch/arm/boot/dts/armada-xp-crs305-1g-4s.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 8627a38c4100..f3ac0fb7f244 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1312,6 +1312,8 @@ dtb-$(CONFIG_MACH_ARMADA_39X) += \ armada-398-db.dtb dtb-$(CONFIG_MACH_ARMADA_XP) += \ armada-xp-axpwifiap.dtb \ + armada-xp-crs305-1g-4s.dtb \ + armada-xp-crs305-1g-4s-bit.dtb \ armada-xp-crs326-24g-2s.dtb \ armada-xp-crs326-24g-2s-bit.dtb \ armada-xp-db.dtb \ diff --git a/arch/arm/boot/dts/armada-xp-crs305-1g-4s-bit.dts b/arch/arm/boot/dts/armada-xp-crs305-1g-4s-bit.dts new file mode 100644 index 000000000000..a022c68dc943 --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs305-1g-4s-bit.dts @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for MikroTik CRS305-1G-4S+ Bit board + * + * Copyright (C) 2020 Sartura Ltd. + * Author: Luka Kovacic + */ + +#include "armada-xp-crs305-1g-4s.dtsi" + +/ { + model = "MikroTik CRS305-1G-4S+ Bit"; +}; + +&spi0 { + status = "okay"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; + m25p,fast-read; + + partition@u-boot { + reg = <0x00000000 0x001f0000>; + label = "u-boot"; + }; + partition@u-boot-env { + reg = <0x001f0000 0x00010000>; + label = "u-boot-env"; + }; + partition@ubi1 { + reg = <0x00200000 0x03f00000>; + label = "ubi1"; + }; + partition@ubi2 { + reg = <0x04100000 0x03f00000>; + label = "ubi2"; + }; + }; +}; diff --git a/arch/arm/boot/dts/armada-xp-crs305-1g-4s.dts b/arch/arm/boot/dts/armada-xp-crs305-1g-4s.dts new file mode 100644 index 000000000000..010b83b54212 --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs305-1g-4s.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for MikroTik CRS305-1G-4S+ board + * + * Copyright (C) 2020 Sartura Ltd. + * Author: Luka Kovacic + */ + +#include "armada-xp-crs305-1g-4s.dtsi" + +/ { + model = "MikroTik CRS305-1G-4S+"; +}; + +&spi0 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/armada-xp-crs305-1g-4s.dtsi b/arch/arm/boot/dts/armada-xp-crs305-1g-4s.dtsi new file mode 100644 index 000000000000..32fb21b2bf6a --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs305-1g-4s.dtsi @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for CRS305-1G-4S board + * + * Copyright (C) 2016 Allied Telesis Labs + * Copyright (C) 2020 Sartura Ltd. + * + * Based on armada-xp-db.dts + * + * Note: this Device Tree assumes that the bootloader has remapped the + * internal registers to 0xf1000000 (instead of the default + * 0xd0000000). The 0xf1000000 is the default used by the recent, + * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier + * boards were delivered with an older version of the bootloader that + * left internal registers mapped at 0xd0000000. If you are in this + * situation, you should either update your bootloader (preferred + * solution) or the below Device Tree should be adjusted. + */ + +/dts-v1/; +#include "armada-xp-98dx3236.dtsi" + +/ { + model = "CRS305-1G-4S+"; + compatible = "mikrotik,crs305-1g-4s", "marvell,armadaxp-98dx3236", "marvell,armada-370-xp"; + + chosen { + bootargs = "console=ttyS0,115200 earlyprintk"; + }; + + memory { + device_type = "memory"; + reg = <0 0x00000000 0 0x20000000>; /* 512 MB */ + }; +}; + +&L2 { + arm,parity-enable; + marvell,ecc-enable; +}; + +&devbus_bootcs { + status = "okay"; + + /* Device Bus parameters are required */ + + /* Read parameters */ + devbus,bus-width = <16>; + devbus,turn-off-ps = <60000>; + devbus,badr-skew-ps = <0>; + devbus,acc-first-ps = <124000>; + devbus,acc-next-ps = <248000>; + devbus,rd-setup-ps = <0>; + devbus,rd-hold-ps = <0>; + + /* Write parameters */ + devbus,sync-enable = <0>; + devbus,wr-high-ps = <60000>; + devbus,wr-low-ps = <60000>; + devbus,ale-wr-ps = <60000>; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&i2c0 { + clock-frequency = <100000>; + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; + m25p,fast-read; + + partition@u-boot { + reg = <0x00000000 0x001f0000>; + label = "u-boot"; + }; + partition@u-boot-env { + reg = <0x001f0000 0x00010000>; + label = "u-boot-env"; + }; + partition@ubi1 { + reg = <0x00200000 0x00e00000>; + label = "ubi1"; + }; + }; +}; From patchwork Fri Jul 24 10:38:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 11682935 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4CCB912 for ; Fri, 24 Jul 2020 10:43:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 BA46720748 for ; Fri, 24 Jul 2020 10:43:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3VU+T+FP"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="bjSwjhFc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA46720748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eKKBDDuL9gkwsEcILkhF6B56e3DAUD8+WLnytp5y62k=; b=3VU+T+FPc0WMRCc0vTxTal2Pm P1PkaK18koZH/fClFysB/A05B2EyVGvG/IJ5mYXCWkz5neBymIo6Pyp67bEG+4hz+fEQB96O8jSXO +xQfBV9y6QJZ63aRqi+UUhPM734w2T6fxBulLwZdfWNoFKzmg+cT0759t8rVLb837WuZChbRWCWUk 41URygJBCzceXvoSP+AKwvE8Ry0pyJClduRDLMo9JvJoCQYzT/r7kqmYWAKSHR8v7ZmV5NVW4IHhk d+65U0hRIyvoucu9CLstmFEoHSz7Hn8XEjCBfmdWEp0blb20QLfjkLsxDFBLm9S8ydpbbJTiwK70D dQMX/0AVQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv8G-0007WX-3Z; Fri, 24 Jul 2020 10:40:52 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv6U-0006Wt-37 for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2020 10:39:04 +0000 Received: by mail-wm1-x344.google.com with SMTP id k20so173007wmi.5 for ; Fri, 24 Jul 2020 03:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9U411ctUM3vO2DPCYEQQlWpf6fR/d5l+DGhZUbs7j2k=; b=bjSwjhFcv6/zrxGa06TVCvcaYdLPNG6sXjLE+ZEgSt3XMfhqp7cVYAWdEXZ+Td5waZ gIVjAG6a8ZlTCOgOrTmg7qW6aWOHqeQLhDGv1q5HHeqdzVHC42w+vdmWHbkKdPYLWqFI aCrijkVwoKtUdqH4CEV3G++nZRW+yw7INk0meIYRSjBM4rQLfZrNRQ17FaC0QHck35r6 FFJN0o4MJrGHQ/qy+lmKoCeSAUYNOiAY4F4EzKMKXJdJs3y3YI8GAOuXVYjMcPV7gTLX 2WSuwQRy99FgZh/1Qy4H769xYVCeTlBViCRGRTH11y5cipWDco79aC0r5/15Tc0R2P2+ d55g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=9U411ctUM3vO2DPCYEQQlWpf6fR/d5l+DGhZUbs7j2k=; b=rT8So320mJ6RZAE0OzHMnXEbsURg4AmRpDe96cMTOLBDDprSm4q6Vxo+J7/WZ4koSy gqTjYTpk0TJBav/jqeGz7IvH6fglnSCqp0O7gvzQqzHE1mvmY3gXgBS9kSs3i/Q3Ozcw DF+MKO9sos406DwOqiyeepA1fj2Fd8tJkxNK2mD34RBcrosuY0fj862ZKwtix72nLN3H DtTxsmGAyA+U8yZLLBuMcIdI6RaviGbm4VqqfPCbKshsE/hVGg1ZVdCu+6hAAyoIn0nu 4ljq7fDrQOEGm4pJCeUWrNtK7P8jyDsTowyL5wxU5fDoWDxmRjJkwEN42iceM4Y0K3vn KBdA== X-Gm-Message-State: AOAM5336z3y2tOT+jYCOf/SBFHb/8MXzr4mZguUmJLQFI3RcaGhvKOxn Jq/05Cd7j57SIuSrYgzlUKP0xIlML986elnS4X/3xMjJuRYBqaenKmwaNGKt30RYZLunWaGQxLF 1q+4JaI1B3g2DC22FPG0dq5V9uucB6/ObyslU1GOfbQOI6q9pIjwJvN+mSW5x9PrMuzll6/52I0 fVa58dnvYMSK0dsZXHZQ== X-Google-Smtp-Source: ABdhPJy0wGbJSjAEDdTMaWyR78Ti8EIUN0R05dVGyBSz3I21hwkz25emynf7deq1ZkClbBYN4PNQag== X-Received: by 2002:a1c:720e:: with SMTP id n14mr8701651wmc.144.1595587139637; Fri, 24 Jul 2020 03:38:59 -0700 (PDT) Received: from lukakovacicapc.local ([2a00:ee2:4b0d:3001:fbc5:498b:ed6d:cfac]) by smtp.gmail.com with ESMTPSA id f186sm6526280wmf.29.2020.07.24.03.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 03:38:58 -0700 (PDT) From: Luka Kovacic To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm: mvebu: dts: Add CRS328-4C-20S-4S board Date: Fri, 24 Jul 2020 12:38:39 +0200 Message-Id: <20200724103840.18994-4-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200724103840.18994-1-luka.kovacic@sartura.hr> References: <20200724103840.18994-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200724_063902_563318_49FE2CDE X-CRM114-Status: GOOD ( 19.00 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, Luka Perkov , jason@lakedaemon.net, Jakov Petrina , gregory.clement@bootlin.com, Luka Kovacic , sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org MikroTik CRS328-4C-20S-4S board has a switch chip with an integrated Marvell Prestera 98DX3236 CPU. This commit includes two board variants, namely the factory default one and a Bit variant. The Bit variant has a bigger Macronix flash. This device tree includes basic Linux support. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Jakov Petrina Reviewed-by: Andrew Lunn --- arch/arm/boot/dts/Makefile | 2 + .../dts/armada-xp-crs328-4c-20s-4s-bit.dts | 43 ++++++++ .../boot/dts/armada-xp-crs328-4c-20s-4s.dts | 17 +++ .../boot/dts/armada-xp-crs328-4c-20s-4s.dtsi | 104 ++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s-bit.dts create mode 100644 arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dts create mode 100644 arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index f3ac0fb7f244..c30bfa9678b1 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1316,6 +1316,8 @@ dtb-$(CONFIG_MACH_ARMADA_XP) += \ armada-xp-crs305-1g-4s-bit.dtb \ armada-xp-crs326-24g-2s.dtb \ armada-xp-crs326-24g-2s-bit.dtb \ + armada-xp-crs328-4c-20s-4s.dtb \ + armada-xp-crs328-4c-20s-4s-bit.dtb \ armada-xp-db.dtb \ armada-xp-db-dxbc2.dtb \ armada-xp-db-xc3-24g4xg.dtb \ diff --git a/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s-bit.dts b/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s-bit.dts new file mode 100644 index 000000000000..e05aee6cdc04 --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s-bit.dts @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for MikroTik CRS328-4C-20S-4S+ Bit board + * + * Copyright (C) 2020 Sartura Ltd. + * Author: Luka Kovacic + */ + +#include "armada-xp-crs328-4c-20s-4s.dtsi" + +/ { + model = "MikroTik CRS328-4C-20S-4S+ Bit"; +}; + +&spi0 { + status = "okay"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; + m25p,fast-read; + + partition@u-boot { + reg = <0x00000000 0x001f0000>; + label = "u-boot"; + }; + partition@u-boot-env { + reg = <0x001f0000 0x00010000>; + label = "u-boot-env"; + }; + partition@ubi1 { + reg = <0x00200000 0x03f00000>; + label = "ubi1"; + }; + partition@ubi2 { + reg = <0x04100000 0x03f00000>; + label = "ubi2"; + }; + }; +}; diff --git a/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dts b/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dts new file mode 100644 index 000000000000..665757f6e18e --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for MikroTik CRS328-4C-20S-4S+ board + * + * Copyright (C) 2020 Sartura Ltd. + * Author: Luka Kovacic + */ + +#include "armada-xp-crs328-4c-20s-4s.dtsi" + +/ { + model = "MikroTik CRS328-4C-20S-4S+"; +}; + +&spi0 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dtsi b/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dtsi new file mode 100644 index 000000000000..c8b1355ce15e --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dtsi @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for CRS328-4C-20S-4S+ board + * + * Copyright (C) 2016 Allied Telesis Labs + * Copyright (C) 2020 Sartura Ltd. + * + * Based on armada-xp-db.dts + * + * Note: this Device Tree assumes that the bootloader has remapped the + * internal registers to 0xf1000000 (instead of the default + * 0xd0000000). The 0xf1000000 is the default used by the recent, + * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier + * boards were delivered with an older version of the bootloader that + * left internal registers mapped at 0xd0000000. If you are in this + * situation, you should either update your bootloader (preferred + * solution) or the below Device Tree should be adjusted. + */ + +/dts-v1/; +#include "armada-xp-98dx3236.dtsi" + +/ { + model = "CRS328-4C-20S-4S+"; + compatible = "mikrotik,crs328-4c-20s-4s", "marvell,armadaxp-98dx3236", "marvell,armada-370-xp"; + + chosen { + bootargs = "console=ttyS0,115200 earlyprintk"; + }; + + memory { + device_type = "memory"; + reg = <0 0x00000000 0 0x20000000>; /* 512 MB */ + }; +}; + +&L2 { + arm,parity-enable; + marvell,ecc-enable; +}; + +&devbus_bootcs { + status = "okay"; + + /* Device Bus parameters are required */ + + /* Read parameters */ + devbus,bus-width = <16>; + devbus,turn-off-ps = <60000>; + devbus,badr-skew-ps = <0>; + devbus,acc-first-ps = <124000>; + devbus,acc-next-ps = <248000>; + devbus,rd-setup-ps = <0>; + devbus,rd-hold-ps = <0>; + + /* Write parameters */ + devbus,sync-enable = <0>; + devbus,wr-high-ps = <60000>; + devbus,wr-low-ps = <60000>; + devbus,ale-wr-ps = <60000>; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&i2c0 { + clock-frequency = <100000>; + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; + m25p,fast-read; + + partition@u-boot { + reg = <0x00000000 0x001f0000>; + label = "u-boot"; + }; + partition@u-boot-env { + reg = <0x001f0000 0x00010000>; + label = "u-boot-env"; + }; + partition@ubi1 { + reg = <0x00200000 0x00e00000>; + label = "ubi1"; + }; + }; +}; From patchwork Fri Jul 24 10:38:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 11682939 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 33FDC912 for ; Fri, 24 Jul 2020 10:43:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 0B2C020748 for ; Fri, 24 Jul 2020 10:43:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AqSJruPU"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="tIdgZ4jR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B2C020748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u2PORoAvr3hkG4irsltblWpuO01ssd5SSWmCGiUI9oE=; b=AqSJruPUOiPw4OwAmL3bI6OAS D2DtM3mCyPc59xvIYQChf7LVgGNm65YtzF9XObJW255C7WklESrUm0eQF4s2IKegP8N2Y6ORl/hH5 67f9zREioG27/rmSRH52Q+fUXfmA9hJI8QJDOAwaFo/6ae5g12yNyN3gt0RTOn3NPP7h6o7o4wk+a nMQVLyt6UFhHFW4c8lH2gnCJXRv0CD+WVmzKW1WzGkJmhBJr2X0nADt46qTmtX1V2mjnbsn+L+Bsl 28eyJ6Cso5n35BoaHN56tCuyEGgok3oqwEUhGkVRrkfngiUBuEQ/b/DftBCr5VDptsYT6znEvP95b SBzD8JRFw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv8R-0007eU-Pr; Fri, 24 Jul 2020 10:41:03 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv6V-0006XB-QJ for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2020 10:39:04 +0000 Received: by mail-wm1-x344.google.com with SMTP id j18so7523157wmi.3 for ; Fri, 24 Jul 2020 03:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YHdxCCtAxsdNwqWlZsmsaGSLGhK0kJ1tZwNHB/8rXdk=; b=tIdgZ4jRKnl2bMPcLNVW/J5K2vucpsFanUiuGE0dj7qI6OuHBFwQ0YTvsavb5PGxJH 7iviGrpxVB9I64dglOC9k10owGp0JQK1BcGf++uyseOI1foE5kdP0SBDSrZ1BdkBFBMh VpLqQPzj1D/8LDIJaDHc+Zjpmz2TIgYfYG7qamjgIE103m/8tN+QUy28sN0lDZYJPIjo uTsJH5SvG42gUiVvuoGUy0uTm4vnQXImAo2Z7igZxsi0EmBwiwT62ejg31nMOc7x4urX IBVlkNDBhd+W8XDEodt9QM9h1CrRMa71fgly9h87QpJeLvyRjecHcqsCBSm5a+gghItF SiJg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=YHdxCCtAxsdNwqWlZsmsaGSLGhK0kJ1tZwNHB/8rXdk=; b=jzZC1q7SvA98kNhLe9Kpji0iHzgbpnD2otw6dJlVAvdkVAPSBgBQ1IR9hU4KLJSxUO VPEJzusPyVTBfi5sQzz2xeYq34vKK3uTrwrDjnWKGE1n0dRN924kSRO7eR3kW9HD77M1 rRd+qQrY/rEvb3OnMhFk7Bi2pe55ZteSBcd9PkGS95mbS0pFzGB7Fe27Jcvnm4ia64rq YPVmzZiP3Ih+6nHi+keE/2d+RzNZG+sfl3G/LXMsxQMVLCWO7YBoxIVjbUof+EOMVDW8 gu1uvZyrbi//DvZk3uBnyEZwNYFn58WhGoKIeDuo8yU679hvWvBwxJCWwVzPcecbOuRx Bj0w== X-Gm-Message-State: AOAM533ZzZRPwc7C4o2l7lbBiiCU5RyB7zNzr3y2cr7C5RYa88lDsSku ZEnoPPmuY9eccEAj9mObusKVsPm3FmPJtnFem20cHdlTO0kOoR6diElX82p4JWfUKKHxVmTDZuL J31eQPa1kiYTl6AE1Jak3Tx8DitQFLvVXd/ayo50s9aD28PYHkizeXDjNIcQ6EMTosdIyAgsUQG lOMckbjc8Ns1bhgqsaxQ== X-Google-Smtp-Source: ABdhPJxIOWOQAngZE4YY/7+tg8Tk9gtgWe22Fj9tsgMyjTga8VbFtaphwOr0BR2V8nOYGX+qNMsUHg== X-Received: by 2002:a7b:c775:: with SMTP id x21mr8288923wmk.34.1595587141483; Fri, 24 Jul 2020 03:39:01 -0700 (PDT) Received: from lukakovacicapc.local ([2a00:ee2:4b0d:3001:fbc5:498b:ed6d:cfac]) by smtp.gmail.com with ESMTPSA id f186sm6526280wmf.29.2020.07.24.03.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 03:39:00 -0700 (PDT) From: Luka Kovacic To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] MAINTAINERS: Add an entry for MikroTik CRS3xx 98DX3236 boards Date: Fri, 24 Jul 2020 12:38:40 +0200 Message-Id: <20200724103840.18994-5-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200724103840.18994-1-luka.kovacic@sartura.hr> References: <20200724103840.18994-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200724_063904_005988_A8DF6734 X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, Luka Perkov , jason@lakedaemon.net, Jakov Petrina , gregory.clement@bootlin.com, Luka Kovacic , sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org An entry is added for MikroTik CRS3xx 98DX3236 based switches. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Jakov Petrina Reviewed-by: Andrew Lunn --- MAINTAINERS | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d53db30d1365..9da194a33b7a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11402,6 +11402,17 @@ M: Oliver Neukum S: Maintained F: drivers/usb/image/microtek.* +MIKROTIK CRS3XX 98DX3236 BOARD SUPPORT +M: Luka Kovacic +M: Luka Perkov +S: Maintained +F: arch/arm/boot/dts/armada-xp-crs305-1g-4s-bit.dts +F: arch/arm/boot/dts/armada-xp-crs305-1g-4s.dts +F: arch/arm/boot/dts/armada-xp-crs326-24g-2s-bit.dts +F: arch/arm/boot/dts/armada-xp-crs326-24g-2s.dts +F: arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s-bit.dts +F: arch/arm/boot/dts/armada-xp-crs328-4c-20s-4s.dts + MIPS M: Thomas Bogendoerfer L: linux-mips@vger.kernel.org