From nobody Sat Apr 18 04:21:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1A79C433EF for ; Mon, 18 Jul 2022 21:26:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233499AbiGRV0Y (ORCPT ); Mon, 18 Jul 2022 17:26:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233600AbiGRV0V (ORCPT ); Mon, 18 Jul 2022 17:26:21 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CB12FFC2; Mon, 18 Jul 2022 14:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658179581; x=1689715581; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yTMxPZT11uI8z3/idJoE8G2YYGC0jI6IgeTomr6k1+k=; b=qS+NJsEsL9wXAy1fznFFqnNZwBPGw0PJ3+ckwnJviUO8eq7PyrnL35B4 68QfBaXeblqmL76cz6bzkUkjXQgqRVmUgZYa+M/cF4GOxc6OQQCdz4w9w A9y3xYdAuFpdD/qITH26PdE118OcLqOnN4FJQwFWf/ocOEYjgY6xtXt2O V5UcdF/BpvPIf+DcOEEIrWOLdi5u7O6/mmmnYKimt2C7rAobMLzqYw5PI Uie7f+TOBb6/N4zLuCdZ2p1xhQIFHuPekDcYhW6/Ve3e/SPjUpRJvBK7/ R+eCFhlm9XRqX7SPa9W/mJ5uThBKnDGu724yp0O2rwtF9Xo/ZEUQfMlXP g==; X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="168397639" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Jul 2022 14:26:20 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 18 Jul 2022 14:26:09 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 18 Jul 2022 14:26:07 -0700 From: Horatiu Vultur To: , CC: , , , , , , "Horatiu Vultur" Subject: [PATCH 1/3] ARM: dts: lan966x: Add gpio-restart Date: Mon, 18 Jul 2022 23:29:19 +0200 Message-ID: <20220718212921.1506984-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220718212921.1506984-1-horatiu.vultur@microchip.com> References: <20220718212921.1506984-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The pcb8291 can be rebooted by toggling the GPIO 56. Therefore enable this in DT. Signed-off-by: Horatiu Vultur --- arch/arm/boot/dts/lan966x-pcb8291.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan9= 66x-pcb8291.dts index d56d2054c38d..02fbf7371a8d 100644 --- a/arch/arm/boot/dts/lan966x-pcb8291.dts +++ b/arch/arm/boot/dts/lan966x-pcb8291.dts @@ -16,6 +16,12 @@ chosen { aliases { serial0 =3D &usart3; }; + + gpio-restart { + compatible =3D "gpio-restart"; + gpios =3D <&gpio 56 GPIO_ACTIVE_LOW>; + priority =3D <200>; + }; }; =20 &gpio { --=20 2.33.0 From nobody Sat Apr 18 04:21:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CB77C433EF for ; Mon, 18 Jul 2022 21:26:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234781AbiGRV01 (ORCPT ); Mon, 18 Jul 2022 17:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233216AbiGRV0W (ORCPT ); Mon, 18 Jul 2022 17:26:22 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B76329818; Mon, 18 Jul 2022 14:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658179582; x=1689715582; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Y70GGaW6BDagLax0/EWabZmkNJ5Tl6nypTS5nqiDkeQ=; b=QKVC0KyPk+Gasw6Os4+5vEtOOH+fXGExcK9PKR6+zHIvQxOH5KR28Lwn BYNmU2So6u2sm5REBhAt05cfGdQbAW6t8HKRyP76aZfZ7dTDLbKRA/1PT 5+oAGxp60nkl1v0n990fZDn9f+IWwkdR6yjn29QjjCWBr3J2EEniwFt8W avsrpNihMH1ZszKpF7JEcRI3jv0mrY4fQEepg5r1jDPFYfwforUNIiHsu QpZXJdOmgpjmgHBYMx1FvoFSg/0q6UI2Shv2Bl74vS8rj040CjYABu1YA PkPPmV2qeQyxDzg/XP4i9ibtltxVTcBHmUFVYH4BajFEF2xmaquK14oNH Q==; X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="168397642" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Jul 2022 14:26:20 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 18 Jul 2022 14:26:11 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 18 Jul 2022 14:26:09 -0700 From: Horatiu Vultur To: , CC: , , , , , , "Horatiu Vultur" Subject: [PATCH 2/3] ARM: dts: lan966x: Disable can0 on pcb8291 Date: Mon, 18 Jul 2022 23:29:20 +0200 Message-ID: <20220718212921.1506984-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220718212921.1506984-1-horatiu.vultur@microchip.com> References: <20220718212921.1506984-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On pcb8291, can0 and the network driver share some of the GPIOs so only 1 device can be active. Therefore disable can0 as we want to enable the network driver. Signed-off-by: Horatiu Vultur --- arch/arm/boot/dts/lan966x-pcb8291.dts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan9= 66x-pcb8291.dts index 02fbf7371a8d..2cb532aa33f0 100644 --- a/arch/arm/boot/dts/lan966x-pcb8291.dts +++ b/arch/arm/boot/dts/lan966x-pcb8291.dts @@ -30,18 +30,6 @@ fc3_b_pins: fc3-b-pins { pins =3D "GPIO_52", "GPIO_53"; function =3D "fc3_b"; }; - - can0_b_pins: can0-b-pins { - /* RX, TX */ - pins =3D "GPIO_35", "GPIO_36"; - function =3D "can0_b"; - }; -}; - -&can0 { - pinctrl-0 =3D <&can0_b_pins>; - pinctrl-names =3D "default"; - status =3D "okay"; }; =20 &flx3 { --=20 2.33.0 From nobody Sat Apr 18 04:21:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D7A1C433EF for ; Mon, 18 Jul 2022 21:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234667AbiGRV0V (ORCPT ); Mon, 18 Jul 2022 17:26:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233216AbiGRV0T (ORCPT ); Mon, 18 Jul 2022 17:26:19 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E47442F011; Mon, 18 Jul 2022 14:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658179578; x=1689715578; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4RlVufiXTHzC4WPLNtwom5sZQqrDoICj4LD/vo1jP8Y=; b=UVQ62QVowMISA1vuuJe3dy8L+yymAzL65HSpvrSoX6LpPcOCo6Lcn3gw 2Lg4KlV/7gJKIhPP8BCHjguTzsFOcNKyfAE3NB1QxpSJq/qUPAm6Kpish NNR+E1W81FSRX6jhYrpacsF/AsdU3d5qNetQcayenNa3a4eAyLxZGdS7M zJ00khBmHAgC+pQUsCfAVRvv1+TAfBFpb5rRUE0Dzdlp9oQDp0h2mo1EP k3blxkRyUn2V9gEMX7nPuoIP6umTLRMDIuiH+1laHLxplScY/0rYm1+kJ s8Io1ZGnWRAXkP5MnAp1OHleYldsCRBdbE1hv/l2RGILqlKXUYaXaYftc w==; X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="105020709" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Jul 2022 14:26:17 -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.2375.17; Mon, 18 Jul 2022 14:26:13 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 18 Jul 2022 14:26:11 -0700 From: Horatiu Vultur To: , CC: , , , , , , "Horatiu Vultur" Subject: [PATCH 3/3] ARM: dts: lan966x: Enable network driver on pcb8291 Date: Mon, 18 Jul 2022 23:29:21 +0200 Message-ID: <20220718212921.1506984-4-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220718212921.1506984-1-horatiu.vultur@microchip.com> References: <20220718212921.1506984-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The pcb8291 has 2 ports that are connected to the internal ports of the switch. Enable them in DT. Signed-off-by: Horatiu Vultur --- arch/arm/boot/dts/lan966x-pcb8291.dts | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan9= 66x-pcb8291.dts index 2cb532aa33f0..d890e6fcdbae 100644 --- a/arch/arm/boot/dts/lan966x-pcb8291.dts +++ b/arch/arm/boot/dts/lan966x-pcb8291.dts @@ -4,6 +4,7 @@ */ /dts-v1/; #include "lan966x.dtsi" +#include "dt-bindings/phy/phy-lan966x-serdes.h" =20 / { model =3D "Microchip EVB - LAN9662"; @@ -32,6 +33,40 @@ fc3_b_pins: fc3-b-pins { }; }; =20 +&mdio1 { + status =3D "okay"; +}; + +&phy0 { + status =3D "okay"; +}; + +&phy1 { + status =3D "okay"; +}; + +&switch { + status =3D "okay"; +}; + +&serdes { + status =3D "okay"; +}; + +&port0 { + status =3D "okay"; + phy-handle =3D <&phy0>; + phy-mode =3D "gmii"; + phys =3D <&serdes 0 CU(0)>; +}; + +&port1 { + status =3D "okay"; + phy-handle =3D <&phy1>; + phy-mode =3D "gmii"; + phys =3D <&serdes 1 CU(1)>; +}; + &flx3 { atmel,flexcom-mode =3D ; status =3D "okay"; --=20 2.33.0