From patchwork Wed Jun 19 07:22:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13703484 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 69069C27C53 for ; Wed, 19 Jun 2024 07:24:44 +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=xzOJAyoQ/QFEZryooc7qVkr1hksAwOFGhVN2I2kpnZk=; b=Ppdh8jyBHevDOX5V4WssLmWopJ R6UJkWUKAvv0QU+ulOo/ICyzHFYLi1FnwBUUxyulXiarFTypKmaFMmarqnxN1HSCPkbOjTr0a91Fq 56HVxRBS+poHTz0F9RUYjPPUHNu/hVadRI+JUuRAM/JxR9Amt73XkZ50LTyUJvCFdY308emmL2cqp 0+JL8Xnhu/shlOjLDPee56nAvxEMhGNQblVu109mFaxt/ANLNIPIwFFHVUkvn0tByIMxf4GtEQBwW GckpBgWKgwCvBJSHSvggeua/12Cl0bv8GS14WbXNVN8PT/93KuSCLnyT4hmewgM9RH9W4a9l5WCVS RxcKtt+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJpgA-00000000BQl-2y3A; Wed, 19 Jun 2024 07:24:27 +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 1sJpfY-00000000B1v-16wx for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 07:24:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1718781828; x=1750317828; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mJ8HIY8U2cLFLbqLZFrEvXfz1+lBDpS+ZmL57yB9ylc=; b=MF1gjFqEKeiNlw1mU/LkohEimCUi6FgEgoBYjY/biSJs26pJaldkQwZ2 LykEerkfZg7+vVAgZiJVNL8P4AQGD/JG1KM+gJ8D2MDprpct2i9Rw2MGr 1HhYzO1ZNWQ6lqDa0KlXQBXP0nWF+T84imRczEsbHMq9xNAMcfBW5tjHb UtWBOQghOFIaWZvMZbfXuAIKt2H+XIhBQY9VEo4lzW98063jphJT+CyHS YL7o13SkQFA6hVchSlr/b1O2Ec2/bcmKC9KAPse5lBfYLSCSnt8cSCsiO FzFg1I44DrukMnz/CNVipYIZ/47MNdNXMQz9HYv3oymlW+Ob4yedA/3mr A==; X-CSE-ConnectionGUID: wz26KGp1QTiPY/s2OVV85w== X-CSE-MsgGUID: 3T4FFeIwTpqEMkGM19I4FA== X-IronPort-AV: E=Sophos;i="6.08,249,1712646000"; d="scan'208";a="30691794" 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:31 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.35; Wed, 19 Jun 2024 00:22:58 -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:22:55 -0700 From: Andrei Simion To: , , , , , , , , CC: , , , , Andrei Simion Subject: [PATCH 0/3] Read MAC address through NVMEM for sama7g5ek Date: Wed, 19 Jun 2024 10:22:28 +0300 Message-ID: <20240619072231.6876-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-20240619_002348_377654_2D6D8C25 X-CRM114-Status: UNSURE ( 8.05 ) 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. 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 | 44 +++++++++++ drivers/misc/eeprom/at24.c | 73 +++++++++++-------- 3 files changed, 93 insertions(+), 34 deletions(-) base-commit: 0c52056d9f77508cb6d4d68d3fc91c6c08ec71af