From patchwork Thu Nov 9 13:11:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Sain X-Patchwork-Id: 13451032 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74105C4332F for ; Thu, 9 Nov 2023 13:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gvVCWk5aON0VjCY27LIHOmjQ8bOdL87JIiS9/Yv2TyQ=; b=GCgvEZZruYPx1Y FLuM2fVOVdHJCMWz5jnPRsrYhrhYcF6i6kdeB1y8SFqsa7QqAHbm1if2iSn4manOjI8Gprr401Jwm cGmOkIhVaZW0QIA/9FvO7F/IZ8LRYzRxFLbg10f2VWHeHDiYmdxOOpRrdwv7VP9SHWZtiSatTb5Ts 3qajQU4csfer07Ka5QfsgV4MW2Yu5Q2GBrc8n67DzysH9kTujW1KrvsXlmVq+V/GyiugZ6ww8czIo JYVgCSi27tdCUfRUpB/Y9k+RXkplLwqmcH8DkhxC+zdRw3aQqslZ0YYzHzbWfg7lKS0Z9CgM9Ga/0 oUN0SS5zaAEy8c3sSpWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r14pm-006N5u-14; Thu, 09 Nov 2023 13:12:34 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r14ph-006N2p-0D for linux-arm-kernel@lists.infradead.org; Thu, 09 Nov 2023 13:12:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1699535549; x=1731071549; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LUC4erbno/H52lv94xN12LQvMzbnfDlo0AEr+xiw4UU=; b=O7LBBUMfWUTXhj5JDaTWFMUDEW0EVbhrx22mXJvBLzej+CQDZhOMdCGL EKdxbbh2Q1XNdOKAuAtGJF/V3Cjs4MD2b9LBxNfnUydfQRDaiK76MkJ9p ZwloWLvOhNg7Y0HhsmiQlDMYXrVdxzQbMAK860M0mrKjqCozDcG6EpOPn nuhrzHbWCXIaUQAGph1//RiGCnMv0qC2faxlcyA7MjjkiB1ET/RnPRRBu INb8aFUpNjSHAvtl3xFClmGEFh7kwfGzwfgARj1INw0isxiSTgmTJaaA9 w900JBwI3nVBJYsj1m6SCYSzFNNcpxwc/yRSIznaUXUCAaGXoZJXlBM7B A==; X-CSE-ConnectionGUID: uHNDA70zTMalMOg8YTS6DA== X-CSE-MsgGUID: a58n0SiRTFib0Qv2nP1ZiA== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,289,1694761200"; d="scan'208";a="11697774" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Nov 2023 06:12:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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.2507.21; Thu, 9 Nov 2023 06:12:08 -0700 Received: from virtualbox.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.21 via Frontend Transport; Thu, 9 Nov 2023 06:12:06 -0700 From: Mihai Sain To: , , , , , , , , CC: , Mihai Sain Subject: [PATCH 1/2] ARM: dts: at91: sam9x60_curiosity: Add IRQ support for ethernet PHY Date: Thu, 9 Nov 2023 15:11:48 +0200 Message-ID: <20231109131149.46397-2-mihai.sain@microchip.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231109131149.46397-1-mihai.sain@microchip.com> References: <20231109131149.46397-1-mihai.sain@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231109_051229_165981_7A4F50F7 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add interrupt support for ethernet phy subnode. Add PB8 definition to macb0 pinctrl. Signed-off-by: Mihai Sain --- arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts index 83372c1f291b..c6fbdd29019f 100644 --- a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts +++ b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts @@ -249,6 +249,8 @@ &macb0 { ethernet-phy@0 { reg = <0x0>; + interrupt-parent = <&pioB>; + interrupts = <8 IRQ_TYPE_LEVEL_LOW>; }; }; @@ -353,6 +355,7 @@ AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */ AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */ AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */ AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */ + AT91_PIOB 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE /* PB8 IRQ GPIO */ AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */ AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */ }; From patchwork Thu Nov 9 13:11:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Sain X-Patchwork-Id: 13451031 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96F13C41535 for ; Thu, 9 Nov 2023 13:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7XEZSNSYueYTp2pVuWcJUHMm0dhbPP2299F6Ou4n8uw=; b=yST38gGqyMPldR KDJwG26t4E0mv4UoFXON4S/A7ITpTRiFHtyla/6S7U7jI30jfE9GWzw7gVnLTgIEdbwETfOrl/sn6 jzUAm6AKSIzonpNMI6jhfWmzVgIGPdkYRbq4gxtVmjWNlhinvsiOn2usk3vlBJ7U7sX0crLLrGm0j i4Q1vhDG6yjo2fYDJvNKsARuK6n6CaUfipL+4C4WRP8UleEgCvC4GvO2LPX/Bdhm8RHCNfvU0cOZ1 YJJKLeLWqxHoL2OKeRd5wGGzJW41d5JciVyU+x/pCCLROiT4B5EL6f6D3mcRPPtC6t15u2ZgqSp68 ac8MaiYFvcCJSbNfb7lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r14pl-006N5g-2b; Thu, 09 Nov 2023 13:12:33 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r14pg-006N4P-1F for linux-arm-kernel@lists.infradead.org; Thu, 09 Nov 2023 13:12:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1699535548; x=1731071548; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EHI8k/5oqb4BHAwxDhenRXq4iJ/ty304Tj8Ha46zV/Q=; b=Rb9TTMWH6n8/Ckz1jFmxwveA/vnHOP0arftnrPjUXdDsQ7vDxG7YECk7 t8PJ5rKPPvxhP16CVN/jf2UsSNGZCCEk2EQX60TycTTLVczg9bCD3wHI4 FTIFAqwnJGxHoPsVSap4bh0etWVz8rQwAQGOwP2IkP+gOHD83LpFpNnID lqoXeDoZHIGnGJecWu0osh9efHmuZ4o/UEVPdANrebTKh8YGtQiE5HpiB oALCHHHIjCCWuop6s7CFVloE4S5XB/a+KXmBz/hjcQbBeToYzNOIG62lM dQSRLbvU4bzMswJsqQSERQd6ofodET9K5Zw3qkN8CwaJ8gx9RwDy0sUrO Q==; X-CSE-ConnectionGUID: b8HNUWnxTBWR9Gotu1JdxA== X-CSE-MsgGUID: AQqo8MgfRIeclZqLIzPIWQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,289,1694761200"; d="scan'208";a="11697747" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Nov 2023 06:12:18 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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.2507.21; Thu, 9 Nov 2023 06:12:11 -0700 Received: from virtualbox.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.21 via Frontend Transport; Thu, 9 Nov 2023 06:12:09 -0700 From: Mihai Sain To: , , , , , , , , CC: , Mihai Sain Subject: [PATCH 2/2] ARM: dts: at91: sam9x60ek: Add IRQ support for ethernet PHY Date: Thu, 9 Nov 2023 15:11:49 +0200 Message-ID: <20231109131149.46397-3-mihai.sain@microchip.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231109131149.46397-1-mihai.sain@microchip.com> References: <20231109131149.46397-1-mihai.sain@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231109_051228_486000_C787758C X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add interrupt support for ethernet phy subnode. Add PB8 definition to macb0 pinctrl. Signed-off-by: Mihai Sain --- arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts index 5cd593028aff..f3cbb675cea4 100644 --- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts +++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts @@ -292,6 +292,8 @@ &macb0 { ethernet-phy@0 { reg = <0x0>; + interrupt-parent = <&pioB>; + interrupts = <8 IRQ_TYPE_LEVEL_LOW>; }; }; @@ -465,6 +467,7 @@ AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */ AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */ AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */ AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */ + AT91_PIOB 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE /* PB8 IRQ GPIO */ AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */ AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */ };