From patchwork Mon Oct 21 01:51:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 13843494 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 11C0FD3C927 for ; Mon, 21 Oct 2024 01:55:11 +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-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From: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-Owner; bh=2lZ90rM/yl95gasunq8MHFMTMKnOJPDjLru9yVW213o=; b=uOxH3+ERjkPmIUMaB/2m3/YfSu mrKUuHSjkP9EaHWImR5jIh1D9TXvKvfFReQUi1SrVkbRlKycHaoxBnyLCTFy/U5/D7A/EuS8ODnTJ ZSi5Uqr0QwrhK0eJWvRjlhgM24z9o5bYkQqicQEE+Bj/5uBZDLocYiyy9ydyXCkNGWrOpLFClTPvA J1/313w+uph4ddJjKF9OM/WxyXSYhYx/FCXpOSeq5HUeTwJXIbrlyx3I2x8phT/buwjW9jj0zuLq3 BPwgoxYcp5TMsp0zwv4H+wSnhsNqoXp0wbutFo1IE88B44A/jS/ZPMMz71z5il2qLZ50ZEDAzHpzS W2vBKDSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2hdK-00000005pdc-3O7c; Mon, 21 Oct 2024 01:54:58 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2haI-00000005p6Q-2N9F for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 01:51:52 +0000 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-7db54269325so3091477a12.2 for ; Sun, 20 Oct 2024 18:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729475509; x=1730080309; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2lZ90rM/yl95gasunq8MHFMTMKnOJPDjLru9yVW213o=; b=LL6nTIg7fUJnbi7sPcjNFXsMvqRa2Vo/B4SITO3BkUe7x0Y0mQnejFBsZ76082OiMb jj2xby4Tta9EqBW7y+q8rWnelO4JqbmBl+f04+vS/y6R92/X9f8Z3I5sBvnhQfKctSK0 UyNRoNqWoyEh3m59xxlsnx/nEj/9A/1xI+vUMBvkuhgUQAMpIvEp13UqzQO2LPcFqkan 4hb07u1A+kmNE2o1yOicODRsRGhwa3kX3FnfVOPRO8MQtFjmjbpfZCyCHQq6ByJHqL0W 4hCCzeyuDIQ77BpfV91eVKzTPz1CwtpWQRjPUuY2V6ho89RFZizg9ehXwWrA3DFocLIN UArQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729475509; x=1730080309; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2lZ90rM/yl95gasunq8MHFMTMKnOJPDjLru9yVW213o=; b=Ue0bI144FABvnOuEGSkGaYprAJHdbKXwoEjX/yARoUu+2jPC9eAFUlC+rZR8QgqF6/ cSjkPZAeHEHdT8CTlYGlMpm7DNtBMMuKw1Lj5LWUjReujmxgOgXhU1XZ5ayDrLXLlKSu zMgrV9k+edomVbj0wRv0zJHP93BskwGq1v7K7WadVIBPmLTInkidsaMpVKgpYhmCTlf8 cuoDLIjXGgSO428o2afQj9HOksyt2bO1CpvbjkbeKjLgOUaqJIWufEymheAxI+MbKC2U Ae+VACJhEezmTOkAbi3LegsSnFX+uk7Qa8zs5yDYBVfnIb/5syk+iD1R2+yaqSBsTUnG 3UVw== X-Forwarded-Encrypted: i=1; AJvYcCX1oxLuf9fB7k98YNMtdYpDJL1rnl9e158XwGuaAqCVm/p3knBdpWX4b8aMZIWI5Kde5x3UsDyEVTmEhlhGvrKn@lists.infradead.org X-Gm-Message-State: AOJu0YwmvCzRwwVxgw6ul2PMVdKTO7NekG5ZTZc3pf7xowzAT4lJSU74 thbOgHv1qsJ9Mb/bwAeGS5+xy+ycIeWJFlgObYlROg+9g1dg6R2W X-Google-Smtp-Source: AGHT+IHUMxAUf7zs1ZStiEaTzi+8zOdBCaWC9s2oqqARtuMi42TKkyKkVInMzf79Kn4CD0iYuUi9zg== X-Received: by 2002:a05:6a21:6e41:b0:1d9:2954:5817 with SMTP id adf61e73a8af0-1d92c50fef3mr16322541637.23.1729475509143; Sun, 20 Oct 2024 18:51:49 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ec141505bsm1747413b3a.219.2024.10.20.18.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2024 18:51:48 -0700 (PDT) From: Rosen Penev To: devicetree@vger.kernel.org Cc: Florian Fainelli , Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Broadcom internal kernel review list , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM5301X ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ARM: dts: meraki-mr26: set mac address for gmac0 Date: Sun, 20 Oct 2024 18:51:47 -0700 Message-ID: <20241021015147.172700-1-rosenp@gmail.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_185150_630979_9387B4A4 X-CRM114-Status: GOOD ( 10.11 ) 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 Currently this needs to be done in userspace. Signed-off-by: Rosen Penev --- .../dts/broadcom/bcm53015-meraki-mr26.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts b/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts index 0bf5106f7012..08abfdc63d18 100644 --- a/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts +++ b/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts @@ -59,6 +59,9 @@ &uart1 { &gmac0 { status = "okay"; + + nvmem-cells = <&macaddr_board_config_66>; + nvmem-cell-names = "mac-address"; }; &gmac1 { @@ -102,8 +105,25 @@ partition@600000 { }; partition@800000 { + compatible = "linux,ubi"; label = "ubi"; reg = <0x800000 0x7780000>; + + volumes { + ubi-volume-board-config { + volname = "board-config"; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_board_config_66: macaddr@66 { + reg = <0x66 0x6>; + }; + }; + }; + }; }; }; };