From nobody Sat Apr 18 01:23:14 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 B9E47C433EF for ; Tue, 19 Jul 2022 20:08:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240105AbiGSUIs (ORCPT ); Tue, 19 Jul 2022 16:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240058AbiGSUId (ORCPT ); Tue, 19 Jul 2022 16:08:33 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22BFC25E9C; Tue, 19 Jul 2022 13:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658261312; x=1689797312; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yTMxPZT11uI8z3/idJoE8G2YYGC0jI6IgeTomr6k1+k=; b=nvAk/ba8gJHqttCB/+GXJ7cNPc7q/leM5XrtdNglSGOuVQbiRbkHmvR3 ddufeNxhcmFQJ/GB+dkG72dquxltHJmtL5/FylTV5u7GYCc1efzgu6JNE hXRAT4dvgp++AJyJp0wEjTTT6RdKNgqJaSW2VUY7GvRBt1OXLcp29g2I4 QBbjRQD6BC2mPvYxJX33TP0k/iKMnxR5Nzh5HXig0SiltjdGfjwnAjFUm FOAUzz09Qigdb6Q37yAO+sDseQPhLLK6LljG2+GM3gDsTtfCiA0gUz3Pd u/B3pJ3FRlN0YIsw+9e9FhJX5Sjd4Skh4VYUQadoB9MZUm9pH0yGbJZ64 A==; X-IronPort-AV: E=Sophos;i="5.92,285,1650956400"; d="scan'208";a="105217557" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Jul 2022 13:08:32 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Tue, 19 Jul 2022 13:08:32 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 19 Jul 2022 13:08:30 -0700 From: Horatiu Vultur To: , CC: , , , , , , "Horatiu Vultur" Subject: [PATCH v2 1/3] ARM: dts: lan966x: Add gpio-restart Date: Tue, 19 Jul 2022 22:11:56 +0200 Message-ID: <20220719201158.1696168-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220719201158.1696168-1-horatiu.vultur@microchip.com> References: <20220719201158.1696168-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 01:23:14 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 EA5CFC43334 for ; Tue, 19 Jul 2022 20:08:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240087AbiGSUIu (ORCPT ); Tue, 19 Jul 2022 16:08:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236214AbiGSUIg (ORCPT ); Tue, 19 Jul 2022 16:08:36 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 901E127164; Tue, 19 Jul 2022 13:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658261315; x=1689797315; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KkRggwRSYjtJlZ7x4TNs2Imt5awOZ5Jigpm8UEZYnDE=; b=NAlnXpH+w39u/CQn5Yu8NaMM7iXnunkxDca5b6eiEJzJ8K0aRHSPJpo3 VVlfBH9isuplP2sxyJDOUaqR6+Qpzhkd5B/HdZ0eJMiK7sqm/JUOzX35I rgvJSSw5taV1EFlBFzVlbCUzziWd5gS0rTCsFp5A0pB7AUvABQveIM0eS 2lIpp4ZumNZwbHl08I/Cm4HCtRjCJQMO1jheLI9BzeFplHRCJN9Tfxbsb FtXL12IFVlzXBdOKKvzocjrfbNQ1P1cq0Ppgwsduk1+SClpK8VYE4v703 XnbALJ3Y23IYP7Ko7KRYKoBorT3JICYrP0NFUF3+cgt7r/xXXHm08pnE/ g==; X-IronPort-AV: E=Sophos;i="5.92,285,1650956400"; d="scan'208";a="105217570" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Jul 2022 13:08:35 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 19 Jul 2022 13:08:34 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 19 Jul 2022 13:08:32 -0700 From: Horatiu Vultur To: , CC: , , , , , , "Horatiu Vultur" Subject: [PATCH v2 2/3] ARM: dts: lan966x: Disable can0 on pcb8291 Date: Tue, 19 Jul 2022 22:11:57 +0200 Message-ID: <20220719201158.1696168-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220719201158.1696168-1-horatiu.vultur@microchip.com> References: <20220719201158.1696168-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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan9= 66x-pcb8291.dts index 02fbf7371a8d..ab80558de259 100644 --- a/arch/arm/boot/dts/lan966x-pcb8291.dts +++ b/arch/arm/boot/dts/lan966x-pcb8291.dts @@ -41,7 +41,7 @@ can0_b_pins: can0-b-pins { &can0 { pinctrl-0 =3D <&can0_b_pins>; pinctrl-names =3D "default"; - status =3D "okay"; + status =3D "disabled"; /* Conflict with switch */ }; =20 &flx3 { --=20 2.33.0 From nobody Sat Apr 18 01:23:14 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 614E7C433EF for ; Tue, 19 Jul 2022 20:08:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240168AbiGSUIx (ORCPT ); Tue, 19 Jul 2022 16:08:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240071AbiGSUIh (ORCPT ); Tue, 19 Jul 2022 16:08:37 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4268E27164; Tue, 19 Jul 2022 13:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658261317; x=1689797317; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FasC4V80K7TyyLJEQ5bRDbhHy1iDPFBH5XCAovlrHe8=; b=vd4UxhSwLJ4lkFzHkNweQqm1NkvrT3pfEYqfhjpsTUQFcQd3FKb/LEwc KV9JlI0L3AOsqiQBqD8idujCiBrnRGnSGnpJZy7oksv6NmnmYDNE4li7Q EpE+GVdFUeq+imzAXQUvPmMH9GXgeX80+mNZpuox8cRErR6hLXjnyMTKV cu6Pmh29uU6a13ZcuEKZMzYH4rOnv1DEOmep0jSxYfnHEawDT+zJ0bGKq /CF8WSCs60qvVnx7xmJ3jrqk5tTZLg/YOyTYgsG8CGzxir20+jIs0v1U3 eV4Ny/0+aTDHEsTadFN1LswLgfdwL+/5fL7SwLdfntINlxAMIFzH8pW+O Q==; X-IronPort-AV: E=Sophos;i="5.92,285,1650956400"; d="scan'208";a="105217576" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Jul 2022 13:08:36 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 19 Jul 2022 13:08:36 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 19 Jul 2022 13:08:34 -0700 From: Horatiu Vultur To: , CC: , , , , , , "Horatiu Vultur" Subject: [PATCH v2 3/3] ARM: dts: lan966x: Enable network driver on pcb8291 Date: Tue, 19 Jul 2022 22:11:58 +0200 Message-ID: <20220719201158.1696168-4-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220719201158.1696168-1-horatiu.vultur@microchip.com> References: <20220719201158.1696168-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 ab80558de259..228ae16e4737 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"; @@ -55,6 +56,40 @@ usart3: serial@200 { }; }; =20 +&mdio1 { + status =3D "okay"; +}; + +&phy0 { + status =3D "okay"; +}; + +&phy1 { + 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)>; +}; + +&serdes { + status =3D "okay"; +}; + +&switch { + status =3D "okay"; +}; + &watchdog { status =3D "okay"; }; --=20 2.33.0