Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6277622rdb; Thu, 14 Dec 2023 13:27:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHaQ6FAfki+HYpZlrmrpgXpUtWChMtBP6vsMRqTnuDSHvOP1xKxX94OgS71S2o+UB6vWpV X-Received: by 2002:a17:903:245:b0:1d0:9013:a139 with SMTP id j5-20020a170903024500b001d09013a139mr6613788plh.43.1702589276633; Thu, 14 Dec 2023 13:27:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702589276; cv=none; d=google.com; s=arc-20160816; b=NxhZZit5aABFaKEEW68mKydyfKbIIRsNTxAI9hLBbi/LQehMZJ5KV3uyamhLgVK6e/ BKWhcu+0hKiEG1fLWx+7aS64l0xhSP6qWz52Hv/df3qTVlvXyNmVc6SeAVW+mfWeYd7d nDe7G/wmP3feN2KDmnAnoSzlpkmek20W449lmKLGMpB0OO7BS/2VH/oVms3+mJAmnR9f JO1ZKzbf73JYxRU9TNqIk83/3OnZ7JK/7tZGyigP1tkhKZ2ZoUBfsaMLZ++LhuOcKF1W UZX0XoL5ur6FLmCN15pNJNvqBByXbg7vZlwqnCtWh2M9Z3dgUunp8TgWSkeoetsuFbF3 mpNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=tQLR3TCzDnjOcoUY0UAy1UbsLgGNkBs2xj+zMAJuyhY=; fh=PjeT0OhoHVIsCv4ENJZLaXEZ6iv7BtIR/6ARBxnIHzw=; b=rvozSXdjsWuV11uGdWpa2g0x387dJA0IP31r9sRMC89gHH0MlgHlQeBNgXhjDMrw/p lvP1/SKUTRoWWx+CYonUW67h5n4QkR+4/cSzpw26R9/sGNwSC78TqRt5rqAo259Lh52N jeC0AD4FEg0MTjtTslKXsxjJazjH86g6Cyf6Sw9NULMSOrAUwI0spX6LMGrxdOqKWq/u QMrCN+Fdhnormja4uDlz5vKZzHw6AOVqpgjBSpj05EGZ9S6V/HmmyNEJzrckkZnyyG58 zEvVcK7Q9R3+baED3CDpHLlq103MkaXULxFbHaeJJiwSLLifcqXU56F24EG5b4Iw78CV yDBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jJpWaGbK; spf=pass (google.com: domain of linux-kernel+bounces-130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f15-20020a170902ce8f00b001d09c544508si12012391plg.420.2023.12.14.13.27.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:27:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jJpWaGbK; spf=pass (google.com: domain of linux-kernel+bounces-130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4B19E281B84 for ; Thu, 14 Dec 2023 21:27:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CDA96ABA3; Thu, 14 Dec 2023 21:27:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jJpWaGbK" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A813754279 for ; Thu, 14 Dec 2023 21:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a22fb5f71d9so217892366b.0 for ; Thu, 14 Dec 2023 13:27:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702589244; x=1703194044; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tQLR3TCzDnjOcoUY0UAy1UbsLgGNkBs2xj+zMAJuyhY=; b=jJpWaGbKVozhyjYxq8KJu+7nXgHGSv9x1vlGOU8VUR/Xamg161RcGaTqYoxy+RztDI GV8wH0jO4rpSAM7RImVLNtR0HPNYkMnJHARwSP+tQwHIwUEQDYWAgtmkZqXsgK2N2OsX UbSg6v6BmhVghMN5Ygh+t40hTFEG9m9VtpYUw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702589244; x=1703194044; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tQLR3TCzDnjOcoUY0UAy1UbsLgGNkBs2xj+zMAJuyhY=; b=pjHbOjZxhwHCWNaA4CllbH9NwJvqm9v3Lic/XN75Xbt9rGSaDvY6NyUe2B5tIKtrf8 XI8eybhl6NJ0wjCFfTbqBEyt0OOY3Tm3QpzyDQozUGW3RoOvOl2TbYiL+ob5htdLf9lJ ZEOomdYtILpSZCHyCjqNLSLQILNm2WhwH+/vkbg87hHq6z9aL7H0kpiyX/W93nAoHbHr G/YCjtyjnAt7bk21X5nczaTOiz3atd4Vns7PYLdaEwCNbFwedLd/AFIXUhb90HpSI6ET PD/sGy1aXqjkkjyzSX5pS3Du35SOX2x7EUs45arizSXCXXMax8uyCwNnTentVZ7Q5/z8 06kQ== X-Gm-Message-State: AOJu0Yyxfk73CnlbiFi+GhLrOhjmQcJ1B/WMk9lOViZ2kjtZ6ohN7Kyq c1jMAnHmfQ7fdzJApPueLttD/CJqGL0FH3O1F5BklQ== X-Received: by 2002:a17:906:782:b0:a1d:2f59:81a4 with SMTP id l2-20020a170906078200b00a1d2f5981a4mr10882943ejc.62.1702589243759; Thu, 14 Dec 2023 13:27:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231214153620.23998-1-zajec5@gmail.com> In-Reply-To: <20231214153620.23998-1-zajec5@gmail.com> From: Simon Glass Date: Thu, 14 Dec 2023 14:27:12 -0700 Message-ID: Subject: Re: [PATCH RFC] dt-bindings: nvmem: u-boot, env: add any-name MAC cells compatible To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, u-boot@lists.denx.de, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Rafa=C5=82, On Thu, 14 Dec 2023 at 08:36, Rafa=C5=82 Mi=C5=82ecki wr= ote: > > From: Rafa=C5=82 Mi=C5=82ecki > > So far we had a property for "ethaddr" NVMEM cell containing base > Ethernet MAC address. The problem is vendors often pick non-standard > names for storing MAC(s) (other than "ethaddr"). A few names were > noticed over years: > 1. "wanaddr" (Edimax, ELECOM, EnGenius, I-O DATA, Sitecom) > 2. "et1macaddr" (ASUS) > 3. "eth1addr" (Buffalo) > 4. "athaddr" (EnGenius) > 5. "baseMAC" (Netgear) > 6. "mac" (Netgear) > 7. "mac_addr" (Moxa) > and more ("HW_LAN_MAC", "HW_WAN_MAC", "INIC_MAC_ADDR", "LAN_MAC_ADDR", > "RADIOADDR0", "RADIOADDR1", "WAN_MAC_ADDR", "lan1_mac_addr", "wanmac", > "wmac1", "wmac2"). > > It doesn't make sense to add property for every possible MAC cell name. > Instead allow specifying cells with "mac" compatible. > > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki > --- > List of devices and their U-Boot MAC variables: > alphanetworks,asl56026) wanmac > asus,rt-ac65p) et1macaddr > asus,rt-ac85p) et1macaddr > belkin,f9k1109v1) HW_WAN_MAC + HW_LAN_MAC > buffalo,ls220de) eth1addr > buffalo,ls421de) eth1addr > checkpoint,l-50) lan1_mac_addr > dovado,tiny-ac) INIC_MAC_ADDR > dovado,tiny-ac) LAN_MAC_ADDR + WAN_MAC_ADDR > edimax,ra21s) wanaddr > edimax,rg21s) wanaddr > elecom,wrc-2533ghbk-i) wanaddr > elecom,wrc-2533ghbk2-t) wanaddr > engenius,ecb1200) athaddr > engenius,ecb1750) athaddr > engenius,epg5000) wanaddr > engenius,epg600) wanaddr > engenius,esr1200) wanaddr > engenius,esr1750) wanaddr > engenius,esr600) wanaddr > engenius,esr600h) wanaddr > engenius,esr900) wanaddr > enterasys,ws-ap3705i) RADIOADDR0 + RADIOADDR1 > iodata,wn-ac1167dgr) wanaddr > iodata,wn-ac1167gr) wanaddr > iodata,wn-ac1600dgr) wanaddr > iodata,wn-ac1600dgr2) wanaddr > iodata,wn-ac733gr3) wanaddr > iodata,wn-ag300dgr) wanaddr > iodata,wnpr2600g) wanaddr > moxa,awk-1137c) mac_addr > netgear,wax220) mac > netgear,wndap620) baseMAC > netgear,wndap660) baseMAC > ocedo,panda) wmac1 + wmac2 > sitecom,wlr-7100) wanaddr > sitecom,wlr-8100) wanaddr > > .../devicetree/bindings/nvmem/u-boot,env.yaml | 33 +++++++++++++++++++ > 1 file changed, 33 insertions(+) > Are these upstream U-Boots, or just vendor forks? Regards, Simon