From nobody Tue Dec 16 13:29:12 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 A7C181E5B64; Mon, 8 Dec 2025 08:38:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765183136; cv=none; b=dWnVxhGnCMJXuYGwuWoFEGVAWU79wb8SnhynALPCQlZUOzyDQv01+kFxAAstQv9hLiyDPI5zqPAwnP+yRSY2mhqN0YbHN3lWVwkz1L5eM8douw2KuCgw4MJRdhz563FvnlHod9tc1XUSDs94SW6rR3vseJHugfryMsh/1iilCeM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765183136; c=relaxed/simple; bh=5dVHO7Xv11b5SW8lDY+p04NIEuAra+ohyYQqq5i0Kmc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hgjMeUPBoiglFRb9WYeCNBhvdK1o7G0feoxiQRZzd8C6cYjCGgoHYQGumsIB/NdaLiBQdLacSFSogHUBlLkKzBzcogtcgsWrK9YAXesyVrE19mZkWWD3lWojwyf+o6pkXyKE9oQW6/9MnWvs2dw1isFIwkZNF7HFurqszIlbUpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=sQYdBCX6; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="sQYdBCX6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1765183134; x=1796719134; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5dVHO7Xv11b5SW8lDY+p04NIEuAra+ohyYQqq5i0Kmc=; b=sQYdBCX6OZ1U7U+56XpSKs+tnvDF3YqZwL+KaYtca6+AV/A5LMnlgBb1 +Li27SWgae2+Zr1J75grUzbKpAV91uuPwyNpRzmEAGpqWRgPrF/ZP/AV2 WLp+qAJeeYFzovtVP+rB8RDuJcHOi2K4qhChBrjy+yjyEE2EkwRRHb8l4 a5WzQwo0W0iDplht/aeX8pBhAedgzUm4AklF7CZii5yzM5V28Zl7tT1Ij GvpAQvUUbI/+nO8W66hlZcGS3AcxrR+M9vIo/tmHx7Kkba6aUqR56b7wJ EKb9xwabF5JneMsCOebrIcAzas2WMrEm9XHyY1ndw3/zRKyd2FydUwudR Q==; X-CSE-ConnectionGUID: FfguEtJUTS2+5AIunoTqvA== X-CSE-MsgGUID: KxEn+DHpRmmkk11zJg3g7Q== X-IronPort-AV: E=Sophos;i="6.20,258,1758610800"; d="scan'208";a="217523968" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2025 01:37:45 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.87.152) by chn-vm-ex1.mchp-main.com (10.10.87.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.29; Mon, 8 Dec 2025 01:37:07 -0700 Received: from DEN-DL-M31836.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 8 Dec 2025 01:37:05 -0700 From: Horatiu Vultur To: , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH v5 1/2] dt-bindings: arm: at91: add lan966 pcb8385 board Date: Mon, 8 Dec 2025 09:35:44 +0100 Message-ID: <20251208083545.3642168-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251208083545.3642168-1-horatiu.vultur@microchip.com> References: <20251208083545.3642168-1-horatiu.vultur@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add documentation for Microchip LAN9668 PCB8385 Acked-by: Rob Herring (Arm) Reviewed-by: Claudiu Beznea Signed-off-by: Horatiu Vultur --- Documentation/devicetree/bindings/arm/atmel-at91.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.yaml b/Docume= ntation/devicetree/bindings/arm/atmel-at91.yaml index 3a34b7a2e8d4e..68d306d17c2a1 100644 --- a/Documentation/devicetree/bindings/arm/atmel-at91.yaml +++ b/Documentation/devicetree/bindings/arm/atmel-at91.yaml @@ -235,9 +235,11 @@ properties: - const: microchip,lan9662 - const: microchip,lan966 =20 - - description: Microchip LAN9668 PCB8290 Evaluation Board. + - description: Microchip LAN9668 Evaluation Board. items: - - const: microchip,lan9668-pcb8290 + - enum: + - microchip,lan9668-pcb8290 + - microchip,lan9668-pcb8385 - const: microchip,lan9668 - const: microchip,lan966 =20 --=20 2.34.1 From nobody Tue Dec 16 13:29:12 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 AB6B01E5B64; Mon, 8 Dec 2025 08:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765183088; cv=none; b=OE+MX+xhvD1T6D6fcb7GUMIRyH8RFXQv/8nk19ltdL3FFs/SdgKDG5Qj3rRec6drvYFofdp9oYoeNAmsL0lV2habsyqG617Z5gmsx/iMO6bMD3EPrpIuK/NNa6V6pb3xETYsRLuXYv1zzORQN0czdCj5OyV7DJx0N/tX1FBbnwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765183088; c=relaxed/simple; bh=aJVLiKB0hw4i7u+gPQHx4MVI2yABH5AWG0hgZzIhmoU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NT5BSCrK91W/DtncQZkI/12HS8EJiSUzo9n6seD7c5XxgfiZ+mNr4c+UPCecpNn2YKAQop4Fc10zVBK/heAg/ImiEm0wfCSLgsP8qIicxm8AWQDTO6jGI/sNbw6egtfaMQxtoYriCR+Irgg0/N6B4zoIR+srzV5+LoLkRPQuNR8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=KkqX0bEk; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="KkqX0bEk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1765183086; x=1796719086; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aJVLiKB0hw4i7u+gPQHx4MVI2yABH5AWG0hgZzIhmoU=; b=KkqX0bEkz4A5GACmLnLcH3EuIO9uQD9dbmD3CedcWx9F5f6fiKiALfq2 uocL/vxgHwhEFXe/u+uWajG+UVAIzziV8GnH7E8pp/+3IHdqjRgJHxFJi rd4OVAJ5zm2KZJCCyqH3ci+Id/V520gf1aJiZ2gStKYg8AdKHrxgyg887 jCFj57/2HaPskHXBZXYDnUiDfZ6fzggsNK0vHKQg/FeT/MNt4DA36t98g 97DOUgt9NXiUcOiDNvLJP8088vTMnplpxrKpvuQStbFxdactefLKoXsxE HjiSByCuSnfueQ/9xM9OMGWiNd7dAAxJDZNTMXajVQcUVdAdcbUBNWFNX A==; X-CSE-ConnectionGUID: eA4pPB0/RzaLndq8Vflnpg== X-CSE-MsgGUID: yxxIIWcySz6uk9ihfY1OYg== X-IronPort-AV: E=Sophos;i="6.20,258,1758610800"; d="scan'208";a="49530812" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2025 01:38:03 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.87.152) by chn-vm-ex1.mchp-main.com (10.10.87.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.29; Mon, 8 Dec 2025 01:37:09 -0700 Received: from DEN-DL-M31836.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 8 Dec 2025 01:37:07 -0700 From: Horatiu Vultur To: , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH v5 2/2] ARM: dts: Add support for pcb8385 Date: Mon, 8 Dec 2025 09:35:45 +0100 Message-ID: <20251208083545.3642168-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251208083545.3642168-1-horatiu.vultur@microchip.com> References: <20251208083545.3642168-1-horatiu.vultur@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add basic support for pcb8385 [1]. It is a modular board which allows to add different daughter cards on which there are different PHYs. This adds support for UART, LEDs and I2C. [1] https://www.microchip.com/en-us/development-tool/ev83e85a Signed-off-by: Horatiu Vultur --- arch/arm/boot/dts/microchip/Makefile | 3 +- .../boot/dts/microchip/lan966x-pcb8385.dts | 131 ++++++++++++++++++ 2 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/microchip/lan966x-pcb8385.dts diff --git a/arch/arm/boot/dts/microchip/Makefile b/arch/arm/boot/dts/micro= chip/Makefile index 79cd38fdc7dab..08986c24a4700 100644 --- a/arch/arm/boot/dts/microchip/Makefile +++ b/arch/arm/boot/dts/microchip/Makefile @@ -102,4 +102,5 @@ dtb-$(CONFIG_SOC_LAN966) +=3D \ lan966x-kontron-kswitch-d10-mmt-8g.dtb \ lan966x-pcb8290.dtb \ lan966x-pcb8291.dtb \ - lan966x-pcb8309.dtb + lan966x-pcb8309.dtb \ + lan966x-pcb8385.dtb diff --git a/arch/arm/boot/dts/microchip/lan966x-pcb8385.dts b/arch/arm/boo= t/dts/microchip/lan966x-pcb8385.dts new file mode 100644 index 0000000000000..d18969275efea --- /dev/null +++ b/arch/arm/boot/dts/microchip/lan966x-pcb8385.dts @@ -0,0 +1,131 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * lan966x-pcb8385.dts - Device Tree file for PCB8385 + */ +/dts-v1/; + +#include "lan966x.dtsi" +#include "dt-bindings/phy/phy-lan966x-serdes.h" + +/ { + model =3D "Microchip EVB - LAN9668"; + compatible =3D "microchip,lan9668-pcb8385", "microchip,lan9668", "microch= ip,lan966"; + + aliases { + serial0 =3D &usart3; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + gpio-restart { + compatible =3D "gpio-restart"; + gpios =3D <&gpio 59 GPIO_ACTIVE_LOW>; + open-source; + priority =3D <200>; + }; + + leds { + compatible =3D "gpio-leds"; + + led-p1-green { + label =3D "cu0:green"; + gpios =3D <&sgpio_out 2 0 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-p1-yellow { + label =3D "cu0:yellow"; + gpios =3D <&sgpio_out 2 1 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-p2-green { + label =3D "cu1:green"; + gpios =3D <&sgpio_out 3 0 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-p2-yellow { + label =3D "cu1:yellow"; + gpios =3D <&sgpio_out 3 1 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + }; +}; + +&aes { + status =3D "reserved"; /* Reserved by secure OS */ +}; + +&flx0 { + atmel,flexcom-mode =3D ; + status =3D "okay"; +}; + +&flx3 { + atmel,flexcom-mode =3D ; + status =3D "okay"; +}; + +&gpio { + fc0_b_pins: fc0-b-pins { + /* SCL, SDA */ + pins =3D "GPIO_25", "GPIO_26"; + function =3D "fc0_b"; + }; + + fc3_b_pins: fc3-b-pins { + /* RX, TX */ + pins =3D "GPIO_52", "GPIO_53"; + function =3D "fc3_b"; + }; + + sgpio_a_pins: sgpio-a-pins { + /* SCK, D0, D1, LD */ + pins =3D "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35"; + function =3D "sgpio_a"; + }; +}; + +&i2c0 { + pinctrl-0 =3D <&fc0_b_pins>; + pinctrl-names =3D "default"; + dmas =3D <0>, <0>; + i2c-analog-filter; + i2c-digital-filter; + i2c-digital-filter-width-ns =3D <35>; + i2c-sda-hold-time-ns =3D <1500>; + status =3D "okay"; + + eeprom@54 { + compatible =3D "atmel,24c01"; + reg =3D <0x54>; + }; + + eeprom@55 { + compatible =3D "atmel,24c01"; + reg =3D <0x55>; + }; +}; + +&sgpio { + pinctrl-0 =3D <&sgpio_a_pins>; + pinctrl-names =3D "default"; + microchip,sgpio-port-ranges =3D <0 3>; + status =3D "okay"; + + gpio@0 { + ngpios =3D <64>; + }; + gpio@1 { + ngpios =3D <64>; + }; +}; + +&usart3 { + pinctrl-0 =3D <&fc3_b_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; --=20 2.34.1