From patchwork Sat Jun 29 11:34:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Herpai X-Patchwork-Id: 13716897 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 B527CC27C4F for ; Sat, 29 Jun 2024 11:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=RZkwG4BAa70SKOK1z6WOYcunzW9IdjTtJZy6Yr7EC58=; b=dsV8fB1Nlw9/1cJowVJKxSR12c FDXTnmVy1zapjfrWfE3W0xPMhoMmf5a/EpR/Z4aKe5wnSxUt7kbRQFN21BdQZqw53Vui740Ecrlsx Oa56d9MzXMhHhnACFmflxdjfnKioKUHJ7xzYcPaUBGQw+fwx54Wjb4oRXciSgnhidfjUxROqViNvJ 9nORXA4o1nzOqJCrly8w4Jb4HBnIPRIE1t1eisKrJFeXQBWQcovHBTFR7GJzez8QE9tB0SnsHElll gEotdHZrtU5BV21h53O+qEB30XwBrisjJuNT5cSwj9SPdNPauyUQWiKnVI+rRAMxMFxFvz71Tcy/u Vu8LZrqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNWNC-0000000GKrJ-0Weg; Sat, 29 Jun 2024 11:36:06 +0000 Received: from tunnel231050-pt.tunnel.tserv1.bud1.ipv6.he.net ([2001:470:1f1a:93::2] helo=trabant.uid0.hu) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNWN0-0000000GKoT-3PJw for linux-arm-kernel@lists.infradead.org; Sat, 29 Jun 2024 11:35:56 +0000 Received: from wigyori by trabant.uid0.hu with local (Exim 4.92 #3 (Debian)) id 1sNWMg-000XYR-Tu from ; Sat, 29 Jun 2024 13:35:34 +0200 From: Zoltan HERPAI To: andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, krzk+dt@kernel.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wigyori@uid0.hu Subject: [PATCH 1/3] dt-bindings: marvell: add D-Link DNS-320L Date: Sat, 29 Jun 2024 13:34:48 +0200 Message-Id: <20240629113450.127561-1-wigyori@uid0.hu> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240629_043554_880245_AB883C86 X-CRM114-Status: UNSURE ( 6.98 ) X-CRM114-Notice: Please train this message. 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 DT-compatible for the D-Link DNS-320L NAS. Signed-off-by: Zoltan HERPAI --- .../devicetree/bindings/arm/marvell/marvell,kirkwood.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt b/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt index 7d28fe4bf654..4a70dd1b6b65 100644 --- a/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt +++ b/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt @@ -30,6 +30,7 @@ board. Currently known boards are: "cloudengines,pogo02" "cloudengines,pogoplugv4" "dlink,dns-320" +"dlink,dns-320l" "dlink,dns-320-a1" "dlink,dns-325" "dlink,dns-325-a1" From patchwork Sat Jun 29 11:34:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Herpai X-Patchwork-Id: 13716896 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 DF813C30653 for ; Sat, 29 Jun 2024 11:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kkX+DAKOIl1JEyV68ATfA0z7cV1CUrNO62E+2YATylc=; b=xsH7plxpEGPKf0jgcZk3ipoMWC 8dMvLazTPlZejrUm3UFcdbN9E7esw3vc1PRaDp9iT8BdT4kqMlz3C8eCjyviILoJmk+WBTXw4hgGG hxhMHyo/pP1aFoy+VAlAM3yx6f1aWhS3eucfFQ+M+goA7TkLoEmDBXlUH7TTgKDdOONf2l0eqtm9t 3fwTB8lePgRw7VxJuZX1jXNP2NXdmyn3mAtlDUdsLMbMoOirTsaAnpqYgDlLCtqt+b7j+bqkPHogC CdlRmsRTfFuuenTtG2LaszeI5O0XVuQySCFqNGC3KupypzOdyODy4Sq3/EBOxGT//nDnYOS004GgL pMxnxsJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNWNJ-0000000GKu2-18eq; Sat, 29 Jun 2024 11:36:13 +0000 Received: from tunnel231050-pt.tunnel.tserv1.bud1.ipv6.he.net ([2001:470:1f1a:93::2] helo=trabant.uid0.hu) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNWN0-0000000GKoV-3Pf1 for linux-arm-kernel@lists.infradead.org; Sat, 29 Jun 2024 11:35:56 +0000 Received: from wigyori by trabant.uid0.hu with local (Exim 4.92 #3 (Debian)) id 1sNWMh-000XYa-I1 from ; Sat, 29 Jun 2024 13:35:35 +0200 From: Zoltan HERPAI To: andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, krzk+dt@kernel.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wigyori@uid0.hu Subject: [PATCH 2/3] dt-bindings: marvell: typo fix in SoC name Date: Sat, 29 Jun 2024 13:34:49 +0200 Message-Id: <20240629113450.127561-2-wigyori@uid0.hu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240629113450.127561-1-wigyori@uid0.hu> References: <20240629113450.127561-1-wigyori@uid0.hu> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240629_043554_880632_11D43D7C X-CRM114-Status: GOOD ( 10.23 ) 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 Fix typo in the SoC name of Marvell Kirkwood. This change is in the description which shouldn't affect functionality. Signed-off-by: Zoltan HERPAI Reviewed-by: Andrew Lunn --- .../devicetree/bindings/arm/marvell/marvell,kirkwood.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt b/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt index 4a70dd1b6b65..7edfaa0b0b73 100644 --- a/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt +++ b/Documentation/devicetree/bindings/arm/marvell/marvell,kirkwood.txt @@ -1,7 +1,7 @@ Marvell Kirkwood SoC Family Device Tree Bindings ------------------------------------------------ -Boards with a SoC of the Marvell Kirkwook family, eg 88f6281 +Boards with a SoC of the Marvell Kirkwood family, eg 88f6281 * Required root node properties: compatible: must contain "marvell,kirkwood" From patchwork Sat Jun 29 11:34:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Herpai X-Patchwork-Id: 13716898 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 698D2C30653 for ; Sat, 29 Jun 2024 11:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EwwQ3xb6B8/YosKxMQEvyUdk3dNbEE5ly1W1H0T03hg=; b=Tim/PPXgk2JJExCXNoy+XcqK4B sqbcpTpdvlUUcv19vThj2zd9IBXNu2tTEju3tw8W+RiIXbapp/7mScT/zxE+RHoSnGbfLfzAuoZKV ytpolEFpw5gpdNd1ZFapDeT7crYv4jbVUpEKPZUDpmD1h4AbPTX4i+65f1EQb8aUDwJrNOTu+QaLy vosKTUtyP1u03PGkz/6ds32F4QG4gQBWJDT5tNd5nzD1q/AZ8s/aA3fUdDpDVtofujgStMJLA7eu8 gDpAmvtGxZ33fxfxVXKShpwLVeyx0+jp6UaklHBgHAcJTEbL9NVogDXBptlIyGg5MQN6ga//jZd6V jfAO2zxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNWNQ-0000000GKvt-1SFQ; Sat, 29 Jun 2024 11:36:20 +0000 Received: from tunnel231050-pt.tunnel.tserv1.bud1.ipv6.he.net ([2001:470:1f1a:93::2] helo=trabant.uid0.hu) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNWN0-0000000GKoU-3OzM for linux-arm-kernel@lists.infradead.org; Sat, 29 Jun 2024 11:35:58 +0000 Received: from wigyori by trabant.uid0.hu with local (Exim 4.92 #3 (Debian)) id 1sNWMi-000XYs-4H from ; Sat, 29 Jun 2024 13:35:36 +0200 From: Zoltan HERPAI To: andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, krzk+dt@kernel.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wigyori@uid0.hu Subject: [PATCH 3/3] ARM: dts: marvell: add support for D-Link DNS-320L Date: Sat, 29 Jun 2024 13:34:50 +0200 Message-Id: <20240629113450.127561-3-wigyori@uid0.hu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240629113450.127561-1-wigyori@uid0.hu> References: <20240629113450.127561-1-wigyori@uid0.hu> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240629_043554_883479_B68EFF1E X-CRM114-Status: GOOD ( 14.26 ) 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 Dual-slot NAS based on Marvell Kirkwood. Specifications: - Marvell 88F6702 @1GHz - 256Mb RAM - 128Mb NAND - 1x GbE LAN (Marvell 88E1318R) - 1x USB 2.0 - 2x SATA - Weltrend WT69P3 ("supervisor" MCU chip) - Serial on J2 (115200,8n1) - Newer bootROM so kwboot-ing via serial is possible Signed-off-by: Zoltan HERPAI --- arch/arm/boot/dts/marvell/Makefile | 1 + .../arm/boot/dts/marvell/kirkwood-dns320l.dts | 197 ++++++++++++++++++ 2 files changed, 198 insertions(+) create mode 100644 arch/arm/boot/dts/marvell/kirkwood-dns320l.dts diff --git a/arch/arm/boot/dts/marvell/Makefile b/arch/arm/boot/dts/marvell/Makefile index 1e0f5ff492f7..cadd4039b783 100644 --- a/arch/arm/boot/dts/marvell/Makefile +++ b/arch/arm/boot/dts/marvell/Makefile @@ -92,6 +92,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \ kirkwood-db-88f6282.dtb \ kirkwood-dir665.dtb \ kirkwood-dns320.dtb \ + kirkwood-dns320l.dtb \ kirkwood-dns325.dtb \ kirkwood-dockstar.dtb \ kirkwood-dreamplug.dtb \ diff --git a/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts b/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts new file mode 100644 index 000000000000..82a2d60376f7 --- /dev/null +++ b/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts @@ -0,0 +1,197 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Device Tree file for D-Link DNS-320L + * + * Copyright (C) 2024, Zoltan HERPAI + * Copyright (C) 2015, Sunke Schluters + * + * This file is based on the works of: + * - Sunke Schluters + * - https://github.com/scus1/dns320l/blob/master/kernel/dts/kirkwood-dns320l.dts + * - Andreas Bohler : + * - http://www.aboehler.at/doku/doku.php/projects:dns320l + * - http://www.aboehler.at/hg/linux-dns320l/file/ba7a60ad7687/linux-3.12/kirkwood-dns320l.dts + */ + +/dts-v1/; + +#include "kirkwood.dtsi" +#include "kirkwood-6281.dtsi" + +/ { + model = "D-Link DNS-320L"; + compatible = "dlink,dns320l", "marvell,kirkwood-88f6702", "marvell,kirkwood"; + + memory { + device_type = "memory"; + reg = <0x00000000 0x10000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200n8 earlyprintk"; + stdout-path = &uart0; + }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-0 = <&pmx_buttons>; + pinctrl-names = "default"; + + button@1 { + label = "Reset push button"; + linux,code = ; + gpios = <&gpio0 28 1>; + }; + + button@2 { + label = "USB unmount button"; + linux,code = ; + gpios = <&gpio0 27 1>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + pinctrl-0 = <&pmx_leds>; + pinctrl-names = "default"; + + blue-usb { + label = "dns320l:usb:blue"; + gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "usbport"; + }; + + orange-usb { + label = "dns320l:usb:orange"; + gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; + }; + + orange-l-hdd { + label = "dns320l:orange:l_hdd"; + gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>; + }; + + orange-r-hdd { + label = "dns320l:orange:r_hdd"; + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; + }; + }; + + ocp@f1000000 { + sata@80000 { + status = "okay"; + nr-ports = <2>; + }; + + serial@12000 { + status = "okay"; + }; + + serial@12100 { + pinctrl-0 = <&pmx_uart1>; + pinctrl-names = "default"; + status = "okay"; + }; + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-0 = <&pmx_power_sata>; + pinctrl-names = "default"; + + sata_power: regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "SATA Power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + regulator-always-on; + regulator-boot-on; + gpio = <&gpio0 24 0>; + }; + }; +}; + +&nand { + pinctrl-0 = <&pmx_nand>; + pinctrl-names = "default"; + chip-delay = <40>; + status = "okay"; + + partition@0 { + label = "u-boot"; + reg = <0x0000000 0x100000>; + }; + + partition@100000 { + label = "ubootenv"; + reg = <0x100000 0x20000>; + }; + + partition@120000 { + label = "ubi"; + reg = <0x120000 0x6de0000>; + }; + + partition@6f00000 { + label = "mini firmware"; + reg = <0x6f00000 0xa00000>; + }; + + partition@7900000 { + label = "config"; + reg = <0x7900000 0x500000>; + }; + + partition@7e00000 { + label = "my-dlink"; + reg = <0x7e00000 0x200000>; + }; +}; + +&mdio { + status = "okay"; + + ethphy0: ethernet-phy@0 { + reg = <0>; + }; +}; + +&pinctrl { + pmx_sata1: pmx-sata1 { + marvell,pins = "mpp20"; + marvell,function = "sata1"; + }; + + pmx_sata0: pmx-sata0 { + marvell,pins = "mpp21"; + marvell,function = "sata0"; + }; + + pmx_power_sata: pmx-power-sata { + marvell,pins = "mpp24"; + marvell,function = "gpio"; + }; + + pmx_leds: pmx-leds { + marvell,pins = "mpp22", "mpp23", "mpp25", "mpp26"; + marvell,function = "gpio"; + }; + + pmx_buttons: pmx-buttons { + marvell,pins = "mpp27", "mpp28", "mpp29"; + marvell,function = "gpio"; + }; +}; + +ð0 { + status = "okay"; + ethernet0-port@0 { + phy-handle = <ðphy0>; + }; +};