From patchwork Thu Sep 29 08:00:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Dembicki X-Patchwork-Id: 12993677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C8977C04A95 for ; Thu, 29 Sep 2022 08:02:09 +0000 (UTC) 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=0/UOW5rQrdmuPoQwU5VxE2sZL7FvqJxtT6XBckVJ/2M=; b=UJ7i7prKuDiy/b rThXcyXx6xhFDmOEgSi+ue2exWdachGTuPbxX8cAhJjeIm9n9Vj/It/NsEvKzdT6uB4ouxJgCaSt5 KxZ3y86SSG7nz4jka29rRtAG0Kj8fVwVJ5aka4TglgGWffHZcH+10bjSxo35lcGAQq1EzxGClreV+ vcsPMxK7FJb76kUhwDMkaDP30vRGum0BMh72CF5vuDxJDebdEe2xVFJgTzteRDkV6DCXeIr5/KHo0 74f5pm6m+BHWj6Ya6j2LwU76bN/k2sMXoU6Zq40+GmysYT/y6JWp1nUOuPs583L8Z8YUMiDFADumO 1YegfgMyAqubfO5oZHKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odoTa-001ghJ-Ch; Thu, 29 Sep 2022 08:00:58 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odoTL-001gWM-O9 for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2022 08:00:45 +0000 Received: by mail-ej1-x629.google.com with SMTP id rk17so1149571ejb.1 for ; Thu, 29 Sep 2022 01:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=gFhqx6IrLVXAECcsR3Ci5MRa5k8rIAUZ6GGjzLZ8vZU=; b=inzWPEv8MpIDFg1oWGAHaTASZy0Z//5ZalQZM27h7rSSO3/56ei/ghVpaym2naJ/5M QIITYTwDM2V4+f3eiN8cTU2g6DrqnnrOOP2As9bJxbin5Y45ubILo0v8XgtJyqSfd4dl M+nNdCOaZmq1eORwv1gzDyKUst0B7lqJ+0d3SpB/TDCBixA7c698amKPHqVL5EJVo2to 5tkRJ741jLmJKwTlxw2XxKW0YIcsBpQO7boW4f3C+VkHMUyJSCtvd/TvTh3Qz2GNMtW/ VK68BiOZKv7+4vNhvdS1fuZUEpbYuZrIMACTP0/u/M4oPFMG3R+Zb5sf5TGz3c5t/+QF 58Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=gFhqx6IrLVXAECcsR3Ci5MRa5k8rIAUZ6GGjzLZ8vZU=; b=CHKsvnTDwEwmRyZSWRHI1Ffo8fTYFTL+58L7a0PwvHNg/AO3CSRFq1cf8YrWzL98xJ iiI2P+rt1ZV5x35XNopDCjh5+mliMhu78VmSp/iDRneiYDyXzD2n5vvDHEbcDYXkNnub tV2Gl5KA7tfEKuCoGVqDGxrpAX4DGznn+/CEvimBlEXedUC0rxoUN3krVfT/lUiVNDuj EKr3YDNld/Iyd4oybgdv0+KrYa2jMzg4E2Fw7nAhcvu4OlkIgWLq8E2kpHebFjgxuYb7 qeIeZr0QsiGZ20PWIOndDZj4+AqlgBQbix0UfG4cTdVR8oiegJRYpF2tmfkgLnBlUzMP f1Uw== X-Gm-Message-State: ACrzQf3sfyXq8WcxB7NlsHLXym+Y0dL1FiMyT8ChHuzu6ETejP7E7zZL WAKuHi64pDokxNMGf3rLnkI= X-Google-Smtp-Source: AMsMyM5iDAeZPbXuBOYY4I8MdgnshV55qbu0Asm4g7teQwKiwJ8xjGaEKR64ct+XXJhFpWXwhmUQ6Q== X-Received: by 2002:a17:907:a407:b0:783:5465:902 with SMTP id sg7-20020a170907a40700b0078354650902mr1691966ejc.35.1664438439932; Thu, 29 Sep 2022 01:00:39 -0700 (PDT) Received: from WBEC325.dom.lan ([2001:470:64f7:0:a03b:951f:e3a0:4dd4]) by smtp.gmail.com with ESMTPSA id g18-20020a17090604d200b007806c1474e1sm3518876eja.127.2022.09.29.01.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 01:00:39 -0700 (PDT) From: Pawel Dembicki To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Gregory Clement , Andrew Lunn Cc: Pawel Dembicki Subject: [PATCH] ARM: dts: kirkwood: Add Endian 4i Edge 200 board Date: Thu, 29 Sep 2022 10:00:36 +0200 Message-Id: <20220929080036.3179552-1-paweldembicki@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220929_010043_843917_C22A179D X-CRM114-Status: GOOD ( 15.08 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add Endian 4i Edge 200 is 5-port firewall. It have also clone: Endian UTM Mini (The same hardware, with added WLAN card). Hardware: - SoC: Marvell 88F6281-A1 ARMv5TE Processor 1.2GHz - Ram: 512MB (4x Nanya NT5TU128M8GE-AC) - NAND Flash: 512MB (Micron 29F4G08AAC) - Lan 1-4: 4x GBE (Marvell 88E6171R-TFJ2) - Lan 5: 1x GBE (Marvell 88E1116R-NNC1) - Storage: MicroSD Slot - MCPIE: MiniPCIe Slot present [fitted with SparkLan WPEA-110N/E (Atheros AR9280 chipset) in Endian UTM Mini WLAN only] - USB: 1x USB 2.0 port - Console: RJ-45 port - LEDs: 3x GPIO controlled Signed-off-by: Pawel Dembicki --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/kirkwood-4i-edge-200.dts | 206 +++++++++++++++++++++ 2 files changed, 207 insertions(+) create mode 100644 arch/arm/boot/dts/kirkwood-4i-edge-200.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index eae7d1139fbc..81a24fe623a8 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -299,6 +299,7 @@ dtb-$(CONFIG_ARCH_KEYSTONE) += \ keystone-k2g-evm.dtb \ keystone-k2g-ice.dtb dtb-$(CONFIG_MACH_KIRKWOOD) += \ + kirkwood-4i-edge-200.dtb \ kirkwood-b3.dtb \ kirkwood-blackarmor-nas220.dtb \ kirkwood-c200-v1.dtb \ diff --git a/arch/arm/boot/dts/kirkwood-4i-edge-200.dts b/arch/arm/boot/dts/kirkwood-4i-edge-200.dts new file mode 100644 index 000000000000..45406be15533 --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-4i-edge-200.dts @@ -0,0 +1,206 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Endian 4i Edge 200 Board Description + * Note: Endian UTM Mini is hardware clone of Endian Edge 200 + * Copyright 2021-2022 Pawel Dembicki + */ + +/dts-v1/; + +#include "kirkwood.dtsi" +#include "kirkwood-6281.dtsi" +#include + +/ { + model = "Endian 4i Edge 200"; + compatible = "endian,4i-edge-200", "marvell,kirkwood-88f6281", "marvell,kirkwood"; + + memory { + device_type = "memory"; + reg = <0x00000000 0x20000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200n8"; + stdout-path = &uart0; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&pmx_led>; + pinctrl-names = "default"; + + led-1 { + function = LED_FUNCTION_SD; + color = ; + gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc0"; + }; + + led-2 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; + }; + + led-3 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +ð0 { + status = "okay"; +}; + +ð0port { + speed = <1000>; + duplex = <1>; +}; + +ð1 { + status = "okay"; +}; + +ð1port { + phy-handle = <ðphyb>; +}; + +&mdio { + status = "okay"; + + ethphyb: ethernet-phy@b { + reg = <0x0b>; + + marvell,reg-init = + /* link-activity, bi-color mode 4 */ + <3 0x10 0xfff0 0xf>; /* Reg 3,16 <- 0xzzzf */ + }; + + switch0: switch@11 { + compatible = "marvell,mv88e6085"; + reg = <0x11>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "port1"; + }; + + port@1 { + reg = <1>; + label = "port2"; + }; + + port@2 { + reg = <2>; + label = "port3"; + }; + + port@3 { + reg = <3>; + label = "port4"; + }; + + port@5 { + reg = <5>; + label = "cpu"; + phy-mode = "rgmii-id"; + ethernet = <ð0port>; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; +}; + +&nand { + status = "okay"; + pinctrl-0 = <&pmx_nand>; + pinctrl-names = "default"; + + partition@0 { + label = "u-boot"; + reg = <0x00000000 0x000a0000>; + read-only; + }; + + partition@a0000 { + label = "u-boot-env"; + reg = <0x000a0000 0x00060000>; + read-only; + }; + + partition@100000 { + label = "kernel"; + reg = <0x00100000 0x00400000>; + }; + + partition@500000 { + label = "ubi"; + reg = <0x00500000 0x1fb00000>; + }; +}; + +&pciec { + status = "okay"; +}; + +&pcie0 { + status = "okay"; +}; + +&pinctrl { + pinctrl-0 = <&pmx_sysrst>; + pinctrl-names = "default"; + + pmx_sysrst: pmx-sysrst { + marvell,pins = "mpp6"; + marvell,function = "sysrst"; + }; + + pmx_sdio_cd: pmx-sdio-cd { + marvell,pins = "mpp28"; + marvell,function = "gpio"; + }; + + pmx_led: pmx-led { + marvell,pins = "mpp34", "mpp35", "mpp49"; + marvell,function = "gpio"; + }; +}; + +&rtc { + status = "okay"; +}; + +&sata_phy0 { + status = "disabled"; +}; + +&sata_phy1 { + status = "disabled"; +}; + +&sdio { + pinctrl-0 = <&pmx_sdio_cd>; + pinctrl-names = "default"; + status = "okay"; + cd-gpios = <&gpio0 28 9>; +}; + +&uart0 { + status = "okay"; +}; + +&usb0 { + status = "okay"; +};