From patchwork Fri Jun 21 12:13:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13707474 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 01858C2BA1A for ; Fri, 21 Jun 2024 12:16:45 +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: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:In-Reply-To:References:List-Owner; bh=JQaZI9fpvwG+ROtQAzdvvLqPBo4Ng8tGiVUk5fqECfM=; b=29Fmj+8GREYFLRdRIkhiXL0cqH QTX1GkFYLbzO2TH3Mr+DDAQwYds8BCImsj/VZeBtgN0aP+ie26FFpTNr4RyIe5bG94H8ILbTcob+Y RtgFPMYn2d7XkTpJnEo5nE/OUxmICbxpORHZ1Dam2BA+KKU1a+CgxzjIm0P3usK8HsmZqF/SqWf+z DuEc0RWLUlYptSDg08+QFWPvY4P4K3c4lUmqnJzs1DUGr61yy2E7eedJmHIaO0ZVYUbW5R5LUrBN1 HSE2tHRtwNAo3N/spO+9fr3H7l1WoZbXrIZCZV3M/aovXlLT6W+EI33xcUpAUIkk2OP/B6iBEgjj+ EzAIteAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKdBu-000000094zt-33VK; Fri, 21 Jun 2024 12:16:30 +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 1sKdBq-000000094yS-0aBQ for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2024 12:16:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1718972186; x=1750508186; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RrIkAfeF7Vo501++09i2l4ssWDTawSjUb/hFqT0/uEU=; b=azfX01yHOZvsK6ifAdoHH2/AZGRJSgWCt5wjePIlLYwf3B7+W/0jda8F IQiFYwQMcPhYXNTsONS9j37Dilvrz8feda3eBHRxeagETXprbQGo2z1FL Zus8SCLUsUgfjENie2n4QtCeJ19ZtgEOZP8bXxHUqp7Qdhpt2lD1AFili aqeS1Wwdb7WS0DY8Zk6OO4fqXuxjBGIcKgz5fgycK+XDm8e9149t3HJxT ueO6bRnz4Cz/29JNeQ7Grch+gt3moQs4tue4Kd0RclWntHFIRsV2fWMyq rh1hTw2B7DaBtiUnQNqMSHL6cEH9cYcDkQ+RsGaX6IaF+GrV05ljpHen/ g==; X-CSE-ConnectionGUID: gjF6r6nLSZ2qzzloD0+0Lw== X-CSE-MsgGUID: fzsivhhzSAyAVZBnb0DqIA== X-IronPort-AV: E=Sophos;i="6.08,254,1712646000"; d="scan'208";a="28341527" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 21 Jun 2024 05:16:25 -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.2507.35; Fri, 21 Jun 2024 05:16:01 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 21 Jun 2024 05:15:58 -0700 From: Andrei Simion To: , , , , , , , , CC: , , , , Andrei Simion Subject: [PATCH v2 0/3] Read MAC address through NVMEM for sama7g5ek Date: Fri, 21 Jun 2024 15:13:37 +0300 Message-ID: <20240621121340.114486-1-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240621_051626_733506_C1032D95 X-CRM114-Status: UNSURE ( 8.65 ) 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 This series proposes to add EEPROM support and reading MAC addresses through NVMEM (via Devicetree) for sama7g5ek: - Add in DT bindings document the EEPROM compatibles : "at24,mac02e4" and "at24,mac02e6" - Update to the driver to support "at24,mac02e4" and "at24,mac02e6" and adjusting offset for those 24AA025E{48, 64}. - Added the nodes in devicetree for eeproms where are stored eui48 MAC, and update gmac nodes to read the MAC via devicetree through NVMEM. ------------------------------------------------------------------ v1 -> v2: * dt-bindings: eeprom: at24: Add at24,mac02e4 and at24,mac02e6 - change pattern into "^atmel,(24(c|cs|mac)[a-z0-9]+|spd)$" to keep simpler * eeprom: at24: avoid adjusting offset for 24AA025E{48, 64} - no change * ARM: dts: at91: at91-sama7g5ek: add EEPROMs - remove unnecessary #address-cells #size-cells ------------------------------------------------------------------ Andrei Simion (1): dt-bindings: eeprom: at24: Add at24,mac02e4 and at24,mac02e6 Claudiu Beznea (2): eeprom: at24: avoid adjusting offset for 24AA025E{48, 64} ARM: dts: at91: at91-sama7g5ek: add EEPROMs .../devicetree/bindings/eeprom/at24.yaml | 10 ++- .../arm/boot/dts/microchip/at91-sama7g5ek.dts | 40 ++++++++++ drivers/misc/eeprom/at24.c | 73 +++++++++++-------- 3 files changed, 89 insertions(+), 34 deletions(-) base-commit: b992b79ca8bc336fa8e2c80990b5af80ed8f36fd