From patchwork Wed Jun 19 07:22:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13703528 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 73642C27C53 for ; Wed, 19 Jun 2024 08:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=f0CDvNLUrgX0aNAbi70O3YMdgj85iP/cvwUk9O+kuto=; b=F4VFnrHJOJrS+mnHQV+6DKKFVM g8OTFe/WsVhhaYcxY5VpMnv8g9du1nGqnh9iHR+9FBeeo0U5h0CbwCfmHOFyRKhGnlM1nxOQsmaph U/cnaDLj1yJWkeYOPyRIKvHF72ifrmwGVbKZLxEZ1mPPbnUOOBIU8Fuat+ESu1/UboXI0KSCqpY6K GMjfMje/1PgqB0T223QVl+6nUMHQLQVREY4letZ5DNl84eF7k9OpIHmCEkaVOFwtmcSTHXeJXX4UD CMVvwTXBcKtpOg9R1R60ISmUgnoc07Nwg9Dh9xRGiJQvoLhvVi0DBLTn4gVLzPgl0iGsDC03fAshT DebLtP9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqjQ-00000000OR1-1sIi; Wed, 19 Jun 2024 08:31:52 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJpfG-00000000B1v-2b7j for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 07:23:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1718781810; x=1750317810; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5MpWaJAI0rtIb4sA3J2QYApRt6QQBb2cDKxrZCU19SQ=; b=aWPwRhzoGbVg0Rak57u0S8omIusTQHDtWjnrFExTotLyinwR8dqCrSxK PXFCfZb5Q8WGojrR5kTDb12JSdh+T68n0q0yPVAprmAUcX93m8IeIFofb OfTAiJG5eiECDLKJ4CbBtu6kZ16H7X1KqFg3B1amrhzEZOtftcIeprUen JrGsppHTmzexRRJ0QLGEQiwwL3GaQD6a1Szhu2eBVRERr94ySZtf+Tb66 ZNFkWV2zFdTV4ISivK76YGBmcP02rqq74YrQDyra1JmerBwhn6qOk+gKN VFMKzMBm7BTPyPb57VfZpYg0yuysUkAZPnIXKXlcZKadbGqzuu6r0O7VX w==; X-CSE-ConnectionGUID: HPQiKEpwSfeQRjMG7YWokQ== X-CSE-MsgGUID: csf1+pZ1Q8i6yOGT+zZgew== X-IronPort-AV: E=Sophos;i="6.08,249,1712646000"; d="scan'208";a="30691772" 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-AES128-GCM-SHA256; 19 Jun 2024 00:23:25 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.35; Wed, 19 Jun 2024 00:23:05 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 19 Jun 2024 00:23:02 -0700 From: Andrei Simion To: , , , , , , , , CC: , , , , Claudiu Beznea , Andrei Simion Subject: [PATCH 2/3] ARM: dts: at91: at91-sama7g5ek: add EEPROMs Date: Wed, 19 Jun 2024 10:22:30 +0300 Message-ID: <20240619072231.6876-3-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619072231.6876-1-andrei.simion@microchip.com> References: <20240619072231.6876-1-andrei.simion@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_002331_176744_B29CDC06 X-CRM114-Status: UNSURE ( 9.82 ) 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 From: Claudiu Beznea Add EEPROMs and nvmem-layout to describe eui48 mac address region. Signed-off-by: Claudiu Beznea Co-developed-by: Andrei Simion Signed-off-by: Andrei Simion --- .../arm/boot/dts/microchip/at91-sama7g5ek.dts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts index 20b2497657ae..66e8c8258684 100644 --- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts @@ -403,6 +403,46 @@ i2c8: i2c@600 { i2c-digital-filter; i2c-digital-filter-width-ns = <35>; status = "okay"; + + eeprom0: eeprom@52 { + compatible = "atmel,24mac02e4"; + reg = <0x52>; + #address-cells = <1>; + #size-cells = <1>; + size = <256>; + pagesize = <16>; + vcc-supply = <&vdd_3v3>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom0_eui48: eui48@fa { + reg = <0xfa 0x6>; + }; + }; + }; + + eeprom1: eeprom@53 { + compatible = "atmel,24mac02e4"; + reg = <0x53>; + #address-cells = <1>; + #size-cells = <1>; + size = <256>; + pagesize = <16>; + vcc-supply = <&vdd_3v3>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom1_eui48: eui48@fa { + reg = <0xfa 0x6>; + }; + }; + }; }; }; @@ -440,6 +480,8 @@ &pinctrl_gmac0_mdio_default &pinctrl_gmac0_txck_default &pinctrl_gmac0_phy_irq>; phy-mode = "rgmii-id"; + nvmem-cells = <&eeprom0_eui48>; + nvmem-cell-names = "mac-address"; status = "okay"; ethernet-phy@7 { @@ -457,6 +499,8 @@ &gmac1 { &pinctrl_gmac1_mdio_default &pinctrl_gmac1_phy_irq>; phy-mode = "rmii"; + nvmem-cells = <&eeprom1_eui48>; + nvmem-cell-names = "mac-address"; status = "okay"; /* Conflict with pdmc0. */ ethernet-phy@0 {