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: 1732857 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=nLzIreB5; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3Hh6462Yz23hp for ; Fri, 27 Jan 2023 23:58:46 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7E29685734; Fri, 27 Jan 2023 13:58:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nLzIreB5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E33B28570E; Fri, 27 Jan 2023 13:57:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9B9B285527 for ; Fri, 27 Jan 2023 13:57:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zajec5@gmail.com Received: by mail-ed1-x529.google.com with SMTP id y19so4659608edc.2 for ; Fri, 27 Jan 2023 04:57:27 -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=GqtC0PAi9MvLQI0gfnv4j8elk1ALLQ11niiXh9stASL9Ly0es/z2XLnefDx3sI+sZy 6NjCD/PUDqoGWcSSNYnpC36s8Vc7XUzcIqKxO4RmzvEH+js5Enqxr3JVrZo0HFW7tLyW AnDyV5Y6U/KuCSvnXmWkzKzg0hqoa55u+PzCM/R5QpymsfHtmFU64arYwFWLq825rfJv VSZj5uMtyEWPoHC7najx5RuFRAro23OOwa/e+pJuYyjhSYVtlClQGOBwOvs2NcAG376D l7C/Am5hQIMyiU7L+C9+IeeLUqGryfe5zcel6NBhs4e7kbdBei9BcnJM1+cFfBTYxiHh Joiw== X-Gm-Message-State: AO0yUKXFIkof4mnJOQEPaVPuquUnxITaQKgegOpVHj0qkZqNc5tJE93J xZ6eUD+eUB/nZGi2xG/ZRoY= X-Google-Smtp-Source: AK7set/5bZ4uI784IuJUkInee1H79LNBugj8JNQgijXYDt78IC6myb1oTH9Sdn4EhNbI3tN0iNi/7A== 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-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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>; }; }; };