From nobody Mon Dec 1 23:35:10 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 972A92F83A3; Wed, 26 Nov 2025 10:02:35 +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=1764151357; cv=none; b=ZSiVXFjxLyr7dF6MRNdvttm2eL/L3YZ6lSzAxKFeXJELnwKfsI6LhjPZ2UgvrF6Xf/rrF5r98s5vYhBAD1MZaKfkKPn9mMf1qUoZvqekim7P3JZnlaOXx9OMiKc6hBQWhHJfgNCehsmgaRUOIR+V65Wq62DsoJ9S6MsJLvWf+1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764151357; c=relaxed/simple; bh=o3e/QN+XEBfcjrx9MO89hAG618jyoE25s87Z0l8Xktk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DKXcmGaFkvNICD9oc9EAYn5bC0ReWCxr6YorQ8Rjy/u8S6ubj8AxbJQTGysXMR9Uk85+tw12XAbst/6I0MQHNjYkhe0oTVCkxCpJN93fXrHYOsnEoiLnhb4Qmc5nmZmtm0a8dbYBkfeVi0XS99VLeMwA3lpaRkH89bADp2tJraE= 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=LE8O2Z1w; 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="LE8O2Z1w" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1764151355; x=1795687355; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=o3e/QN+XEBfcjrx9MO89hAG618jyoE25s87Z0l8Xktk=; b=LE8O2Z1wPUcyiJ247Z2Z4NmueFH9DfXAOYPXGLvSC0/Pvd6TbbZ2cH+F gChAim91fYQNaSkyYAcIJrTzB1D3mvla1eb1m+eYmTvsIyUy2kecgi/+t LT8RDnZqnpBW9GTsnO0dnWdeBXoD1yXIq6ktjgrmQri8i97Blb7qFzas6 SM4sS78LCFLspeaaUsHoufartsVRPntvGQIJcYUrJC6LEXRuewIg5PxcN e+9wavsfDvIAY7gYSYEVvGF+z87J+vFDkElljvlNw4vQat038i+EZX8XZ mE0Riox+3uR4FeoNstQBgjPdkdEVlRW6Dr3GAxA8PANQubkIkZamNq9+k w==; X-CSE-ConnectionGUID: uVR4L6JwQOarTsqRLnuBMw== X-CSE-MsgGUID: RZjGXGP5QouiygR1Kh9g8A== X-IronPort-AV: E=Sophos;i="6.20,228,1758610800"; d="scan'208";a="49045664" 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; 26 Nov 2025 03:02:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.87.71) 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; Wed, 26 Nov 2025 03:02:03 -0700 Received: from DEN-DL-M31836.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Wed, 26 Nov 2025 03:02:01 -0700 From: Horatiu Vultur To: , , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH v3 1/2] dt-bindings: arm: at91: add lan966 pcb8385 board Date: Wed, 26 Nov 2025 11:01:50 +0100 Message-ID: <20251126100151.1559590-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251126100151.1559590-1-horatiu.vultur@microchip.com> References: <20251126100151.1559590-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 23:35:10 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 11AEA2F7468; Wed, 26 Nov 2025 10:02:38 +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=1764151360; cv=none; b=QftINFfHi15hV0ekhoP/kj6kfsJxKKp8FQJNm62KtB1XRJcAAYr356EfJ4Lyqbhv4yjKpGo/iR7Y0x+Tk5dHbMpPtJ+e5Dw8FiDoKyhZJu0nlY8Pzyv41+9g2l67SWppqddF/iwyP8bzzBmyBp1Q44LyVgffpqMj8UqlDjQwVVA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764151360; c=relaxed/simple; bh=iQE1pLsu6JqjKAvbiaaOCWOIPc32Shcee/r8xDrwfho=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LxpWYk4qcm7ET2cRIOFghdFwftaR2ZXo1II7V6sbaOVkb4aSOohj9BUXK7PHUqdHJWq/swhLbrlDLr6IcvDGPzqTOfM9CEsZeJ8gPnyfmzWXmszWDMNuk78v3pirvFHitN+6r5Ykv0yt+Crn6g2RwriFbYs7pwHEXo0wpqIAJwY= 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=grmN8/rc; 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="grmN8/rc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1764151359; x=1795687359; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iQE1pLsu6JqjKAvbiaaOCWOIPc32Shcee/r8xDrwfho=; b=grmN8/rc6CiiYYIeZli+tDVokn1eVNYgKnr+va8nbiP3z3ibCcaI/o3u 2c9QM0x9b/AXLMhA1tbSlAtNNxIpcuM34j0FIFzaPIcAZp+jcoLCW7FMW PAhIFetDgtEIQfKaSqIAb+BviUBSzbYp+Fd1VlCBzPcPOoeevxT0st4Ui gcSCsZv+aH3xlJoskMctRAO0I69bHQbpZOlnbHrJq0Dx1AnaCVnlRyMFB FoYzucEK7ckyZnl7ZFVf+woOdejcut1s5S//Il28Bzvosr99IcDh3YAKZ 5NOoWYCpJe7chI1h1hOoWG7uWGJkrVJ1PoP2u/wGP0PpQWl7KCw3Zfq3q Q==; X-CSE-ConnectionGUID: jBrz8LRmS7CFC/Xb1gpQxw== X-CSE-MsgGUID: 3ocAaiNkQFi2fzYGXZd49Q== X-IronPort-AV: E=Sophos;i="6.20,228,1758610800"; d="scan'208";a="56286341" 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-AES256-GCM-SHA384; 26 Nov 2025 03:02:32 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.87.71) by chn-vm-ex4.mchp-main.com (10.10.87.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.29; Wed, 26 Nov 2025 03:02:06 -0700 Received: from DEN-DL-M31836.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Wed, 26 Nov 2025 03:02:04 -0700 From: Horatiu Vultur To: , , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH v3 2/2] ARM: dts: Add support for pcb8385 Date: Wed, 26 Nov 2025 11:01:51 +0100 Message-ID: <20251126100151.1559590-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251126100151.1559590-1-horatiu.vultur@microchip.com> References: <20251126100151.1559590-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 | 133 ++++++++++++++++++ 2 files changed, 135 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..a7ac7854cdaf0 --- /dev/null +++ b/arch/arm/boot/dts/microchip/lan966x-pcb8385.dts @@ -0,0 +1,133 @@ +// 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"; + + i2c0: i2c@600 { + 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>; + status =3D "okay"; + }; + + eeprom@55 { + compatible =3D "atmel,24c01"; + reg =3D <0x55>; + status =3D "okay"; + }; + }; +}; + +&flx3 { + atmel,flexcom-mode =3D ; + status =3D "okay"; + + usart3: serial@200 { + pinctrl-0 =3D <&fc3_b_pins>; + pinctrl-names =3D "default"; + 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"; + }; +}; + +&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>; + }; +}; --=20 2.34.1