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: 10889 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1263056vqr; Fri, 16 Jun 2023 04:17:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47EA/RDEdIxmNBcjMhE/HQ8D4nNJySyhNNSiL4v8/lK4zTZb1oVDF4PH+7dCqq6zfQEU71 X-Received: by 2002:a92:d9c9:0:b0:33b:ed95:26df with SMTP id n9-20020a92d9c9000000b0033bed9526dfmr1824900ilq.32.1686914234485; Fri, 16 Jun 2023 04:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686914234; cv=none; d=google.com; s=arc-20160816; b=icHwRcQNWbUb+IpUxkqclGAbhThFh0DXeh56vbkU5v7yqkFVtQmT25Di8wC1wcSETt x6bfIPc5IUpbGTAbFOVmDuXx9qrbE/xScNbSNiG8fQDWg7FIVAPI7G1lX2uCoyxfLUbZ A++L0sKMxUvyE5CH3PZMhhgD8MLMZP6BxbIyaimc5OhfxG6meCBaPSk3gJewu5PmXiIy cNqqi1en50pqa0e2g2H9jRLQHG9bfg/YUC63vNxjjHJvNNZwAor74U9t2hJV0wc+Wn58 kCnWqkaA2ZhUGnp4pFwwl6qkfT3OvjRuNBMwHc4LTkBP96O05oesUQo/HnmAM8z6WChV qFCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=UvVKFXPd25BgyLr0UY6m+y7opf2hhkePzJD4W/cK5MY=; b=axUZuCbSR2Bo9p4QknoTrhUxpbYxs8Xj4HH9DJPQvPF9DygqtGlhdsn8rUsdRqm/DY adiVIzIQxFwk91+IKXDh9Cpk/JwFOV1U+TOCBT00A22k0/Q56uz79orqiu8I57wk2e05 QhAYrjNfEClKl7hP81+lq6uDFnRu3fxiaHRtmeGECsdjqKsvOy3/Ygu/U+QjZgzh7HxM a1zES3MNiymOJt4nFL/0yM9LuOANCLU8LWS/oXUMRgOiHTf1+PEmtlw95/jx3DatFbXT rRvRQcn6BX/Zx8ejt4RxQZrcFcXste4Tdq0EkRiBvK/yEIA6y7LCL5N+ODsH55Q4jnpb 8bag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O4eqVxLn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020a63b947000000b0052c2904e37dsi14563496pgo.362.2023.06.16.04.16.59; Fri, 16 Jun 2023 04:17:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O4eqVxLn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344164AbjFPLLc (ORCPT + 99 others); Fri, 16 Jun 2023 07:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344143AbjFPLL2 (ORCPT ); Fri, 16 Jun 2023 07:11:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD671A3; Fri, 16 Jun 2023 04:11:27 -0700 (PDT) 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 01CE560AB0; Fri, 16 Jun 2023 11:11:27 +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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768857780723000845?= X-GMAIL-MSGID: =?utf-8?q?1768857780723000845?= 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