Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp97263pxb; Wed, 14 Apr 2021 10:16:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwie5dv1t8nXDLZOEnbvI/6GrQ9E96+/Jpg1MYtV4INK5Z2vBgF6PVTkn8CBJ7eKqZklHnF X-Received: by 2002:a63:1357:: with SMTP id 23mr38997773pgt.284.1618420594029; Wed, 14 Apr 2021 10:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618420594; cv=none; d=google.com; s=arc-20160816; b=p/PZ5Ba+I0q0ZHO2aT0KH2dCyir9ZMHPGzIwbiMI3O3lkF3TGQ8NnNroKMpVsI3IgZ FSJO6171JW9YooOr/yPWcNlXBGEvBr2Z83MHQZUmUp8kR03f86fUxHmfzbqvvru3GI5Z N6vhtHqKw9bgvG01chNg4VNXMa3N4543Zdw6WuLs3H2mt9m+AvqwOZ7A9K4SjK1EdUBy RZtng5g/mCfVrfwJmaBnNRI10DMW925jdktWgp3VZNhTkw+YuhnGtgbD2sRd/dR9eGqu koIPC66XrKxybV9RF1+MjZUZztqCuouNdUJEGS7qPcCv5pSJ7wJKOBuFODSl4ParFoi4 Z9hA== 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=ljBbstorYR1PhEMFBo4o7Tzx1N/BNduPatEctwY+WE8=; b=HlF1z+HWMllvp434pMvEapnGwS68IZs8ipLD975iVLbavykxZOCkqXJi2tu8OehTkI b4N+DgGWKYwZQ6ZZPPhLxF6CnqwkyzeZZvkFCtZ8wm7MOkvamSfFfmSW5G6RYFpBkxKN inRI9aFzKAH372hgaAG2Vzk6WN/MiUx+nne0Y03p04EiA/roSmaalCRXgkGymjcchay9 v12HEcPYVCPtc1P9oZ3QgZdnTHscPb96BfrCLNqj3mv6KV1K8rygiFS0jm5QvZpUdklC LUWqT1EwoSQsEO3gzt+ufXqrol6Z1JBOK5b2xUcZ+2ZetXUYQcObvqNLC8ijrpkLfSbP i74w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=NEk7r0PK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si208950plj.249.2021.04.14.10.16.21; Wed, 14 Apr 2021 10:16:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=NEk7r0PK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352204AbhDNP1f (ORCPT + 99 others); Wed, 14 Apr 2021 11:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352136AbhDNP1a (ORCPT ); Wed, 14 Apr 2021 11:27:30 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E1C8C061574; Wed, 14 Apr 2021 08:27:08 -0700 (PDT) Received: from mwalle01.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:fa59:71ff:fe9b:b851]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 7BD1522256; Wed, 14 Apr 2021 17:27:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1618414026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ljBbstorYR1PhEMFBo4o7Tzx1N/BNduPatEctwY+WE8=; b=NEk7r0PK7md8vHykdrqqzaew64NqU5j3QhiLu867AIqJk0Q1cGlwOnSh4Re41gU7xw+5c1 WRbzirP7mFv8MwV7mrKxIhEgO6NF5vZZeWQJYD4bP3yf7eaqoCliMF0w8hW3Od5IXsHb0r Mvgm34J31vPmxWuWk4+uDRa7/L7ajMc= From: Michael Walle To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S . Miller" , Jakub Kicinski , Rob Herring , Andrew Lunn , Heiner Kallweit , Russell King , Frank Rowand , Michael Walle Subject: [PATCH net-next 1/3] dt-bindings: net: add nvmem-mac-address-offset property Date: Wed, 14 Apr 2021 17:26:55 +0200 Message-Id: <20210414152657.12097-2-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210414152657.12097-1-michael@walle.cc> References: <20210414152657.12097-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is already possible to read the MAC address via a NVMEM provider. But there are boards, esp. with many ports, which only have a base MAC address stored. Thus we need to have a way to provide an offset per network device. Signed-off-by: Michael Walle --- .../devicetree/bindings/net/ethernet-controller.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index e8f04687a3e0..1a8517b0e445 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -52,6 +52,12 @@ properties: nvmem-cell-names: const: mac-address + nvmem-mac-address-offset: + maxItems: 1 + description: + Specifies an offset which will be added to the MAC address when + fetched from a nvmem cell. + phy-connection-type: description: Specifies interface type between the Ethernet device and a physical -- 2.20.1