From nobody Fri May 3 20:10:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+78859+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78859+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1628365061; cv=none; d=zohomail.com; s=zohoarc; b=EISKaVjELpiKH775t35IQOK2YZA/E3cNgh/ztiNh28MCyRJwUhhH7zpS6I/RMFXg9SLNSOHw4x1IBf7jwqaVuJ6/CHX91YtbIPZZkbShre5GepB1RZO8ZuBDkQEFna5hfS3W4sA4ICVRdpWQ/3MteZzFmfBqwEAvQbA7orWE/VE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628365061; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Mo83dVKMDbaRNe6HNYDRifcU95D7H1SurQ/O6tFPVPk=; b=OSXyQkwZi9acxqIPJlXs9UlMR8BjNt52c8Kn0afO/PP7wuGBtGm1HEKftUw82ZdLCbPHTOtT8QvQUZ2VK5FoQNOgh07Fns/dBLzU9DaTeldNz80PBZx75HS8XY95Tss1TkIg/JmbHpnI+u/sGQLudagLqGOaxIEzZt+kQLd+bh8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78859+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1628365061102578.9795953348819; Sat, 7 Aug 2021 12:37:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6eWBYY1788612xyt5VBnhGT8; Sat, 07 Aug 2021 12:37:40 -0700 X-Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by mx.groups.io with SMTP id smtpd.web11.2139.1628365059673636388 for ; Sat, 07 Aug 2021 12:37:40 -0700 X-Received: by mail-lj1-f181.google.com with SMTP id n6so3997506ljp.9 for ; Sat, 07 Aug 2021 12:37:39 -0700 (PDT) X-Gm-Message-State: aMgh5tQziULomgEGWcxfLk6ux1787277AA= X-Google-Smtp-Source: ABdhPJxnB+tY0QnuxvrM+Yw/SDhrGPoXUNSWqAR6gGpSmaP26E184lqNH1H9tYirYKOpL2Awqjc5JA== X-Received: by 2002:a2e:8113:: with SMTP id d19mr10877103ljg.68.1628365057928; Sat, 07 Aug 2021 12:37:37 -0700 (PDT) X-Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id bq33sm103635lfb.88.2021.08.07.12.37.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 12:37:37 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, jaz@semihalf.com, gjb@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, jon@solid-run.com, alon.rotman@solid-run.com, Marcin Wojtas Subject: [edk2-devel] [edk2-non-osi PATCH] SolidRun/Cn913xCEx7Eval: Add DeviceTree Date: Sat, 7 Aug 2021 21:36:41 +0200 Message-Id: <20210807193641.3355697-5-mw@semihalf.com> In-Reply-To: <20210807193641.3355697-1-mw@semihalf.com> References: <20210807193641.3355697-1-mw@semihalf.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mw@semihalf.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628365060; bh=QXjgscKrrvKVAkePJDjttpINacbHzm+UDc5+/twUZVI=; h=Cc:Date:From:Reply-To:Subject:To; b=r3fWMJufubDlI3SWR6rwoIh7U0ARE+fm+wOYheWfUwuOnU6aB3dj+VaNHhRaTODcb19 PKt9iJ3wiHeZZjlqGgU2gio4VZNQx0/Uz3Q68qhhNo/fubooMI1hwUXROWM6yFzXu6Gjc Vot0fJ7uAgV0pfrCJq42HMxRPvrWIiqlZPY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628365963891100002 Content-Type: text/plain; charset="utf-8" This patch introduces the top device tree for the CN913x CEx7 Evaluation Board, based on the sources which are common for the Cn913x SoCs. Also an .inf file is added to allow its compilation. Signed-off-by: Marcin Wojtas --- Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn913xCEx7Eval.inf | 22 + Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-cex7.dts | 435 +++++++++= +++++++++++ Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-cex7.dts | 180 ++++++++ Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-cex7.dts | 183 ++++++++ 4 files changed, 820 insertions(+) create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn913xCEx7Eval.= inf create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-cex7.dts create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-cex7.dts create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-cex7.dts diff --git a/Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn913xCEx7Eval.inf b/S= ilicon/Marvell/OcteonTx/DeviceTree/T91/Cn913xCEx7Eval.inf new file mode 100644 index 0000000..3c99227 --- /dev/null +++ b/Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn913xCEx7Eval.inf @@ -0,0 +1,22 @@ +## @file +# +# Device tree description of the Marvell CN9130-DB-A platform +# +# Copyright (c) 2021, Semihalf. All rights reserved. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x0001001B + BASE_NAME =3D Cn913xCEx7EvalDeviceTree + FILE_GUID =3D 25462CDA-221F-47DF-AC1D-259CFAA4E326 # gDtPlatformDef= aultDtbFileGuid + MODULE_TYPE =3D USER_DEFINED + VERSION_STRING =3D 1.0 + +[Sources] + cn9132-cex7.dts + +[Packages] + MdePkg/MdePkg.dec diff --git a/Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-cex7.dts b/Sili= con/Marvell/OcteonTx/DeviceTree/T91/cn9130-cex7.dts new file mode 100644 index 0000000..50e6d69 --- /dev/null +++ b/Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-cex7.dts @@ -0,0 +1,435 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright SolidRun Ltd. + * + * Device tree for the CN9130 based COM Express type 7 board. + */ + +#define GPIO_ACTIVE_HIGH 0 +#define GPIO_ACTIVE_LOW 1 + +#include "cn9130.dtsi" + +/ { + model =3D "SolidRun CN9130 based COM Express type 7"; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + aliases { + gpio1 =3D &cp0_gpio1; + gpio2 =3D &cp0_gpio2; + i2c0 =3D &cp0_i2c0; + ethernet0 =3D &cp0_eth0; // SFP+ Port + ethernet1 =3D &cp0_eth1; // RGMII + ethernet2 =3D &cp0_eth2; // HS-SGMII + spi1 =3D &cp0_spi0; + spi2 =3D &cp0_spi1; + }; + + memory@00000000 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x80000000>; + }; + v_3_3: regulator-3-3v { + compatible =3D "regulator-fixed"; + regulator-name =3D "v_3_3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + status =3D "okay"; + }; + ap0_reg_sd_vccq: ap0_sd_vccq@0 { + compatible =3D "regulator-gpio"; + regulator-name =3D "ap0_sd_vccq"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + states =3D <1800000 0x1 3300000 0x0>; + }; + + cp0_reg_usb3_vbus0: cp0_usb3_vbus@0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "cp0-xhci0-vbus"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + }; + + cp0_usb3_0_phy0: cp0_usb3_phy@0 { + compatible =3D "usb-nop-xceiv"; + vcc-supply =3D <&cp0_reg_usb3_vbus0>; + }; + + cp0_reg_usb3_vbus1: cp0_usb3_vbus@1 { + compatible =3D "regulator-fixed"; + regulator-name =3D "cp0-xhci1-vbus"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + }; + + cp0_usb3_0_phy1: cp0_usb3_phy@1 { + compatible =3D "usb-nop-xceiv"; + vcc-supply =3D <&cp0_reg_usb3_vbus1>; + }; + + cp0_reg_sd_vccq: cp0_sd_vccq@0 { + compatible =3D "regulator-gpio"; + regulator-name =3D "cp0_sd_vccq"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3300000>; + states =3D <1800000 0x1 + 3300000 0x0>; + }; + + cp0_reg_sd_vcc: cp0_sd_vcc@0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "cp0_sd_vcc"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + enable-active-high; + regulator-always-on; + }; + + cp0_sfp_eth0: sfp-eth@0 { + compatible =3D "sff,sfp"; + i2c-bus =3D <&cp0_sfp_i2c>; + mod-def0-gpio =3D <&cp0_gpio1 24 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp0_sfp_present_pins>; + }; +}; + +&uart0 { + status =3D "okay"; +}; + +&cp0_uart2 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp0_uart2_pins>; + status =3D "okay"; +}; + +/* on-board eMMC */ +&ap_sdhci0 { + pinctrl-names =3D "default"; + bus-width =3D <8>; + vqmmc-supply =3D <&ap0_reg_sd_vccq>; + status =3D "okay"; +}; + +&cp0_crypto { + status =3D "disabled"; +}; + +&cp0_ethernet { + status =3D "okay"; +}; + +/* SFP+ 10GE */ +&cp0_eth0 { + status =3D "okay"; + phy-mode =3D "10gbase-kr"; + phys =3D <&cp0_comphy4 0>; + managed =3D "in-band-status"; + sfp =3D <&cp0_sfp_eth0>; +}; + +/* RGMII 1GE */ +&cp0_eth1 { + status =3D "okay"; + phy =3D <&phy0>; + phy-mode =3D "rgmii-id"; +}; + +&cp0_gpio1 { + status =3D "okay"; +}; + +&cp0_gpio2 { + status =3D "okay"; +}; + +/* Switch uplink */ +&cp0_eth2 { + status =3D "okay"; + phy-mode =3D "2500base-x"; + phys =3D <&cp0_comphy5 2>; + + fixed-link { + speed =3D <2500>; + full-duplex; + }; +}; + + +/* EEPROM */ +&cp0_i2c0 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp0_i2c0_pins>; + clock-frequency =3D <100000>; + /* EEPROM */ + eeprom0: eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + pagesize =3D <0x20>; + }; +}; + +/* I2C Master */ +&cp0_i2c1 { + status =3D "okay"; + clock-frequency =3D <100000>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp0_i2c1_pins>; + + i2c-switch@77 { + compatible =3D "nxp,pca9547"; + reg =3D <0x77>; + #address-cells =3D <1>; + #size-cells =3D <0>; + clk_gen_i2c: i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + /*connected to clk generator*/ + }; + led_i2c: i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + /* i2c_led connected to gpio expander on carrier a= ccording to com-ex type7 */ + }; + cp0_sfp_i2c: i2c@2 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <2>; + /*connected to sfp cp0_eth0*/ + }; + + smbus: i2c@3 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <3>; + /* smbus connected to com-ex type7 connector */ + current_mon@40 { + compatible =3D "ti,ina220"; + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0x40>; + }; + }; + + therm_i2c: i2c@4 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <4>; + + fan-control-emc2301@2f { + compatible =3D "smsc,emc2305"; + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0x2f>; + fan@0 { + reg =3D <0>; + pwm-enable =3D <0>; + fan-div =3D <4>; + }; + }; + }; + }; +}; +&cp0_mdio { + status =3D "okay"; + pinctrl-0 =3D <&cp0_ge_mdio_pins>; + phy0: ethernet-phy@0 { + marvell,reg-init =3D <3 16 0 0x1a4a>; + reg =3D <0>; + }; + + switch0: switch0@4 { + compatible =3D "marvell,mv88e6085"; + reg =3D <4>; + pinctrl-names =3D "default"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + port@1 { + reg =3D <1>; + label =3D "lan2"; + phy-handle =3D <&switch0phy0>; + }; + + port@2 { + reg =3D <2>; + label =3D "lan1"; + phy-handle =3D <&switch0phy1>; + }; + + port@3 { + reg =3D <3>; + label =3D "lan4"; + phy-handle =3D <&switch0phy2>; + }; + + port@4 { + reg =3D <4>; + label =3D "lan3"; + phy-handle =3D <&switch0phy3>; + }; + + port@5 { + reg =3D <5>; + label =3D "cpu"; + ethernet =3D <&cp0_eth2>; + }; + }; + + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + + switch0phy0: switch0phy0@11 { + reg =3D <0x11>; + }; + + switch0phy1: switch0phy1@12 { + reg =3D <0x12>; + }; + + switch0phy2: switch0phy2@13 { + reg =3D <0x13>; + }; + + switch0phy3: switch0phy3@14 { + reg =3D <0x14>; + }; + }; + }; +}; + +/* PCIE X4 Slot */ +&cp0_pcie0 { + status =3D "okay"; + num-lanes =3D <4>; + num-viewport =3D <8>; + /* Generic PHY, providing serdes lanes */ + phys =3D <&cp0_comphy0 0 + &cp0_comphy1 0 + &cp0_comphy2 0 + &cp0_comphy3 0>; +}; + +/* PCIE X1 Slot */ +/* +*&cp0_pcie2 { +* status =3D "okay"; +* phys =3D <&cp0_comphy5 2>; +* num-lanes =3D <1>; +*}; +*/ + +/* SD Card */ +&cp0_sdhci0 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp0_sdhci_pins + &cp0_sdhci_cd_pins>; + bus-width =3D <4>; + cd-gpios =3D <&cp0_gpio2 24 GPIO_ACTIVE_LOW>; + no-1-8-v; + vqmmc-supply =3D <&v_3_3>; + vmmc-supply =3D <&v_3_3>; +}; + +&cp0_spi1 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp0_spi1_pins + &cp0_spi1_cs1_pins>; + reg =3D <0x700680 0x50>; + spi-flash@0 { + #address-cells =3D <0x1>; + #size-cells =3D <0x1>; + compatible =3D "jedec,spi-nor"; + reg =3D <0x0>; + spi-max-frequency =3D <10000000>; + }; + spi-flash@1 { + #address-cells =3D <0x1>; + #size-cells =3D <0x1>; + compatible =3D "jedec,spi-nor"; + reg =3D <0x1>; + /* On carrier MUX does not allow higher frequencies */ + spi-max-frequency =3D <10000000>; + }; +}; + +&cp0_syscon0 { + cp0_pinctrl: pinctrl { + compatible =3D "marvell,cp115-standalone-pinctrl"; + + cp0_ge_mdio_pins: ge-mdio-pins { + marvell,pins =3D "mpp40", "mpp41"; + marvell,function =3D "ge"; + }; + + cp0_i2c0_pins: cp0-i2c-pins-0 { + marvell,pins =3D "mpp37", "mpp38"; + marvell,function =3D "i2c0"; + }; + cp0_i2c1_pins: cp0-i2c-pins-1 { + marvell,pins =3D "mpp35", "mpp36"; + marvell,function =3D "i2c1"; + }; + cp0_ge1_rgmii_pins: cp0-ge-rgmii-pins-0 { + marvell,pins =3D "mpp0", "mpp1", "mpp2", + "mpp3", "mpp4", "mpp5", + "mpp6", "mpp7", "mpp8", + "mpp9", "mpp10", "mpp11"; + marvell,function =3D "ge0"; + }; + cp0_sdhci_cd_pins: cp0-sdhci-cd-pins-0 { + marvell,pins =3D "mpp55"; + marvell,function =3D "sdio"; + }; + cp0_sdhci_pins: cp0-sdhi-pins-0 { + marvell,pins =3D "mpp56", "mpp57", "mpp58", + "mpp59", "mpp60", "mpp61"; + marvell,function =3D "sdio"; + }; + cp0_spi1_pins: cp0-spi-pins-1 { + marvell,pins =3D "mpp13", "mpp14", "mpp15", "mpp16= "; + marvell,function =3D "spi1"; + }; + cp0_spi1_cs1_pins: cp0-spi-cs1-pins-1 { + marvell,pins =3D "mpp12"; + marvell,function =3D "spi1"; + }; + + cp0_sfp_present_pins: sfp-present-pins { + marvell,pins =3D "mpp24"; + marvell,function =3D "gpio"; + }; + cp0_uart2_pins: uart22-pins { + marvell,pins =3D "mpp50", "mpp51"; + marvell,function =3D "uart2"; + }; + + }; +}; + +&cp0_usb3_0 { + status =3D "okay"; + usb-phy =3D <&cp0_usb3_0_phy0>; + phy-names =3D "usb"; +}; + +&cp0_usb3_1 { + status =3D "okay"; + usb-phy =3D <&cp0_usb3_0_phy1>; + phy-names =3D "usb"; +}; diff --git a/Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-cex7.dts b/Sili= con/Marvell/OcteonTx/DeviceTree/T91/cn9131-cex7.dts new file mode 100644 index 0000000..7c33ff9 --- /dev/null +++ b/Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-cex7.dts @@ -0,0 +1,180 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright SolidRun Ltd. + * + * Device tree for the CN9131 COM Express Type 7 board. + */ + +#include "cn9130-cex7.dts" + +/ { + model =3D "SolidRun CN9131 based COM Express type 7"; + compatible =3D "marvell,cn9131", "marvell,cn9130", + "marvell,armada-ap807-quad", "marvell,armada-ap807"; + + aliases { + gpio3 =3D &cp1_gpio1; + gpio4 =3D &cp1_gpio2; + ethernet3 =3D &cp1_eth0; + }; + cp1_reg_usb3_vbus0: cp1_usb3_vbus@0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "cp1-xhci0-vbus"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + }; + cp1_usb3_0_phy0: cp1_usb3_phy0 { + compatible =3D "usb-nop-xceiv"; + vcc-supply =3D <&cp1_reg_usb3_vbus0>; + }; + cp1_reg_usb3_vbus1: cp1_usb3_vbus@1 { + compatible =3D "regulator-fixed"; + regulator-name =3D "cp1-xhci1-vbus"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + }; + cp1_usb3_0_phy1: cp1_usb3_phy@1 { + compatible =3D "usb-nop-xceiv"; + vcc-supply =3D <&cp1_reg_usb3_vbus1>; + }; + cp1_sfp_eth0: sfp_eth0{ + compatible =3D "sff,sfp"; + i2c-bus =3D <&cp1_i2c1>; + mod-def0-gpio =3D <&cp1_gpio2 18 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp1_sfp_present_pins>; + status =3D "okay"; + }; +}; + +/* Instantiate the first slave CP115 */ + +#define CP11X_NAME cp1 +#define CP11X_BASE f4000000 +#define CP11X_PCIEx_MEM_BASE(iface) (0xe2000000 + (iface * 0x2000000)) +#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000 +#define CP11X_PCIE0_BASE f4600000 +#define CP11X_PCIE1_BASE f4620000 +#define CP11X_PCIE2_BASE f4640000 + +#include "armada-cp115.dtsi" + +#undef CP11X_NAME +#undef CP11X_BASE +#undef CP11X_PCIEx_MEM_BASE +#undef CP11X_PCIEx_MEM_SIZE +#undef CP11X_PCIE0_BASE +#undef CP11X_PCIE1_BASE +#undef CP11X_PCIE2_BASE + +&cp1_crypto { + status =3D "disabled"; +}; + +&cp1_ethernet { + status =3D "okay"; +}; + +/* 5GE PHY0 */ +&cp1_eth0 { + status =3D "okay"; + phy-mode =3D "5gbase-r"; + phys =3D <&cp1_comphy2 0>; + phy =3D <&phy1>; + sfp =3D <&cp1_sfp_eth0>; +}; + +&cp1_gpio1 { + status =3D "okay"; +}; + +&cp1_gpio2 { + status =3D "okay"; +}; + +&cp1_xmdio { + status =3D "okay"; + pinctrl-0 =3D <&cp1_xmdio_pins>; + phy1: ethernet-phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c45"; + reg =3D <0>; + }; +}; + +&cp1_i2c1 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp1_i2c1_pins>; + clock-frequency =3D <100000>; +}; + +/* PCIE X2 NVME */ +&cp1_pcie0 { + pinctrl-names =3D "default"; + num-lanes =3D <2>; + num-viewport =3D <8>; + status =3D "okay"; + phys =3D <&cp1_comphy0 0 + &cp1_comphy1 0>; +}; + +/* SATA 1 */ +&cp1_sata0 { + status =3D "okay"; + sata-port@1 { + /* Generic PHY, providing serdes lanes */ + phys =3D <&cp1_comphy3 1>; + }; +}; + +/* PCIE X1 WIFI0 */ +&cp1_pcie1 { + pinctrl-names =3D "default"; + num-lanes =3D <1>; + num-viewport =3D <8>; + status =3D "okay"; + phys =3D <&cp1_comphy4 1>; +}; + +/* PCIE X1 WIFI1 */ +&cp1_pcie2 { + pinctrl-names =3D "default"; + num-lanes =3D <1>; + num-viewport =3D <8>; + status =3D "okay"; + phys =3D <&cp1_comphy5 2>; +}; + +/* PIN Definition */ + +&cp1_syscon0 { + cp1_pinctrl: pinctrl { + compatible =3D "marvell,cp115-standalone-pinctrl"; + + cp1_i2c1_pins: cp1-i2c-pins-1 { + marvell,pins =3D "mpp35", "mpp36"; + marvell,function =3D "i2c1"; + }; + cp1_xmdio_pins: cp1_xmdio_pins-0 { + marvell,pins =3D "mpp37", "mpp38"; + marvell,function =3D "xg"; + }; + cp1_sfp_present_pins: cp1_sfp_present_pins-0 { + marvell,pins =3D "mpp50"; + marvell,function =3D "gpio"; + }; + }; +}; + +&cp1_usb3_0 { + status =3D "okay"; + sb-phy =3D <&cp1_usb3_0_phy0>; + phy-names =3D "usb"; +}; +&cp1_usb3_1 { + status =3D "okay"; + usb-phy =3D <&cp1_usb3_0_phy1>; + phy-names =3D "usb"; +}; diff --git a/Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-cex7.dts b/Sili= con/Marvell/OcteonTx/DeviceTree/T91/cn9132-cex7.dts new file mode 100644 index 0000000..aa4136c --- /dev/null +++ b/Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-cex7.dts @@ -0,0 +1,183 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright SolidRun Ltd. + * + * Device tree for the CN9132 based COM Express type 7 board" + */ + +#include "cn9131-cex7.dts" + +/ { + model =3D "SolidRun CN9132 based COM Express type 7"; + compatible =3D "marvell,cn9132", "marvell,cn9131", "marvel= l,cn9130", + "marvell,armada-ap807-quad", "marvell,armada-ap807= "; + + aliases { + gpio5 =3D &cp2_gpio1; + gpio6 =3D &cp2_gpio2; + ethernet5 =3D &cp2_eth0; + }; + + cp2_reg_usb3_vbus0: cp2_usb3_vbus@0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "cp2-xhci0-vbus"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + }; + + cp2_usb3_0_phy0: cp2_usb3_phy0 { + compatible =3D "usb-nop-xceiv"; + vcc-supply =3D <&cp2_reg_usb3_vbus0>; + }; + + cp2_reg_usb3_vbus1: cp2_usb3_vbus@1 { + compatible =3D "regulator-fixed"; + regulator-name =3D "cp2-xhci1-vbus"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + }; + + cp2_usb3_0_phy1: cp2_usb3_phy1 { + compatible =3D "usb-nop-xceiv"; + vcc-supply =3D <&cp2_reg_usb3_vbus1>; + }; + + cp2_sfp_eth0: sfp-eth0 { + compatible =3D "sff,sfp"; + i2c-bus =3D <&cp2_i2c1>; + mod-def0-gpio =3D <&cp2_gpio2 18 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp2_sfp_pins>; + status =3D "okay"; + }; +}; + +/* Instantiate the second slave CP115 */ + +#define CP11X_NAME cp2 +#define CP11X_BASE f6000000 +#define CP11X_PCIEx_MEM_BASE(iface) (0xe9000000 + (iface * 0x2000000)) +#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000 +#define CP11X_PCIE0_BASE f6600000 +#define CP11X_PCIE1_BASE f6620000 +#define CP11X_PCIE2_BASE f6640000 + +#include "armada-cp115.dtsi" + +#undef CP11X_NAME +#undef CP11X_BASE +#undef CP11X_PCIEx_MEM_BASE +#undef CP11X_PCIEx_MEM_SIZE +#undef CP11X_PCIE0_BASE +#undef CP11X_PCIE1_BASE +#undef CP11X_PCIE2_BASE + +&cp2_crypto { + status =3D "disabled"; +}; + +&cp2_ethernet { + status =3D "okay"; +}; + +/* 10GE Port */ +&cp2_eth0 { + status =3D "okay"; + phy-mode =3D "5gbase-r"; + phys =3D <&cp2_comphy2 0>; + phy =3D <&phy2>; + sfp =3D <&cp2_sfp_eth0>; +}; + +&cp2_gpio1 { + status =3D "okay"; +}; + +&cp2_gpio2 { + status =3D "okay"; +}; + +&cp2_i2c1 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cp2_i2c1_pins>; + clock-frequency =3D <100000>; +}; + +&cp2_xmdio { + status =3D "okay"; + pinctrl-0 =3D <&cp2_xmdio_pins>; + phy2: ethernet-phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c45"; + reg =3D <0>; + }; +}; + + +/* PCIE0 X1 */ +&cp2_pcie0 { + status =3D "okay"; + num-lanes =3D <1>; + num-viewport =3D <8>; + phys =3D <&cp2_comphy0 0>; +}; + +/* PCIE1 X1 */ +&cp2_pcie1 { + status =3D "okay"; + num-lanes =3D <1>; + num-viewport =3D <8>; + phys =3D <&cp2_comphy4 1>; +}; + +/* PCIE2 X1 */ +&cp2_pcie2 { + status =3D "okay"; + num-lanes =3D <1>; + num-viewport =3D <8>; + phys =3D <&cp2_comphy5 2>; +}; + +/* SATA 1 */ +&cp2_sata0 { + status =3D "okay"; + sata-port@0 { + phys =3D <&cp2_comphy3 1>; + }; +}; + +&cp2_syscon0 { + cp2_pinctrl: pinctrl { + compatible =3D "marvell,cp115-standalone-pinctrl"; + + cp2_xmdio_pins: cp2-xmdio-pins-0 { + marvell,pins =3D "mpp37", "mpp38"; + marvell,function =3D "xg"; + }; + + cp2_i2c1_pins: cp2-i2c-pins-1 { + marvell,pins =3D "mpp35", "mpp36"; + marvell,function =3D "i2c1"; + }; + cp2_sfp_pins: sfp-pins { + marvell,pins =3D "mpp50"; + marvell,function =3D "gpio"; + }; + }; +}; + +&cp2_usb3_0 { + status =3D "okay"; + usb-phy =3D <&cp2_usb3_0_phy0>; + phy-names =3D "usb"; +}; + +/* USB3 */ +&cp2_usb3_1 { + status =3D "okay"; + usb-phy =3D <&cp2_usb3_0_phy1>; + phy-names =3D "usb"; + phys =3D <&cp2_comphy1 0>; +}; --=20 2.29.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#78859): https://edk2.groups.io/g/devel/message/78859 Mute This Topic: https://groups.io/mt/84735298/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-