From patchwork Wed Jan 11 07:31:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 41786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3181979wrt; Tue, 10 Jan 2023 23:46:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXugVIPK7dlB9pmBJIgXdJ5YL/8ZT+/ykAJ9y+VEfI9fmh+kZpC/TmF08xPymZktbINymarA X-Received: by 2002:a17:90b:110a:b0:223:b920:28df with SMTP id gi10-20020a17090b110a00b00223b92028dfmr73757724pjb.29.1673423162817; Tue, 10 Jan 2023 23:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673423162; cv=none; d=google.com; s=arc-20160816; b=oIps+JQW8/A6ug8/MuY/Y2x1MiNuIbZN7OA+aSMMBBpyVkij2cO38jUq+r/Bx2bpnv 6q/SNm6DQRvlt0S/IWtGgj81UEDDW5aWjDdZbbS6s9E/rft+DEklNtnQtcGElP33oIV9 BBSl6xWtdn5Raqn/au0wbonzJeA3UKpbdRMsxbjBdCBh7Wz82xoEDlTCY3G6pIhW2X0/ QUyLfX1ffD5dznk6zqkJ9N1YPiWESuD218BouyxxXabiLFtl+OvRX2EhsLJYGOyr2yYb v5uHhUydZcDaUvLQsW5Z2PoQKWmp6RnyzXazlar6KI6gJ4zyOuU/XzRKIREW+xYdQ6Yj 6BNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r5xJKON5Ta6zI9VZAQEfIhcRQtQRxrWmROsI4bJtDyw=; b=UT2mDTdRVw1jRkCKX1mBhCc9ts+8t/SOp/ertIrHequ3ze03UULqZRFqu/cejdZohD UOURa6EN7f5xZDz8YXR0yVrnLBRJ0at5P5mYEv1SBwiEUHNlD+zJTOfDp4Yt4u610sO+ u3a67oDTepacr6fGQmvMghSYtXdhEJZDR/BZqAOWDhGVjL4vTsxZW9aGk18AXyGcFUIC c5bgSlOYmGNG60qRJqT1omngn4ruVp0V7hAcBy+b3QfOTsntv/2yNCSj+EVlu6TkZzXj 6Mp2DADaY6JQvj8EK5K4jTYatlWbYzmxs08QfsMQIveeiomAw8kmdTtf2FsSQUV870jn rXTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=clAg3pNM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my7-20020a17090b4c8700b002187b07b835si14024760pjb.52.2023.01.10.23.45.49; Tue, 10 Jan 2023 23:46:02 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=clAg3pNM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231779AbjAKHbb (ORCPT + 99 others); Wed, 11 Jan 2023 02:31:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235838AbjAKHbX (ORCPT ); Wed, 11 Jan 2023 02:31:23 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AC56C76A; Tue, 10 Jan 2023 23:31:22 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id i9so21101386edj.4; Tue, 10 Jan 2023 23:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r5xJKON5Ta6zI9VZAQEfIhcRQtQRxrWmROsI4bJtDyw=; b=clAg3pNMynRTgt/ZYGkCxez++C8JfrcYYOJZCCGvBuPqzuRYGoWbhgwlQOdL134HL/ 2Eho/ERuAQm679eEFNivP61UWKBR6vnvRLVlRBoBbj/5A8qfWPCJpvnJluJXduu2y2Zw 5N6HGQdGRmuoZTI17dO44aXEDGxlwvnrNHwrgWiUxXLvby4S9tsB3hvnRLpjA6OtG5nR Yj7DfjmE0lqgaIN4gTyJiI4Sdl0AXsoWZa2ufgS02RNunujn2FKKpB1u6VcTo+CHgKAD iYCuFF3HgSga/zF2X9d+Tx/G7CZKSTC3nXzE+jrxJZmMLCyI5wsU4rp4xM9mC53YPYuO 2maA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r5xJKON5Ta6zI9VZAQEfIhcRQtQRxrWmROsI4bJtDyw=; b=HrXzNKYQ+wV9zCEip116MR4fgObsVZG430i2icnbQ7pQV68BWAQeZ3lKxpd2ntd2Q6 SOXvXF/joFTWqeyjF8dUM53QhNE7phmXt1YSWzJIRG5jpwHOxf4h2Enl0VFX37UwgL1e FCEYSTn6kyvB2YIBvC9b/7pF39URTAYxjX7zbYZFw+aQEz7wkm8R4RhkggHPEnZg2IKo yjYv08clC4VTKeIfrMf19/kR4jHd0CEOQHYvQjAVuds4ESiw9SCOcdveKdRgcKqxEmZw TQx1FmrKbFBLyk++mUVCSB+ZoA/KrbLhTq7kYt454MRex3S2oJpuWMGpvuu/V+D7C/nc u7Xw== X-Gm-Message-State: AFqh2kqETDcCfKnDAcUsg5Hg8w01O71b0o7JLFZc9lUMf0rMNnYjMb5c i9peJ1XM3eaPU1UbjMOJE14= X-Received: by 2002:a50:a401:0:b0:46d:53d7:d21e with SMTP id u1-20020a50a401000000b0046d53d7d21emr64886229edb.27.1673422280601; Tue, 10 Jan 2023 23:31:20 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id ed6-20020a056402294600b00499e5659988sm593193edb.68.2023.01.10.23.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 23:31:20 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Miquel Raynal , Michael Walle , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, u-boot@lists.denx.de, =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= Subject: [PATCH V2 5/6] dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells Date: Wed, 11 Jan 2023 08:31:01 +0100 Message-Id: <20230111073102.8147-5-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230111073102.8147-1-zajec5@gmail.com> References: <20230111073102.8147-1-zajec5@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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?1754711366007022143?= X-GMAIL-MSGID: =?utf-8?q?1754711366007022143?= From: Rafał Miłecki U-Boot's "ethaddr" environment variable is very often used to store *base* MAC address. It's used as a base for calculating addresses for multiple interfaces. It's done by adding proper values. Actual offsets are picked by manufacturers and vary across devices. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring --- .../devicetree/bindings/nvmem/layouts/u-boot,env.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/layouts/u-boot,env.yaml b/Documentation/devicetree/bindings/nvmem/layouts/u-boot,env.yaml index fb273b174fe7..dbff702f2e5d 100644 --- a/Documentation/devicetree/bindings/nvmem/layouts/u-boot,env.yaml +++ b/Documentation/devicetree/bindings/nvmem/layouts/u-boot,env.yaml @@ -45,7 +45,11 @@ properties: ethaddr: type: object - description: Ethernet interface's MAC address + description: Ethernet interfaces base MAC address. + properties: + "#nvmem-cell-cells": + description: The first argument is a MAC address offset. + const: 1 additionalProperties: false @@ -69,6 +73,7 @@ examples: compatible = "u-boot,env"; mac: ethaddr { + #nvmem-cell-cells = <1>; }; }; };