From patchwork Tue Apr 1 16:13:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Wanner X-Patchwork-Id: 14035122 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 BBB65214A80; Tue, 1 Apr 2025 16:13:31 +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=1743524013; cv=none; b=lavQPDz0tNpF4hip2NOP3gX0X33I3o56GcMY3GxUjMn387UaqFLvtO4jTkvMRZN1D8piht9qOyuMlHkrxPQsOyD5qc1FZqL03zNot/I7TJhC9KBWPvwWPH3qKsIXfmz9TFb0o6YFJMXQSabD2QtfYoj/9dKrd2aEw7dySM/e4ls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743524013; c=relaxed/simple; bh=yIQlV+xSWp6m0A0vkyE28xWvYegA9yXQmu6qD2GvGss=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QifFcOZ6fHCuiBlX6WX4YtOB0XI10YkfrV6Z2gnXR3zEA79oBbqUIuj6WtSKUbQwzJQRBomnxrB6Axy8COMpy5tZQi7+Wn06zc8LnIrhvw6DmIv4lfqiZpm8SFNM0nRtHRP/vvMRWc4u0XRmSkdXdmXH8wq6/h94T70FLUjbrtI= 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=WrJMMAkM; 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="WrJMMAkM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1743524011; x=1775060011; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yIQlV+xSWp6m0A0vkyE28xWvYegA9yXQmu6qD2GvGss=; b=WrJMMAkMMj3BnRGSmbw4hQH2YpZckssG6N3Ln84ylN3HqiQILkvb8HCB BeaVagxgRYr/6g3rsC3vJmbettupWf/dYQTP9bX1R2ZqIypdxdblOaaiF 5oF0W4v47dymgtt4ytRfiClEUQXrP3ABxfxXmdq/suu8bpOx5u1AjxLTz vn/VCiEH1PKO9FiO4wxrfV9q3VRngu+xe+gBHRI1fjNw0O21HI3CkbrNn I4NB/zTPBpHgnrjflvNNJXSDQkD1jSdjcY7d0JxSfW8fcoKC2PAB8Dcnc oFv+2ZQAp+E71KFBC/O7RY7OLc/E7Fo8gJ61qcQyFgmqlpPqLzZvzr7w0 w==; X-CSE-ConnectionGUID: ggLzNIpETriZ0zPViMY9HA== X-CSE-MsgGUID: 2gYnf6TSRa2gsktm+Ip4hg== X-IronPort-AV: E=Sophos;i="6.14,293,1736838000"; d="scan'208";a="39512780" 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-AES128-GCM-SHA256; 01 Apr 2025 09:13:22 -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.44; Tue, 1 Apr 2025 09:13:01 -0700 Received: from ryan-Precision-3630-Tower.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.44 via Frontend Transport; Tue, 1 Apr 2025 09:13:01 -0700 From: To: , , , , , , , , , CC: , , , , , Ryan Wanner Subject: [PATCH 4/6] ARM: dts: microchip: sama7d65: Enable GMAC interface Date: Tue, 1 Apr 2025 09:13:20 -0700 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Ryan Wanner Enable GMAC0 interface for sama7d65_curiosity board. Signed-off-by: Ryan Wanner --- .../dts/microchip/at91-sama7d65_curiosity.dts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts index 30fdc4f55a3b..441370dbb4c2 100644 --- a/arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts +++ b/arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts @@ -105,7 +105,58 @@ &main_xtal { clock-frequency = <24000000>; }; +&gmac0 { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gmac0_default + &pinctrl_gmac0_mdio_default + &pinctrl_gmac0_txck_default + &pinctrl_gmac0_phy_irq>; + phy-mode = "rgmii-id"; + status = "okay"; + + ethernet-phy@7 { + reg = <0x7>; + interrupt-parent = <&pioa>; + interrupts = ; + status = "okay"; + }; +}; &pioa { + pinctrl_gmac0_default: gmac0-default { + pinmux = , + , + , + , + , + , + , + , + , + , + ; + slew-rate = <0>; + bias-disable; + }; + + pinctrl_gmac0_mdio_default: gmac0-mdio-default { + pinmux = , + ; + bias-disable; + }; + + pinctrl_gmac0_phy_irq: gmac0-phy-irq { + pinmux = ; + bias-disable; + }; + + pinctrl_gmac0_txck_default: gmac0-txck-default { + pinmux = ; + slew-rate = <0>; + bias-pull-up; + }; + pinctrl_i2c10_default: i2c10-default{ pinmux = , ;