From patchwork Wed Feb 22 17:22:44 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: 13149391 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 19A51C636D6 for ; Wed, 22 Feb 2023 17:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fCfrPZa5koob4pe3VhNKi1Spn+94J+FfjeeQld5WPwQ=; b=EvijXvp4taKzOi zTuHAKM414I03xKeqY/aidBG2QCz4Z4DDN+n+nqZsdLUGWUGzB32LPhgRAJmRVYtNqGgT/NopOhbU dTJHmhdzIu6DrSm7HjTa5zBAohPFqeVzyHznjdKw9D7XRdJdvquCA7MPJdkNH30iQIHwzOIWhkI2i h1p1O4mJILBvstJBh/4hSn7n73cZC+uVbFVmL5+cgNuQetqviXh3DzxgFyJ/smzJ6B40BikXpKK+U wj9A9iLD/PexEHUIyHg9EzlGEuOrM7l6Y4nZAEbcom3JQI6fu1UtP/gtk1cjXlkpHAxTsHwwzVJqd hFgGhWZw8S1TF+V4z3gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUsqI-00DCb2-MP; Wed, 22 Feb 2023 17:23:46 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUspv-00DCPr-LA for linux-arm-kernel@lists.infradead.org; Wed, 22 Feb 2023 17:23:24 +0000 Received: by mail-lf1-x12c.google.com with SMTP id f41so10970723lfv.13 for ; Wed, 22 Feb 2023 09:23:22 -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=T9PdNIUkyOijxkm8lOstlC8GwZtZ2lt8a9Evhp9jHyY=; b=XkTDmNQdujDorBXEGlYn8MmYJHDngP+r5qV8JFl16HU3Cd6o5Q+eT84Zatbghp/blU Jyf4jKMfzY3cOKgoH2V1oE7QHiDP2VUFMqnocY3mDzrmfnzrr99vMEeoGsGMfgcogfZX xAyU52u2dvL95BB4DEG5Hb3J4yn5/VakYa1GdlQiTqyFS91rs34V4h6FahlgeJvIuJBA FUgMvxvbhwSvWNXc3zKrgt491iMi4qM6eyubHCK5FmpLY2ntwt82j6GBtpVyShH/t9iy puKBoUcO4l4DR35P0EljAFLaSsqU45Qz3gIr3BSeIlIk4oFf/JYwLPtu7/j0F/DoeCie TwkA== 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=T9PdNIUkyOijxkm8lOstlC8GwZtZ2lt8a9Evhp9jHyY=; b=1nkTVMiFlpM7PFO2yl7jDb9j1Ukw07flefiQGQHMuPZz3fK0+N5HA3oB4grmeTQQLd ZMdWci9uHzW84/JfBdm5LXtKWUwGrAiKiSUsHtLfFBUzrIO9RCDYJvsGVIvAOFOrxFG9 yXwrdRRLGf7s20Xjo9RZEfb/3PFJpT6t3tQkob3KlCIBsOOrG/SbqC4BGc8JURDnzi0n xSnsgUwSIKEaETSZaTzlhYw6+Rc1JX8ZHV0XcXcf2RUSfv8/Q40eWLjR22JjL0LedxkL ZkFn7xtaE8FAmMPB0bBHKtMKz+2GJ6CcIbH5zsbDNxTWqIrF7MT/9b/0mh7EM/GAi5/u eSkQ== X-Gm-Message-State: AO0yUKX2oxm6DsK0htmXAZcNrmlA0BKbilDqv87cQUafBLSH79Hi3KzN DS2IqgcyK7QrCBLD5BTFhXo= X-Google-Smtp-Source: AK7set9BKbpC8Ukkt7GbTONVOGAOFba/xfy892ryKdsUW97CvVgj7f+L6Nf38pA4EnI9bJOkxd/bfQ== X-Received: by 2002:a05:6512:218e:b0:4dd:9c16:ff7 with SMTP id b14-20020a056512218e00b004dd9c160ff7mr1161984lft.36.1677086600636; Wed, 22 Feb 2023 09:23: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 p2-20020a2e93c2000000b0029477417d80sm721513ljh.85.2023.02.22.09.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 09:23: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 , gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, u-boot@lists.denx.de, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring Subject: [PATCH 3/4] dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells Date: Wed, 22 Feb 2023 18:22:44 +0100 Message-Id: <20230222172245.6313-4-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222172245.6313-1-zajec5@gmail.com> References: <20230222172245.6313-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230222_092323_729726_5851B203 X-CRM114-Status: GOOD ( 12.74 ) 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 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 --- Documentation/devicetree/bindings/nvmem/u-boot,env.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml index cbc5c69fd405..36d97fb87865 100644 --- a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml +++ b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml @@ -50,7 +50,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 @@ -72,6 +76,7 @@ examples: reg = <0x40000 0x10000>; mac: ethaddr { + #nvmem-cell-cells = <1>; }; }; };