From patchwork Thu Apr 27 19:56:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 13225721 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 A85E2C77B73 for ; Thu, 27 Apr 2023 19:57:52 +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:Subject:MIME-Version:Message-Id:Date: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=Pi+rH7UuWsAhyNhEF/jZUDn7ZsvGP2wZiekfsagpysU=; b=oITCU4eWZPhwTz D3d1thAQWioAoWHbi80D1lT7ATsYU3M2CeXhoOVFAlKbSejrZ+JavaKFOVDxSa39t6klZ/JjOcvYW Hh05mQTLSa/uxjr+9h0cngUyK86rvMiD1XG2+Vb0Zh7/XhX3s4iBiAC03faq1UchMTwePrf7KnGbH 2KlGyr8uHRmWNJTFRa62oIclyMjKWQndcknkC5J7hTayeqP/pgjctcVI7umRyInHRs3VS+m1bgFt+ 9pCbvOHVlBo0tQ9aYr4vd+oWRKfyQ7bGTdvBhr8MISzBLoOmeM9ec3AgZ4qI1IeqpL6ff8ItaF8AI CRnkJanS16WpfzH/jVlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ps7je-007NTr-39; Thu, 27 Apr 2023 19:56:58 +0000 Received: from mail.hugovil.com ([162.243.120.170]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ps7jc-007NTS-1Z for linux-arm-kernel@lists.infradead.org; Thu, 27 Apr 2023 19:56:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Cc:To :From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=wor8RugYSIQvGy88vbz6N5i586hb3K3HJiPcgNEMEes=; b=M T72ECsm2RFlWogw8EGn4a6KtLO6uq8u4tXRGYJ3oB3sNTWn7ijn914Mmh0PFdbowJAHeFBixoIGtA TeqH8bccQtKJFwcmjJ+8bMAvtj5VRNHd1dWGo36V6uLtWpOHZwY5rx0OW3F4P9lTGdVvp+z92pf52 h67p0yjgxKu/1f0I=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:57646 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1ps7jV-0002hU-Am; Thu, 27 Apr 2023 15:56:49 -0400 From: Hugo Villeneuve To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Hugo Villeneuve , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Thu, 27 Apr 2023 15:56:38 -0400 Message-Id: <20230427195639.2718734-1-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com Subject: [PATCH] imx8mn-var-som: dts: add SOM EEPROM X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230427_125656_529158_6B32B121 X-CRM114-Status: UNSURE ( 9.67 ) 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: Hugo Villeneuve The 4Kbit EEPROM located on the SOM contains hardware configuration options, manufacturing infos and ethernet MAC address. Signed-off-by: Hugo Villeneuve --- arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi index 9052b0d4b5b4..3ed396f41e46 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi @@ -30,6 +30,10 @@ reg_eth_phy: regulator-eth-phy { gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + aliases { + eeprom_som = &eeprom_som; + }; }; &A53_0 { @@ -223,6 +227,12 @@ ldo6_reg: LDO6 { }; }; }; + + eeprom_som: eeprom@52 { + compatible = "atmel,24c04"; + reg = <0x52>; + pagesize = <16>; + }; }; &i2c3 {