From patchwork Fri Jun 16 11:11:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13282649 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 4F2EBEB64D7 for ; Fri, 16 Jun 2023 11:11:51 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=n4qfiSjQHwwg7h3I52j+t9MiK/Aly71179sk2u1MKlA=; b=dPxTQNAy2Kg/rR 81zrH2r7PN7nep9qbUudiviQIEhSSbEUvx1TmLtHOGuYXSU+1XvWWQdBA/3yfWcVzVi3+YH7Vormp M/OjdCU/gGSKpObtYmjH/vuLHs+l2C1Ef2rpacmtncw2NDECzc3ySbf4kZxo1bwIqtdvNEqP0/ox4 wSpIMx0VybVH+hLr0N7aWxpg/f7VYhFCkzGhlPzrGhitg6IFxHHxMN5F+2EV6fpdA4D0CkP5ke0vR zm+uwfq0PyglAo5DR+sHd6TONsMvNi2urRZB0tXBSzK7AjXQwCQPmlvBj+N7H883gFtaOfFxtgqBw mDw0gXDzpIIMUU5NPlwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qA7MY-000LTM-0Q; Fri, 16 Jun 2023 11:11:30 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qA7MV-000LSb-2U for linux-arm-kernel@lists.infradead.org; Fri, 16 Jun 2023 11:11:29 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D911C61901; Fri, 16 Jun 2023 11:11:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24BAFC433C0; Fri, 16 Jun 2023 11:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686913886; bh=GKTab9L2VWdXdRBZM/fEy5PbfOwIRgbSHgrdzlJCr9M=; h=From:Subject:Date:To:Cc:From; b=O4eqVxLn/H806pDJrVdHDxLHL4iDEw041a3vg/UMEXb5xz8KJvzNKw+h+3Ag7xy6D WXpg9mLuIPhHw26hOK6qIbOOJxboD8DCTlauxpk/iw4JfTn26G1wYVDP8rcBnTyz/J k8RJcVplot28eZgEpvo1u+4ib4zdHLd8WqELK+c6SAWSjdUdR/RdwDH+e5jrVgXnmb E1tTySH10GYrje8PbcQDZhkrYRbD61ES8YZElJadLcDux1fsh3T2YdYVdkwxQZKFxb QuQFE/RkJlUlTOpchMzFlCKopCRSvmcGYfe/z48kHVrM6Ff1TbV8ZwYZgnhwsu4+7l OhJwvXJETB6Eg== From: Michael Walle Subject: [PATCH 0/2] arm64: sl28: fetch the ethernet addresses from its EEPROM Date: Fri, 16 Jun 2023 13:11:20 +0200 Message-Id: <20230616-feature-sl28-vpd-dt-v1-0-c5458016ba85@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFhDjGQC/x2N0QrCMAwAf2Xk2UBT2RR/RXxI19QVtI6kDmHs3 +32eBzHrWCiWQxu3QoqS7b8KQ3o1ME4cXkK5tgYvPNnN9CASbh+VdBe/orLHDFWpAv3gZynmCK 0MrAJBuUyTnv7Zquiu5hVUv4du/tj2/7zbVqnfgAAAA== To: Catalin Marinas , Will Deacon , Shawn Guo , Li Yang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Michael Walle X-Mailer: b4 0.12.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230616_041127_867230_C491E89B X-CRM114-Status: GOOD ( 10.05 ) 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 After years, NVMEM layouts finally made it into the kernel. The network devices on the Kontron sl28 boards can now fetch their MAC addresses by reading the onboard VPD EEPROM. Yay :) First enable the layout driver (as a module) in the defconfig and then add the dt fragments. The second commit was already applied once in commit b203e6f1e833 ("arm64: dts: ls1028a: sl28: get MAC addresses from VPD") but had to be reverted in commit 916508c30e22 ("Revert "arm64: dts: ls1028a: sl28: get MAC addresses from VPD") because the NVMEM layouts series was dropped. NVMEM layouts will be included in v6.4, so we can now safely add the device tree fragments for v6.5. Signed-off-by: Michael Walle --- Michael Walle (2): arm64: defconfig: enable SL28VPD NVMEM layout arm64: dts: ls1028a: sl28: get MAC addresses from VPD .../dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts | 12 ++++++++++++ .../dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts | 2 ++ .../dts/freescale/fsl-ls1028a-kontron-sl28-var2.dts | 8 ++++++++ .../dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts | 2 ++ .../boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts | 17 +++++++++++++++++ arch/arm64/configs/defconfig | 1 + 6 files changed, 42 insertions(+) --- base-commit: f7efed9f38f886edb450041b82a6f15d663c98f8 change-id: 20230616-feature-sl28-vpd-dt-17a5b1021dfd