From patchwork Thu Jan 5 17:10:36 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: 13090608 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 8EA4CC3DA7A for ; Thu, 5 Jan 2023 22:21:12 +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: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:In-Reply-To:References: List-Owner; bh=9Je2TeHcCsIJUuhR2UMnfMOvCFRtajZrdWQGnJIWISw=; b=3ioabOP7pcSJEc KPHulNx0hdiMqs7gqWvxAzEntMrbAD6v0utHz6CVt9yFlJxo9/9g56NniOuSOxY+BYLcBl/fPvLkn vZ8WrftspNjw/8ewaZFpU4wSPKXUNYMrfguN/ZM/Gy2XC8gd5wz1a61xgqav2FM8klDEjoib/MdLj AHhGDQWn3z7mTgUie8JC4svrA1SkkQE6/7z23y2DNsy6wBGyYL1w7n0Niw7SqI3dI5eiRhBw9e6fH OxLf1kPZ4yl9AFDaRoIpWGvvZW1hwacStE6k6hgJoGFitnWhotWRwZbxSBoQbEJ9ZkqsWZ530qFv0 RdgNOHOCphS1ZRg7WqMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDYal-00FWj9-RZ; Thu, 05 Jan 2023 22:20:08 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDVEW-00Dn0G-1t for linux-arm-kernel@bombadil.infradead.org; Thu, 05 Jan 2023 18:44:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=0/YbCUbiIk7jw/h/JX9JQTuGXWp0ew1oCAgQXwBuda4=; b=j8ZNZw6Vh6KEi8qu6dBYKKnG6k QUgsVp0aq3aDz8ezv+EEwtfHv6WIVit+xUbjDN1cF1E7YZznsGJtY2dLHnIuRJ4lgppGNb7jktHE4 SiaRXaXsGYwm6hqeK3tjFWvfvEs/wkRk2x/2SOzNJMdV4luvjPaXX+KQXmzPTmpN3iqigdjHjwnz3 X55pDg9R5H6o/bnauGNVz4uGA+ctTa32y+2nk6nVgegiC/WfxXLlvDIIdUnVZp+5KqsGYcFtSaoT5 CF1qmCP8cNDz4T1F5eHPbZaxJJRdDAljSYpZjMo7/c6Fz2TqKwTfrggyBE182xz7rgHB0yebSdxYj RvtKh79g==; Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pDTlc-001Vnq-2J for linux-arm-kernel@lists.infradead.org; Thu, 05 Jan 2023 17:11:03 +0000 Received: by mail-ed1-x534.google.com with SMTP id z11so37822839ede.1 for ; Thu, 05 Jan 2023 09:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0/YbCUbiIk7jw/h/JX9JQTuGXWp0ew1oCAgQXwBuda4=; b=IojnGYDPn9/9kUDImAM4/qPxH1tqs8AraceRSrGaPrIA4K0BRlCAPDmiBwZEg9QXQT jG8NZZpy9XBTTB43h/Qh4IRnJJWSC1XKZFUXqJrg3vMkW8c92mN+vnhLuFR1nQ1BIhpo C1pjPh0QmKFQRehd6MyFU3oCS9Fq17hTATXQEUmkS7Id1y7ILI2vLVlRmx+Tt8fd6CW1 lL3h034rSuNYg3bQyHofC94WE0CP3oQ9Z8ft8R+bp1ZoV9tgvJFCzrPN8TW6uAe2mAXV dlaDaK8cFh/IDl0oDiS8AI1iqgB5m/AwFXYw0MOCg9nqHal+h1VGqkNHDhR6+wFf9Ezi Wm5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0/YbCUbiIk7jw/h/JX9JQTuGXWp0ew1oCAgQXwBuda4=; b=KzytypfC84hqMuu4bp1zbRbQZ7i2Qx70KT4PPZRiPBmgMdSBAHLnyX5pDMPUXRwRz/ ptU6dpFhV7XVt6nHJvZ7SEI+sJ7gCTYo+7srjGcVKET61yKgHNqRt+T5ehLDKoqPhmYh bhWczN/k8l2HadwN7UkzEvHYKFXQ6Kf3/416oLWoJx3qBxyIGiwqoZ+RjN/lu3JoMxxE SxKNvmxcTLNBEHGTTESNL/i5gBm4DAIzIamdzQD4V/PTN5XCqD1zzk2yc61sL14vtuet mQ5F8IPiDuz2oJ94op13eTv6YQw+Z94ZdbuF0Ay4fo4Eiy1r0smAqba+F2c4XuNYhxXG ATWw== X-Gm-Message-State: AFqh2kquj+2DpkZEqafLYFyLSA28HoqWGTiJL9SEGllbHDn69xs7wZUg 0+D7Zg57sCp9aZ0oDDR08hA= X-Google-Smtp-Source: AMrXdXsnbZYzuSv0TqR8hfYnHxxX2Xd5kBkoqfcQ9arljmolLSRX2rKW22FQCZ/5qyGNKYpvruiI5Q== X-Received: by 2002:a05:6402:3909:b0:492:846d:e86d with SMTP id fe9-20020a056402390900b00492846de86dmr2651833edb.23.1672938661792; Thu, 05 Jan 2023 09:11:01 -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 cn9-20020a0564020ca900b0048fdf37c441sm1714829edb.3.2023.01.05.09.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 09:11:01 -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 1/3] dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells Date: Thu, 5 Jan 2023 18:10:36 +0100 Message-Id: <20230105171038.13649-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230105_171100_935300_FDB6CE7B X-CRM114-Status: GOOD ( 12.39 ) 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 --- 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..1c139bd689ea 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. The first argument is an offset. + properties: + "#nvmem-cell-cells": + const: 1 additionalProperties: false @@ -72,6 +76,7 @@ examples: reg = <0x40000 0x10000>; mac: ethaddr { + #nvmem-cell-cells = <1>; }; }; };