From nobody Mon Dec 1 21:33:24 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 197342E62A9; Mon, 1 Dec 2025 08:29:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764577774; cv=none; b=MmEmHP2A5cb4ONAGWQUJfyMwTzLJHyQP56FAxQi/sw9BdsTinEM8VzGbCQESRencAU/zekInvT+/xnHO2xmDWHDg+UZWkwPuupwfWBjU9qGr/MQfyYzrOhIrbbtB4giWlUPVLy0/hiLzPwCITti1KNI8jSHFolnD4vKo7wvtD7s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764577774; c=relaxed/simple; bh=o3e/QN+XEBfcjrx9MO89hAG618jyoE25s87Z0l8Xktk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eDTTypViDIJDnpAAoGAO4elFzoVWLdhvAp6+1E5H+AVr21gAQXVfhwCnFYsG9jc9ulGlapiw1b1kRAKTl+kwYa+tFZmnzmvjhKVGWvKp0hSJvtO4lfk+PbX1Iv+MW5YKeHjCUwb2gLIoB3FsecLvt9pqdoiom3aBkLSpveASx1U= 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=kbLq7i2t; arc=none smtp.client-ip=68.232.153.233 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="kbLq7i2t" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1764577772; x=1796113772; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=o3e/QN+XEBfcjrx9MO89hAG618jyoE25s87Z0l8Xktk=; b=kbLq7i2t6Hpnly8kz864YHnC0gezbkZeRwOzM6dzQhMaDuwdsIgh6J08 HuAphM2/EbS/8pHDfEQgrDSmOZgNVVy0BCjtDZlC8/Wn+9Kh+bjGR5T/j jKs5bDdV+mKJRV/pMbl/d7NHyLZlJMNkRsGFgwNWx+yfpectmjkOp5who 9qzxPQkFVr5wTasJAnimzGGKhUvmBT4+p3ZEZsg6bQ5CaLWQ3aSjUT86F EfjsNjjEtCMmZnVMmGHHgsQ73BuumFgQIKIynBC45ES6Fh8nvhqvNDoRs JDOmYwEj2xAZMErm8brdOL6rUhypWLlsWEmyaNzOZLOXAUwKa2y9H9w61 g==; X-CSE-ConnectionGUID: Jt19qymKQxqm5dx5AqyGaw== X-CSE-MsgGUID: gTG2EAd0QeKIAZ1snGKokA== X-IronPort-AV: E=Sophos;i="6.20,240,1758610800"; d="scan'208";a="56483966" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 01 Dec 2025 01:29:25 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 1 Dec 2025 01:29:21 -0700 Received: from DEN-DL-M31836.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 1 Dec 2025 01:29:19 -0700 From: Horatiu Vultur To: , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH v4 1/2] dt-bindings: arm: at91: add lan966 pcb8385 board Date: Mon, 1 Dec 2025 09:26:28 +0100 Message-ID: <20251201082629.2326339-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251201082629.2326339-1-horatiu.vultur@microchip.com> References: <20251201082629.2326339-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) 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 Mon Dec 1 21:33:24 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 7D5232EC093; Mon, 1 Dec 2025 08:29:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764577775; cv=none; b=Nka+pqhVK6V2L18Va742mIuSJgfqwYouGZeIqr7wmNOCyZ1x1/xrMqfpZFArTKDmEVwZHGA4bPb0fjYphMGXkP/Hf0HlxtPtwqSOM+c5G5z+gcXBZ9CcCNKq4rrYvCwLc1zU+c2DShUZ2tTT/QQcd+uqeg9z+Ds2JG/G045fYr4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764577775; c=relaxed/simple; bh=eLVp9h+MDHg/5BJE4cUVZQ6UyUD/vG+2yLfmR0WZiR4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AWHMJDWz+vPRIiWJpd0dYsMAaqOMIA/1m2jJ+3PEQVyXfLlpyTig/hEmPUg9JPC/ItA44+F4DIs2I8owQQEps/0VY5kwYTIhcSmJI+mIUvF35mMm8hS2darDtfGPeVgkDEnj92wqrTM3Ps59uCjtzrzfoejigA7TUvSfswTNWGw= 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=OAtR8huL; arc=none smtp.client-ip=68.232.153.233 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="OAtR8huL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1764577773; x=1796113773; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eLVp9h+MDHg/5BJE4cUVZQ6UyUD/vG+2yLfmR0WZiR4=; b=OAtR8huLQW6wwh+Ec/LKpx8EB5e9ZYJayYvjZ/r6R+legsHurpBgDPwJ oH2QvlPfcPw3SaT6kDrxiUXCuIQVvj3hBU2qGoX844y+J1Y3/iDk7uzLI SNkRLxI15jkAbL05RzxNQ3tMelqIi0qW1erAFvb1I/rSGv+PTFRSYlIcp Khi/cNXFYKWY15EzNOsFpEyxYvueRt6dy+x6yDkr9dNbs/RBfuVGwK1QM 0J0WxkidSS2GKmI2eIpJe0HRc+vYaZBzTPGcezHZ/aCc3X7N2J8FMCNon 93N29nt/XvNlRkBN26sr5J03GZSzw3VCaUmFkv8424z0t0LovFhTrbmqA w==; X-CSE-ConnectionGUID: Jt19qymKQxqm5dx5AqyGaw== X-CSE-MsgGUID: 48P1tEb2TSC62ymXNiwTHA== X-IronPort-AV: E=Sophos;i="6.20,240,1758610800"; d="scan'208";a="56483967" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 01 Dec 2025 01:29:25 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 1 Dec 2025 01:29:24 -0700 Received: from DEN-DL-M31836.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 1 Dec 2025 01:29:21 -0700 From: Horatiu Vultur To: , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH v4 2/2] ARM: dts: Add support for pcb8385 Date: Mon, 1 Dec 2025 09:26:29 +0100 Message-ID: <20251201082629.2326339-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251201082629.2326339-1-horatiu.vultur@microchip.com> References: <20251201082629.2326339-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..6bbe1222f9106 --- /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 "disabled"; /* 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