From nobody Thu Sep 24 21:48:50 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35D3F377ED7; Sat, 19 Sep 2026 19:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789847059; cv=none; b=TGIYJP2wH5iVnmNTedvuRDcuZS5UqZjmzGMDw/0C80PiEWoza0iCRB7IBh7WTW9SZs96DHntM29foV0/iKsb6fHUSrgTcAs6OPBXDS3flW+GE4Ti1u6evK3pawc2qJgyYhrkw5ZXln+TuHuI6G1VQz4JK371MdxPpaKl9cD7abk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789847059; c=relaxed/simple; bh=m3esp8qIvL5KMF6ISMGW/BY5E1YSXXPNADpk4JRXN+0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=li25g2JdK8IOCYr1clqSeem6Gk1BsgpD7IWoN1+ggF1kaWf3sAPNW/L5f0Bm70gJDvGBNDpEcMnYrnMbBs8d0BydaX05bi1xns7lHZpbO5uOw7bgyRATcxgg3O7PFX5z69WoGB8TMvdTDw4/spswSBxTfWvSekn+paaEsav7x+0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RrVBsGYg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RrVBsGYg" Received: by smtp.kernel.org (Postfix) with ESMTPS id ADA25C2BCF6; Sat, 19 Sep 2026 19:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789847058; bh=m3esp8qIvL5KMF6ISMGW/BY5E1YSXXPNADpk4JRXN+0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=RrVBsGYgzEYeUqMBtWU08Rkh3WOBSDqeNE7qeMj6zAE+3CSWjyYTjQVSpsZDoU5Nn GXbPuGQmURw8EepAhH4mKjZgJKnuOM/8lGVGf4vyb6/D4nYzgIk/QW+f1e5pBYYEvj MfUL4OAPkX9yCSXrAM3UrUAdugBFft7SYxnSX6jGXyY6j5RZsiE2XXLs5+TpAKAHno O8+0kQLFI4wcBt//KM8Otb/DksfHHfxZlRaH2xCMDtef80P/oRVkL6/v2yxHIYpPZx TdvUVfPgFkUmEyW1Sloy89w/chPVp62UTCTtAGc1aQjjj1R3GxjUsMVEgenTEo/TuA e+h40nWyFBAng== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E1F4C982D8; Sat, 19 Sep 2026 19:44:18 +0000 (UTC) From: Nicolo Giuliani via B4 Relay Date: Sat, 19 Sep 2026 21:44:17 +0200 Subject: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Sophos Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260919-send-dt-v1-1-365615a74ef3@studio.unibo.it> References: <20260919-send-dt-v1-0-365615a74ef3@studio.unibo.it> In-Reply-To: <20260919-send-dt-v1-0-365615a74ef3@studio.unibo.it> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolo Giuliani X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789847056; l=951; i=nicolo.giuliani6@studio.unibo.it; s=20260919; h=from:subject:message-id; bh=P6WprlGl9p4BGd2SEJ2f0lzIH3aESc5ZjrcnEQEX7U0=; b=uaqsp1Pmm4v68ng2YFLr+O9LDI/RnSSD6CvL/r7i9mabCCNOJmeMskDvDFa1iQNgW6v7CMk3z qwdh+uzq7AxC9YAM2nXxq7W8Q7a+guR8MqJPilI099nTHadhidS95GR X-Developer-Key: i=nicolo.giuliani6@studio.unibo.it; a=ed25519; pk=D652ecdT01GkA1eoFWNFNX85xIg5ZnFwUWyjfestgQw= X-Endpoint-Received: by B4 Relay for nicolo.giuliani6@studio.unibo.it/20260919 with auth_id=1040 X-Original-From: Nicolo Giuliani Reply-To: nicolo.giuliani6@studio.unibo.it From: Nicolo Giuliani Add the "sophos" vendor prefix for Sophos Ltd., a vendor of network security appliances. It is used by the compatible string of the XGS 87/107 firewalls, documented in a following patch. Assisted-by: LLM Signed-off-by: Nicolo Giuliani Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index ba20029693..3dd9d9b8ab 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1595,6 +1595,8 @@ patternProperties: description: Sony Corporation "^sophgo,.*": description: Sophgo Technology Inc. + "^sophos,.*": + description: Sophos Ltd. "^sourceparts,.*": description: Source Parts Inc. "^spacemit,.*": --=20 2.48.1 From nobody Thu Sep 24 21:48:50 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 374B137BE71; Sat, 19 Sep 2026 19:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789847059; cv=none; b=TSNmzO1GKH2l/RsNT1WQ5wgMtHRpv4wBGzsZLZ0xz36SzIOusZC/51aKbAHxjoWEfEcystwmYysw6o74RQEBBaYb55B7W2nm2LzEbY8zuMEiVHH0zFUxBRZoNBqnRMqxKMtEHYWnvjpSJypkYThpY93X/foF2bRkIYUElAI9hJg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789847059; c=relaxed/simple; bh=hdT+L3Aro+iyRTysKZmeSdAuyXa1BuaAuONMoFRlMqE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=B8+Evvyjyje2LB/SlEBPxJ8g8m/w7OH3JRnj/4Scgpo4Hq32BKe8wsXULzd6290PBo9Srqg42vQfD7LlU4ZwE9ldAPRizLLVmECk05fwGAOYup1cITMBNM/APO8HZt2caOIHJlg0PcQqWmxd7rkkJOaQeu+Cu+DAOPGeVEroYnk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mX52mtlV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mX52mtlV" Received: by smtp.kernel.org (Postfix) with ESMTPS id BDD17C2BCF7; Sat, 19 Sep 2026 19:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789847058; bh=hdT+L3Aro+iyRTysKZmeSdAuyXa1BuaAuONMoFRlMqE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=mX52mtlVM7ixtOXQ/RkMcfxTI0Yk2HwZqMg/KRn15jrL7OKIwtNuKV4jEQ3enOXDh 5dQzGsRsP5VIYhi1VyFNRyu5Z7GlxMd16nxqXY/tjl0xDiDpHGONh+XpGSIXuxObJ+ G1josAgbfQMFCZ0ZfZJmfzom4smFznYADy8sw9qrDWQG3V/1agtoyHxeStnNxA+7P2 /+CEWX3Ownbkb89XEbd/68y5gQULHBjB+vyDPTsAdjL4K3R2sAPTwVXPpGeleEDQky 7PZdZ5BNOqa8UdBlm6Wc+4w7F7ixm8GlndYkd4eis8x1hbRKvlxEYVrPUt1y8b080A RnoClnY1dEFEg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C89AC982DF; Sat, 19 Sep 2026 19:44:18 +0000 (UTC) From: Nicolo Giuliani via B4 Relay Date: Sat, 19 Sep 2026 21:44:18 +0200 Subject: [PATCH 2/3] dt-bindings: arm: marvell: Add Sophos XGS 107w NPU Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260919-send-dt-v1-2-365615a74ef3@studio.unibo.it> References: <20260919-send-dt-v1-0-365615a74ef3@studio.unibo.it> In-Reply-To: <20260919-send-dt-v1-0-365615a74ef3@studio.unibo.it> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolo Giuliani X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789847056; l=1405; i=nicolo.giuliani6@studio.unibo.it; s=20260919; h=from:subject:message-id; bh=y6YYIBXvEGJH8GoEFsgQ5cuo4swCennTIRdUH242hhU=; b=GQWGJk6JAc+bnFpLomU6YmOR4xCP05ObW/ztx++Epil5oUxUZYiCJVhDkAp3xu229+AffPwlP 5HCFyvyFB+2Cnb+6gTaeNXUoLJlWmfQ7EDjRBkCRgnG5pdhRqI3zIBD X-Developer-Key: i=nicolo.giuliani6@studio.unibo.it; a=ed25519; pk=D652ecdT01GkA1eoFWNFNX85xIg5ZnFwUWyjfestgQw= X-Endpoint-Received: by B4 Relay for nicolo.giuliani6@studio.unibo.it/20260919 with auth_id=1040 X-Original-From: Nicolo Giuliani Reply-To: nicolo.giuliani6@studio.unibo.it From: Nicolo Giuliani The Sophos XGS 87/107 desktop firewalls combine an AMD x86 host with a separate network processing unit (NPU). The NPU is a Marvell Armada CN9130 SoC with its own eMMC and SPI NOR flash, connected to the x86 host over PCIe. It serves the front panel ports through a Marvell 88E6193X switch. Document the compatible string of the NPU board, with the CN9130 SoC compatibles as fallbacks. Assisted-by: LLM Signed-off-by: Nicolo Giuliani --- Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 9 ++++++= +++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yam= l b/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml index 7e77310da6..2e114139f1 100644 --- a/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +++ b/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml @@ -136,4 +136,13 @@ properties: - const: solidrun,cn9132-sr-cex7 - const: marvell,cn9130 =20 + - description: + Sophos XGS 87/107 network processing unit (Armada CN9130 SoC + with an 88E6193X switch) + items: + - const: sophos,xgs107w-npu + - const: marvell,cn9130 + - const: marvell,armada-ap807-quad + - const: marvell,armada-ap807 + additionalProperties: true --=20 2.48.1 From nobody Thu Sep 24 21:48:50 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31C81366575; Sat, 19 Sep 2026 19:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789847059; cv=none; b=MgvrbNcO8/Wn3g4Zz7kXJ1S4n0/65WIPQlnniBvP+eCkcS3amxn9iSz/icnqLQFGawkw0FMgY7I5ae0i/Fjk7DGY4UMT6v+cYI2YBuP6wpXZHXSuQ9rnFVNeMIJf5BAEPpnuWEGRPBDFpj59RbY1OK/9NCKMFZt9wjkWR08KYjQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789847059; c=relaxed/simple; bh=r77sIn49Lrr2a0v+bk8OJsZiqcGMnZs+bQDLle5pZFQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oy8Cc4ZitBnrqBcDrwlw+J+TlPTnGuLqQ+wK+3bCMh5iME4fkBgkakueHl3Cf39zgYYuG+5rbFfdUm7r9V9yQa66du2MajOhr3IYCIs/DMiKc52srPhbUUhKvGvB3tbsCdeYsG7v+GzOBUxmj/BtmhwH6u4dKTq+GL78084DIQk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l3NFDR/w; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l3NFDR/w" Received: by smtp.kernel.org (Postfix) with ESMTPS id CAB1DC2BCFB; Sat, 19 Sep 2026 19:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789847058; bh=r77sIn49Lrr2a0v+bk8OJsZiqcGMnZs+bQDLle5pZFQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=l3NFDR/wKRDw+pu35YYKXns2b90KaTGqDfWuVLZiIyt9AtXZcSm67p76Xq80RxCVe bJIcXTdze9wA87bOooQPFLAI9q0A+SF28NmtXIgCFzfHcLWUicJ4Y5kNJN30llWE+t 1ZWL/ZRp/vgdYvk76Q2h7kJO/qy+SKFi6SN1fH/UHEiqzV2cCwDa6z5lqxZpen2Efz j78PGIzf8MtM4P2I3eVK1IZ4uZduwCxugSYsekXv74lzoo1l3/Qe5BU1QIVCXP1HdY PlIlmpTMfmvzb4mFr1CjvWJ6Tc195DuCVI7yLNg9NqOlbwcayQTOeK2qxXvAMHO366 JDEZImPGkCQfw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB08BC982D7; Sat, 19 Sep 2026 19:44:18 +0000 (UTC) From: Nicolo Giuliani via B4 Relay Date: Sat, 19 Sep 2026 21:44:19 +0200 Subject: [PATCH 3/3] arm64: dts: marvell: Add Sophos XGS 107w NPU board Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260919-send-dt-v1-3-365615a74ef3@studio.unibo.it> References: <20260919-send-dt-v1-0-365615a74ef3@studio.unibo.it> In-Reply-To: <20260919-send-dt-v1-0-365615a74ef3@studio.unibo.it> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolo Giuliani X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789847056; l=6691; i=nicolo.giuliani6@studio.unibo.it; s=20260919; h=from:subject:message-id; bh=cIld08OYfIFoE2gYQn26s1yqlTESE8txLhhnKZ8Q8Do=; b=irq2DjZt92s3gqXtY4NG/t2J0ny6CpKXo0bhcgmgQnq30P68soK44PkumnTQT6PRPCDQz8vgj MYJVulk1BRDAHliu8J5XS14QpKdHCUTS+16advJuMiU/5HoPc1XVO9I X-Developer-Key: i=nicolo.giuliani6@studio.unibo.it; a=ed25519; pk=D652ecdT01GkA1eoFWNFNX85xIg5ZnFwUWyjfestgQw= X-Endpoint-Received: by B4 Relay for nicolo.giuliani6@studio.unibo.it/20260919 with auth_id=1040 X-Original-From: Nicolo Giuliani Reply-To: nicolo.giuliani6@studio.unibo.it From: Nicolo Giuliani Add a device tree for the network processing unit (NPU) of the Sophos XGS 87/107 desktop firewalls. The appliance pairs an AMD x86 host with the NPU, a Marvell Armada CN9130 SoC with its own eMMC and SPI NOR flash that runs independently of the host and serves the front panel ports. The eight RJ45 ports and the SFP cage are connected through a Marvell 88E6193X switch on the MDIO bus of the SoC, at address 2. Switch port 0 is the CPU port, a 10GBASE-R link to the first mvpp2 port. Ports 1 to 8 are the RJ45 ports, which use the internal PHYs of the switch, and port 9 is the SFP cage, connected over 1000BASE-X. Describe the UART console, the eMMC, the SPI NOR flash that holds the boot loader and its environment (read-only), the PCA9555 GPIO expander that drives the port LEDs, the SFP cage and the switch with its ports. The LEDs themselves, the PCIe link to the x86 host and the USB ports are not described. The reset line of the switch (CP GPIO2 pin 17) is deliberately not given to the mv88e6xxx driver as reset-gpios. The 88E6193X needs about two seconds after a reset before it can be used, much longer than the driver waits, so the probe would time out. The boot loader resets the switch before it starts the kernel. Tested on an XGS 107w with Linux 6.18: boot from eMMC, eMMC and SPI NOR access, the mvpp2 link to the switch at 10 Gb/s, the 88E6193X probing with its eight user ports, and 936 Mbit/s through a front port. The SFP cage and the PCA9555 outputs are untested. Assisted-by: LLM Signed-off-by: Nicolo Giuliani --- arch/arm64/boot/dts/marvell/Makefile | 1 + .../boot/dts/marvell/cn9130-sophos-xgs107w.dts | 209 +++++++++++++++++= ++++ 2 files changed, 210 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/mar= vell/Makefile index 09d1544041..81f892715b 100644 --- a/arch/arm64/boot/dts/marvell/Makefile +++ b/arch/arm64/boot/dts/marvell/Makefile @@ -34,5 +34,6 @@ dtb-$(CONFIG_ARCH_MVEBU) +=3D cn9130-cf-base.dtb dtb-$(CONFIG_ARCH_MVEBU) +=3D cn9130-cf-pro.dtb dtb-$(CONFIG_ARCH_MVEBU) +=3D cn9131-cf-solidwan.dtb dtb-$(CONFIG_ARCH_MVEBU) +=3D cn9132-clearfog.dtb +dtb-$(CONFIG_ARCH_MVEBU) +=3D cn9130-sophos-xgs107w.dtb =20 subdir-y +=3D mmp diff --git a/arch/arm64/boot/dts/marvell/cn9130-sophos-xgs107w.dts b/arch/a= rm64/boot/dts/marvell/cn9130-sophos-xgs107w.dts new file mode 100644 index 0000000000..d98d8da10e --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-sophos-xgs107w.dts @@ -0,0 +1,209 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device tree for the network processing unit (NPU) of the Sophos XGS 87/= 107 + * firewalls: a Marvell CN9130 SoC with a Marvell 88E6193X switch. + * + * The x86 host on the same board is not described here. + */ + +/dts-v1/; + +#include "cn9130.dtsi" +#include + +/ { + model =3D "Sophos XGS 107w (CN9130 NPU)"; + compatible =3D "sophos,xgs107w-npu", "marvell,cn9130", + "marvell,armada-ap807-quad", "marvell,armada-ap807"; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + aliases { + ethernet0 =3D &cp0_eth0; + i2c0 =3D &cp0_i2c0; + i2c1 =3D &cp0_i2c1; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x80000000>; + }; + + reserved-memory { + /* OP-TEE, reserved by the firmware */ + tee@4400000 { + reg =3D <0x0 0x4400000 0x0 0x1000000>; + no-map; + }; + }; + + /* Front-panel SFP cage "F1", wired to switch port 9 */ + sfp: sfp { + compatible =3D "sff,sfp"; + i2c-bus =3D <&cp0_i2c1>; + los-gpios =3D <&cp0_gpio1 1 GPIO_ACTIVE_HIGH>; + tx-fault-gpios =3D <&cp0_gpio1 2 GPIO_ACTIVE_HIGH>; + mod-def0-gpios =3D <&cp0_gpio1 3 GPIO_ACTIVE_LOW>; + tx-disable-gpios =3D <&cp0_gpio1 7 GPIO_ACTIVE_HIGH>; + }; +}; + +&uart0 { + status =3D "okay"; +}; + +/* eMMC on the AP */ +&ap_sdhci0 { + bus-width =3D <8>; + non-removable; + mmc-ddr-1_8v; + status =3D "okay"; +}; + +/* + * The MPP pin muxing is left as configured by the boot loader; the pin + * controller node only exists to back the GPIO banks. + */ +&cp0_syscon0 { + cp0_pinctrl: pinctrl { + compatible =3D "marvell,cp115-standalone-pinctrl"; + }; +}; + +&cp0_i2c0 { + clock-frequency =3D <100000>; + status =3D "okay"; + + /* Drives the port speed LEDs, which are not described yet */ + gpio@20 { + compatible =3D "nxp,pca9555"; + reg =3D <0x20>; + gpio-controller; + #gpio-cells =3D <2>; + }; +}; + +&cp0_i2c1 { + /* SFP EEPROM (0x50/0x51) */ + clock-frequency =3D <100000>; + status =3D "okay"; +}; + +/* 4 MB SPI NOR with U-Boot and its environment, read-only on purpose */ +&cp0_spi0 { + status =3D "okay"; + + flash@0 { + compatible =3D "jedec,spi-nor"; + reg =3D <0>; + spi-max-frequency =3D <40000000>; + + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + label =3D "u-boot"; + reg =3D <0x0 0x3f0000>; + read-only; + }; + + partition@3f0000 { + label =3D "u-boot-env"; + reg =3D <0x3f0000 0x10000>; + read-only; + }; + }; + }; +}; + +&cp0_ethernet { + status =3D "okay"; +}; + +/* 10G link to switch port 0 */ +&cp0_eth0 { + phy-mode =3D "10gbase-r"; + phys =3D <&cp0_comphy4 0>; + managed =3D "in-band-status"; + status =3D "okay"; +}; + +&cp0_mdio { + status =3D "okay"; + + switch@2 { + compatible =3D "marvell,mv88e6190"; + reg =3D <2>; + /* + * The reset line of the switch is CP GPIO2 pin 17. It is not + * described as reset-gpios: the 88E6193X needs about two + * seconds after a reset before it can be used, much longer + * than the driver waits, and the probe would time out. The + * boot loader resets the switch before starting the kernel. + */ + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + ethernet =3D <&cp0_eth0>; + phy-mode =3D "10gbase-r"; + managed =3D "in-band-status"; + }; + + port@1 { + reg =3D <1>; + label =3D "p1"; + }; + + port@2 { + reg =3D <2>; + label =3D "p2"; + }; + + port@3 { + reg =3D <3>; + label =3D "p3"; + }; + + port@4 { + reg =3D <4>; + label =3D "p4"; + }; + + port@5 { + reg =3D <5>; + label =3D "p5"; + }; + + port@6 { + reg =3D <6>; + label =3D "p6"; + }; + + port@7 { + reg =3D <7>; + label =3D "p7"; + }; + + port@8 { + reg =3D <8>; + label =3D "p8"; + }; + + port@9 { + reg =3D <9>; + label =3D "sfp"; + phy-mode =3D "1000base-x"; + managed =3D "in-band-status"; + sfp =3D <&sfp>; + }; + }; + }; +}; --=20 2.48.1