From patchwork Fri Jan 27 12:57:08 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: 49373 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp824381wrn; Fri, 27 Jan 2023 05:10:32 -0800 (PST) X-Google-Smtp-Source: AK7set93jq0HkPOyZemqgKxRfK9Q3Gvw1ARqXj+AJ6FV/w+3KeA/1wD7x2wh8ueFKWqqmdKSiZwV X-Received: by 2002:a17:903:cd:b0:195:f097:d65b with SMTP id x13-20020a17090300cd00b00195f097d65bmr4021550plc.49.1674825032132; Fri, 27 Jan 2023 05:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674825032; cv=none; d=google.com; s=arc-20160816; b=aTxpuGWhb8WecMTKWF1TwiaQvmaU2il/WOwmVKFPHQaiUTb1CX6v6x7kfcVGRQE/RK 4fT0wjEkE+tEYJx7TiuoPUa3SxrPQ2oEtOytt8KP4BtTVoV+I+1XVelv5UcdQ0vZuPUg U+f0K9t+iifIOiSQyvaScBJaV3scG5JYg7kQWW29SKTMBKAOp2xiL2p5+M7q9KtSmJgB rdMf0ndzduIDTYdWwlg4X//M0v48uFTSR9tP6uN65F+saRmGBumJO6BOUPz2w+5RQpZl dU2QBwVNQB44rfWcgGo7va3RsxmIkSvS1N8FC/ariOvuHbKLYXc4iYd2M7YLWevNhe9N q0Ig== 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=YWNUjeJHZnSxax1J2QjLkizJUwF4ziE2YWbkX0rtPtc=; b=AouBB/9aWnbB46iLwSQCeUUZiv/qGzbrlLEfoOOMDtt89SO9WHgRiIt5dpGcZWqzud HO64PkV2VoWZfhUrQ/ztRhsQ1fI8IFsaIuDIpNS61406hcOjnfywCmptr+6HnJ941GAY 9u6ODISEABLbu3LMkj4wqC+82DIOpPtiJ3iRf25zQ6mmGEi3qHaDD4xHOqENMkuvix4m 1Awc8HsLVS5+Npaep/bfW9EjPDe6RL+5VwIO1+2R7hhiR/Ro1ZU3qBROUdzLqpvc0ceS 7xR27U4ayNtMqRqwejFdU3XNF68pYFY007mN39JEbXVBox3iUZFyymYE+v+iUwMYT7e9 dd8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nLzIreB5; 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 t5-20020a170902e84500b001944ced796asi5177250plg.125.2023.01.27.05.10.19; Fri, 27 Jan 2023 05:10:32 -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=nLzIreB5; 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 S234496AbjA0M5h (ORCPT + 99 others); Fri, 27 Jan 2023 07:57:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234499AbjA0M5b (ORCPT ); Fri, 27 Jan 2023 07:57:31 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACE577D6C6; Fri, 27 Jan 2023 04:57:28 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id y11so4656519edd.6; Fri, 27 Jan 2023 04:57:28 -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=YWNUjeJHZnSxax1J2QjLkizJUwF4ziE2YWbkX0rtPtc=; b=nLzIreB5ldC6Mp5rqVhPzuPxFbBJ/iBxrU+VlBRAVm43hgO6dsx9XK0J0BE1Z/iYGE WcVyHAcJvvYBynwjHXkdR34VzcyeNSCGYVtBfQth1l1h16TbdTJPAivb8BfifmS8/nlM MWpFiH9oggy1HEBeOVKqmPHKudXjp2m83NMfzeweSC6qnOj8w4FiPr/A8JkKybI9ZSvN T3VcZjEB0mXOXZpPwhVTvaecKa9dKnlL5dWX2IDRFGzm1dBsjfr7fQGrCEmomDOBGQ2Y Tke5PgnbquaWAQILFe2AKvPwPxpEeg0SG0XFOv8Olh5sbBZW2+mUqEMN4ajEwip94fiX 0P8Q== 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=YWNUjeJHZnSxax1J2QjLkizJUwF4ziE2YWbkX0rtPtc=; b=Xn0ZnsMkh18ssPH0BVIhGk328jQ6bGsnF+Mb6gOo0UA1F5G+UYMaDE4RWtg4KF7Mdm ysKc0eBJNPW+nN8UhHQTwGJVNESYRsDxPzMyiZqs431edLa0jJbRm5g8cC7+XFAGI9Oz 9YURVwdFkIhl5Dgm40k8hGxppSssdkV9+b1BeQ/cEOHnflWZfs1QHeBAovliXzLoMbJE 0rV/Cvwm+lvSwD4XfDw/tmQJDw94+YlC3QjsiKQi6Y5h9ax4FiYoGHPAMDfKL7/S78AP U8We06qpGpfmrkhUGmwif9ZHZ1ajnO3jMSqvv7NXiM8pcdQMuhwr8ujVAU9b/HpNZI4N pHFw== X-Gm-Message-State: AO0yUKW5pLfzBu/vRpPhy298cWg2vtewc4nn8x+taksdt8COJGMvC2fe 10d9wSgKljjpxOQEfRPP9CA= X-Received: by 2002:a05:6402:320c:b0:4a0:b756:cfba with SMTP id g12-20020a056402320c00b004a0b756cfbamr8972644eda.32.1674824247045; Fri, 27 Jan 2023 04:57:27 -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 y5-20020a056402358500b00482e0c55e2bsm2248136edc.93.2023.01.27.04.57.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 04:57:26 -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?= , Rob Herring Subject: [PATCH V3 5/6] dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells Date: Fri, 27 Jan 2023 13:57:08 +0100 Message-Id: <20230127125709.32191-5-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127125709.32191-1-zajec5@gmail.com> References: <20230127125709.32191-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?1756181332708076767?= X-GMAIL-MSGID: =?utf-8?q?1756181332708076767?= 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>; }; }; };