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: 647735 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E42BC61DA7 for ; Fri, 27 Jan 2023 12:57:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232489AbjA0M5e (ORCPT ); Fri, 27 Jan 2023 07:57:34 -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-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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>; }; }; };